@elastic/eui 123.4.0 → 123.5.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 (394) hide show
  1. package/dist/eui-icons.json +87 -86
  2. package/dist/svgs/logo_elastic_mono.svg +3 -0
  3. package/dist/svgs/moon.svg +2 -2
  4. package/dist/svgs/product_nightshift.svg +4 -3
  5. package/es/components/avatar/avatar.js +1 -1
  6. package/es/components/badge/badge.js +1 -1
  7. package/es/components/badge/beta_badge/beta_badge.js +1 -1
  8. package/es/components/badge/notification_badge/badge_notification.js +1 -1
  9. package/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  10. package/es/components/basic_table/basic_table.js +34 -34
  11. package/es/components/basic_table/in_memory_table.js +9 -9
  12. package/es/components/button/button_display/_button_display_content.js +1 -1
  13. package/es/components/button/button_empty/button_empty.js +1 -1
  14. package/es/components/button/button_icon/button_icon.js +1 -1
  15. package/es/components/button/split_button/split_button.js +9 -9
  16. package/es/components/button/split_button/split_button.styles.js +11 -5
  17. package/es/components/button/split_button/split_button_actions.js +6 -12
  18. package/es/components/call_out/call_out.js +2 -2
  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/combo_box/combo_box.js +41 -41
  22. package/es/components/comment_list/comment.js +2 -2
  23. package/es/components/comment_list/comment_event.js +1 -1
  24. package/es/components/comment_list/comment_list.js +2 -2
  25. package/es/components/comment_list/comment_timeline.js +1 -1
  26. package/es/components/context_menu/context_menu_item.js +1 -1
  27. package/es/components/datagrid/body/cell/data_grid_cell.js +24 -24
  28. package/es/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  29. package/es/components/datagrid/body/data_grid_body.js +13 -13
  30. package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
  31. package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  32. package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  33. package/es/components/datagrid/body/header/draggable_columns.js +2 -2
  34. package/es/components/datagrid/controls/column_sorting.js +13 -13
  35. package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
  36. package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  37. package/es/components/datagrid/controls/display_selector.js +3 -3
  38. package/es/components/datagrid/utils/in_memory.js +12 -12
  39. package/es/components/date_picker/date_picker.js +2 -2
  40. package/es/components/date_picker/date_picker_range.js +1 -1
  41. package/es/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  42. package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  43. package/es/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  44. package/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  45. package/es/components/empty_prompt/empty_prompt.js +1 -1
  46. package/es/components/filter_group/filter_button.js +1 -1
  47. package/es/components/filter_group/filter_group.a11y.js +13 -13
  48. package/es/components/flex/flex_grid.styles.js +4 -4
  49. package/es/components/flex/flex_group.styles.js +16 -16
  50. package/es/components/flyout/flyout.component.js +43 -36
  51. package/es/components/flyout/flyout_menu/flyout_menu.js +2 -2
  52. package/es/components/form/field_number/field_number.js +2 -2
  53. package/es/components/form/field_text/field_text.js +2 -2
  54. package/es/components/form/form_control_button/form_control_button.js +1 -1
  55. package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  56. package/es/components/form/form_control_layout/form_control_layout.js +2 -2
  57. package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  58. package/es/components/form/form_row/form_row.styles.js +1 -1
  59. package/es/components/form/text_area/text_area.js +2 -2
  60. package/es/components/header/header.a11y.js +3 -3
  61. package/es/components/header/header_links/header_link.js +1 -1
  62. package/es/components/header/header_links/header_links.js +1 -1
  63. package/es/components/header/header_logo/elastic_logo_full.js +6 -2
  64. package/es/components/header/header_logo/header_logo.js +6 -3
  65. package/es/components/header/header_section/header_section_item_button.js +1 -1
  66. package/es/components/icon/assets/logo_elastic_mono.js +35 -0
  67. package/es/components/icon/assets/moon.js +1 -1
  68. package/es/components/icon/assets/product_nightshift.js +6 -2
  69. package/es/components/icon/icon.js +1 -1
  70. package/es/components/icon/icon_map.js +5 -0
  71. package/es/components/icon/svgs/logo_elastic_mono.svg +3 -0
  72. package/es/components/icon/svgs/moon.svg +2 -2
  73. package/es/components/icon/svgs/product_nightshift.svg +4 -3
  74. package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
  75. package/es/components/list_group/list_group.js +2 -2
  76. package/es/components/list_group/list_group_item.js +2 -2
  77. package/es/components/list_group/list_group_item_extra_action.js +1 -1
  78. package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  79. package/es/components/loading/loading_logo.js +1 -1
  80. package/es/components/markdown_editor/markdown_editor.js +8 -8
  81. package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  82. package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
  83. package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  84. package/es/components/modal/modal.styles.js +1 -1
  85. package/es/components/modal/modal_body.styles.js +1 -1
  86. package/es/components/page/page_header/page_header_content.js +1 -1
  87. package/es/components/pagination/pagination_button.js +1 -1
  88. package/es/components/search_bar/filters/field_value_selection_filter.js +3 -3
  89. package/es/components/search_bar/search_bar.js +3 -3
  90. package/es/components/selectable/selectable_list/selectable_list.js +47 -48
  91. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  92. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  93. package/es/components/steps/step.js +4 -5
  94. package/es/components/steps/steps_horizontal.js +2 -1
  95. package/es/components/steps/sub_steps.js +2 -3
  96. package/es/components/table/table_header_cell.js +1 -1
  97. package/es/components/timeline/timeline_item_icon.js +1 -1
  98. package/es/components/toast/global_toast_list.js +2 -2
  99. package/es/components/toast/toast.js +2 -2
  100. package/es/components/tool_tip/icon_tip.js +1 -1
  101. package/es/components/tool_tip/tool_tip.js +7 -7
  102. package/es/test/index.d.ts +3 -3
  103. package/eui.d.ts +46 -19
  104. package/lib/components/avatar/avatar.js +1 -1
  105. package/lib/components/badge/badge.js +1 -1
  106. package/lib/components/badge/beta_badge/beta_badge.js +1 -1
  107. package/lib/components/badge/notification_badge/badge_notification.js +1 -1
  108. package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  109. package/lib/components/basic_table/basic_table.js +34 -34
  110. package/lib/components/basic_table/in_memory_table.js +9 -9
  111. package/lib/components/button/button_display/_button_display_content.js +1 -1
  112. package/lib/components/button/button_empty/button_empty.js +1 -1
  113. package/lib/components/button/button_icon/button_icon.js +1 -1
  114. package/lib/components/button/split_button/split_button.js +8 -8
  115. package/lib/components/button/split_button/split_button.styles.js +11 -5
  116. package/lib/components/button/split_button/split_button_actions.js +4 -10
  117. package/lib/components/call_out/call_out.js +2 -2
  118. package/lib/components/card/card.js +1 -1
  119. package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  120. package/lib/components/combo_box/combo_box.js +41 -41
  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 +24 -24
  127. package/lib/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  128. package/lib/components/datagrid/body/data_grid_body.js +13 -13
  129. package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
  130. package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  131. package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  132. package/lib/components/datagrid/body/header/draggable_columns.js +2 -2
  133. package/lib/components/datagrid/controls/column_sorting.js +13 -13
  134. package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
  135. package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  136. package/lib/components/datagrid/controls/display_selector.js +3 -3
  137. package/lib/components/datagrid/utils/in_memory.js +12 -12
  138. package/lib/components/date_picker/date_picker.js +2 -2
  139. package/lib/components/date_picker/date_picker_range.js +1 -1
  140. package/lib/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  141. package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  142. package/lib/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  143. package/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  144. package/lib/components/empty_prompt/empty_prompt.js +1 -1
  145. package/lib/components/filter_group/filter_button.js +1 -1
  146. package/lib/components/filter_group/filter_group.a11y.js +13 -13
  147. package/lib/components/flex/flex_grid.styles.js +4 -4
  148. package/lib/components/flex/flex_group.styles.js +16 -16
  149. package/lib/components/flyout/flyout.component.js +43 -36
  150. package/lib/components/flyout/flyout_menu/flyout_menu.js +2 -2
  151. package/lib/components/form/field_number/field_number.js +2 -2
  152. package/lib/components/form/field_text/field_text.js +2 -2
  153. package/lib/components/form/form_control_button/form_control_button.js +1 -1
  154. package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  155. package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
  156. package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  157. package/lib/components/form/form_row/form_row.styles.js +1 -1
  158. package/lib/components/form/text_area/text_area.js +2 -2
  159. package/lib/components/header/header.a11y.js +3 -3
  160. package/lib/components/header/header_links/header_link.js +1 -1
  161. package/lib/components/header/header_links/header_links.js +1 -1
  162. package/lib/components/header/header_logo/elastic_logo_full.js +6 -2
  163. package/lib/components/header/header_logo/header_logo.js +6 -3
  164. package/lib/components/header/header_section/header_section_item_button.js +1 -1
  165. package/lib/components/icon/assets/logo_elastic_mono.js +41 -0
  166. package/lib/components/icon/assets/moon.js +1 -1
  167. package/lib/components/icon/assets/product_nightshift.js +6 -2
  168. package/lib/components/icon/icon.js +1 -1
  169. package/lib/components/icon/icon_map.js +7 -0
  170. package/lib/components/icon/svgs/logo_elastic_mono.svg +3 -0
  171. package/lib/components/icon/svgs/moon.svg +2 -2
  172. package/lib/components/icon/svgs/product_nightshift.svg +4 -3
  173. package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
  174. package/lib/components/list_group/list_group.js +2 -2
  175. package/lib/components/list_group/list_group_item.js +2 -2
  176. package/lib/components/list_group/list_group_item_extra_action.js +1 -1
  177. package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  178. package/lib/components/loading/loading_logo.js +1 -1
  179. package/lib/components/markdown_editor/markdown_editor.js +8 -8
  180. package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  181. package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
  182. package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  183. package/lib/components/modal/modal.styles.js +1 -1
  184. package/lib/components/modal/modal_body.styles.js +1 -1
  185. package/lib/components/page/page_header/page_header_content.js +1 -1
  186. package/lib/components/pagination/pagination_button.js +1 -1
  187. package/lib/components/search_bar/filters/field_value_selection_filter.js +2 -2
  188. package/lib/components/search_bar/search_bar.js +3 -3
  189. package/lib/components/selectable/selectable_list/selectable_list.js +47 -48
  190. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  191. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  192. package/lib/components/steps/step.js +3 -4
  193. package/lib/components/steps/steps_horizontal.js +2 -1
  194. package/lib/components/steps/sub_steps.js +1 -2
  195. package/lib/components/table/table_header_cell.js +1 -1
  196. package/lib/components/timeline/timeline_item_icon.js +1 -1
  197. package/lib/components/toast/global_toast_list.js +2 -2
  198. package/lib/components/toast/toast.js +2 -2
  199. package/lib/components/tool_tip/icon_tip.js +1 -1
  200. package/lib/components/tool_tip/tool_tip.js +7 -7
  201. package/lib/test/index.d.ts +3 -3
  202. package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
  203. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
  204. package/optimize/es/components/basic_table/basic_table.js +30 -30
  205. package/optimize/es/components/basic_table/in_memory_table.js +5 -5
  206. package/optimize/es/components/button/split_button/split_button.js +9 -9
  207. package/optimize/es/components/button/split_button/split_button.styles.js +11 -5
  208. package/optimize/es/components/button/split_button/split_button_actions.js +6 -12
  209. package/optimize/es/components/combo_box/combo_box.js +41 -41
  210. package/optimize/es/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  211. package/optimize/es/components/datagrid/body/header/draggable_columns.js +2 -2
  212. package/optimize/es/components/datagrid/controls/display_selector.js +3 -3
  213. package/optimize/es/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  214. package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  215. package/optimize/es/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  216. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  217. package/optimize/es/components/filter_group/filter_button.js +1 -1
  218. package/optimize/es/components/filter_group/filter_group.a11y.js +13 -13
  219. package/optimize/es/components/flex/flex_grid.styles.js +4 -4
  220. package/optimize/es/components/flex/flex_group.styles.js +16 -16
  221. package/optimize/es/components/flyout/flyout.component.js +43 -36
  222. package/optimize/es/components/form/form_row/form_row.styles.js +1 -1
  223. package/optimize/es/components/header/header.a11y.js +3 -3
  224. package/optimize/es/components/header/header_logo/elastic_logo_full.js +6 -2
  225. package/optimize/es/components/header/header_logo/header_logo.js +6 -3
  226. package/optimize/es/components/icon/assets/logo_elastic_mono.js +34 -0
  227. package/optimize/es/components/icon/assets/moon.js +1 -1
  228. package/optimize/es/components/icon/assets/product_nightshift.js +6 -2
  229. package/optimize/es/components/icon/icon_map.js +5 -0
  230. package/optimize/es/components/icon/svgs/logo_elastic_mono.svg +3 -0
  231. package/optimize/es/components/icon/svgs/moon.svg +2 -2
  232. package/optimize/es/components/icon/svgs/product_nightshift.svg +4 -3
  233. package/optimize/es/components/markdown_editor/markdown_editor.js +7 -7
  234. package/optimize/es/components/modal/modal.styles.js +1 -1
  235. package/optimize/es/components/modal/modal_body.styles.js +1 -1
  236. package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +3 -3
  237. package/optimize/es/components/search_bar/search_bar.js +3 -3
  238. package/optimize/es/components/selectable/selectable_list/selectable_list.js +46 -47
  239. package/optimize/es/components/steps/step.js +4 -5
  240. package/optimize/es/components/steps/steps_horizontal.js +2 -1
  241. package/optimize/es/components/steps/sub_steps.js +2 -3
  242. package/optimize/es/components/tool_tip/tool_tip.js +7 -7
  243. package/optimize/es/test/index.d.ts +3 -3
  244. package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
  245. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
  246. package/optimize/lib/components/basic_table/basic_table.js +30 -30
  247. package/optimize/lib/components/basic_table/in_memory_table.js +5 -5
  248. package/optimize/lib/components/button/split_button/split_button.js +8 -8
  249. package/optimize/lib/components/button/split_button/split_button.styles.js +11 -5
  250. package/optimize/lib/components/button/split_button/split_button_actions.js +4 -10
  251. package/optimize/lib/components/combo_box/combo_box.js +41 -41
  252. package/optimize/lib/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  253. package/optimize/lib/components/datagrid/body/header/draggable_columns.js +2 -2
  254. package/optimize/lib/components/datagrid/controls/display_selector.js +3 -3
  255. package/optimize/lib/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  256. package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  257. package/optimize/lib/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  258. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  259. package/optimize/lib/components/filter_group/filter_button.js +1 -1
  260. package/optimize/lib/components/filter_group/filter_group.a11y.js +13 -13
  261. package/optimize/lib/components/flex/flex_grid.styles.js +4 -4
  262. package/optimize/lib/components/flex/flex_group.styles.js +16 -16
  263. package/optimize/lib/components/flyout/flyout.component.js +43 -36
  264. package/optimize/lib/components/form/form_row/form_row.styles.js +1 -1
  265. package/optimize/lib/components/header/header.a11y.js +3 -3
  266. package/optimize/lib/components/header/header_logo/elastic_logo_full.js +6 -2
  267. package/optimize/lib/components/header/header_logo/header_logo.js +6 -3
  268. package/optimize/lib/components/icon/assets/logo_elastic_mono.js +41 -0
  269. package/optimize/lib/components/icon/assets/moon.js +1 -1
  270. package/optimize/lib/components/icon/assets/product_nightshift.js +6 -2
  271. package/optimize/lib/components/icon/icon_map.js +7 -0
  272. package/optimize/lib/components/icon/svgs/logo_elastic_mono.svg +3 -0
  273. package/optimize/lib/components/icon/svgs/moon.svg +2 -2
  274. package/optimize/lib/components/icon/svgs/product_nightshift.svg +4 -3
  275. package/optimize/lib/components/markdown_editor/markdown_editor.js +7 -7
  276. package/optimize/lib/components/modal/modal.styles.js +1 -1
  277. package/optimize/lib/components/modal/modal_body.styles.js +1 -1
  278. package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +2 -2
  279. package/optimize/lib/components/search_bar/search_bar.js +3 -3
  280. package/optimize/lib/components/selectable/selectable_list/selectable_list.js +46 -47
  281. package/optimize/lib/components/steps/step.js +3 -4
  282. package/optimize/lib/components/steps/steps_horizontal.js +2 -1
  283. package/optimize/lib/components/steps/sub_steps.js +1 -2
  284. package/optimize/lib/components/tool_tip/tool_tip.js +7 -7
  285. package/optimize/lib/test/index.d.ts +3 -3
  286. package/package.json +5 -27
  287. package/test-env/components/avatar/avatar.js +1 -1
  288. package/test-env/components/badge/badge.js +1 -1
  289. package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
  290. package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
  291. package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
  292. package/test-env/components/basic_table/basic_table.js +34 -34
  293. package/test-env/components/basic_table/in_memory_table.js +9 -9
  294. package/test-env/components/button/button_display/_button_display_content.js +1 -1
  295. package/test-env/components/button/button_empty/button_empty.js +1 -1
  296. package/test-env/components/button/button_icon/button_icon.js +1 -1
  297. package/test-env/components/button/split_button/split_button.js +8 -8
  298. package/test-env/components/button/split_button/split_button.styles.js +11 -5
  299. package/test-env/components/button/split_button/split_button_actions.js +4 -10
  300. package/test-env/components/call_out/call_out.js +2 -2
  301. package/test-env/components/card/card.js +1 -1
  302. package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
  303. package/test-env/components/combo_box/combo_box.js +41 -41
  304. package/test-env/components/comment_list/comment.js +2 -2
  305. package/test-env/components/comment_list/comment_event.js +1 -1
  306. package/test-env/components/comment_list/comment_list.js +2 -2
  307. package/test-env/components/comment_list/comment_timeline.js +1 -1
  308. package/test-env/components/context_menu/context_menu_item.js +1 -1
  309. package/test-env/components/datagrid/body/cell/data_grid_cell.js +24 -24
  310. package/test-env/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
  311. package/test-env/components/datagrid/body/data_grid_body.js +13 -13
  312. package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
  313. package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
  314. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
  315. package/test-env/components/datagrid/body/header/draggable_columns.js +2 -2
  316. package/test-env/components/datagrid/controls/column_sorting.js +13 -13
  317. package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
  318. package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
  319. package/test-env/components/datagrid/controls/display_selector.js +3 -3
  320. package/test-env/components/datagrid/utils/in_memory.js +12 -12
  321. package/test-env/components/date_picker/date_picker.js +2 -2
  322. package/test-env/components/date_picker/date_picker_range.js +1 -1
  323. package/test-env/components/date_picker/react-datepicker/src/date_utils.js +3 -3
  324. package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
  325. package/test-env/components/date_picker/super_date_picker/pretty_duration.js +30 -30
  326. package/test-env/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
  327. package/test-env/components/empty_prompt/empty_prompt.js +1 -1
  328. package/test-env/components/filter_group/filter_button.js +1 -1
  329. package/test-env/components/filter_group/filter_group.a11y.js +13 -13
  330. package/test-env/components/flex/flex_grid.styles.js +4 -4
  331. package/test-env/components/flex/flex_group.styles.js +16 -16
  332. package/test-env/components/flyout/flyout.component.js +43 -36
  333. package/test-env/components/flyout/flyout_menu/flyout_menu.js +2 -2
  334. package/test-env/components/form/field_number/field_number.js +2 -2
  335. package/test-env/components/form/field_text/field_text.js +2 -2
  336. package/test-env/components/form/form_control_button/form_control_button.js +1 -1
  337. package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
  338. package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
  339. package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
  340. package/test-env/components/form/form_row/form_row.styles.js +1 -1
  341. package/test-env/components/form/text_area/text_area.js +2 -2
  342. package/test-env/components/header/header.a11y.js +3 -3
  343. package/test-env/components/header/header_links/header_link.js +1 -1
  344. package/test-env/components/header/header_links/header_links.js +1 -1
  345. package/test-env/components/header/header_logo/elastic_logo_full.js +6 -2
  346. package/test-env/components/header/header_logo/header_logo.js +6 -3
  347. package/test-env/components/header/header_section/header_section_item_button.js +1 -1
  348. package/test-env/components/icon/assets/logo_elastic_mono.js +41 -0
  349. package/test-env/components/icon/assets/moon.js +1 -1
  350. package/test-env/components/icon/assets/product_nightshift.js +6 -2
  351. package/test-env/components/icon/icon_map.js +7 -0
  352. package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
  353. package/test-env/components/list_group/list_group.js +2 -2
  354. package/test-env/components/list_group/list_group_item.js +2 -2
  355. package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
  356. package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
  357. package/test-env/components/loading/loading_logo.js +1 -1
  358. package/test-env/components/markdown_editor/markdown_editor.js +8 -8
  359. package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
  360. package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
  361. package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
  362. package/test-env/components/modal/modal.styles.js +1 -1
  363. package/test-env/components/modal/modal_body.styles.js +1 -1
  364. package/test-env/components/page/page_header/page_header_content.js +1 -1
  365. package/test-env/components/pagination/pagination_button.js +1 -1
  366. package/test-env/components/search_bar/filters/field_value_selection_filter.js +2 -2
  367. package/test-env/components/search_bar/search_bar.js +3 -3
  368. package/test-env/components/selectable/selectable_list/selectable_list.js +47 -48
  369. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  370. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
  371. package/test-env/components/steps/step.js +3 -4
  372. package/test-env/components/steps/steps_horizontal.js +2 -1
  373. package/test-env/components/steps/sub_steps.js +1 -2
  374. package/test-env/components/table/table_header_cell.js +1 -1
  375. package/test-env/components/timeline/timeline_item_icon.js +1 -1
  376. package/test-env/components/toast/global_toast_list.js +2 -2
  377. package/test-env/components/toast/toast.js +2 -2
  378. package/test-env/components/tool_tip/icon_tip.js +1 -1
  379. package/test-env/components/tool_tip/tool_tip.js +7 -7
  380. package/es/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
  381. package/es/components/date_picker/react-datepicker/test/test_wrapper.js +0 -38
  382. package/es/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -75
  383. package/lib/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -80
  384. package/lib/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
  385. package/lib/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -83
  386. package/optimize/es/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -68
  387. package/optimize/es/components/date_picker/react-datepicker/test/test_wrapper.js +0 -38
  388. package/optimize/es/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -69
  389. package/optimize/lib/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
  390. package/optimize/lib/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
  391. package/optimize/lib/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -77
  392. package/test-env/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
  393. package/test-env/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
  394. package/test-env/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -77
@@ -1,83 +0,0 @@
1
- "use strict";
2
-
3
- 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); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _index = _interopRequireDefault(require("../src/index.jsx"));
10
- var utils = _interopRequireWildcard(require("../src/date_utils"));
11
- var _react2 = require("@emotion/react");
12
- var cache;
13
- function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
16
- 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); } }
17
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
18
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
- function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); }
20
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
21
- 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); }
22
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
23
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
25
- 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); }
26
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); } /*
27
- * The MIT License (MIT)
28
- *
29
- * Copyright (c) 2018 HackerOne Inc and individual contributors
30
- *
31
- * Permission is hereby granted, free of charge, to any person obtaining a copy
32
- * of this software and associated documentation files (the "Software"), to deal
33
- * in the Software without restriction, including without limitation the rights
34
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
- * copies of the Software, and to permit persons to whom the Software is
36
- * furnished to do so, subject to the following conditions:
37
- *
38
- * The above copyright notice and this permission notice shall be included in all
39
- * copies or substantial portions of the Software.
40
- *
41
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47
- * SOFTWARE.
48
- *
49
- */
50
- var TimezoneDatePicker = /*#__PURE__*/function (_React$Component) {
51
- function TimezoneDatePicker(props) {
52
- var _this;
53
- _classCallCheck(this, TimezoneDatePicker);
54
- _this = _callSuper(this, TimezoneDatePicker, [props]);
55
- _this.state = {
56
- startDate: null,
57
- utcOffset: -4
58
- };
59
- return _this;
60
- }
61
- _inherits(TimezoneDatePicker, _React$Component);
62
- return _createClass(TimezoneDatePicker, [{
63
- key: "handleChange",
64
- value: function handleChange(date) {
65
- this.setState({
66
- startDate: date
67
- });
68
- }
69
- }, {
70
- key: "render",
71
- value: function render() {
72
- var selected = this.state.startDate && utils.setUTCOffset(utils.cloneDate(this.state.startDate), this.state.utcOffset);
73
- return (0, _react2.jsx)(_index.default, {
74
- utcOffset: this.state.utcOffset,
75
- dateFormat: "YYYY-MM-DD HH:mm",
76
- selected: selected,
77
- onChange: this.handleChange
78
- });
79
- }
80
- }]);
81
- }(_react.default.Component);
82
- var _default = exports.default = TimezoneDatePicker;
83
- module.exports = exports.default;
@@ -1,68 +0,0 @@
1
- import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
2
- import _extends from "@babel/runtime/helpers/extends";
3
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
- import _createClass from "@babel/runtime/helpers/createClass";
5
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
- import _inherits from "@babel/runtime/helpers/inherits";
8
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
- /*
11
- * The MIT License (MIT)
12
- *
13
- * Copyright (c) 2018 HackerOne Inc and individual contributors
14
- *
15
- * Permission is hereby granted, free of charge, to any person obtaining a copy
16
- * of this software and associated documentation files (the "Software"), to deal
17
- * in the Software without restriction, including without limitation the rights
18
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
- * copies of the Software, and to permit persons to whom the Software is
20
- * furnished to do so, subject to the following conditions:
21
- *
22
- * The above copyright notice and this permission notice shall be included in all
23
- * copies or substantial portions of the Software.
24
- *
25
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
- * SOFTWARE.
32
- *
33
- */
34
-
35
- import React from "react";
36
- import PropTypes from "prop-types";
37
- import { jsx as ___EmotionJSX } from "@emotion/react";
38
- var CustomInput = /*#__PURE__*/function (_React$Component) {
39
- function CustomInput() {
40
- _classCallCheck(this, CustomInput);
41
- return _callSuper(this, CustomInput, arguments);
42
- }
43
- _inherits(CustomInput, _React$Component);
44
- return _createClass(CustomInput, [{
45
- key: "onChange",
46
- value: function onChange(e) {
47
- var args = [e, e.target.value];
48
- if (this.props.onChangeArgs) {
49
- args = this.props.onChangeArgs(e);
50
- }
51
- this.props.onChange.apply(this, args);
52
- }
53
- }, {
54
- key: "render",
55
- value: function render() {
56
- var props = _extends({}, (_objectDestructuringEmpty(this.props), this.props));
57
- delete props.onChangeArgs;
58
- return ___EmotionJSX("input", _extends({}, props, {
59
- onChange: this.onChange.bind(this)
60
- }));
61
- }
62
- }]);
63
- }(React.Component);
64
- CustomInput.propTypes = {
65
- onChange: PropTypes.func,
66
- onChangeArgs: PropTypes.func
67
- };
68
- export default CustomInput;
@@ -1,38 +0,0 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2018 HackerOne Inc and individual contributors
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- *
24
- */
25
-
26
- import React from "react";
27
- import PropTypes from "prop-types";
28
- import { jsx as ___EmotionJSX } from "@emotion/react";
29
- var TestWrapper = function TestWrapper(_ref) {
30
- var children = _ref.children;
31
- return ___EmotionJSX("div", {
32
- className: "test-wrapper"
33
- }, children);
34
- };
35
- TestWrapper.propTypes = {
36
- children: PropTypes.node
37
- };
38
- export default TestWrapper;
@@ -1,69 +0,0 @@
1
- import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
- import _createClass from "@babel/runtime/helpers/createClass";
3
- import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
4
- import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
- /*
9
- * The MIT License (MIT)
10
- *
11
- * Copyright (c) 2018 HackerOne Inc and individual contributors
12
- *
13
- * Permission is hereby granted, free of charge, to any person obtaining a copy
14
- * of this software and associated documentation files (the "Software"), to deal
15
- * in the Software without restriction, including without limitation the rights
16
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
- * copies of the Software, and to permit persons to whom the Software is
18
- * furnished to do so, subject to the following conditions:
19
- *
20
- * The above copyright notice and this permission notice shall be included in all
21
- * copies or substantial portions of the Software.
22
- *
23
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
- * SOFTWARE.
30
- *
31
- */
32
-
33
- import React from "react";
34
- import DatePicker from "../src/index.jsx";
35
- import * as utils from "../src/date_utils";
36
- import { jsx as ___EmotionJSX } from "@emotion/react";
37
- var TimezoneDatePicker = /*#__PURE__*/function (_React$Component) {
38
- function TimezoneDatePicker(props) {
39
- var _this;
40
- _classCallCheck(this, TimezoneDatePicker);
41
- _this = _callSuper(this, TimezoneDatePicker, [props]);
42
- _this.state = {
43
- startDate: null,
44
- utcOffset: -4
45
- };
46
- return _this;
47
- }
48
- _inherits(TimezoneDatePicker, _React$Component);
49
- return _createClass(TimezoneDatePicker, [{
50
- key: "handleChange",
51
- value: function handleChange(date) {
52
- this.setState({
53
- startDate: date
54
- });
55
- }
56
- }, {
57
- key: "render",
58
- value: function render() {
59
- var selected = this.state.startDate && utils.setUTCOffset(utils.cloneDate(this.state.startDate), this.state.utcOffset);
60
- return ___EmotionJSX(DatePicker, {
61
- utcOffset: this.state.utcOffset,
62
- dateFormat: "YYYY-MM-DD HH:mm",
63
- selected: selected,
64
- onChange: this.handleChange
65
- });
66
- }
67
- }]);
68
- }(React.Component);
69
- export default TimezoneDatePicker;
@@ -1,74 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
- var _react = _interopRequireDefault(require("react"));
16
- var _propTypes = _interopRequireDefault(require("prop-types"));
17
- var _react2 = require("@emotion/react");
18
- function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
19
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*
20
- * The MIT License (MIT)
21
- *
22
- * Copyright (c) 2018 HackerOne Inc and individual contributors
23
- *
24
- * Permission is hereby granted, free of charge, to any person obtaining a copy
25
- * of this software and associated documentation files (the "Software"), to deal
26
- * in the Software without restriction, including without limitation the rights
27
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28
- * copies of the Software, and to permit persons to whom the Software is
29
- * furnished to do so, subject to the following conditions:
30
- *
31
- * The above copyright notice and this permission notice shall be included in all
32
- * copies or substantial portions of the Software.
33
- *
34
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
- * SOFTWARE.
41
- *
42
- */
43
- var CustomInput = /*#__PURE__*/function (_React$Component) {
44
- function CustomInput() {
45
- (0, _classCallCheck2.default)(this, CustomInput);
46
- return _callSuper(this, CustomInput, arguments);
47
- }
48
- (0, _inherits2.default)(CustomInput, _React$Component);
49
- return (0, _createClass2.default)(CustomInput, [{
50
- key: "onChange",
51
- value: function onChange(e) {
52
- var args = [e, e.target.value];
53
- if (this.props.onChangeArgs) {
54
- args = this.props.onChangeArgs(e);
55
- }
56
- this.props.onChange.apply(this, args);
57
- }
58
- }, {
59
- key: "render",
60
- value: function render() {
61
- var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(this.props), this.props));
62
- delete props.onChangeArgs;
63
- return (0, _react2.jsx)("input", (0, _extends2.default)({}, props, {
64
- onChange: this.onChange.bind(this)
65
- }));
66
- }
67
- }]);
68
- }(_react.default.Component);
69
- CustomInput.propTypes = {
70
- onChange: _propTypes.default.func,
71
- onChangeArgs: _propTypes.default.func
72
- };
73
- var _default = exports.default = CustomInput;
74
- module.exports = exports.default;
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _react2 = require("@emotion/react");
11
- /*
12
- * The MIT License (MIT)
13
- *
14
- * Copyright (c) 2018 HackerOne Inc and individual contributors
15
- *
16
- * Permission is hereby granted, free of charge, to any person obtaining a copy
17
- * of this software and associated documentation files (the "Software"), to deal
18
- * in the Software without restriction, including without limitation the rights
19
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
- * copies of the Software, and to permit persons to whom the Software is
21
- * furnished to do so, subject to the following conditions:
22
- *
23
- * The above copyright notice and this permission notice shall be included in all
24
- * copies or substantial portions of the Software.
25
- *
26
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
- * SOFTWARE.
33
- *
34
- */
35
-
36
- var TestWrapper = function TestWrapper(_ref) {
37
- var children = _ref.children;
38
- return (0, _react2.jsx)("div", {
39
- className: "test-wrapper"
40
- }, children);
41
- };
42
- TestWrapper.propTypes = {
43
- children: _propTypes.default.node
44
- };
45
- var _default = exports.default = TestWrapper;
46
- module.exports = exports.default;
@@ -1,77 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
11
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
- var _react = _interopRequireDefault(require("react"));
14
- var _index = _interopRequireDefault(require("../src/index.jsx"));
15
- var utils = _interopRequireWildcard(require("../src/date_utils"));
16
- var _react2 = require("@emotion/react");
17
- var cache;
18
- function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
19
- function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
20
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*
21
- * The MIT License (MIT)
22
- *
23
- * Copyright (c) 2018 HackerOne Inc and individual contributors
24
- *
25
- * Permission is hereby granted, free of charge, to any person obtaining a copy
26
- * of this software and associated documentation files (the "Software"), to deal
27
- * in the Software without restriction, including without limitation the rights
28
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
29
- * copies of the Software, and to permit persons to whom the Software is
30
- * furnished to do so, subject to the following conditions:
31
- *
32
- * The above copyright notice and this permission notice shall be included in all
33
- * copies or substantial portions of the Software.
34
- *
35
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
36
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
38
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
39
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
40
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
41
- * SOFTWARE.
42
- *
43
- */
44
- var TimezoneDatePicker = /*#__PURE__*/function (_React$Component) {
45
- function TimezoneDatePicker(props) {
46
- var _this;
47
- (0, _classCallCheck2.default)(this, TimezoneDatePicker);
48
- _this = _callSuper(this, TimezoneDatePicker, [props]);
49
- _this.state = {
50
- startDate: null,
51
- utcOffset: -4
52
- };
53
- return _this;
54
- }
55
- (0, _inherits2.default)(TimezoneDatePicker, _React$Component);
56
- return (0, _createClass2.default)(TimezoneDatePicker, [{
57
- key: "handleChange",
58
- value: function handleChange(date) {
59
- this.setState({
60
- startDate: date
61
- });
62
- }
63
- }, {
64
- key: "render",
65
- value: function render() {
66
- var selected = this.state.startDate && utils.setUTCOffset(utils.cloneDate(this.state.startDate), this.state.utcOffset);
67
- return (0, _react2.jsx)(_index.default, {
68
- utcOffset: this.state.utcOffset,
69
- dateFormat: "YYYY-MM-DD HH:mm",
70
- selected: selected,
71
- onChange: this.handleChange
72
- });
73
- }
74
- }]);
75
- }(_react.default.Component);
76
- var _default = exports.default = TimezoneDatePicker;
77
- module.exports = exports.default;
@@ -1,74 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
13
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
14
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
- var _react = _interopRequireDefault(require("react"));
16
- var _propTypes = _interopRequireDefault(require("prop-types"));
17
- var _react2 = require("@emotion/react");
18
- function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
19
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*
20
- * The MIT License (MIT)
21
- *
22
- * Copyright (c) 2018 HackerOne Inc and individual contributors
23
- *
24
- * Permission is hereby granted, free of charge, to any person obtaining a copy
25
- * of this software and associated documentation files (the "Software"), to deal
26
- * in the Software without restriction, including without limitation the rights
27
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
28
- * copies of the Software, and to permit persons to whom the Software is
29
- * furnished to do so, subject to the following conditions:
30
- *
31
- * The above copyright notice and this permission notice shall be included in all
32
- * copies or substantial portions of the Software.
33
- *
34
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
- * SOFTWARE.
41
- *
42
- */
43
- var CustomInput = /*#__PURE__*/function (_React$Component) {
44
- function CustomInput() {
45
- (0, _classCallCheck2.default)(this, CustomInput);
46
- return _callSuper(this, CustomInput, arguments);
47
- }
48
- (0, _inherits2.default)(CustomInput, _React$Component);
49
- return (0, _createClass2.default)(CustomInput, [{
50
- key: "onChange",
51
- value: function onChange(e) {
52
- var args = [e, e.target.value];
53
- if (this.props.onChangeArgs) {
54
- args = this.props.onChangeArgs(e);
55
- }
56
- this.props.onChange.apply(this, args);
57
- }
58
- }, {
59
- key: "render",
60
- value: function render() {
61
- var props = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(this.props), this.props));
62
- delete props.onChangeArgs;
63
- return (0, _react2.jsx)("input", (0, _extends2.default)({}, props, {
64
- onChange: this.onChange.bind(this)
65
- }));
66
- }
67
- }]);
68
- }(_react.default.Component);
69
- CustomInput.propTypes = {
70
- onChange: _propTypes.default.func,
71
- onChangeArgs: _propTypes.default.func
72
- };
73
- var _default = exports.default = CustomInput;
74
- module.exports = exports.default;
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _propTypes = _interopRequireDefault(require("prop-types"));
10
- var _react2 = require("@emotion/react");
11
- /*
12
- * The MIT License (MIT)
13
- *
14
- * Copyright (c) 2018 HackerOne Inc and individual contributors
15
- *
16
- * Permission is hereby granted, free of charge, to any person obtaining a copy
17
- * of this software and associated documentation files (the "Software"), to deal
18
- * in the Software without restriction, including without limitation the rights
19
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
- * copies of the Software, and to permit persons to whom the Software is
21
- * furnished to do so, subject to the following conditions:
22
- *
23
- * The above copyright notice and this permission notice shall be included in all
24
- * copies or substantial portions of the Software.
25
- *
26
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
32
- * SOFTWARE.
33
- *
34
- */
35
-
36
- var TestWrapper = function TestWrapper(_ref) {
37
- var children = _ref.children;
38
- return (0, _react2.jsx)("div", {
39
- className: "test-wrapper"
40
- }, children);
41
- };
42
- TestWrapper.propTypes = {
43
- children: _propTypes.default.node
44
- };
45
- var _default = exports.default = TestWrapper;
46
- module.exports = exports.default;
@@ -1,77 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
11
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
12
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
- var _react = _interopRequireDefault(require("react"));
14
- var _index = _interopRequireDefault(require("../src/index.jsx"));
15
- var utils = _interopRequireWildcard(require("../src/date_utils"));
16
- var _react2 = require("@emotion/react");
17
- var cache;
18
- function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var r, c, a = Object.defineProperty, n = { __proto__: null, default: e }; if (Object(e) !== e) return n; if (cache || "function" != typeof WeakMap || (cache = new WeakMap()), cache) { if (cache.has(e)) return cache.get(e); cache.set(e, n); } for (c in e) "default" !== c && {}.hasOwnProperty.call(e, c) && ((r = a && Object.getOwnPropertyDescriptor(e, c)) && (r.get || r.set) ? a(n, c, r) : n[c] = e[c]); return n; }
19
- function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
20
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*
21
- * The MIT License (MIT)
22
- *
23
- * Copyright (c) 2018 HackerOne Inc and individual contributors
24
- *
25
- * Permission is hereby granted, free of charge, to any person obtaining a copy
26
- * of this software and associated documentation files (the "Software"), to deal
27
- * in the Software without restriction, including without limitation the rights
28
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
29
- * copies of the Software, and to permit persons to whom the Software is
30
- * furnished to do so, subject to the following conditions:
31
- *
32
- * The above copyright notice and this permission notice shall be included in all
33
- * copies or substantial portions of the Software.
34
- *
35
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
36
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
38
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
39
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
40
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
41
- * SOFTWARE.
42
- *
43
- */
44
- var TimezoneDatePicker = /*#__PURE__*/function (_React$Component) {
45
- function TimezoneDatePicker(props) {
46
- var _this;
47
- (0, _classCallCheck2.default)(this, TimezoneDatePicker);
48
- _this = _callSuper(this, TimezoneDatePicker, [props]);
49
- _this.state = {
50
- startDate: null,
51
- utcOffset: -4
52
- };
53
- return _this;
54
- }
55
- (0, _inherits2.default)(TimezoneDatePicker, _React$Component);
56
- return (0, _createClass2.default)(TimezoneDatePicker, [{
57
- key: "handleChange",
58
- value: function handleChange(date) {
59
- this.setState({
60
- startDate: date
61
- });
62
- }
63
- }, {
64
- key: "render",
65
- value: function render() {
66
- var selected = this.state.startDate && utils.setUTCOffset(utils.cloneDate(this.state.startDate), this.state.utcOffset);
67
- return (0, _react2.jsx)(_index.default, {
68
- utcOffset: this.state.utcOffset,
69
- dateFormat: "YYYY-MM-DD HH:mm",
70
- selected: selected,
71
- onChange: this.handleChange
72
- });
73
- }
74
- }]);
75
- }(_react.default.Component);
76
- var _default = exports.default = TimezoneDatePicker;
77
- module.exports = exports.default;