@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.
- package/dist/eui-icons.json +87 -86
- package/dist/svgs/logo_elastic_mono.svg +3 -0
- package/dist/svgs/moon.svg +2 -2
- package/dist/svgs/product_nightshift.svg +4 -3
- package/es/components/avatar/avatar.js +1 -1
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/badge/notification_badge/badge_notification.js +1 -1
- package/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/es/components/basic_table/basic_table.js +34 -34
- package/es/components/basic_table/in_memory_table.js +9 -9
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/button/split_button/split_button.js +9 -9
- package/es/components/button/split_button/split_button.styles.js +11 -5
- package/es/components/button/split_button/split_button_actions.js +6 -12
- package/es/components/call_out/call_out.js +2 -2
- package/es/components/card/card.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/combo_box/combo_box.js +41 -41
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/context_menu/context_menu_item.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +24 -24
- package/es/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/es/components/datagrid/body/data_grid_body.js +13 -13
- package/es/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/es/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/es/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/es/components/datagrid/body/header/draggable_columns.js +2 -2
- package/es/components/datagrid/controls/column_sorting.js +13 -13
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/controls/display_selector.js +3 -3
- package/es/components/datagrid/utils/in_memory.js +12 -12
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/date_picker/react-datepicker/src/date_utils.js +3 -3
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/es/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/filter_group/filter_button.js +1 -1
- package/es/components/filter_group/filter_group.a11y.js +13 -13
- package/es/components/flex/flex_grid.styles.js +4 -4
- package/es/components/flex/flex_group.styles.js +16 -16
- package/es/components/flyout/flyout.component.js +43 -36
- package/es/components/flyout/flyout_menu/flyout_menu.js +2 -2
- package/es/components/form/field_number/field_number.js +2 -2
- package/es/components/form/field_text/field_text.js +2 -2
- package/es/components/form/form_control_button/form_control_button.js +1 -1
- package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_row/form_row.styles.js +1 -1
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header.a11y.js +3 -3
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo/elastic_logo_full.js +6 -2
- package/es/components/header/header_logo/header_logo.js +6 -3
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/assets/logo_elastic_mono.js +35 -0
- package/es/components/icon/assets/moon.js +1 -1
- package/es/components/icon/assets/product_nightshift.js +6 -2
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +5 -0
- package/es/components/icon/svgs/logo_elastic_mono.svg +3 -0
- package/es/components/icon/svgs/moon.svg +2 -2
- package/es/components/icon/svgs/product_nightshift.svg +4 -3
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +8 -8
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/modal/modal.styles.js +1 -1
- package/es/components/modal/modal_body.styles.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/search_bar/filters/field_value_selection_filter.js +3 -3
- package/es/components/search_bar/search_bar.js +3 -3
- package/es/components/selectable/selectable_list/selectable_list.js +47 -48
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/es/components/steps/step.js +4 -5
- package/es/components/steps/steps_horizontal.js +2 -1
- package/es/components/steps/sub_steps.js +2 -3
- package/es/components/table/table_header_cell.js +1 -1
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +2 -2
- package/es/components/toast/toast.js +2 -2
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/components/tool_tip/tool_tip.js +7 -7
- package/es/test/index.d.ts +3 -3
- package/eui.d.ts +46 -19
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/badge/notification_badge/badge_notification.js +1 -1
- package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/lib/components/basic_table/basic_table.js +34 -34
- package/lib/components/basic_table/in_memory_table.js +9 -9
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/button/split_button/split_button.js +8 -8
- package/lib/components/button/split_button/split_button.styles.js +11 -5
- package/lib/components/button/split_button/split_button_actions.js +4 -10
- package/lib/components/call_out/call_out.js +2 -2
- package/lib/components/card/card.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/combo_box/combo_box.js +41 -41
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/context_menu/context_menu_item.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +24 -24
- package/lib/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/lib/components/datagrid/body/data_grid_body.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/lib/components/datagrid/body/header/draggable_columns.js +2 -2
- package/lib/components/datagrid/controls/column_sorting.js +13 -13
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/controls/display_selector.js +3 -3
- package/lib/components/datagrid/utils/in_memory.js +12 -12
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/date_picker/react-datepicker/src/date_utils.js +3 -3
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/lib/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/filter_group/filter_button.js +1 -1
- package/lib/components/filter_group/filter_group.a11y.js +13 -13
- package/lib/components/flex/flex_grid.styles.js +4 -4
- package/lib/components/flex/flex_group.styles.js +16 -16
- package/lib/components/flyout/flyout.component.js +43 -36
- package/lib/components/flyout/flyout_menu/flyout_menu.js +2 -2
- package/lib/components/form/field_number/field_number.js +2 -2
- package/lib/components/form/field_text/field_text.js +2 -2
- package/lib/components/form/form_control_button/form_control_button.js +1 -1
- package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_row/form_row.styles.js +1 -1
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header.a11y.js +3 -3
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo/elastic_logo_full.js +6 -2
- package/lib/components/header/header_logo/header_logo.js +6 -3
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/assets/logo_elastic_mono.js +41 -0
- package/lib/components/icon/assets/moon.js +1 -1
- package/lib/components/icon/assets/product_nightshift.js +6 -2
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +7 -0
- package/lib/components/icon/svgs/logo_elastic_mono.svg +3 -0
- package/lib/components/icon/svgs/moon.svg +2 -2
- package/lib/components/icon/svgs/product_nightshift.svg +4 -3
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +2 -2
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +8 -8
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/modal/modal.styles.js +1 -1
- package/lib/components/modal/modal_body.styles.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/search_bar/filters/field_value_selection_filter.js +2 -2
- package/lib/components/search_bar/search_bar.js +3 -3
- package/lib/components/selectable/selectable_list/selectable_list.js +47 -48
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/lib/components/steps/step.js +3 -4
- package/lib/components/steps/steps_horizontal.js +2 -1
- package/lib/components/steps/sub_steps.js +1 -2
- package/lib/components/table/table_header_cell.js +1 -1
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +2 -2
- package/lib/components/toast/toast.js +2 -2
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/components/tool_tip/tool_tip.js +7 -7
- package/lib/test/index.d.ts +3 -3
- package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/optimize/es/components/basic_table/basic_table.js +30 -30
- package/optimize/es/components/basic_table/in_memory_table.js +5 -5
- package/optimize/es/components/button/split_button/split_button.js +9 -9
- package/optimize/es/components/button/split_button/split_button.styles.js +11 -5
- package/optimize/es/components/button/split_button/split_button_actions.js +6 -12
- package/optimize/es/components/combo_box/combo_box.js +41 -41
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/optimize/es/components/datagrid/body/header/draggable_columns.js +2 -2
- package/optimize/es/components/datagrid/controls/display_selector.js +3 -3
- package/optimize/es/components/date_picker/react-datepicker/src/date_utils.js +3 -3
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/optimize/es/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/optimize/es/components/filter_group/filter_button.js +1 -1
- package/optimize/es/components/filter_group/filter_group.a11y.js +13 -13
- package/optimize/es/components/flex/flex_grid.styles.js +4 -4
- package/optimize/es/components/flex/flex_group.styles.js +16 -16
- package/optimize/es/components/flyout/flyout.component.js +43 -36
- package/optimize/es/components/form/form_row/form_row.styles.js +1 -1
- package/optimize/es/components/header/header.a11y.js +3 -3
- package/optimize/es/components/header/header_logo/elastic_logo_full.js +6 -2
- package/optimize/es/components/header/header_logo/header_logo.js +6 -3
- package/optimize/es/components/icon/assets/logo_elastic_mono.js +34 -0
- package/optimize/es/components/icon/assets/moon.js +1 -1
- package/optimize/es/components/icon/assets/product_nightshift.js +6 -2
- package/optimize/es/components/icon/icon_map.js +5 -0
- package/optimize/es/components/icon/svgs/logo_elastic_mono.svg +3 -0
- package/optimize/es/components/icon/svgs/moon.svg +2 -2
- package/optimize/es/components/icon/svgs/product_nightshift.svg +4 -3
- package/optimize/es/components/markdown_editor/markdown_editor.js +7 -7
- package/optimize/es/components/modal/modal.styles.js +1 -1
- package/optimize/es/components/modal/modal_body.styles.js +1 -1
- package/optimize/es/components/search_bar/filters/field_value_selection_filter.js +3 -3
- package/optimize/es/components/search_bar/search_bar.js +3 -3
- package/optimize/es/components/selectable/selectable_list/selectable_list.js +46 -47
- package/optimize/es/components/steps/step.js +4 -5
- package/optimize/es/components/steps/steps_horizontal.js +2 -1
- package/optimize/es/components/steps/sub_steps.js +2 -3
- package/optimize/es/components/tool_tip/tool_tip.js +7 -7
- package/optimize/es/test/index.d.ts +3 -3
- package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/optimize/lib/components/basic_table/basic_table.js +30 -30
- package/optimize/lib/components/basic_table/in_memory_table.js +5 -5
- package/optimize/lib/components/button/split_button/split_button.js +8 -8
- package/optimize/lib/components/button/split_button/split_button.styles.js +11 -5
- package/optimize/lib/components/button/split_button/split_button_actions.js +4 -10
- package/optimize/lib/components/combo_box/combo_box.js +41 -41
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/optimize/lib/components/datagrid/body/header/draggable_columns.js +2 -2
- package/optimize/lib/components/datagrid/controls/display_selector.js +3 -3
- package/optimize/lib/components/date_picker/react-datepicker/src/date_utils.js +3 -3
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/optimize/lib/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/optimize/lib/components/filter_group/filter_button.js +1 -1
- package/optimize/lib/components/filter_group/filter_group.a11y.js +13 -13
- package/optimize/lib/components/flex/flex_grid.styles.js +4 -4
- package/optimize/lib/components/flex/flex_group.styles.js +16 -16
- package/optimize/lib/components/flyout/flyout.component.js +43 -36
- package/optimize/lib/components/form/form_row/form_row.styles.js +1 -1
- package/optimize/lib/components/header/header.a11y.js +3 -3
- package/optimize/lib/components/header/header_logo/elastic_logo_full.js +6 -2
- package/optimize/lib/components/header/header_logo/header_logo.js +6 -3
- package/optimize/lib/components/icon/assets/logo_elastic_mono.js +41 -0
- package/optimize/lib/components/icon/assets/moon.js +1 -1
- package/optimize/lib/components/icon/assets/product_nightshift.js +6 -2
- package/optimize/lib/components/icon/icon_map.js +7 -0
- package/optimize/lib/components/icon/svgs/logo_elastic_mono.svg +3 -0
- package/optimize/lib/components/icon/svgs/moon.svg +2 -2
- package/optimize/lib/components/icon/svgs/product_nightshift.svg +4 -3
- package/optimize/lib/components/markdown_editor/markdown_editor.js +7 -7
- package/optimize/lib/components/modal/modal.styles.js +1 -1
- package/optimize/lib/components/modal/modal_body.styles.js +1 -1
- package/optimize/lib/components/search_bar/filters/field_value_selection_filter.js +2 -2
- package/optimize/lib/components/search_bar/search_bar.js +3 -3
- package/optimize/lib/components/selectable/selectable_list/selectable_list.js +46 -47
- package/optimize/lib/components/steps/step.js +3 -4
- package/optimize/lib/components/steps/steps_horizontal.js +2 -1
- package/optimize/lib/components/steps/sub_steps.js +1 -2
- package/optimize/lib/components/tool_tip/tool_tip.js +7 -7
- package/optimize/lib/test/index.d.ts +3 -3
- package/package.json +5 -27
- package/test-env/components/avatar/avatar.js +1 -1
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/test-env/components/basic_table/basic_table.js +34 -34
- package/test-env/components/basic_table/in_memory_table.js +9 -9
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/button/split_button/split_button.js +8 -8
- package/test-env/components/button/split_button/split_button.styles.js +11 -5
- package/test-env/components/button/split_button/split_button_actions.js +4 -10
- package/test-env/components/call_out/call_out.js +2 -2
- package/test-env/components/card/card.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/combo_box/combo_box.js +41 -41
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/context_menu/context_menu_item.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +24 -24
- package/test-env/components/datagrid/body/cell/data_grid_cell_popover.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_custom.js +13 -13
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +13 -13
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +12 -12
- package/test-env/components/datagrid/body/header/draggable_columns.js +2 -2
- package/test-env/components/datagrid/controls/column_sorting.js +13 -13
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/controls/display_selector.js +3 -3
- package/test-env/components/datagrid/utils/in_memory.js +12 -12
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/date_picker/react-datepicker/src/date_utils.js +3 -3
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -3
- package/test-env/components/date_picker/super_date_picker/pretty_duration.js +30 -30
- package/test-env/components/date_picker/super_date_picker/super_date_picker.a11y.js +2 -2
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/filter_group/filter_button.js +1 -1
- package/test-env/components/filter_group/filter_group.a11y.js +13 -13
- package/test-env/components/flex/flex_grid.styles.js +4 -4
- package/test-env/components/flex/flex_group.styles.js +16 -16
- package/test-env/components/flyout/flyout.component.js +43 -36
- package/test-env/components/flyout/flyout_menu/flyout_menu.js +2 -2
- package/test-env/components/form/field_number/field_number.js +2 -2
- package/test-env/components/form/field_text/field_text.js +2 -2
- package/test-env/components/form/form_control_button/form_control_button.js +1 -1
- package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_row/form_row.styles.js +1 -1
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header.a11y.js +3 -3
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo/elastic_logo_full.js +6 -2
- package/test-env/components/header/header_logo/header_logo.js +6 -3
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/assets/logo_elastic_mono.js +41 -0
- package/test-env/components/icon/assets/moon.js +1 -1
- package/test-env/components/icon/assets/product_nightshift.js +6 -2
- package/test-env/components/icon/icon_map.js +7 -0
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +2 -2
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +8 -8
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/modal/modal.styles.js +1 -1
- package/test-env/components/modal/modal_body.styles.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/search_bar/filters/field_value_selection_filter.js +2 -2
- package/test-env/components/search_bar/search_bar.js +3 -3
- package/test-env/components/selectable/selectable_list/selectable_list.js +47 -48
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/test-env/components/steps/step.js +3 -4
- package/test-env/components/steps/steps_horizontal.js +2 -1
- package/test-env/components/steps/sub_steps.js +1 -2
- package/test-env/components/table/table_header_cell.js +1 -1
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +2 -2
- package/test-env/components/toast/toast.js +2 -2
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/components/tool_tip/tool_tip.js +7 -7
- package/es/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
- package/es/components/date_picker/react-datepicker/test/test_wrapper.js +0 -38
- package/es/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -75
- package/lib/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -80
- package/lib/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
- package/lib/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -83
- package/optimize/es/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -68
- package/optimize/es/components/date_picker/react-datepicker/test/test_wrapper.js +0 -38
- package/optimize/es/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -69
- package/optimize/lib/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
- package/optimize/lib/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
- package/optimize/lib/components/date_picker/react-datepicker/test/timezone_date_picker.js +0 -77
- package/test-env/components/date_picker/react-datepicker/test/helper_components/custom_input.js +0 -74
- package/test-env/components/date_picker/react-datepicker/test/test_wrapper.js +0 -46
- 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;
|
package/optimize/es/components/date_picker/react-datepicker/test/helper_components/custom_input.js
DELETED
|
@@ -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;
|
package/optimize/lib/components/date_picker/react-datepicker/test/helper_components/custom_input.js
DELETED
|
@@ -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;
|
package/test-env/components/date_picker/react-datepicker/test/helper_components/custom_input.js
DELETED
|
@@ -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;
|