From e7a142ea8d0fb6274a9a1563f3487558026e8311 Mon Sep 17 00:00:00 2001 From: Mohammer5 Date: Tue, 17 Sep 2024 15:52:00 +0200 Subject: [PATCH] chore: remove all src files except button --- .../button-strip/button-strip.e2e.stories.js | 0 .../button/button-strip/button-strip.js | 0 .../button-strip/button-strip.prod.stories.js | 0 .../features/accepts_children.feature | 0 .../features/accepts_children/index.js | 0 .../button/button-strip/index.js | 0 .../button/button/__tests__/Button.test.js | 0 .../button/button/button.e2e.stories.js | 0 src/{components => }/button/button/button.js | 0 .../button/button/button.prod.stories.js | 0 .../button/button/button.styles.js | 0 .../button/features/can_be_blurred.feature | 0 .../button/features/can_be_blurred/index.js | 0 .../button/features/can_be_clicked.feature | 0 .../button/features/can_be_clicked/index.js | 0 .../button/features/can_be_focused.feature | 0 .../button/features/can_be_focused/index.js | 0 src/{components => }/button/button/index.js | 0 .../__tests__/dropdown-button.test.js | 0 .../dropdown-button.e2e.stories.js | 0 .../button/dropdown-button/dropdown-button.js | 0 .../dropdown-button.prod.stories.js | 0 .../features/accepts_children.feature | 0 .../features/accepts_children/index.js | 0 .../features/accepts_component.feature | 0 .../features/accepts_component/index.js | 0 .../features/accepts_icon.feature | 0 .../features/accepts_icon/index.js | 0 .../features/accepts_initial_focus.feature | 0 .../features/accepts_initial_focus/index.js | 0 .../features/button_is_clickable.feature | 0 .../features/button_is_clickable/index.js | 0 .../features/can_be_disabled.feature | 0 .../features/can_be_disabled/index.js | 0 .../dropdown-button/features/common/index.js | 0 .../features/opens_a_dropdown.feature | 0 .../features/opens_a_dropdown/index.js | 0 .../button/dropdown-button/index.js | 0 src/{components => }/button/index.js | 0 .../features/accepts_children.feature | 0 .../features/accepts_children/index.js | 0 .../features/accepts_icon.feature | 0 .../features/accepts_icon/index.js | 0 .../features/accepts_initial_focus.feature | 0 .../features/accepts_initial_focus/index.js | 0 .../features/arrow_opens_menu.feature | 0 .../features/arrow_opens_menu/index.js | 0 .../features/button_is_clickable.feature | 0 .../features/button_is_clickable/index.js | 0 .../features/can_be_disabled.feature | 0 .../features/can_be_disabled/index.js | 0 .../split-button/features/common/index.js | 0 .../button/split-button/index.js | 0 .../split-button/split-button.e2e.stories.js | 0 .../button/split-button/split-button.js | 0 .../split-button/split-button.prod.stories.js | 0 .../button/split-button/split-button.test.js | 0 src/components/alert/alert-bar/action.js | 37 - src/components/alert/alert-bar/actions.js | 47 - .../alert/alert-bar/alert-bar.e2e.stories.js | 53 - src/components/alert/alert-bar/alert-bar.js | 178 --- .../alert/alert-bar/alert-bar.prod.stories.js | 229 --- .../alert/alert-bar/alert-bar.styles.js | 76 - src/components/alert/alert-bar/dismiss.js | 39 - .../alert/alert-bar/features/api.feature | 29 - .../alert/alert-bar/features/api/index.js | 51 - .../alert/alert-bar/features/common/index.js | 26 - .../alert/alert-bar/features/hide.feature | 26 - .../alert/alert-bar/features/hide/index.js | 39 - src/components/alert/alert-bar/icon.js | 82 - src/components/alert/alert-bar/index.js | 1 - src/components/alert/alert-bar/message.js | 19 - .../alert-stack/alert-stack.e2e.stories.js | 13 - .../alert/alert-stack/alert-stack.js | 44 - .../alert-stack/alert-stack.prod.stories.js | 68 - .../features/render_children.feature | 5 - .../features/render_children/alertbars.js | 11 - src/components/alert/alert-stack/index.js | 1 - src/components/alert/index.js | 2 - src/components/box/box.e2e.stories.js | 10 - src/components/box/box.js | 50 - src/components/box/box.prod.stories.js | 58 - .../box/features/accepts_children.feature | 5 - .../box/features/accepts_children/index.js | 10 - .../features/accepts_multiple_props.feature | 5 - .../features/accepts_multiple_props/index.js | 12 - src/components/box/index.js | 1 - .../__e2e__/calendar-input.e2e.stories.js | 22 - .../calendar/calendar-input/calendar-input.js | 152 -- .../calendar/calendar/calendar-table-cell.js | 97 -- .../calendar/calendar-table-days-header.js | 40 - .../calendar/calendar/calendar-table.js | 72 - src/components/calendar/calendar/calendar.js | 117 -- .../calendar/calendar/navigation-container.js | 184 --- .../supports_calendar_clear_button.feature | 23 - .../supports_calendar_clear_button.js | 64 - .../supports_ethiopic_calendar.feature | 20 - .../supports_ethiopic_calendar.js | 56 - .../supports_gregorian_calendar.feature | 19 - .../supports_gregorian_calendar.js | 57 - .../supports_islamic_calendar.feature | 5 - .../supports_islamic_calendar.js | 17 - .../features/supports_nepali_calendar.feature | 19 - .../supports_nepali_calendar.js | 55 - src/components/calendar/index.js | 2 - .../stories/calendar-input.prod.stories.js | 118 -- .../stories/calendar-story-wrapper.js | 176 --- .../calendar/stories/calendar.prod.stories.js | 52 - src/components/card/card.e2e.stories.js | 11 - src/components/card/card.js | 36 - src/components/card/card.prod.stories.js | 36 - .../card/features/accepts_children.feature | 5 - .../card/features/accepts_children/index.js | 10 - src/components/card/index.js | 1 - src/components/center/center.js | 51 - src/components/center/center.prod.stories.js | 34 - src/components/center/index.js | 1 - .../__tests__/checkbox-field.test.js | 32 - .../checkbox-field.e2e.stories.js | 26 - .../checkbox/checkbox-field/checkbox-field.js | 120 -- .../checkbox-field.prod.stories.js | 149 -- .../features/accepts_help_text.feature | 5 - .../features/accepts_help_text/index.js | 11 - .../features/accepts_label.feature | 5 - .../features/accepts_label/index.js | 11 - .../features/accepts_validation_text.feature | 5 - .../features/accepts_validation_text/index.js | 11 - .../features/can_be_required.feature | 5 - .../features/can_be_required/index.js | 11 - .../checkbox/checkbox-field/index.js | 1 - .../checkbox/__tests__/checkbox.test.js | 31 - .../checkbox/checkbox/checkbox-icon.js | 201 --- .../checkbox/checkbox/checkbox.e2e.stories.js | 55 - src/components/checkbox/checkbox/checkbox.js | 214 --- .../checkbox/checkbox.prod.stories.js | 182 --- .../features/accepts_initial_focus.feature | 5 - .../features/accepts_initial_focus/index.js | 9 - .../checkbox/features/accepts_label.feature | 5 - .../checkbox/features/accepts_label/index.js | 11 - .../checkbox/features/can_be_blurred.feature | 6 - .../checkbox/features/can_be_blurred/index.js | 19 - .../checkbox/features/can_be_changed.feature | 6 - .../checkbox/features/can_be_changed/index.js | 19 - .../checkbox/features/can_be_disabled.feature | 6 - .../features/can_be_disabled/index.js | 15 - .../checkbox/features/can_be_focused.feature | 6 - .../checkbox/features/can_be_focused/index.js | 19 - .../features/has_indeterminate_prop.feature | 9 - .../features/has_indeterminate_prop/index.js | 19 - src/components/checkbox/checkbox/index.js | 1 - src/components/checkbox/index.js | 2 - src/components/chip/chip.e2e.stories.js | 14 - src/components/chip/chip.js | 149 -- src/components/chip/chip.prod.stories.js | 135 -- src/components/chip/content.js | 29 - .../chip/features/accepts_children.feature | 5 - .../chip/features/accepts_children/index.js | 10 - .../chip/features/accepts_icon.feature | 9 - .../chip/features/accepts_icon/index.js | 21 - .../chip/features/is_clickable.feature | 6 - .../chip/features/is_clickable/index.js | 15 - .../chip/features/is_removable.feature | 6 - .../chip/features/is_removable/index.js | 15 - src/components/chip/icon.js | 37 - src/components/chip/index.js | 1 - src/components/chip/remove.js | 82 - src/components/cover/cover.e2e.stories.js | 48 - src/components/cover/cover.js | 49 - src/components/cover/cover.prod.stories.js | 52 - .../cover/features/accepts_children.feature | 5 - .../cover/features/accepts_children/index.js | 10 - .../cover/features/click_behavior.feature | 17 - .../cover/features/click_behavior/index.js | 52 - src/components/cover/index.js | 1 - src/components/css/css-reset/css-reset.js | 199 --- .../css/css-reset/css-reset.prod.stories.js | 43 - src/components/css/css-reset/index.js | 1 - .../css-variables.e2e.stories.js | 43 - .../css/css-variables/css-variables.js | 55 - .../css-variables.prod.stories.js | 51 - .../features/sets_variables.feature | 21 - .../features/sets_variables/index.js | 53 - src/components/css/css-variables/index.js | 1 - src/components/css/index.js | 2 - src/components/divider/divider.js | 53 - .../divider/divider.prod.stories.js | 40 - src/components/divider/index.js | 1 - .../features/can_be_required.feature | 5 - .../features/can_be_required/index.js | 11 - .../field-group/field-group.e2e.stories.js | 17 - .../field/field-group/field-group.js | 65 - .../field-group/field-group.prod.stories.js | 110 -- src/components/field/field-group/index.js | 1 - .../features/accepts_children.feature | 5 - .../features/accepts_children/index.js | 10 - .../field/field-set/field-set.e2e.stories.js | 5 - src/components/field/field-set/field-set.js | 27 - .../field/field-set/field-set.prod.stories.js | 66 - src/components/field/field-set/index.js | 1 - .../field/features/accepts_children.feature | 5 - .../field/features/accepts_children/index.js | 10 - .../field/field/field.e2e.stories.js | 5 - src/components/field/field/field.js | 81 - .../field/field/field.prod.stories.js | 51 - src/components/field/field/index.js | 1 - src/components/field/index.js | 3 - .../file-input-field-with-list.test.js | 30 - .../features/common/index.js | 18 - .../deduplicates_the_file_list.feature | 8 - .../deduplicates_the_file_list/index.js | 43 - .../disables_button_when_full.feature | 6 - .../disables_button_when_full/index.js | 13 - .../features/displays_files_in_a_list.feature | 5 - .../displays_files_in_a_list/index.js | 7 - .../features/files_can_be_removed.feature | 7 - .../features/files_can_be_removed/index.js | 24 - .../features/has_default_button_label.feature | 5 - .../has_default_button_label/index.js | 9 - .../features/has_default_placeholder.feature | 5 - .../features/has_default_placeholder/index.js | 9 - .../features/has_default_remove_text.feature | 5 - .../features/has_default_remove_text/index.js | 9 - .../file-input-field-with-list.e2e.stories.js | 73 - .../file-input-field-with-list.js | 188 --- ...file-input-field-with-list.prod.stories.js | 63 - .../file-list-item-with-remove.js | 34 - .../file-input-field-with-list/index.js | 1 - .../__tests__/file-input-field.test.js | 29 - .../features/can_be_required.feature | 5 - .../features/can_be_required/index.js | 9 - .../features/has_default_button_label.feature | 5 - .../has_default_button_label/index.js | 9 - .../features/has_default_placeholder.feature | 5 - .../features/has_default_placeholder/index.js | 9 - .../file-input-field.e2e.stories.js | 15 - .../file-input-field/file-input-field.js | 145 -- .../file-input-field.prod.stories.js | 164 -- .../file-input/file-input-field/index.js | 1 - .../file-input/__tests__/file-input.test.js | 28 - .../features/accepts_multiple_files.feature | 8 - .../features/accepts_multiple_files/index.js | 32 - .../features/can_be_blurred.feature | 6 - .../features/can_be_blurred/index.js | 23 - .../features/can_be_changed.feature | 8 - .../features/can_be_changed/index.js | 26 - .../features/can_be_focused.feature | 6 - .../features/can_be_focused/index.js | 22 - .../file-input/features/common/index.js | 21 - .../file-input/file-input.e2e.stories.js | 46 - .../file-input/file-input/file-input.js | 159 -- .../file-input/file-input.prod.stories.js | 82 - src/components/file-input/file-input/index.js | 1 - .../features/accepts_cancel_text.feature | 5 - .../features/accepts_cancel_text/index.js | 14 - .../file-list/features/accepts_label.feature | 5 - .../file-list/features/accepts_label/index.js | 11 - .../features/accepts_remove_text.feature | 5 - .../features/accepts_remove_text/index.js | 11 - .../file-list/features/can_be_removed.feature | 6 - .../features/can_be_removed/index.js | 15 - .../file-list-item-accepts_children.feature | 5 - .../file-list-item-accepts_children/index.js | 10 - ...-list-placeholder-accepts_children.feature | 5 - .../index.js | 12 - .../features/loading_can_be_cancelled.feature | 6 - .../loading_can_be_cancelled/index.js | 15 - .../file-list/file-list-item.e2e.stories.js | 39 - .../file-input/file-list/file-list-item.js | 135 -- .../file-list-placeholder.e2e.stories.js | 7 - .../file-list/file-list-placeholder.js | 28 - .../file-list/file-list.e2e.stories.js | 5 - .../file-input/file-list/file-list.js | 28 - src/components/file-input/file-list/index.js | 3 - src/components/file-input/index.js | 9 - .../__e2e__/header-bar.e2e.stories.js | 26 - .../header-bar/__e2e__/stories/common.js | 226 --- .../stories/custom-application-title.js | 19 - .../header-bar/__e2e__/stories/default.js | 13 - .../__e2e__/stories/me-with-avatar.js | 27 - .../stories/modulesWithSpecialCharacters.js | 229 --- .../__e2e__/stories/online-status-message.js | 49 - .../header-bar/__e2e__/stories/pwa-enabled.js | 17 - .../__e2e__/stories/user-has-all-authority.js | 20 - .../stories/user-has-no-authorities.js | 20 - ...-interpretation-and-messaging-authority.js | 22 - .../user-has-web-interpretation-authority.js | 22 - .../user-has-web-messaging-authority.js | 22 - .../stories/with-debug-info-edge-cases.js | 51 - .../with-special-app-name-character.js | 23 - .../with-update-available-notification.js | 39 - .../stories/zero-unread-interpretations.js | 19 - .../__e2e__/stories/zero-unread-messages.js | 19 - src/components/header-bar/apps.js | 276 ---- .../debug-info/debug-info-menu-item.js | 72 - .../header-bar/debug-info/debug-info-modal.js | 47 - .../header-bar/debug-info/debug-info-table.js | 51 - .../header-bar/debug-info/use-debug-info.js | 15 - .../header-bar/features/common/index.js | 14 - ...eaderbar_can_display_online_status.feature | 57 - .../the_headerbar_displays_online_status.js | 158 -- ...ionally_renders_notification_icons.feature | 26 - ...onditionally_renders_notification_icons.js | 43 - ...derbar_contains_a_menu_to_all_apps.feature | 21 - .../common.js | 5 - ...enu_closes_when_the_user_clicks_outside.js | 9 - .../the_headerbar_contains_a_menu_icon.js | 5 - ...user_will_be_offered_a_menu_with_5_apps.js | 16 - ..._headerbar_contains_a_profile_menu.feature | 73 - .../common.js | 14 - ...con_if_the_user_does_not_have_an_avatar.js | 30 - ...an_image_icon_if_the_user_has_an_avatar.js | 23 - .../the_menu_is_closed_by_default.js | 1 - .../the_menu_opens.js | 14 - ...enu_closes_when_the_user_clicks_outside.js | 5 - .../the_user_can_edit_his_profile.js | 7 - .../the_user_can_go_to_his_account.js | 7 - ...the_user_can_go_to_the_about_dhis2_page.js | 7 - .../the_user_can_go_to_the_help_page.js | 7 - .../the_user_can_go_to_the_settings.js | 7 - .../the_user_can_log_out.js | 53 - .../the_user_name_and_email_are_displayed.js | 22 - ...nterpretations_and_an_unread_count.feature | 13 - ..._displays_a_link_to_the_interpretations.js | 5 - .../there_are_no_unread_interpretations.js | 9 - .../there_are_some_unread_interpretations.js | 12 - ...nk_to_messages_and_an_unread_count.feature | 13 - ...aderbar_displays_a_link_to_the_messages.js | 5 - .../there_are_no_unread_messages.js | 9 - .../there_are_some_unread_messages.js | 7 - ..._a_logo_that_links_to_the_homepage.feature | 6 - .../headerbar_contains_logo.js | 12 - ...ld_display_app_update_notification.feature | 22 - .../index.js | 52 - ...should_display_debug_version_infos.feature | 52 - .../index.js | 130 -- ...rovided_by_the_backend_and_the_app.feature | 5 - ...the_headerbar_displays_the_custom_title.js | 11 - ...rch_should_escape_regexp_character.feature | 48 - .../common.js | 6 - ...do_not_contain_items_with_special_chars.js | 23 - ...rches_for_an_app_with_a_regex_character.js | 29 - .../header-bar/header-bar-context.js | 28 - src/components/header-bar/header-bar.js | 135 -- .../header-bar/header-bar.prod.stories.js | 283 ---- src/components/header-bar/index.js | 1 - src/components/header-bar/join-path.js | 4 - src/components/header-bar/logo-image.js | 71 - src/components/header-bar/logo.js | 45 - .../header-bar/notification-icon.js | 95 -- src/components/header-bar/notifications.js | 63 - src/components/header-bar/online-status.js | 40 - .../header-bar/online-status.styles.js | 91 -- .../header-bar/profile-menu/index.js | 1 - .../header-bar/profile-menu/profile-header.js | 118 -- .../header-bar/profile-menu/profile-menu.js | 176 --- .../profile-menu/update-notification.js | 67 - src/components/header-bar/profile.js | 101 -- .../header-bar/profile/use-on-doc-click.js | 23 - .../profile/use-on-doc-click.test.js | 40 - src/components/header-bar/title.js | 23 - .../help/features/accepts_children.feature | 5 - .../help/features/accepts_children/index.js | 10 - src/components/help/help.e2e.stories.js | 5 - src/components/help/help.js | 56 - src/components/help/help.prod.stories.js | 45 - src/components/help/index.js | 1 - src/components/index.js | 46 - src/components/input/index.js | 2 - .../input-field/__tests__/input-field.test.js | 27 - .../features/can_be_required.feature | 5 - .../features/can_be_required/index.js | 11 - src/components/input/input-field/index.js | 1 - .../input-field/input-field.e2e.stories.js | 7 - .../input/input-field/input-field.js | 147 -- .../input-field/input-field.prod.stories.js | 158 -- .../input/input/__tests__/input.test.js | 29 - .../features/accepts_initial_focus.feature | 5 - .../features/accepts_initial_focus/index.js | 9 - .../input/features/can_be_blurred.feature | 6 - .../input/features/can_be_blurred/index.js | 18 - .../input/features/can_be_changed.feature | 6 - .../input/features/can_be_changed/index.js | 18 - .../input/features/can_be_disabled.feature | 6 - .../input/features/can_be_disabled/index.js | 13 - .../input/features/can_be_focused.feature | 6 - .../input/features/can_be_focused/index.js | 18 - src/components/input/input/index.js | 1 - .../input/input/input.e2e.stories.js | 39 - src/components/input/input/input.js | 267 ---- .../input/input/input.prod.stories.js | 134 -- .../features/Visibility_notification.feature | 13 - .../features/Visibility_notification/index.js | 48 - src/components/intersection-detector/index.js | 1 - .../intersection-detector.e2e.stories.js | 61 - .../intersection-detector.js | 99 -- .../intersection-detector.prod.stories.js | 121 -- .../label/features/accepts_children.feature | 5 - .../label/features/accepts_children/index.js | 10 - .../label/features/can_be_required.feature | 5 - .../label/features/can_be_required/index.js | 9 - src/components/label/index.js | 1 - src/components/label/label.e2e.stories.js | 6 - src/components/label/label.js | 60 - .../layer/features/accepts_children.feature | 5 - .../layer/features/accepts_children/index.js | 8 - .../layer/features/click_behavior.feature | 17 - .../layer/features/click_behavior/index.js | 52 - .../layer/features/stacking.feature | 34 - .../layer/features/stacking/index.js | 79 - src/components/layer/index.js | 4 - src/components/layer/layer-context.js | 7 - src/components/layer/layer.e2e.stories.js | 113 -- src/components/layer/layer.js | 96 -- src/components/layer/layer.prod.stories.js | 65 - src/components/layer/use-layer-context.js | 4 - .../legend/features/accepts_children.feature | 5 - .../legend/features/accepts_children/index.js | 10 - .../legend/features/can_be_required.feature | 5 - .../legend/features/can_be_required/index.js | 9 - src/components/legend/index.js | 1 - src/components/legend/legend.e2e.stories.js | 8 - src/components/legend/legend.js | 34 - src/components/legend/legend.prod.stories.js | 27 - .../__tests__/circular-loader.test.js | 26 - .../loader/circular-loader/circular-loader.js | 81 - .../circular-loader.prod.stories.js | 43 - .../loader/circular-loader/index.js | 1 - src/components/loader/index.js | 2 - .../__tests__/linear-loader.test.js | 29 - src/components/loader/linear-loader/index.js | 1 - .../loader/linear-loader/linear-loader.js | 95 -- .../linear-loader.prod.stories.js | 67 - src/components/logo/index.js | 1 - src/components/logo/logo-icon-svg.js | 33 - src/components/logo/logo-svg.js | 60 - src/components/logo/logo.js | 79 - src/components/logo/logo.prod.stories.js | 53 - .../flyout-menu/__tests__/flyout-menu.test.js | 48 - .../features/accepts_children.feature | 5 - .../features/accepts_children/index.js | 10 - .../flyout-menu/features/position.feature | 19 - .../flyout-menu/features/position/index.js | 80 - .../features/toggles_submenus.feature | 9 - .../features/toggles_submenus/index.js | 26 - .../flyout-menu/flyout-menu.e2e.stories.js | 55 - .../menu/flyout-menu/flyout-menu.js | 115 -- .../flyout-menu/flyout-menu.prod.stories.js | 229 --- src/components/menu/flyout-menu/index.js | 1 - src/components/menu/index.js | 6 - src/components/menu/menu-divider/index.js | 1 - .../menu/menu-divider/menu-divider.js | 32 - .../menu-divider/menu-divider.prod.stories.js | 30 - .../menu-item/__tests__/menu-item.test.js | 76 - .../menu-item/features/accepts_href.feature | 5 - .../menu-item/features/accepts_href/index.js | 11 - .../menu-item/features/accepts_icon.feature | 5 - .../menu-item/features/accepts_icon/index.js | 10 - .../menu-item/features/accepts_label.feature | 5 - .../menu-item/features/accepts_label/index.js | 10 - .../menu-item/features/accepts_suffix.feature | 5 - .../features/accepts_suffix/index.js | 10 - .../menu-item/features/accepts_target.feature | 5 - .../features/accepts_target/index.js | 11 - .../menu-item/features/is_clickable.feature | 6 - .../menu-item/features/is_clickable/index.js | 17 - src/components/menu/menu-item/index.js | 1 - .../menu/menu-item/menu-item.e2e.stories.js | 29 - src/components/menu/menu-item/menu-item.js | 191 --- .../menu/menu-item/menu-item.prod.stories.js | 181 --- .../menu/menu-item/menu-item.styles.js | 132 -- .../features/accepts_label.feature | 5 - .../features/accepts_label/index.js | 10 - .../menu/menu-section-header/index.js | 1 - .../menu-section-header.e2e.stories.js | 11 - .../menu-section-header.js | 56 - .../menu-section-header.prod.stories.js | 52 - .../menu/menu/__tests__/menu.test.js | 204 --- .../menu/features/accepts_children.feature | 5 - .../menu/features/accepts_children/index.js | 10 - src/components/menu/menu/helpers.js | 36 - src/components/menu/menu/index.js | 1 - src/components/menu/menu/menu.e2e.stories.js | 5 - src/components/menu/menu/menu.js | 95 -- src/components/menu/menu/menu.prod.stories.js | 90 -- src/components/menu/menu/use-menu.js | 100 -- src/components/modal/index.js | 4 - .../features/accepts_children.feature | 5 - .../features/accepts_children/index.js | 10 - src/components/modal/modal-actions/index.js | 1 - .../modal-actions.e2e.stories.js | 5 - .../modal/modal-actions/modal-actions.js | 28 - .../features/accepts_children.feature | 5 - .../features/accepts_children/index.js | 10 - src/components/modal/modal-content/index.js | 1 - .../modal-content.e2e.stories.js | 5 - .../modal/modal-content/modal-content.js | 26 - .../features/accepts_children.feature | 5 - .../features/accepts_children/index.js | 10 - src/components/modal/modal-title/index.js | 1 - .../modal-title/modal-title.e2e.stories.js | 5 - .../modal/modal-title/modal-title.js | 31 - src/components/modal/modal/close-button.js | 50 - .../modal/features/accepts_children.feature | 5 - .../modal/features/accepts_children/index.js | 10 - .../modal/features/can_be_closed.feature | 16 - .../modal/features/can_be_closed/index.js | 31 - ...s_not_unmount_children_when_hiding.feature | 12 - .../index.js | 37 - src/components/modal/modal/index.js | 1 - .../modal/modal/modal.e2e.stories.js | 78 - src/components/modal/modal/modal.js | 120 -- .../modal/modal/modal.prod.stories.js | 1008 ------------- src/components/modal/modal/modal.test.js | 89 -- .../node/features/accepts_children.feature | 9 - .../node/features/accepts_children/index.js | 23 - .../node/features/accepts_component.feature | 5 - .../node/features/accepts_component/index.js | 12 - .../node/features/accepts_icon.feature | 5 - .../node/features/accepts_icon/index.js | 12 - .../node/features/can_be_closed.feature | 6 - .../node/features/can_be_closed/index.js | 15 - .../node/features/can_be_opened.feature | 6 - .../node/features/can_be_opened/index.js | 15 - src/components/node/index.js | 1 - src/components/node/leaves.js | 27 - src/components/node/node.e2e.stories.js | 33 - src/components/node/node.js | 70 - src/components/node/node.prod.stories.js | 404 ----- src/components/node/spacer.js | 11 - src/components/node/toggle.js | 93 -- .../notice-box-icon.test.js.snap | 11 - .../__tests__/notice-box-icon.test.js | 54 - .../__tests__/notice-box-message.test.js | 21 - .../__tests__/notice-box-title.test.js | 21 - .../features/accepts_children.feature | 5 - .../features/accepts_children/index.js | 12 - .../notice-box/features/accepts_title.feature | 5 - .../features/accepts_title/index.js | 12 - src/components/notice-box/index.js | 1 - .../notice-box/notice-box-content.js | 34 - src/components/notice-box/notice-box-icon.js | 49 - .../notice-box/notice-box-message.js | 28 - src/components/notice-box/notice-box-title.js | 29 - .../notice-box/notice-box.e2e.stories.js | 6 - src/components/notice-box/notice-box.js | 81 - .../notice-box/notice-box.prod.stories.js | 107 -- .../__e2e__/children_as_child_nodes.js | 23 - .../organisation-unit-tree/__e2e__/common.js | 70 - .../__e2e__/controlled_expanded.js | 89 -- .../__e2e__/displaying_loading_error.js | 45 - .../__e2e__/expanded.js | 42 - .../__e2e__/force_reload.js | 66 - .../__e2e__/get-organisation-unit-data.js | 119 -- .../__e2e__/highlight.js | 23 - .../__e2e__/loading_state.js | 37 - .../__e2e__/multi_selection.js | 24 - .../__e2e__/namespace.js | 1 - .../__e2e__/no_selection.js | 32 - .../__e2e__/path_based_filtering.js | 49 - .../__e2e__/single_selection.js | 46 - .../__e2e__/sub_unit_as_root.js | 28 - .../__e2e__/tree_api.js | 55 - .../__stories__/collapsed.js | 11 - .../custom-expanded-imperative-open.js | 181 --- .../__stories__/custom-node-label.js | 19 - .../__stories__/development-stories.js | 86 -- .../__stories__/expanded.js | 12 - .../__stories__/filtered-root.js | 15 - .../__stories__/filtered.js | 13 - .../__stories__/force-reload-all.js | 46 - .../__stories__/force-reload-one-unit.js | 36 - .../__stories__/highlighted.js | 13 - .../__stories__/indeterminate.js | 13 - .../__stories__/loading-error-grandchild.js | 39 - .../__stories__/loading.js | 27 - .../__stories__/multiple-roots.js | 20 - .../__stories__/no-selection.js | 16 - .../__stories__/replace-roots.js | 28 - .../__stories__/root-error.js | 36 - .../__stories__/root-loading.js | 34 - .../organisation-unit-tree/__stories__/rtl.js | 14 - .../__stories__/selected-multiple.js | 18 - .../__stories__/shared.js | 192 --- .../__stories__/single-selection.js | 16 - .../features/children_as_child_nodes.feature | 6 - .../features/children_as_child_nodes/index.js | 29 - .../features/controlled_expanded.feature | 11 - .../features/controlled_expanded/index.js | 86 -- .../features/displaying_loading_error.feature | 24 - .../displaying_loading_error/index.js | 46 - .../features/expanded.feature | 27 - .../features/expanded/index.js | 87 -- .../features/force_reload.feature | 7 - .../features/force_reload/index.js | 36 - .../features/highlight.feature | 5 - .../features/highlight/index.js | 9 - .../features/loading_state.feature | 7 - .../features/loading_state/index.js | 26 - .../features/multi_selection.feature | 31 - .../features/multi_selection/index.js | 94 -- .../features/no_selection.feature | 13 - .../features/no_selection/index.js | 41 - .../features/path_based_filtering.feature | 24 - .../features/path_based_filtering/index.js | 97 -- .../features/single_selection.feature | 20 - .../features/single_selection/index.js | 41 - .../features/sub_unit_as_root.feature | 34 - .../features/sub_unit_as_root/index.js | 83 - .../features/tree_api.feature | 37 - .../features/tree_api/index.js | 121 -- .../get-all-expanded-paths.js | 32 - .../get-all-expanded-paths.test.js | 22 - .../get-all-expanded-paths/index.js | 1 - .../organisation-unit-tree/helpers/index.js | 3 - .../helpers/is-path-included.js | 15 - .../helpers/left-trim-to-root-id.js | 3 - .../sort-node-children-alphabetically.js | 5 - .../organisation-unit-tree/index.js | 6 - .../compute-child-nodes.js | 27 - .../compute-child-nodes.test.js | 85 -- .../organisation-unit-node/error-message.js | 23 - .../has-descendant-selected-paths.js | 15 - .../has-descendant-selected-paths.test.js | 30 - .../organisation-unit-node/index.js | 1 - .../label/disabled-selection-label.js | 26 - .../label/icon-empty.js | 31 - .../label/icon-folder-closed.js | 38 - .../label/icon-folder-open.js | 49 - .../label/icon-single.js | 41 - .../organisation-unit-node/label/icon.js | 35 - .../label/iconized-checkbox.js | 67 - .../organisation-unit-node/label/index.js | 1 - .../label/label-container.js | 36 - .../organisation-unit-node/label/label.js | 146 -- .../label/single-selection-label.js | 60 - .../organisation-unit-node/loading-spinner.js | 22 - .../organisation-unit-node-children.js | 119 -- .../organisation-unit-node.js | 187 --- .../organisation-unit-node/use-open-state.js | 37 - .../use-open-state.test.js | 111 -- .../use-org-children.js | 58 - .../use-org-children.test.js | 324 ---- .../use-org-data/index.js | 1 - .../use-org-data/use-org-data.js | 40 - .../use-org-data/use-org-data.test.js | 144 -- .../organisation-unit-tree.e2e.stories.js | 28 - .../organisation-unit-tree.prod.stories.js | 70 - .../default-render-node-label.js | 1 - .../default-render-node-label/index.js | 1 - .../organisation-unit-tree/filter-root-ids.js | 9 - .../organisation-unit-tree/index.js | 3 - .../organisation-unit-tree-root-error.js | 21 - .../organisation-unit-tree-root-loading.js | 24 - .../organisation-unit-tree.js | 249 --- .../organisation-unit-tree.test.js | 76 - .../use-expanded/create-expand-handlers.js | 45 - .../create-expand-handlers.test.js | 54 - .../use-expanded/index.js | 1 - .../use-expanded/use-expanded.js | 42 - .../use-expanded/use-expanded.test.js | 73 - .../use-force-reload.js | 22 - .../use-force-reload.test.js | 43 - .../use-root-org-data/index.js | 1 - .../patch-missing-display-name.js | 20 - .../patch-missing-display-name.test.js | 24 - .../use-root-org-data/use-root-org-data.js | 47 - .../use-root-org-unit.test.js | 193 --- .../organisation-unit-tree/prop-types.js | 33 - .../pagination/__fixtures__/index.js | 46 - .../__tests__/get-item-range.test.js | 65 - .../__tests__/page-controls.test.js | 80 - .../pagination/__tests__/page-select.test.js | 40 - .../__tests__/page-size-select.test.js | 29 - .../pagination/__tests__/page-summary.test.js | 70 - .../pagination/__tests__/pagination.test.js | 212 --- .../get-default-page-summary-text.js | 34 - src/components/pagination/get-item-range.js | 35 - src/components/pagination/index.js | 1 - src/components/pagination/page-controls.js | 83 - src/components/pagination/page-select.js | 62 - src/components/pagination/page-size-select.js | 64 - src/components/pagination/page-summary.js | 67 - src/components/pagination/pagination.js | 153 -- .../pagination/pagination.prod.stories.js | 108 -- src/components/popover/arrow.js | 87 -- .../popover/features/arrow_position.feature | 27 - .../popover/features/arrow_position/index.js | 121 -- .../popover/features/clicking_outside.feature | 6 - .../features/clicking_outside/index.js | 16 - .../features/conditional_arrow.feature | 9 - .../features/conditional_arrow/index.js | 14 - .../popover/features/position.feature | 35 - .../popover/features/position/index.js | 117 -- src/components/popover/get-arrow-position.js | 19 - src/components/popover/index.js | 1 - src/components/popover/modifiers.js | 62 - src/components/popover/popover.e2e.stories.js | 129 -- src/components/popover/popover.js | 99 -- .../popover/popover.prod.stories.js | 111 -- .../accepts_different_reference_types.feature | 15 - .../index.js | 58 - .../popper/features/positions.feature | 63 - .../popper/features/positions/index.js | 131 -- .../popper/get-reference-element.js | 16 - src/components/popper/index.js | 4 - src/components/popper/modifiers.js | 86 -- src/components/popper/popper.e2e.stories.js | 123 -- src/components/popper/popper.js | 105 -- src/components/popper/popper.prod.stories.js | 162 -- src/components/portal/index.js | 1 - src/components/portal/portal.js | 37 - src/components/radio/__tests__/radio.test.js | 31 - .../features/accepts_initial_focus.feature | 5 - .../features/accepts_initial_focus/index.js | 9 - .../radio/features/accepts_label.feature | 5 - .../radio/features/accepts_label/index.js | 11 - .../radio/features/can_be_blurred.feature | 6 - .../radio/features/can_be_blurred/index.js | 19 - .../radio/features/can_be_changed.feature | 6 - .../radio/features/can_be_changed/index.js | 19 - .../radio/features/can_be_disabled.feature | 6 - .../radio/features/can_be_disabled/index.js | 13 - .../radio/features/can_be_focused.feature | 6 - .../radio/features/can_be_focused/index.js | 19 - src/components/radio/index.js | 1 - src/components/radio/radio-icons.js | 106 -- src/components/radio/radio.e2e.stories.js | 38 - src/components/radio/radio.js | 199 --- src/components/radio/radio.prod.stories.js | 159 -- src/components/required/index.js | 1 - src/components/required/required.js | 18 - src/components/segmented-control/index.js | 1 - .../segmented-control/segmented-control.js | 124 -- .../segmented-control.prod.stories.js | 49 - src/components/select/index.js | 7 - .../__tests__/multi-select-field.test.js | 29 - .../features/accepts_help_text.feature | 5 - .../features/accepts_help_text/index.js | 9 - .../features/accepts_label.feature | 5 - .../features/accepts_label/index.js | 9 - .../features/accepts_validation_text.feature | 5 - .../features/accepts_validation_text/index.js | 9 - .../features/can_be_required.feature | 5 - .../features/can_be_required/index.js | 11 - .../features/has_default_clear_text.feature | 6 - .../features/has_default_clear_text/index.js | 16 - .../features/has_default_empty_text.feature | 6 - .../features/has_default_empty_text/index.js | 13 - .../has_default_filter_nomatch_text.feature | 7 - .../has_default_filter_nomatch_text/index.js | 17 - .../has_default_filter_placeholder.feature | 6 - .../has_default_filter_placeholder/index.js | 15 - .../features/has_default_loading_text.feature | 6 - .../has_default_loading_text/index.js | 13 - .../select/multi-select-field/index.js | 1 - .../multi-select-field.e2e.stories.js | 45 - .../multi-select-field/multi-select-field.js | 178 --- .../multi-select-field.prod.stories.js | 131 -- .../select/multi-select-option/index.js | 1 - .../multi-select-option.js | 66 - .../__tests__/multi-select.test.js | 23 - .../__tests__/selection-list.test.js | 102 -- .../features/accepts_blur_cb.feature | 8 - .../features/accepts_blur_cb/index.js | 14 - .../features/accepts_focus_cb.feature | 6 - .../features/accepts_focus_cb/index.js | 14 - .../features/accepts_initial_focus.feature | 5 - .../features/accepts_initial_focus/index.js | 5 - .../features/accepts_loading.feature | 14 - .../features/accepts_loading/index.js | 22 - .../features/accepts_max_height.feature | 11 - .../features/accepts_max_height/index.js | 31 - .../features/accepts_placeholder.feature | 10 - .../features/accepts_placeholder/index.js | 25 - .../features/accepts_prefix.feature | 10 - .../features/accepts_prefix/index.js | 19 - .../features/allows_invalid_options.feature | 12 - .../features/allows_invalid_options/index.js | 27 - .../features/allows_selecting.feature | 44 - .../features/allows_selecting/index.js | 81 - .../features/can_be_cleared.feature | 6 - .../features/can_be_cleared/index.js | 22 - .../features/can_be_disabled.feature | 32 - .../features/can_be_disabled/index.js | 36 - .../features/can_be_empty.feature | 16 - .../features/can_be_empty/index.js | 28 - .../features/can_be_filtered.feature | 14 - .../features/can_be_filtered/index.js | 23 - .../features/can_be_opened_and_closed.feature | 41 - .../can_be_opened_and_closed/index.js | 32 - .../multi-select/features/common/index.js | 49 - .../features/duplicate_option_values.feature | 7 - .../features/duplicate_option_values/index.js | 21 - .../features/menu_width_matches_input.feature | 11 - .../menu_width_matches_input/index.js | 53 - .../multi-select/features/position.feature | 46 - .../multi-select/features/position/index.js | 160 -- .../features/shows_selections.feature | 9 - .../features/shows_selections/index.js | 18 - .../select/multi-select/filterable-menu.js | 43 - src/components/select/multi-select/index.js | 1 - src/components/select/multi-select/input.js | 113 -- src/components/select/multi-select/menu.js | 95 -- .../multi-select/multi-select.e2e.stories.js | 407 ----- .../select/multi-select/multi-select.js | 147 -- .../multi-select/multi-select.prod.stories.js | 383 ----- .../select/multi-select/selection-list.js | 79 - .../select/select/__tests__/select.test.js | 31 - .../select/select/debounce/debounce.js | 30 - .../select/select/debounce/debounce.spec.js | 35 - src/components/select/select/empty.js | 28 - src/components/select/select/filter-input.js | 42 - .../select/select/filterable-menu.js | 106 -- src/components/select/select/index.js | 14 - .../select/select/input-clear-button.js | 62 - .../select/select/input-placeholder.js | 30 - src/components/select/select/input-prefix.js | 32 - src/components/select/select/input-wrapper.js | 118 -- src/components/select/select/loading.js | 33 - src/components/select/select/menu-wrapper.js | 56 - src/components/select/select/no-match.js | 28 - .../select/select/option-helpers.js | 34 - src/components/select/select/select.js | 246 --- .../__tests__/single-select-field.test.js | 29 - .../features/accepts_help_text.feature | 5 - .../features/accepts_help_text/index.js | 9 - .../features/accepts_label.feature | 5 - .../features/accepts_label/index.js | 9 - .../features/accepts_validation_text.feature | 5 - .../features/accepts_validation_text/index.js | 9 - .../features/can_be_required.feature | 5 - .../features/can_be_required/index.js | 11 - .../features/can_show_conditionally.feature | 7 - .../features/can_show_conditionally/index.js | 24 - .../features/has_default_clear_text.feature | 6 - .../features/has_default_clear_text/index.js | 16 - .../features/has_default_empty_text.feature | 6 - .../features/has_default_empty_text/index.js | 13 - .../has_default_filter_nomatch_text.feature | 7 - .../has_default_filter_nomatch_text/index.js | 17 - .../has_default_filter_placeholder.feature | 6 - .../has_default_filter_placeholder/index.js | 15 - .../features/has_default_loading_text.feature | 6 - .../has_default_loading_text/index.js | 13 - .../select/single-select-field/index.js | 1 - .../single-select-field.e2e.stories.js | 84 -- .../single-select-field.js | 177 --- .../single-select-field.prod.stories.js | 131 -- .../select/single-select-option/index.js | 1 - .../single-select-option.js | 75 - .../single-select/__tests__/selection.test.js | 102 -- .../__tests__/single-select.test.js | 23 - .../features/accepts_blur_cb.feature | 8 - .../features/accepts_blur_cb/index.js | 14 - .../features/accepts_focus_cb.feature | 6 - .../features/accepts_focus_cb/index.js | 14 - .../features/accepts_initial_focus.feature | 5 - .../features/accepts_initial_focus/index.js | 5 - .../features/accepts_loading.feature | 14 - .../features/accepts_loading/index.js | 22 - .../features/accepts_max_height.feature | 11 - .../features/accepts_max_height/index.js | 31 - .../features/accepts_placeholder.feature | 10 - .../features/accepts_placeholder/index.js | 25 - .../features/accepts_prefix.feature | 10 - .../features/accepts_prefix/index.js | 19 - .../features/allows_invalid_options.feature | 12 - .../features/allows_invalid_options/index.js | 28 - .../features/allows_selecting.feature | 21 - .../features/allows_selecting/index.js | 38 - .../features/can_be_cleared.feature | 6 - .../features/can_be_cleared/index.js | 22 - .../features/can_be_disabled.feature | 32 - .../features/can_be_disabled/index.js | 39 - .../features/can_be_empty.feature | 16 - .../features/can_be_empty/index.js | 28 - .../features/can_be_filtered.feature | 14 - .../features/can_be_filtered/index.js | 23 - .../features/can_be_opened_and_closed.feature | 41 - .../can_be_opened_and_closed/index.js | 32 - .../single-select/features/common/index.js | 44 - .../features/duplicate_option_values.feature | 7 - .../features/duplicate_option_values/index.js | 26 - .../features/menu_width_matches_input.feature | 11 - .../menu_width_matches_input/index.js | 53 - .../single-select/features/position.feature | 26 - .../single-select/features/position/index.js | 111 -- .../features/shows_selections.feature | 5 - .../features/shows_selections/index.js | 9 - .../select/single-select/filterable-menu.js | 41 - src/components/select/single-select/index.js | 1 - src/components/select/single-select/input.js | 105 -- src/components/select/single-select/menu.js | 79 - .../select/single-select/selection.js | 60 - .../single-select.e2e.stories.js | 376 ----- .../select/single-select/single-select.js | 151 -- .../single-select.prod.stories.js | 358 ----- src/components/selector-bar/index.js | 2 - .../features/toggle-children.feature | 11 - .../features/toggle-children/index.js | 27 - .../selector-bar/selector-bar-item/index.js | 1 - .../selector-bar-item.e2e.stories.js | 64 - .../selector-bar-item/selector-bar-item.js | 185 --- .../selector-bar/__stories__/common.js | 232 --- .../__stories__/keep-org-unit-expanded.js | 71 - .../selector-bar/__stories__/rtl.js | 105 -- .../__stories__/with-multiple-rows.js | 131 -- .../with-right-hand-side-content.js | 103 -- .../__stories__/with-some-inputs.js | 95 -- .../selector-bar/selector-bar/index.js | 1 - .../selector-bar/selector-bar/selector-bar.js | 175 --- .../selector-bar/selector-bar.prod.stories.js | 6 - .../selector-bar/selector-bar.test.js | 124 -- .../__tests__/sharing-dialog.test.js | 31 - .../access-add/__tests__/access-add.test.js | 16 - .../sharing-dialog/access-add/access-add.js | 102 -- .../sharing-dialog/access-add/index.js | 1 - .../sharing-dialog/access-list/access-list.js | 144 -- .../sharing-dialog/access-list/index.js | 1 - .../access-list/list-item-context.js | 49 - .../access-list/list-item-icon.js | 35 - .../sharing-dialog/access-list/list-item.js | 126 -- .../autocomplete/autocomplete.js | 83 - .../sharing-dialog/autocomplete/index.js | 1 - .../sharing-dialog/autocomplete/menu-popup.js | 47 - .../autocomplete/sharing-autocomplete.js | 92 -- .../autocomplete/sharing-autocomplete.test.js | 65 - .../cascade-sharing/__tests__/helpers.test.js | 92 -- .../cascade-sharing/cascade-sharing.js | 23 - .../cascade-sharing/controls.js | 107 -- .../sharing-dialog/cascade-sharing/helpers.js | 77 - .../sharing-dialog/cascade-sharing/index.js | 1 - .../cascade-sharing/result-info.js | 33 - .../cascade-sharing/static-info.js | 32 - .../cascade-sharing/update-info.js | 41 - src/components/sharing-dialog/constants.js | 76 - .../destructive-select-option.js | 37 - .../destructive-select-option/index.js | 1 - .../features/access-level-change.feature | 14 - .../features/access-level-change/index.js | 260 ---- .../features/access-level-disable.feature | 5 - .../features/access-level-disable/index.js | 27 - .../features/access-level-remove.feature | 13 - .../features/access-level-remove/index.js | 139 -- .../features/add-entity.feature | 14 - .../features/add-entity/index.js | 192 --- .../sharing-dialog/features/dashboard.feature | 20 - .../features/dashboard/index.js | 85 -- .../fixtures/all-users-no-access.json | 15 - .../fixtures/all-users-view-access.json | 15 - .../fixtures/all-users-view-edit-access.json | 15 - .../features/fixtures/dashboard-sharing.json | 27 - .../features/fixtures/dashboards.json | 29 - .../features/fixtures/disabled-access.json | 15 - .../features/fixtures/group-no-access.json | 15 - .../features/fixtures/group-view-access.json | 21 - .../fixtures/group-view-edit-access.json | 21 - .../sharing-dialog/features/fixtures/index.js | 37 - .../features/fixtures/no-access.json | 15 - .../features/fixtures/search-group.json | 10 - .../features/fixtures/search-user.json | 10 - .../features/fixtures/user-no-access.json | 15 - .../features/fixtures/user-view-access.json | 21 - .../fixtures/user-view-edit-access.json | 21 - .../features/fixtures/with-displayname.json | 15 - .../fixtures/without-displayname.json | 15 - .../sharing-dialog/features/title.feature | 9 - .../sharing-dialog/features/title/index.js | 24 - .../fetching-context/fetching-context.js | 3 - .../sharing-dialog/fetching-context/index.js | 1 - .../helpers/__tests__/debounce.test.js | 35 - .../helpers/__tests__/helpers.test.js | 85 -- .../sharing-dialog/helpers/helpers.js | 215 --- .../sharing-dialog/helpers/index.js | 1 - src/components/sharing-dialog/index.js | 1 - src/components/sharing-dialog/modal/index.js | 1 - src/components/sharing-dialog/modal/modal.js | 44 - .../sharing-dialog.e2e.stories.js | 25 - .../sharing-dialog/sharing-dialog.js | 228 --- .../sharing-dialog.prod.stories.js | 271 ---- src/components/sharing-dialog/tabs/index.js | 1 - .../sharing-dialog/tabs/tabbed-content.js | 120 -- src/components/sharing-dialog/text/index.js | 1 - src/components/sharing-dialog/text/title.js | 21 - src/components/status-icon/index.js | 1 - src/components/status-icon/status-icon.js | 33 - src/components/switch/index.js | 2 - .../__tests__/switch-field.test.js | 32 - .../features/can_be_required.feature | 5 - .../features/can_be_required/index.js | 11 - src/components/switch/switch-field/index.js | 1 - .../switch-field/switch-field.e2e.stories.js | 7 - .../switch/switch-field/switch-field.js | 122 -- .../switch-field/switch-field.prod.stories.js | 141 -- .../switch/switch/__tests__/switch.test.js | 44 - .../features/accepts_initial_focus.feature | 5 - .../features/accepts_initial_focus/index.js | 9 - .../switch/features/accepts_label.feature | 5 - .../switch/features/accepts_label/index.js | 11 - .../switch/features/can_be_blurred.feature | 6 - .../switch/features/can_be_blurred/index.js | 19 - .../switch/features/can_be_changed.feature | 6 - .../switch/features/can_be_changed/index.js | 19 - .../switch/features/can_be_disabled.feature | 6 - .../switch/features/can_be_disabled/index.js | 13 - .../switch/features/can_be_focused.feature | 6 - .../switch/features/can_be_focused/index.js | 19 - src/components/switch/switch/index.js | 1 - src/components/switch/switch/switch-icons.js | 144 -- .../switch/switch/switch.e2e.stories.js | 37 - src/components/switch/switch/switch.js | 210 --- .../switch/switch/switch.prod.stories.js | 157 -- src/components/tab/index.js | 2 - .../tab/tab-bar/animated-side-scroll.js | 63 - .../detect-horizontal-scrollbar-height.js | 36 - .../tab-bar/features/accepts_children.feature | 9 - .../features/accepts_children/index.js | 17 - .../auto_hides_scroll_buttons.feature | 29 - .../auto_hides_scroll_buttons/index.js | 35 - src/components/tab/tab-bar/index.js | 1 - src/components/tab/tab-bar/scroll-bar.js | 219 --- src/components/tab/tab-bar/scroll-button.js | 72 - .../tab/tab-bar/tab-bar.e2e.stories.js | 31 - src/components/tab/tab-bar/tab-bar.js | 42 - .../tab/tab-bar/tab-bar.prod.stories.js | 191 --- src/components/tab/tab-bar/tabs.js | 91 -- .../tab/tab/features/accepts_children.feature | 5 - .../tab/features/accepts_children/index.js | 12 - .../tab/tab/features/accepts_icon.feature | 5 - .../tab/tab/features/accepts_icon/index.js | 12 - .../tab/tab/features/is_clickable.feature | 11 - .../tab/tab/features/is_clickable/index.js | 25 - src/components/tab/tab/index.js | 1 - src/components/tab/tab/tab.e2e.stories.js | 14 - src/components/tab/tab/tab.js | 180 --- .../__tests__/data-table-cell.test.js | 168 --- .../data-table-column-header.test.js | 227 --- .../filter-handle.test.js | 43 - .../data-table-column-header/sorter.test.js | 41 - .../__tests__/data-table-row.test.js | 162 -- .../data-table-row/expand-handle-cell.js | 32 - .../data-table-row/expanded-row.test.js | 57 - .../data-table/__tests__/data-table.test.js | 85 -- .../table/data-table/data-table-body.js | 3 - .../table/data-table/data-table-cell.js | 117 -- .../data-table-column-header.js | 134 -- .../data-table-column-header.styles.js | 30 - .../data-table-column-header/filter-handle.js | 30 - .../data-table-column-header/sorter.js | 67 - .../table/data-table/data-table-foot.js | 3 - .../table/data-table/data-table-head.js | 3 - .../data-table-row/data-table-row.js | 107 -- .../data-table-row/data-table-row.styles.js | 20 - .../data-table-row/drag-handle-cell.js | 9 - .../data-table-row/expand-handle-cell.js | 28 - .../data-table/data-table-row/expanded-row.js | 51 - .../table/data-table/data-table-toolbar.js | 3 - .../data-table/data-table.e2e.stories.js | 192 --- src/components/table/data-table/data-table.js | 81 - .../data-table/data-table.prod.stories.js | 1342 ----------------- .../data-table/features/can_scroll.feature | 31 - .../data-table/features/can_scroll/index.js | 48 - src/components/table/data-table/index.js | 8 - .../__tests__/table-body.test.js | 40 - .../__tests__/table-data-cell.test.js | 123 -- .../__tests__/table-foot.test.js | 40 - .../__tests__/table-head.test.js | 40 - .../table-header-cell-action.test.js | 46 - .../__tests__/table-header-cell.test.js | 130 -- .../__tests__/table-row.test.js | 52 - .../__tests__/table-scroll-box.test.js | 40 - .../__tests__/table-toolbar.test.js | 44 - .../table-elements/__tests__/table.test.js | 53 - .../features/can_scroll.feature | 31 - .../features/can_scroll/index.js | 42 - .../table/data-table/table-elements/index.js | 10 - .../data-table/table-elements/table-body.js | 69 - .../table-data-cell/table-data-cell.js | 132 -- .../table-data-cell/table-data-cell.styles.js | 42 - .../data-table/table-elements/table-foot.js | 30 - .../data-table/table-elements/table-head.js | 30 - .../table-header-cell-action.js | 56 - .../table-header-cell/table-header-cell.js | 129 -- .../table-header-cell.styles.js | 71 - .../data-table/table-elements/table-row.js | 48 - .../table-elements/table-scroll-box.js | 37 - .../table-elements/table-toolbar.js | 46 - .../table-elements/table.e2e.stories.js | 190 --- .../table/data-table/table-elements/table.js | 76 - .../table-elements/table.stories.internal.js | 1144 -------------- src/components/table/index.js | 32 - .../stacked-table/add-col-num-to-children.js | 16 - .../table/stacked-table/content-with-title.js | 40 - .../stacked-table/extract-header-labels.js | 99 -- src/components/table/stacked-table/index.js | 8 - .../table/stacked-table/stacked-table-body.js | 23 - .../stacked-table/stacked-table-cell-head.js | 44 - .../table/stacked-table/stacked-table-cell.js | 64 - .../table/stacked-table/stacked-table-foot.js | 24 - .../table/stacked-table/stacked-table-head.js | 23 - .../stacked-table/stacked-table-row-head.js | 19 - .../table/stacked-table/stacked-table-row.js | 50 - .../table/stacked-table/stacked-table.js | 37 - .../stacked-table.prod.stories.js | 463 ------ .../table/stacked-table/stacked-table.test.js | 127 -- .../supply-header-labels-to-children.js | 7 - .../table/stacked-table/table-context.js | 4 - src/components/table/stacked-table/table.js | 28 - src/components/table/table/index.js | 8 - src/components/table/table/table-body.js | 20 - src/components/table/table/table-cell-head.js | 60 - src/components/table/table/table-cell.js | 60 - src/components/table/table/table-context.js | 7 - src/components/table/table/table-foot.js | 20 - src/components/table/table/table-head.js | 20 - src/components/table/table/table-row-head.js | 34 - src/components/table/table/table-row.js | 55 - src/components/table/table/table.js | 45 - .../table/table/table.prod.stories.js | 724 --------- .../tag/features/accepts_icon.feature | 9 - .../tag/features/accepts_icon/index.js | 21 - .../tag/features/accepts_max_width.feature | 9 - .../tag/features/accepts_max_width/index.js | 28 - .../tag/features/accepts_text.feature | 5 - .../tag/features/accepts_text/index.js | 12 - src/components/tag/index.js | 1 - src/components/tag/tag-icon.js | 20 - src/components/tag/tag-text.js | 18 - src/components/tag/tag.e2e.stories.js | 15 - src/components/tag/tag.js | 117 -- src/components/tag/tag.prod.stories.js | 112 -- src/components/text-area/index.js | 2 - .../__tests__/text-area-field.test.js | 20 - .../features/can_be_required.feature | 5 - .../features/can_be_required/index.js | 11 - .../text-area/text-area-field/index.js | 1 - .../text-area-field.e2e.stories.js | 11 - .../text-area-field/text-area-field.js | 133 -- .../text-area-field.prod.stories.js | 221 --- .../text-area/__tests__/text-area.test.js | 20 - .../features/accepts_initial_focus.feature | 5 - .../features/accepts_initial_focus/index.js | 9 - .../text-area/features/can_be_blurred.feature | 6 - .../features/can_be_blurred/index.js | 18 - .../text-area/features/can_be_changed.feature | 6 - .../features/can_be_changed/index.js | 18 - .../features/can_be_disabled.feature | 6 - .../features/can_be_disabled/index.js | 15 - .../text-area/features/can_be_focused.feature | 6 - .../features/can_be_focused/index.js | 18 - .../text-area/features/common/index.js | 5 - src/components/text-area/text-area/index.js | 1 - .../text-area/text-area.e2e.stories.js | 19 - .../text-area/text-area/text-area.js | 225 --- .../text-area/text-area.prod.stories.js | 219 --- .../text-area/text-area/text-area.styles.js | 60 - .../tooltip/features/common/constants.js | 2 - .../common/getReferenceAndBodyPositions.js | 6 - .../common/getReferenceAndContentPositions.js | 6 - .../tooltip/features/common/index.js | 51 - .../tooltip/features/layering.feature | 7 - .../tooltip/features/layering/index.js | 9 - .../tooltip/features/positions.feature | 29 - .../tooltip/features/positions/index.js | 89 -- .../features/scrolling_containers.feature | 24 - .../features/scrolling_containers/index.js | 94 -- .../features/visibility_toggling.feature | 54 - .../features/visibility_toggling/index.js | 20 - src/components/tooltip/index.js | 1 - src/components/tooltip/tooltip.e2e.stories.js | 103 -- src/components/tooltip/tooltip.js | 189 --- .../tooltip/tooltip.prod.stories.js | 203 --- src/components/tooltip/tooltip.test.js | 210 --- ..._remove-highlighted-options.e2e.stories.js | 30 - src/components/transfer/__e2e__/common.js | 0 .../transfer/__e2e__/common/options.js | 90 -- .../__e2e__/common/stateful-decorator.js | 33 - .../disabled-transfer-buttons.e2e.stories.js | 49 - .../disabled-transfer-options.e2e.stories.js | 21 - .../__e2e__/display-order.e2e.stories.js | 24 - .../filter-options-list.e2e.stories.js | 87 -- .../highlight-range-of-options.e2e.stories.js | 52 - .../__e2e__/loading_lists.e2e.stories.js | 26 - .../notify_at_end_of_list.e2e.stories.js | 69 - .../reorder-with-buttons.e2e.stories.js | 23 - ...et_unset-highlighted-option.e2e.stories.js | 30 - .../__e2e__/transferring-items.e2e.stories.js | 27 - .../transfer/__tests__/common.test.js | 131 -- .../add-all-selectable-source-options.test.js | 46 - .../add-individual-source-options.test.js | 80 - .../helper/default-filter-callback.test.js | 37 - .../helper/is-reorder-down-disabled.test.js | 47 - .../helper/is-reorder-up-disabled.test.js | 47 - ...ove-highlighted-picked-option-down.test.js | 48 - .../move-highlighted-picked-option-up.test.js | 48 - .../helper/remove-all-picked-options.test.js | 29 - .../remove-individual-picked-options.test.js | 38 - .../helper/use-highlighted-option.test.js | 41 - .../create-toggle-highlighted-option.test.js | 104 -- .../use-highlighted-option/toggle-add.test.js | 84 -- .../toggle-range.test.js | 150 -- .../toggle-replace.test.js | 39 - .../transfer/__tests__/transfer.test.js | 137 -- src/components/transfer/actions.js | 33 - src/components/transfer/add-all.js | 27 - src/components/transfer/add-individual.js | 27 - .../transfer/common/find-option-index.js | 9 - .../common/get-mode-by-modifier-key.js | 35 - src/components/transfer/common/index.js | 6 - src/components/transfer/common/is-option.js | 7 - src/components/transfer/common/modes.js | 11 - .../transfer/common/remove-option.js | 19 - src/components/transfer/common/styles.js | 5 - .../transfer/common/toggle-value.js | 18 - src/components/transfer/container.js | 23 - .../transfer/end-intersection-detector.js | 35 - .../add_remove-highlighted-options.feature | 41 - .../add_remove-highlighted-options/index.js | 92 -- .../transfer/features/common/index.js | 8 - .../disabled-transfer-buttons.feature | 46 - .../disabled-transfer-buttons/index.js | 118 -- .../disabled-transfer-options.feature | 42 - .../disabled-transfer-options/index.js | 182 --- .../transfer/features/display-order.feature | 30 - .../transfer/features/display-order/index.js | 205 --- .../features/filter-options-list.feature | 40 - .../features/filter-options-list/index.js | 133 -- .../highlight-range-of-options.feature | 70 - .../highlight-range-of-options/index.js | 336 ----- .../transfer/features/loading_lists.feature | 19 - .../transfer/features/loading_lists/index.js | 43 - .../features/notify_at_end_of_list.feature | 29 - .../features/notify_at_end_of_list/index.js | 68 - .../features/reorder-with-buttons.feature | 46 - .../features/reorder-with-buttons/index.js | 70 - .../set_unset-highlighted-option.feature | 42 - .../set_unset-highlighted-option/index.js | 121 -- .../features/transferring-items.feature | 44 - .../features/transferring-items/index.js | 375 ----- src/components/transfer/filter.js | 37 - src/components/transfer/icons.js | 164 -- src/components/transfer/index.js | 2 - src/components/transfer/left-footer.js | 23 - src/components/transfer/left-header.js | 23 - src/components/transfer/left-side.js | 34 - src/components/transfer/options-container.js | 128 -- src/components/transfer/picked-options.js | 48 - src/components/transfer/remove-all.js | 27 - src/components/transfer/remove-individual.js | 27 - src/components/transfer/reordering-actions.js | 65 - src/components/transfer/right-footer.js | 23 - src/components/transfer/right-header.js | 23 - src/components/transfer/right-side.js | 33 - src/components/transfer/source-options.js | 48 - src/components/transfer/transfer-option.js | 87 -- src/components/transfer/transfer.js | 444 ------ .../transfer/transfer.prod.stories.js | 565 ------- .../add-all-selectable-source-options.js | 37 - .../transfer/add-individual-source-options.js | 61 - .../transfer/create-double-click-handlers.js | 36 - .../transfer/default-filter-callback.js | 9 - .../transfer/get-option-click-handlers.js | 19 - src/components/transfer/transfer/index.js | 13 - .../transfer/is-reorder-down-disabled.js | 11 - .../transfer/is-reorder-up-disabled.js | 11 - .../move-highlighted-picked-option-down.js | 31 - .../move-highlighted-picked-option-up.js | 31 - .../transfer/remove-all-picked-options.js | 13 - .../remove-individual-picked-options.js | 49 - .../transfer/transfer/use-filter.js | 17 - .../transfer/use-highlighted-options.js | 34 - .../create-toggle-highlighted-option.js | 64 - .../use-highlighted-options/toggle-add.js | 20 - .../use-highlighted-options/toggle-range.js | 61 - .../use-highlighted-options/toggle-replace.js | 26 - src/components/transfer/use-resize-counter.js | 34 - src/components/user-avatar/image-avatar.js | 37 - .../user-avatar/image-avatar.test.js | 21 - src/components/user-avatar/index.js | 1 - src/components/user-avatar/text-avatar.js | 97 -- .../user-avatar/text-avatar.test.js | 46 - src/components/user-avatar/user-avatar.js | 107 -- .../user-avatar/user-avatar.prod.stories.js | 22 - .../user-avatar/user-avatar.test.js | 30 - src/constants/colors.js | 75 - src/constants/elevations.js | 6 - src/constants/index.js | 7 - src/constants/layers.js | 5 - src/constants/shared-prop-types.js | 146 -- src/constants/spacers.js | 37 - src/constants/theme.js | 38 - .../__snapshots__/index.test.js.snap | 65 - src/forms/__tests__/index.test.js | 37 - src/forms/formDecorator.js | 80 - src/forms/index.js | 11 - src/forms/shared/helpers.js | 9 - src/forms/shared/helpers/createBlurHandler.js | 9 - .../shared/helpers/createChangeHandler.js | 21 - .../shared/helpers/createFocusHandler.js | 9 - .../helpers/createSelectChangeHandler.js | 6 - .../helpers/createToggleChangeHandler.js | 9 - src/forms/shared/helpers/getValidationText.js | 21 - src/forms/shared/helpers/hasError.js | 3 - src/forms/shared/helpers/isLoading.js | 4 - src/forms/shared/helpers/isValid.js | 4 - src/forms/shared/propTypes.js | 48 - src/forms/transformers/arrayWithIdObjects.js | 8 - src/forms/transformers/index.js | 1 - .../CheckboxFieldFF/CheckboxFieldFF.d.ts | 16 - .../types/FieldGroupFF/FieldGroupFF.d.ts | 9 - .../FileInputFieldFF/FileInputFieldFF.d.ts | 18 - .../types/InputFieldFF/InputFieldFF.d.ts | 15 - .../MutliSelectFieldFF.d.ts | 24 - .../types/RadioFieldFF/RadioFieldFF.d.ts | 17 - .../SingleSelectFieldFF.d.ts | 26 - .../types/SwitchFieldFF/SwitchFieldFF.d.ts | 15 - .../TextAreaFieldFF/TextAreaFieldFF.d.ts | 15 - src/forms/types/index.d.ts | 28 - src/forms/types/transformers/index.d.ts | 6 - src/forms/types/validators/index.d.ts | 31 - .../validators/__tests__/alphaNumeric.test.js | 29 - .../validators/__tests__/boolean.test.js | 23 - .../__tests__/composeValidators.test.js | 23 - .../createCharacterLengthRange.test.js | 59 - .../__tests__/createEqualTo.test.js | 43 - .../createMaxCharacterLength.test.js | 24 - .../__tests__/createMaxNumber.test.js | 21 - .../createMinCharacterLength.test.js | 24 - .../__tests__/createMinNumber.test.js | 21 - .../__tests__/createNumberRange.test.js | 68 - .../__tests__/createPattern.test.js | 40 - .../__tests__/dhis2Password.test.js | 51 - .../__tests__/dhis2Username.test.js | 75 - src/forms/validators/__tests__/email.test.js | 83 - .../validators/__tests__/hasValue.test.js | 21 - .../validators/__tests__/integer.test.js | 48 - .../internationalPhoneNumber.test.js | 49 - src/forms/validators/__tests__/number.test.js | 39 - src/forms/validators/__tests__/string.test.js | 29 - src/forms/validators/__tests__/url.test.js | 106 -- src/forms/validators/alphaNumeric.js | 15 - src/forms/validators/boolean.js | 11 - src/forms/validators/composeValidators.js | 8 - .../validators/createCharacterLengthRange.js | 27 - src/forms/validators/createEqualTo.js | 16 - .../validators/createMaxCharacterLength.js | 13 - src/forms/validators/createMaxNumber.js | 13 - .../validators/createMinCharacterLength.js | 13 - src/forms/validators/createMinNumber.js | 13 - src/forms/validators/createNumberRange.js | 28 - src/forms/validators/createPattern.js | 22 - src/forms/validators/dhis2Password.js | 81 - src/forms/validators/dhis2Username.js | 16 - src/forms/validators/email.js | 38 - src/forms/validators/hasValue.js | 8 - src/forms/validators/helpers/index.js | 23 - src/forms/validators/index.js | 20 - src/forms/validators/integer.js | 20 - .../validators/internationalPhoneNumber.js | 56 - src/forms/validators/number.js | 9 - src/forms/validators/string.js | 9 - src/forms/validators/test-helpers/index.js | 21 - src/forms/validators/url.js | 15 - src/icons/.eslintrc.js | 25 - src/icons/icons.prod.stories.js | 62 - src/icons/index.js | 1 - src/icons/react/Add16.js | 26 - src/icons/react/Add24.js | 26 - src/icons/react/AddCircle16.js | 25 - src/icons/react/AddCircle24.js | 25 - src/icons/react/Apps16.js | 26 - src/icons/react/Apps24.js | 26 - src/icons/react/Archive16.js | 25 - src/icons/react/Archive24.js | 25 - src/icons/react/ArrowDown16.js | 25 - src/icons/react/ArrowDown24.js | 25 - src/icons/react/ArrowLeft16.js | 25 - src/icons/react/ArrowLeft24.js | 25 - src/icons/react/ArrowLeftMulti16.js | 25 - src/icons/react/ArrowLeftMulti24.js | 25 - src/icons/react/ArrowRight16.js | 25 - src/icons/react/ArrowRight24.js | 25 - src/icons/react/ArrowRightMulti16.js | 25 - src/icons/react/ArrowRightMulti24.js | 25 - src/icons/react/ArrowUp16.js | 25 - src/icons/react/ArrowUp24.js | 25 - src/icons/react/At16.js | 28 - src/icons/react/At24.js | 28 - src/icons/react/Attachment16.js | 25 - src/icons/react/Attachment24.js | 25 - src/icons/react/Block16.js | 25 - src/icons/react/Block24.js | 25 - src/icons/react/Calendar16.js | 25 - src/icons/react/Calendar24.js | 25 - src/icons/react/Checkmark12.js | 25 - src/icons/react/Checkmark16.js | 25 - src/icons/react/Checkmark24.js | 25 - src/icons/react/CheckmarkCircle16.js | 28 - src/icons/react/CheckmarkCircle24.js | 28 - src/icons/react/ChevronDown16.js | 25 - src/icons/react/ChevronDown24.js | 25 - src/icons/react/ChevronLeft16.js | 25 - src/icons/react/ChevronLeft24.js | 25 - src/icons/react/ChevronRight16.js | 25 - src/icons/react/ChevronRight24.js | 25 - src/icons/react/ChevronUp16.js | 25 - src/icons/react/ChevronUp24.js | 25 - src/icons/react/Clock16.js | 25 - src/icons/react/Clock24.js | 25 - src/icons/react/ClockHistory16.js | 25 - src/icons/react/ClockHistory24.js | 25 - src/icons/react/Color16.js | 25 - src/icons/react/Color24.js | 25 - src/icons/react/Copy16.js | 25 - src/icons/react/Copy24.js | 25 - src/icons/react/Cross16.js | 25 - src/icons/react/Cross24.js | 25 - src/icons/react/DashboardWindow16.js | 25 - src/icons/react/DashboardWindow24.js | 25 - src/icons/react/DataInteger16.js | 25 - src/icons/react/DataInteger24.js | 25 - src/icons/react/DataString16.js | 25 - src/icons/react/DataString24.js | 25 - src/icons/react/Delete16.js | 25 - src/icons/react/Delete24.js | 25 - .../DimensionCategoryOptionGroupset16.js | 26 - src/icons/react/DimensionData16.js | 25 - .../react/DimensionDataElementGroupset16.js | 25 - src/icons/react/DimensionDataSet16.js | 25 - src/icons/react/DimensionEventDataItem16.js | 26 - src/icons/react/DimensionIndicator16.js | 25 - src/icons/react/DimensionOrgUnit16.js | 25 - src/icons/react/DimensionOrgUnitGroupset16.js | 25 - .../react/DimensionProgramIndicator16.js | 26 - src/icons/react/DimensionValidationRule16.js | 26 - src/icons/react/DirectionNorth16.js | 25 - src/icons/react/DirectionNorth24.js | 25 - src/icons/react/Download16.js | 25 - src/icons/react/Download24.js | 25 - src/icons/react/DragHandle16.js | 26 - src/icons/react/DragHandle24.js | 26 - src/icons/react/Duplicate16.js | 25 - src/icons/react/Duplicate24.js | 25 - src/icons/react/Edit16.js | 25 - src/icons/react/Edit24.js | 25 - src/icons/react/EditItems16.js | 25 - src/icons/react/EditItems24.js | 25 - src/icons/react/EmptyFrame16.js | 25 - src/icons/react/EmptyFrame24.js | 25 - src/icons/react/Error16.js | 25 - src/icons/react/Error24.js | 25 - src/icons/react/ErrorFilled16.js | 26 - src/icons/react/ErrorFilled24.js | 26 - src/icons/react/ExportItems24.js | 25 - src/icons/react/FaceAdd16.js | 28 - src/icons/react/FaceAdd24.js | 28 - src/icons/react/File16.js | 25 - src/icons/react/File24.js | 25 - src/icons/react/FileDocument16.js | 25 - src/icons/react/FileDocument24.js | 25 - src/icons/react/Filter16.js | 26 - src/icons/react/Filter24.js | 26 - src/icons/react/Flag16.js | 25 - src/icons/react/Flag24.js | 26 - src/icons/react/Folder16.js | 25 - src/icons/react/Folder24.js | 25 - src/icons/react/FolderOpen16.js | 25 - src/icons/react/FolderOpen24.js | 25 - src/icons/react/Fullscreen16.js | 25 - src/icons/react/Fullscreen24.js | 25 - src/icons/react/FullscreenExit16.js | 25 - src/icons/react/FullscreenExit24.js | 25 - src/icons/react/Home16.js | 25 - src/icons/react/Home24.js | 25 - src/icons/react/Image16.js | 25 - src/icons/react/Image24.js | 25 - src/icons/react/ImportItems24.js | 25 - src/icons/react/Info16.js | 25 - src/icons/react/Info24.js | 25 - src/icons/react/InfoFilled16.js | 25 - src/icons/react/InfoFilled24.js | 25 - src/icons/react/Launch16.js | 25 - src/icons/react/Launch24.js | 25 - src/icons/react/LayoutColumns16.js | 25 - src/icons/react/LayoutColumns24.js | 25 - src/icons/react/LayoutRows16.js | 25 - src/icons/react/LayoutRows24.js | 25 - src/icons/react/Legend16.js | 27 - src/icons/react/Legend24.js | 27 - src/icons/react/Link16.js | 25 - src/icons/react/Link24.js | 25 - src/icons/react/List16.js | 26 - src/icons/react/List24.js | 26 - src/icons/react/Location16.js | 25 - src/icons/react/Location24.js | 25 - src/icons/react/Lock16.js | 25 - src/icons/react/Lock24.js | 25 - src/icons/react/LockOpen16.js | 25 - src/icons/react/LockOpen24.js | 25 - src/icons/react/LogOut16.js | 25 - src/icons/react/LogOut24.js | 25 - src/icons/react/Mail16.js | 25 - src/icons/react/Mail24.js | 25 - src/icons/react/MailOpen16.js | 25 - src/icons/react/MailOpen24.js | 25 - src/icons/react/Messages16.js | 25 - src/icons/react/Messages24.js | 25 - src/icons/react/More16.js | 26 - src/icons/react/More24.js | 26 - src/icons/react/Move16.js | 25 - src/icons/react/Move24.js | 25 - src/icons/react/PushLeft16.js | 25 - src/icons/react/PushLeft24.js | 25 - src/icons/react/PushRight16.js | 25 - src/icons/react/PushRight24.js | 25 - src/icons/react/Question16.js | 25 - src/icons/react/Question24.js | 25 - src/icons/react/QuestionFilled16.js | 25 - src/icons/react/QuestionFilled24.js | 25 - src/icons/react/Queue16.js | 25 - src/icons/react/Queue24.js | 25 - src/icons/react/Redo16.js | 25 - src/icons/react/Redo24.js | 25 - src/icons/react/Reorder16.js | 25 - src/icons/react/Reorder24.js | 25 - src/icons/react/Reply16.js | 25 - src/icons/react/Reply24.js | 25 - src/icons/react/Ruler16.js | 25 - src/icons/react/Ruler24.js | 25 - src/icons/react/Save16.js | 25 - src/icons/react/Save24.js | 25 - src/icons/react/Search16.js | 25 - src/icons/react/Search24.js | 25 - src/icons/react/Settings16.js | 25 - src/icons/react/Settings24.js | 25 - src/icons/react/Share16.js | 25 - src/icons/react/Share24.js | 25 - src/icons/react/Star16.js | 25 - src/icons/react/Star24.js | 25 - src/icons/react/StarFilled16.js | 25 - src/icons/react/StarFilled24.js | 25 - src/icons/react/Subscribe16.js | 25 - src/icons/react/Subscribe24.js | 25 - src/icons/react/SubscribeOff16.js | 25 - src/icons/react/SubscribeOff24.js | 25 - src/icons/react/Subtract16.js | 26 - src/icons/react/Subtract24.js | 26 - src/icons/react/SubtractCircle16.js | 25 - src/icons/react/SubtractCircle24.js | 25 - src/icons/react/Sync16.js | 25 - src/icons/react/Sync24.js | 25 - src/icons/react/Table16.js | 25 - src/icons/react/Table24.js | 25 - src/icons/react/TerminalWindow16.js | 25 - src/icons/react/TerminalWindow24.js | 25 - src/icons/react/TextBold16.js | 25 - src/icons/react/TextBold24.js | 25 - src/icons/react/TextBox16.js | 25 - src/icons/react/TextBox24.js | 25 - src/icons/react/TextHeading16.js | 28 - src/icons/react/TextHeading24.js | 28 - src/icons/react/TextItalic16.js | 25 - src/icons/react/TextItalic24.js | 25 - src/icons/react/TextListOrdered16.js | 28 - src/icons/react/TextListOrdered24.js | 28 - src/icons/react/TextListUnordered16.js | 28 - src/icons/react/TextListUnordered24.js | 28 - src/icons/react/ThumbDown16.js | 25 - src/icons/react/ThumbDown24.js | 25 - src/icons/react/ThumbUp16.js | 25 - src/icons/react/ThumbUp24.js | 25 - src/icons/react/Translate16.js | 25 - src/icons/react/Translate24.js | 25 - src/icons/react/Undo16.js | 25 - src/icons/react/Undo24.js | 25 - src/icons/react/Upload16.js | 25 - src/icons/react/Upload24.js | 25 - src/icons/react/User16.js | 25 - src/icons/react/User24.js | 25 - src/icons/react/UserGroup16.js | 25 - src/icons/react/UserGroup24.js | 25 - src/icons/react/View16.js | 25 - src/icons/react/View24.js | 25 - src/icons/react/ViewOff16.js | 25 - src/icons/react/ViewOff24.js | 25 - src/icons/react/VisualizationArea16.js | 26 - src/icons/react/VisualizationArea24.js | 25 - src/icons/react/VisualizationAreaStacked16.js | 25 - src/icons/react/VisualizationAreaStacked24.js | 25 - src/icons/react/VisualizationBar16.js | 26 - src/icons/react/VisualizationBar24.js | 25 - src/icons/react/VisualizationBarStacked16.js | 25 - src/icons/react/VisualizationBarStacked24.js | 25 - src/icons/react/VisualizationColumn16.js | 25 - src/icons/react/VisualizationColumn24.js | 25 - src/icons/react/VisualizationColumnMulti16.js | 25 - src/icons/react/VisualizationColumnMulti24.js | 25 - .../react/VisualizationColumnStacked16.js | 25 - .../react/VisualizationColumnStacked24.js | 25 - src/icons/react/VisualizationGauge16.js | 25 - src/icons/react/VisualizationGauge24.js | 25 - src/icons/react/VisualizationLine16.js | 28 - src/icons/react/VisualizationLine24.js | 25 - src/icons/react/VisualizationLineMulti16.js | 28 - src/icons/react/VisualizationLineMulti24.js | 25 - src/icons/react/VisualizationLinelist16.js | 28 - src/icons/react/VisualizationLinelist24.js | 28 - .../react/VisualizationOutlierTable16.js | 28 - .../react/VisualizationOutlierTable24.js | 28 - src/icons/react/VisualizationPie16.js | 26 - src/icons/react/VisualizationPie24.js | 26 - src/icons/react/VisualizationPivotTable16.js | 28 - src/icons/react/VisualizationPivotTable24.js | 28 - src/icons/react/VisualizationRadar16.js | 28 - src/icons/react/VisualizationRadar24.js | 25 - src/icons/react/VisualizationScatter16.js | 26 - src/icons/react/VisualizationScatter24.js | 25 - src/icons/react/VisualizationSingleValue16.js | 25 - src/icons/react/VisualizationSingleValue24.js | 25 - src/icons/react/Warning16.js | 25 - src/icons/react/Warning24.js | 25 - src/icons/react/WarningFilled16.js | 25 - src/icons/react/WarningFilled24.js | 25 - src/icons/react/Window16.js | 25 - src/icons/react/Window24.js | 25 - src/icons/react/World16.js | 25 - src/icons/react/World24.js | 25 - src/icons/react/index.js | 261 ---- src/icons/svg/add-16.svg | 1 - src/icons/svg/add-24.svg | 1 - src/icons/svg/add-circle-16.svg | 1 - src/icons/svg/add-circle-24.svg | 1 - src/icons/svg/apps-16.svg | 1 - src/icons/svg/apps-24.svg | 1 - src/icons/svg/archive-16.svg | 1 - src/icons/svg/archive-24.svg | 1 - src/icons/svg/arrow-down-16.svg | 1 - src/icons/svg/arrow-down-24.svg | 1 - src/icons/svg/arrow-left-16.svg | 1 - src/icons/svg/arrow-left-24.svg | 1 - src/icons/svg/arrow-left-multi-16.svg | 1 - src/icons/svg/arrow-left-multi-24.svg | 1 - src/icons/svg/arrow-right-16.svg | 1 - src/icons/svg/arrow-right-24.svg | 1 - src/icons/svg/arrow-right-multi-16.svg | 1 - src/icons/svg/arrow-right-multi-24.svg | 1 - src/icons/svg/arrow-up-16.svg | 1 - src/icons/svg/arrow-up-24.svg | 1 - src/icons/svg/at-16.svg | 3 - src/icons/svg/at-24.svg | 3 - src/icons/svg/attachment-16.svg | 1 - src/icons/svg/attachment-24.svg | 1 - src/icons/svg/block-16.svg | 1 - src/icons/svg/block-24.svg | 1 - src/icons/svg/calendar-16.svg | 1 - src/icons/svg/calendar-24.svg | 1 - src/icons/svg/checkmark-12.svg | 1 - src/icons/svg/checkmark-16.svg | 1 - src/icons/svg/checkmark-24.svg | 1 - src/icons/svg/checkmark-circle-16.svg | 3 - src/icons/svg/checkmark-circle-24.svg | 3 - src/icons/svg/chevron-down-16.svg | 1 - src/icons/svg/chevron-down-24.svg | 1 - src/icons/svg/chevron-left-16.svg | 1 - src/icons/svg/chevron-left-24.svg | 1 - src/icons/svg/chevron-right-16.svg | 1 - src/icons/svg/chevron-right-24.svg | 1 - src/icons/svg/chevron-up-16.svg | 1 - src/icons/svg/chevron-up-24.svg | 1 - src/icons/svg/clock-16.svg | 1 - src/icons/svg/clock-24.svg | 1 - src/icons/svg/clock-history-16.svg | 1 - src/icons/svg/clock-history-24.svg | 1 - src/icons/svg/color-16.svg | 1 - src/icons/svg/color-24.svg | 1 - src/icons/svg/copy-16.svg | 1 - src/icons/svg/copy-24.svg | 1 - src/icons/svg/cross-16.svg | 1 - src/icons/svg/cross-24.svg | 1 - src/icons/svg/dashboard-window-16.svg | 1 - src/icons/svg/dashboard-window-24.svg | 1 - src/icons/svg/data-integer-16.svg | 1 - src/icons/svg/data-integer-24.svg | 1 - src/icons/svg/data-string-16.svg | 1 - src/icons/svg/data-string-24.svg | 1 - src/icons/svg/delete-16.svg | 1 - src/icons/svg/delete-24.svg | 1 - .../dimension-category-option-groupset-16.svg | 1 - src/icons/svg/dimension-data-16.svg | 1 - .../dimension-data-element-groupset-16.svg | 1 - src/icons/svg/dimension-data-set-16.svg | 1 - .../svg/dimension-event-data-item-16.svg | 1 - src/icons/svg/dimension-indicator-16.svg | 1 - src/icons/svg/dimension-org-unit-16.svg | 1 - .../svg/dimension-org-unit-groupset-16.svg | 1 - .../svg/dimension-program-indicator-16.svg | 1 - .../svg/dimension-validation-rule-16.svg | 1 - src/icons/svg/direction-north-16.svg | 1 - src/icons/svg/direction-north-24.svg | 1 - src/icons/svg/download-16.svg | 1 - src/icons/svg/download-24.svg | 1 - src/icons/svg/drag-handle-16.svg | 1 - src/icons/svg/drag-handle-24.svg | 1 - src/icons/svg/duplicate-16.svg | 1 - src/icons/svg/duplicate-24.svg | 1 - src/icons/svg/edit-16.svg | 1 - src/icons/svg/edit-24.svg | 1 - src/icons/svg/edit-items-16.svg | 1 - src/icons/svg/edit-items-24.svg | 1 - src/icons/svg/empty-frame-16.svg | 1 - src/icons/svg/empty-frame-24.svg | 1 - src/icons/svg/error-16.svg | 1 - src/icons/svg/error-24.svg | 1 - src/icons/svg/error-filled-16.svg | 1 - src/icons/svg/error-filled-24.svg | 1 - src/icons/svg/export-items-24.svg | 1 - src/icons/svg/face-add-16.svg | 3 - src/icons/svg/face-add-24.svg | 3 - src/icons/svg/file-16.svg | 1 - src/icons/svg/file-24.svg | 1 - src/icons/svg/file-document-16.svg | 1 - src/icons/svg/file-document-24.svg | 1 - src/icons/svg/filter-16.svg | 1 - src/icons/svg/filter-24.svg | 1 - src/icons/svg/flag-16.svg | 1 - src/icons/svg/flag-24.svg | 1 - src/icons/svg/folder-16.svg | 1 - src/icons/svg/folder-24.svg | 1 - src/icons/svg/folder-open-16.svg | 1 - src/icons/svg/folder-open-24.svg | 1 - src/icons/svg/fullscreen-16.svg | 1 - src/icons/svg/fullscreen-24.svg | 1 - src/icons/svg/fullscreen-exit-16.svg | 1 - src/icons/svg/fullscreen-exit-24.svg | 1 - src/icons/svg/home-16.svg | 1 - src/icons/svg/home-24.svg | 1 - src/icons/svg/image-16.svg | 1 - src/icons/svg/image-24.svg | 1 - src/icons/svg/import-items-24.svg | 1 - src/icons/svg/info-16.svg | 1 - src/icons/svg/info-24.svg | 1 - src/icons/svg/info-filled-16.svg | 1 - src/icons/svg/info-filled-24.svg | 1 - src/icons/svg/launch-16.svg | 1 - src/icons/svg/launch-24.svg | 1 - src/icons/svg/layout-columns-16.svg | 1 - src/icons/svg/layout-columns-24.svg | 1 - src/icons/svg/layout-rows-16.svg | 1 - src/icons/svg/layout-rows-24.svg | 1 - src/icons/svg/legend-16.svg | 1 - src/icons/svg/legend-24.svg | 1 - src/icons/svg/link-16.svg | 1 - src/icons/svg/link-24.svg | 1 - src/icons/svg/list-16.svg | 1 - src/icons/svg/list-24.svg | 1 - src/icons/svg/location-16.svg | 1 - src/icons/svg/location-24.svg | 1 - src/icons/svg/lock-16.svg | 1 - src/icons/svg/lock-24.svg | 1 - src/icons/svg/lock-open-16.svg | 1 - src/icons/svg/lock-open-24.svg | 1 - src/icons/svg/log-out-16.svg | 1 - src/icons/svg/log-out-24.svg | 1 - src/icons/svg/mail-16.svg | 1 - src/icons/svg/mail-24.svg | 1 - src/icons/svg/mail-open-16.svg | 1 - src/icons/svg/mail-open-24.svg | 1 - src/icons/svg/messages-16.svg | 1 - src/icons/svg/messages-24.svg | 1 - src/icons/svg/more-16.svg | 1 - src/icons/svg/more-24.svg | 1 - src/icons/svg/move-16.svg | 1 - src/icons/svg/move-24.svg | 1 - src/icons/svg/push-left-16.svg | 1 - src/icons/svg/push-left-24.svg | 1 - src/icons/svg/push-right-16.svg | 1 - src/icons/svg/push-right-24.svg | 1 - src/icons/svg/question-16.svg | 1 - src/icons/svg/question-24.svg | 1 - src/icons/svg/question-filled-16.svg | 1 - src/icons/svg/question-filled-24.svg | 1 - src/icons/svg/queue-16.svg | 1 - src/icons/svg/queue-24.svg | 1 - src/icons/svg/redo-16.svg | 1 - src/icons/svg/redo-24.svg | 1 - src/icons/svg/reorder-16.svg | 1 - src/icons/svg/reorder-24.svg | 1 - src/icons/svg/reply-16.svg | 1 - src/icons/svg/reply-24.svg | 1 - src/icons/svg/ruler-16.svg | 1 - src/icons/svg/ruler-24.svg | 1 - src/icons/svg/save-16.svg | 1 - src/icons/svg/save-24.svg | 1 - src/icons/svg/search-16.svg | 1 - src/icons/svg/search-24.svg | 1 - src/icons/svg/settings-16.svg | 1 - src/icons/svg/settings-24.svg | 1 - src/icons/svg/share-16.svg | 1 - src/icons/svg/share-24.svg | 1 - src/icons/svg/star-16.svg | 1 - src/icons/svg/star-24.svg | 1 - src/icons/svg/star-filled-16.svg | 1 - src/icons/svg/star-filled-24.svg | 1 - src/icons/svg/subscribe-16.svg | 1 - src/icons/svg/subscribe-24.svg | 1 - src/icons/svg/subscribe-off-16.svg | 1 - src/icons/svg/subscribe-off-24.svg | 1 - src/icons/svg/subtract-16.svg | 3 - src/icons/svg/subtract-24.svg | 3 - src/icons/svg/subtract-circle-16.svg | 1 - src/icons/svg/subtract-circle-24.svg | 1 - src/icons/svg/sync-16.svg | 1 - src/icons/svg/sync-24.svg | 1 - src/icons/svg/table-16.svg | 1 - src/icons/svg/table-24.svg | 1 - src/icons/svg/terminal-window-16.svg | 1 - src/icons/svg/terminal-window-24.svg | 1 - src/icons/svg/text-bold-16.svg | 1 - src/icons/svg/text-bold-24.svg | 1 - src/icons/svg/text-box-16.svg | 1 - src/icons/svg/text-box-24.svg | 1 - src/icons/svg/text-heading-16.svg | 3 - src/icons/svg/text-heading-24.svg | 3 - src/icons/svg/text-italic-16.svg | 1 - src/icons/svg/text-italic-24.svg | 1 - src/icons/svg/text-list-ordered-16.svg | 3 - src/icons/svg/text-list-ordered-24.svg | 3 - src/icons/svg/text-list-unordered-16.svg | 3 - src/icons/svg/text-list-unordered-24.svg | 3 - src/icons/svg/thumb-down-16.svg | 1 - src/icons/svg/thumb-down-24.svg | 1 - src/icons/svg/thumb-up-16.svg | 1 - src/icons/svg/thumb-up-24.svg | 1 - src/icons/svg/translate-16.svg | 1 - src/icons/svg/translate-24.svg | 1 - src/icons/svg/undo-16.svg | 1 - src/icons/svg/undo-24.svg | 1 - src/icons/svg/upload-16.svg | 1 - src/icons/svg/upload-24.svg | 1 - src/icons/svg/user-16.svg | 1 - src/icons/svg/user-24.svg | 1 - src/icons/svg/user-group-16.svg | 1 - src/icons/svg/user-group-24.svg | 1 - src/icons/svg/view-16.svg | 1 - src/icons/svg/view-24.svg | 1 - src/icons/svg/view-off-16.svg | 1 - src/icons/svg/view-off-24.svg | 1 - src/icons/svg/visualization-area-16.svg | 1 - src/icons/svg/visualization-area-24.svg | 3 - .../svg/visualization-area-stacked-16.svg | 1 - .../svg/visualization-area-stacked-24.svg | 3 - src/icons/svg/visualization-bar-16.svg | 1 - src/icons/svg/visualization-bar-24.svg | 3 - .../svg/visualization-bar-stacked-16.svg | 1 - .../svg/visualization-bar-stacked-24.svg | 3 - src/icons/svg/visualization-column-16.svg | 1 - src/icons/svg/visualization-column-24.svg | 3 - .../svg/visualization-column-multi-16.svg | 1 - .../svg/visualization-column-multi-24.svg | 3 - .../svg/visualization-column-stacked-16.svg | 1 - .../svg/visualization-column-stacked-24.svg | 3 - src/icons/svg/visualization-gauge-16.svg | 1 - src/icons/svg/visualization-gauge-24.svg | 3 - src/icons/svg/visualization-line-16.svg | 1 - src/icons/svg/visualization-line-24.svg | 3 - src/icons/svg/visualization-line-multi-16.svg | 1 - src/icons/svg/visualization-line-multi-24.svg | 3 - src/icons/svg/visualization-linelist-16.svg | 3 - src/icons/svg/visualization-linelist-24.svg | 3 - .../svg/visualization-outlier-table-16.svg | 3 - .../svg/visualization-outlier-table-24.svg | 3 - src/icons/svg/visualization-pie-16.svg | 1 - src/icons/svg/visualization-pie-24.svg | 3 - .../svg/visualization-pivot-table-16.svg | 3 - .../svg/visualization-pivot-table-24.svg | 3 - src/icons/svg/visualization-radar-16.svg | 1 - src/icons/svg/visualization-radar-24.svg | 3 - src/icons/svg/visualization-scatter-16.svg | 1 - src/icons/svg/visualization-scatter-24.svg | 3 - .../svg/visualization-single-value-16.svg | 1 - .../svg/visualization-single-value-24.svg | 3 - src/icons/svg/warning-16.svg | 1 - src/icons/svg/warning-24.svg | 1 - src/icons/svg/warning-filled-16.svg | 1 - src/icons/svg/warning-filled-24.svg | 1 - src/icons/svg/window-16.svg | 1 - src/icons/svg/window-24.svg | 1 - src/icons/svg/world-16.svg | 3 - src/icons/svg/world-24.svg | 1 - src/icons/templates/icon-template.js | 30 - src/icons/templates/index-template.js | 17 - src/index.js | 5 +- 1892 files changed, 1 insertion(+), 69095 deletions(-) rename src/{components => }/button/button-strip/button-strip.e2e.stories.js (100%) rename src/{components => }/button/button-strip/button-strip.js (100%) rename src/{components => }/button/button-strip/button-strip.prod.stories.js (100%) rename src/{components => }/button/button-strip/features/accepts_children.feature (100%) rename src/{components => }/button/button-strip/features/accepts_children/index.js (100%) rename src/{components => }/button/button-strip/index.js (100%) rename src/{components => }/button/button/__tests__/Button.test.js (100%) rename src/{components => }/button/button/button.e2e.stories.js (100%) rename src/{components => }/button/button/button.js (100%) rename src/{components => }/button/button/button.prod.stories.js (100%) rename src/{components => }/button/button/button.styles.js (100%) rename src/{components => }/button/button/features/can_be_blurred.feature (100%) rename src/{components => }/button/button/features/can_be_blurred/index.js (100%) rename src/{components => }/button/button/features/can_be_clicked.feature (100%) rename src/{components => }/button/button/features/can_be_clicked/index.js (100%) rename src/{components => }/button/button/features/can_be_focused.feature (100%) rename src/{components => }/button/button/features/can_be_focused/index.js (100%) rename src/{components => }/button/button/index.js (100%) rename src/{components => }/button/dropdown-button/__tests__/dropdown-button.test.js (100%) rename src/{components => }/button/dropdown-button/dropdown-button.e2e.stories.js (100%) rename src/{components => }/button/dropdown-button/dropdown-button.js (100%) rename src/{components => }/button/dropdown-button/dropdown-button.prod.stories.js (100%) rename src/{components => }/button/dropdown-button/features/accepts_children.feature (100%) rename src/{components => }/button/dropdown-button/features/accepts_children/index.js (100%) rename src/{components => }/button/dropdown-button/features/accepts_component.feature (100%) rename src/{components => }/button/dropdown-button/features/accepts_component/index.js (100%) rename src/{components => }/button/dropdown-button/features/accepts_icon.feature (100%) rename src/{components => }/button/dropdown-button/features/accepts_icon/index.js (100%) rename src/{components => }/button/dropdown-button/features/accepts_initial_focus.feature (100%) rename src/{components => }/button/dropdown-button/features/accepts_initial_focus/index.js (100%) rename src/{components => }/button/dropdown-button/features/button_is_clickable.feature (100%) rename src/{components => }/button/dropdown-button/features/button_is_clickable/index.js (100%) rename src/{components => }/button/dropdown-button/features/can_be_disabled.feature (100%) rename src/{components => }/button/dropdown-button/features/can_be_disabled/index.js (100%) rename src/{components => }/button/dropdown-button/features/common/index.js (100%) rename src/{components => }/button/dropdown-button/features/opens_a_dropdown.feature (100%) rename src/{components => }/button/dropdown-button/features/opens_a_dropdown/index.js (100%) rename src/{components => }/button/dropdown-button/index.js (100%) rename src/{components => }/button/index.js (100%) rename src/{components => }/button/split-button/features/accepts_children.feature (100%) rename src/{components => }/button/split-button/features/accepts_children/index.js (100%) rename src/{components => }/button/split-button/features/accepts_icon.feature (100%) rename src/{components => }/button/split-button/features/accepts_icon/index.js (100%) rename src/{components => }/button/split-button/features/accepts_initial_focus.feature (100%) rename src/{components => }/button/split-button/features/accepts_initial_focus/index.js (100%) rename src/{components => }/button/split-button/features/arrow_opens_menu.feature (100%) rename src/{components => }/button/split-button/features/arrow_opens_menu/index.js (100%) rename src/{components => }/button/split-button/features/button_is_clickable.feature (100%) rename src/{components => }/button/split-button/features/button_is_clickable/index.js (100%) rename src/{components => }/button/split-button/features/can_be_disabled.feature (100%) rename src/{components => }/button/split-button/features/can_be_disabled/index.js (100%) rename src/{components => }/button/split-button/features/common/index.js (100%) rename src/{components => }/button/split-button/index.js (100%) rename src/{components => }/button/split-button/split-button.e2e.stories.js (100%) rename src/{components => }/button/split-button/split-button.js (100%) rename src/{components => }/button/split-button/split-button.prod.stories.js (100%) rename src/{components => }/button/split-button/split-button.test.js (100%) delete mode 100644 src/components/alert/alert-bar/action.js delete mode 100644 src/components/alert/alert-bar/actions.js delete mode 100644 src/components/alert/alert-bar/alert-bar.e2e.stories.js delete mode 100644 src/components/alert/alert-bar/alert-bar.js delete mode 100644 src/components/alert/alert-bar/alert-bar.prod.stories.js delete mode 100644 src/components/alert/alert-bar/alert-bar.styles.js delete mode 100644 src/components/alert/alert-bar/dismiss.js delete mode 100644 src/components/alert/alert-bar/features/api.feature delete mode 100644 src/components/alert/alert-bar/features/api/index.js delete mode 100644 src/components/alert/alert-bar/features/common/index.js delete mode 100644 src/components/alert/alert-bar/features/hide.feature delete mode 100644 src/components/alert/alert-bar/features/hide/index.js delete mode 100644 src/components/alert/alert-bar/icon.js delete mode 100644 src/components/alert/alert-bar/index.js delete mode 100644 src/components/alert/alert-bar/message.js delete mode 100644 src/components/alert/alert-stack/alert-stack.e2e.stories.js delete mode 100644 src/components/alert/alert-stack/alert-stack.js delete mode 100644 src/components/alert/alert-stack/alert-stack.prod.stories.js delete mode 100644 src/components/alert/alert-stack/features/render_children.feature delete mode 100644 src/components/alert/alert-stack/features/render_children/alertbars.js delete mode 100644 src/components/alert/alert-stack/index.js delete mode 100644 src/components/alert/index.js delete mode 100644 src/components/box/box.e2e.stories.js delete mode 100644 src/components/box/box.js delete mode 100644 src/components/box/box.prod.stories.js delete mode 100644 src/components/box/features/accepts_children.feature delete mode 100644 src/components/box/features/accepts_children/index.js delete mode 100644 src/components/box/features/accepts_multiple_props.feature delete mode 100644 src/components/box/features/accepts_multiple_props/index.js delete mode 100644 src/components/box/index.js delete mode 100644 src/components/calendar/__e2e__/calendar-input.e2e.stories.js delete mode 100644 src/components/calendar/calendar-input/calendar-input.js delete mode 100644 src/components/calendar/calendar/calendar-table-cell.js delete mode 100644 src/components/calendar/calendar/calendar-table-days-header.js delete mode 100644 src/components/calendar/calendar/calendar-table.js delete mode 100644 src/components/calendar/calendar/calendar.js delete mode 100644 src/components/calendar/calendar/navigation-container.js delete mode 100644 src/components/calendar/features/supports_calendar_clear_button.feature delete mode 100644 src/components/calendar/features/supports_calendar_clear_button/supports_calendar_clear_button.js delete mode 100644 src/components/calendar/features/supports_ethiopic_calendar.feature delete mode 100644 src/components/calendar/features/supports_ethiopic_calendar/supports_ethiopic_calendar.js delete mode 100644 src/components/calendar/features/supports_gregorian_calendar.feature delete mode 100644 src/components/calendar/features/supports_gregorian_calendar/supports_gregorian_calendar.js delete mode 100644 src/components/calendar/features/supports_islamic_calendar.feature delete mode 100644 src/components/calendar/features/supports_islamic_calendar/supports_islamic_calendar.js delete mode 100644 src/components/calendar/features/supports_nepali_calendar.feature delete mode 100644 src/components/calendar/features/supports_nepali_calendar/supports_nepali_calendar.js delete mode 100644 src/components/calendar/index.js delete mode 100644 src/components/calendar/stories/calendar-input.prod.stories.js delete mode 100644 src/components/calendar/stories/calendar-story-wrapper.js delete mode 100644 src/components/calendar/stories/calendar.prod.stories.js delete mode 100644 src/components/card/card.e2e.stories.js delete mode 100644 src/components/card/card.js delete mode 100644 src/components/card/card.prod.stories.js delete mode 100644 src/components/card/features/accepts_children.feature delete mode 100644 src/components/card/features/accepts_children/index.js delete mode 100644 src/components/card/index.js delete mode 100644 src/components/center/center.js delete mode 100644 src/components/center/center.prod.stories.js delete mode 100644 src/components/center/index.js delete mode 100644 src/components/checkbox/checkbox-field/__tests__/checkbox-field.test.js delete mode 100644 src/components/checkbox/checkbox-field/checkbox-field.e2e.stories.js delete mode 100644 src/components/checkbox/checkbox-field/checkbox-field.js delete mode 100644 src/components/checkbox/checkbox-field/checkbox-field.prod.stories.js delete mode 100644 src/components/checkbox/checkbox-field/features/accepts_help_text.feature delete mode 100644 src/components/checkbox/checkbox-field/features/accepts_help_text/index.js delete mode 100644 src/components/checkbox/checkbox-field/features/accepts_label.feature delete mode 100644 src/components/checkbox/checkbox-field/features/accepts_label/index.js delete mode 100644 src/components/checkbox/checkbox-field/features/accepts_validation_text.feature delete mode 100644 src/components/checkbox/checkbox-field/features/accepts_validation_text/index.js delete mode 100644 src/components/checkbox/checkbox-field/features/can_be_required.feature delete mode 100644 src/components/checkbox/checkbox-field/features/can_be_required/index.js delete mode 100644 src/components/checkbox/checkbox-field/index.js delete mode 100644 src/components/checkbox/checkbox/__tests__/checkbox.test.js delete mode 100644 src/components/checkbox/checkbox/checkbox-icon.js delete mode 100644 src/components/checkbox/checkbox/checkbox.e2e.stories.js delete mode 100644 src/components/checkbox/checkbox/checkbox.js delete mode 100644 src/components/checkbox/checkbox/checkbox.prod.stories.js delete mode 100644 src/components/checkbox/checkbox/features/accepts_initial_focus.feature delete mode 100644 src/components/checkbox/checkbox/features/accepts_initial_focus/index.js delete mode 100644 src/components/checkbox/checkbox/features/accepts_label.feature delete mode 100644 src/components/checkbox/checkbox/features/accepts_label/index.js delete mode 100644 src/components/checkbox/checkbox/features/can_be_blurred.feature delete mode 100644 src/components/checkbox/checkbox/features/can_be_blurred/index.js delete mode 100644 src/components/checkbox/checkbox/features/can_be_changed.feature delete mode 100644 src/components/checkbox/checkbox/features/can_be_changed/index.js delete mode 100644 src/components/checkbox/checkbox/features/can_be_disabled.feature delete mode 100644 src/components/checkbox/checkbox/features/can_be_disabled/index.js delete mode 100644 src/components/checkbox/checkbox/features/can_be_focused.feature delete mode 100644 src/components/checkbox/checkbox/features/can_be_focused/index.js delete mode 100644 src/components/checkbox/checkbox/features/has_indeterminate_prop.feature delete mode 100644 src/components/checkbox/checkbox/features/has_indeterminate_prop/index.js delete mode 100644 src/components/checkbox/checkbox/index.js delete mode 100644 src/components/checkbox/index.js delete mode 100644 src/components/chip/chip.e2e.stories.js delete mode 100644 src/components/chip/chip.js delete mode 100644 src/components/chip/chip.prod.stories.js delete mode 100644 src/components/chip/content.js delete mode 100644 src/components/chip/features/accepts_children.feature delete mode 100644 src/components/chip/features/accepts_children/index.js delete mode 100644 src/components/chip/features/accepts_icon.feature delete mode 100644 src/components/chip/features/accepts_icon/index.js delete mode 100644 src/components/chip/features/is_clickable.feature delete mode 100644 src/components/chip/features/is_clickable/index.js delete mode 100644 src/components/chip/features/is_removable.feature delete mode 100644 src/components/chip/features/is_removable/index.js delete mode 100644 src/components/chip/icon.js delete mode 100644 src/components/chip/index.js delete mode 100644 src/components/chip/remove.js delete mode 100644 src/components/cover/cover.e2e.stories.js delete mode 100644 src/components/cover/cover.js delete mode 100644 src/components/cover/cover.prod.stories.js delete mode 100644 src/components/cover/features/accepts_children.feature delete mode 100644 src/components/cover/features/accepts_children/index.js delete mode 100644 src/components/cover/features/click_behavior.feature delete mode 100644 src/components/cover/features/click_behavior/index.js delete mode 100644 src/components/cover/index.js delete mode 100644 src/components/css/css-reset/css-reset.js delete mode 100644 src/components/css/css-reset/css-reset.prod.stories.js delete mode 100644 src/components/css/css-reset/index.js delete mode 100644 src/components/css/css-variables/css-variables.e2e.stories.js delete mode 100644 src/components/css/css-variables/css-variables.js delete mode 100644 src/components/css/css-variables/css-variables.prod.stories.js delete mode 100644 src/components/css/css-variables/features/sets_variables.feature delete mode 100644 src/components/css/css-variables/features/sets_variables/index.js delete mode 100644 src/components/css/css-variables/index.js delete mode 100644 src/components/css/index.js delete mode 100644 src/components/divider/divider.js delete mode 100644 src/components/divider/divider.prod.stories.js delete mode 100644 src/components/divider/index.js delete mode 100644 src/components/field/field-group/features/can_be_required.feature delete mode 100644 src/components/field/field-group/features/can_be_required/index.js delete mode 100644 src/components/field/field-group/field-group.e2e.stories.js delete mode 100644 src/components/field/field-group/field-group.js delete mode 100644 src/components/field/field-group/field-group.prod.stories.js delete mode 100644 src/components/field/field-group/index.js delete mode 100644 src/components/field/field-set/features/accepts_children.feature delete mode 100644 src/components/field/field-set/features/accepts_children/index.js delete mode 100644 src/components/field/field-set/field-set.e2e.stories.js delete mode 100644 src/components/field/field-set/field-set.js delete mode 100644 src/components/field/field-set/field-set.prod.stories.js delete mode 100644 src/components/field/field-set/index.js delete mode 100644 src/components/field/field/features/accepts_children.feature delete mode 100644 src/components/field/field/features/accepts_children/index.js delete mode 100644 src/components/field/field/field.e2e.stories.js delete mode 100644 src/components/field/field/field.js delete mode 100644 src/components/field/field/field.prod.stories.js delete mode 100644 src/components/field/field/index.js delete mode 100644 src/components/field/index.js delete mode 100644 src/components/file-input/file-input-field-with-list/__tests__/file-input-field-with-list.test.js delete mode 100644 src/components/file-input/file-input-field-with-list/features/common/index.js delete mode 100644 src/components/file-input/file-input-field-with-list/features/deduplicates_the_file_list.feature delete mode 100644 src/components/file-input/file-input-field-with-list/features/deduplicates_the_file_list/index.js delete mode 100644 src/components/file-input/file-input-field-with-list/features/disables_button_when_full.feature delete mode 100644 src/components/file-input/file-input-field-with-list/features/disables_button_when_full/index.js delete mode 100644 src/components/file-input/file-input-field-with-list/features/displays_files_in_a_list.feature delete mode 100644 src/components/file-input/file-input-field-with-list/features/displays_files_in_a_list/index.js delete mode 100644 src/components/file-input/file-input-field-with-list/features/files_can_be_removed.feature delete mode 100644 src/components/file-input/file-input-field-with-list/features/files_can_be_removed/index.js delete mode 100644 src/components/file-input/file-input-field-with-list/features/has_default_button_label.feature delete mode 100644 src/components/file-input/file-input-field-with-list/features/has_default_button_label/index.js delete mode 100644 src/components/file-input/file-input-field-with-list/features/has_default_placeholder.feature delete mode 100644 src/components/file-input/file-input-field-with-list/features/has_default_placeholder/index.js delete mode 100644 src/components/file-input/file-input-field-with-list/features/has_default_remove_text.feature delete mode 100644 src/components/file-input/file-input-field-with-list/features/has_default_remove_text/index.js delete mode 100644 src/components/file-input/file-input-field-with-list/file-input-field-with-list.e2e.stories.js delete mode 100644 src/components/file-input/file-input-field-with-list/file-input-field-with-list.js delete mode 100644 src/components/file-input/file-input-field-with-list/file-input-field-with-list.prod.stories.js delete mode 100644 src/components/file-input/file-input-field-with-list/file-list-item-with-remove.js delete mode 100644 src/components/file-input/file-input-field-with-list/index.js delete mode 100644 src/components/file-input/file-input-field/__tests__/file-input-field.test.js delete mode 100644 src/components/file-input/file-input-field/features/can_be_required.feature delete mode 100644 src/components/file-input/file-input-field/features/can_be_required/index.js delete mode 100644 src/components/file-input/file-input-field/features/has_default_button_label.feature delete mode 100644 src/components/file-input/file-input-field/features/has_default_button_label/index.js delete mode 100644 src/components/file-input/file-input-field/features/has_default_placeholder.feature delete mode 100644 src/components/file-input/file-input-field/features/has_default_placeholder/index.js delete mode 100644 src/components/file-input/file-input-field/file-input-field.e2e.stories.js delete mode 100644 src/components/file-input/file-input-field/file-input-field.js delete mode 100644 src/components/file-input/file-input-field/file-input-field.prod.stories.js delete mode 100644 src/components/file-input/file-input-field/index.js delete mode 100644 src/components/file-input/file-input/__tests__/file-input.test.js delete mode 100644 src/components/file-input/file-input/features/accepts_multiple_files.feature delete mode 100644 src/components/file-input/file-input/features/accepts_multiple_files/index.js delete mode 100644 src/components/file-input/file-input/features/can_be_blurred.feature delete mode 100644 src/components/file-input/file-input/features/can_be_blurred/index.js delete mode 100644 src/components/file-input/file-input/features/can_be_changed.feature delete mode 100644 src/components/file-input/file-input/features/can_be_changed/index.js delete mode 100644 src/components/file-input/file-input/features/can_be_focused.feature delete mode 100644 src/components/file-input/file-input/features/can_be_focused/index.js delete mode 100644 src/components/file-input/file-input/features/common/index.js delete mode 100644 src/components/file-input/file-input/file-input.e2e.stories.js delete mode 100644 src/components/file-input/file-input/file-input.js delete mode 100644 src/components/file-input/file-input/file-input.prod.stories.js delete mode 100644 src/components/file-input/file-input/index.js delete mode 100644 src/components/file-input/file-list/features/accepts_cancel_text.feature delete mode 100644 src/components/file-input/file-list/features/accepts_cancel_text/index.js delete mode 100644 src/components/file-input/file-list/features/accepts_label.feature delete mode 100644 src/components/file-input/file-list/features/accepts_label/index.js delete mode 100644 src/components/file-input/file-list/features/accepts_remove_text.feature delete mode 100644 src/components/file-input/file-list/features/accepts_remove_text/index.js delete mode 100644 src/components/file-input/file-list/features/can_be_removed.feature delete mode 100644 src/components/file-input/file-list/features/can_be_removed/index.js delete mode 100644 src/components/file-input/file-list/features/file-list-item-accepts_children.feature delete mode 100644 src/components/file-input/file-list/features/file-list-item-accepts_children/index.js delete mode 100644 src/components/file-input/file-list/features/file-list-placeholder-accepts_children.feature delete mode 100644 src/components/file-input/file-list/features/file-list-placeholder-accepts_children/index.js delete mode 100644 src/components/file-input/file-list/features/loading_can_be_cancelled.feature delete mode 100644 src/components/file-input/file-list/features/loading_can_be_cancelled/index.js delete mode 100644 src/components/file-input/file-list/file-list-item.e2e.stories.js delete mode 100644 src/components/file-input/file-list/file-list-item.js delete mode 100644 src/components/file-input/file-list/file-list-placeholder.e2e.stories.js delete mode 100644 src/components/file-input/file-list/file-list-placeholder.js delete mode 100644 src/components/file-input/file-list/file-list.e2e.stories.js delete mode 100644 src/components/file-input/file-list/file-list.js delete mode 100644 src/components/file-input/file-list/index.js delete mode 100644 src/components/file-input/index.js delete mode 100644 src/components/header-bar/__e2e__/header-bar.e2e.stories.js delete mode 100644 src/components/header-bar/__e2e__/stories/common.js delete mode 100644 src/components/header-bar/__e2e__/stories/custom-application-title.js delete mode 100644 src/components/header-bar/__e2e__/stories/default.js delete mode 100644 src/components/header-bar/__e2e__/stories/me-with-avatar.js delete mode 100644 src/components/header-bar/__e2e__/stories/modulesWithSpecialCharacters.js delete mode 100644 src/components/header-bar/__e2e__/stories/online-status-message.js delete mode 100644 src/components/header-bar/__e2e__/stories/pwa-enabled.js delete mode 100644 src/components/header-bar/__e2e__/stories/user-has-all-authority.js delete mode 100644 src/components/header-bar/__e2e__/stories/user-has-no-authorities.js delete mode 100644 src/components/header-bar/__e2e__/stories/user-has-web-interpretation-and-messaging-authority.js delete mode 100644 src/components/header-bar/__e2e__/stories/user-has-web-interpretation-authority.js delete mode 100644 src/components/header-bar/__e2e__/stories/user-has-web-messaging-authority.js delete mode 100644 src/components/header-bar/__e2e__/stories/with-debug-info-edge-cases.js delete mode 100644 src/components/header-bar/__e2e__/stories/with-special-app-name-character.js delete mode 100644 src/components/header-bar/__e2e__/stories/with-update-available-notification.js delete mode 100644 src/components/header-bar/__e2e__/stories/zero-unread-interpretations.js delete mode 100644 src/components/header-bar/__e2e__/stories/zero-unread-messages.js delete mode 100755 src/components/header-bar/apps.js delete mode 100644 src/components/header-bar/debug-info/debug-info-menu-item.js delete mode 100644 src/components/header-bar/debug-info/debug-info-modal.js delete mode 100644 src/components/header-bar/debug-info/debug-info-table.js delete mode 100644 src/components/header-bar/debug-info/use-debug-info.js delete mode 100644 src/components/header-bar/features/common/index.js delete mode 100644 src/components/header-bar/features/the_headerbar_can_display_online_status.feature delete mode 100644 src/components/header-bar/features/the_headerbar_can_display_online_status/the_headerbar_displays_online_status.js delete mode 100644 src/components/header-bar/features/the_headerbar_conditionally_renders_notification_icons.feature delete mode 100644 src/components/header-bar/features/the_headerbar_conditionally_renders_notification_icons/the_headerbar_conditionally_renders_notification_icons.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_menu_to_all_apps.feature delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_menu_to_all_apps/common.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_menu_to_all_apps/the_app_menu_closes_when_the_user_clicks_outside.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_menu_to_all_apps/the_headerbar_contains_a_menu_icon.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_menu_to_all_apps/the_user_will_be_offered_a_menu_with_5_apps.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu.feature delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/common.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_a_text_icon_if_the_user_does_not_have_an_avatar.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_an_image_icon_if_the_user_has_an_avatar.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_menu_is_closed_by_default.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_menu_opens.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_profile_menu_closes_when_the_user_clicks_outside.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_user_can_edit_his_profile.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_his_account.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_about_dhis2_page.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_help_page.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_settings.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_user_can_log_out.js delete mode 100644 src/components/header-bar/features/the_headerbar_contains_a_profile_menu/the_user_name_and_email_are_displayed.js delete mode 100644 src/components/header-bar/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count.feature delete mode 100644 src/components/header-bar/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/the_headerbar_displays_a_link_to_the_interpretations.js delete mode 100644 src/components/header-bar/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_no_unread_interpretations.js delete mode 100644 src/components/header-bar/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_some_unread_interpretations.js delete mode 100644 src/components/header-bar/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count.feature delete mode 100644 src/components/header-bar/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/the_headerbar_displays_a_link_to_the_messages.js delete mode 100644 src/components/header-bar/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_no_unread_messages.js delete mode 100644 src/components/header-bar/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_some_unread_messages.js delete mode 100644 src/components/header-bar/features/the_headerbar_should_contain_a_logo_that_links_to_the_homepage.feature delete mode 100644 src/components/header-bar/features/the_headerbar_should_contain_a_logo_that_links_to_the_homepage/headerbar_contains_logo.js delete mode 100644 src/components/header-bar/features/the_headerbar_should_display_app_update_notification.feature delete mode 100644 src/components/header-bar/features/the_headerbar_should_display_app_update_notification/index.js delete mode 100644 src/components/header-bar/features/the_headerbar_should_display_debug_version_infos.feature delete mode 100644 src/components/header-bar/features/the_headerbar_should_display_debug_version_infos/index.js delete mode 100644 src/components/header-bar/features/the_headerbar_should_display_the_title_provided_by_the_backend_and_the_app.feature delete mode 100644 src/components/header-bar/features/the_headerbar_should_display_the_title_provided_by_the_backend_and_the_app/the_headerbar_displays_the_custom_title.js delete mode 100644 src/components/header-bar/features/the_search_should_escape_regexp_character.feature delete mode 100644 src/components/header-bar/features/the_search_should_escape_regexp_character/common.js delete mode 100644 src/components/header-bar/features/the_search_should_escape_regexp_character/the_modules_do_not_contain_items_with_special_chars.js delete mode 100644 src/components/header-bar/features/the_search_should_escape_regexp_character/the_user_searches_for_an_app_with_a_regex_character.js delete mode 100644 src/components/header-bar/header-bar-context.js delete mode 100755 src/components/header-bar/header-bar.js delete mode 100644 src/components/header-bar/header-bar.prod.stories.js delete mode 100644 src/components/header-bar/index.js delete mode 100644 src/components/header-bar/join-path.js delete mode 100644 src/components/header-bar/logo-image.js delete mode 100755 src/components/header-bar/logo.js delete mode 100755 src/components/header-bar/notification-icon.js delete mode 100755 src/components/header-bar/notifications.js delete mode 100644 src/components/header-bar/online-status.js delete mode 100644 src/components/header-bar/online-status.styles.js delete mode 100644 src/components/header-bar/profile-menu/index.js delete mode 100755 src/components/header-bar/profile-menu/profile-header.js delete mode 100755 src/components/header-bar/profile-menu/profile-menu.js delete mode 100644 src/components/header-bar/profile-menu/update-notification.js delete mode 100755 src/components/header-bar/profile.js delete mode 100644 src/components/header-bar/profile/use-on-doc-click.js delete mode 100644 src/components/header-bar/profile/use-on-doc-click.test.js delete mode 100755 src/components/header-bar/title.js delete mode 100644 src/components/help/features/accepts_children.feature delete mode 100644 src/components/help/features/accepts_children/index.js delete mode 100644 src/components/help/help.e2e.stories.js delete mode 100644 src/components/help/help.js delete mode 100644 src/components/help/help.prod.stories.js delete mode 100644 src/components/help/index.js delete mode 100644 src/components/index.js delete mode 100644 src/components/input/index.js delete mode 100644 src/components/input/input-field/__tests__/input-field.test.js delete mode 100644 src/components/input/input-field/features/can_be_required.feature delete mode 100644 src/components/input/input-field/features/can_be_required/index.js delete mode 100644 src/components/input/input-field/index.js delete mode 100644 src/components/input/input-field/input-field.e2e.stories.js delete mode 100644 src/components/input/input-field/input-field.js delete mode 100644 src/components/input/input-field/input-field.prod.stories.js delete mode 100644 src/components/input/input/__tests__/input.test.js delete mode 100644 src/components/input/input/features/accepts_initial_focus.feature delete mode 100644 src/components/input/input/features/accepts_initial_focus/index.js delete mode 100644 src/components/input/input/features/can_be_blurred.feature delete mode 100644 src/components/input/input/features/can_be_blurred/index.js delete mode 100644 src/components/input/input/features/can_be_changed.feature delete mode 100644 src/components/input/input/features/can_be_changed/index.js delete mode 100644 src/components/input/input/features/can_be_disabled.feature delete mode 100644 src/components/input/input/features/can_be_disabled/index.js delete mode 100644 src/components/input/input/features/can_be_focused.feature delete mode 100644 src/components/input/input/features/can_be_focused/index.js delete mode 100644 src/components/input/input/index.js delete mode 100644 src/components/input/input/input.e2e.stories.js delete mode 100644 src/components/input/input/input.js delete mode 100644 src/components/input/input/input.prod.stories.js delete mode 100644 src/components/intersection-detector/features/Visibility_notification.feature delete mode 100644 src/components/intersection-detector/features/Visibility_notification/index.js delete mode 100644 src/components/intersection-detector/index.js delete mode 100644 src/components/intersection-detector/intersection-detector.e2e.stories.js delete mode 100644 src/components/intersection-detector/intersection-detector.js delete mode 100644 src/components/intersection-detector/intersection-detector.prod.stories.js delete mode 100644 src/components/label/features/accepts_children.feature delete mode 100644 src/components/label/features/accepts_children/index.js delete mode 100644 src/components/label/features/can_be_required.feature delete mode 100644 src/components/label/features/can_be_required/index.js delete mode 100644 src/components/label/index.js delete mode 100644 src/components/label/label.e2e.stories.js delete mode 100644 src/components/label/label.js delete mode 100644 src/components/layer/features/accepts_children.feature delete mode 100644 src/components/layer/features/accepts_children/index.js delete mode 100644 src/components/layer/features/click_behavior.feature delete mode 100644 src/components/layer/features/click_behavior/index.js delete mode 100644 src/components/layer/features/stacking.feature delete mode 100644 src/components/layer/features/stacking/index.js delete mode 100644 src/components/layer/index.js delete mode 100644 src/components/layer/layer-context.js delete mode 100644 src/components/layer/layer.e2e.stories.js delete mode 100644 src/components/layer/layer.js delete mode 100644 src/components/layer/layer.prod.stories.js delete mode 100644 src/components/layer/use-layer-context.js delete mode 100644 src/components/legend/features/accepts_children.feature delete mode 100644 src/components/legend/features/accepts_children/index.js delete mode 100644 src/components/legend/features/can_be_required.feature delete mode 100644 src/components/legend/features/can_be_required/index.js delete mode 100644 src/components/legend/index.js delete mode 100644 src/components/legend/legend.e2e.stories.js delete mode 100644 src/components/legend/legend.js delete mode 100644 src/components/legend/legend.prod.stories.js delete mode 100644 src/components/loader/circular-loader/__tests__/circular-loader.test.js delete mode 100644 src/components/loader/circular-loader/circular-loader.js delete mode 100644 src/components/loader/circular-loader/circular-loader.prod.stories.js delete mode 100644 src/components/loader/circular-loader/index.js delete mode 100644 src/components/loader/index.js delete mode 100644 src/components/loader/linear-loader/__tests__/linear-loader.test.js delete mode 100644 src/components/loader/linear-loader/index.js delete mode 100644 src/components/loader/linear-loader/linear-loader.js delete mode 100644 src/components/loader/linear-loader/linear-loader.prod.stories.js delete mode 100644 src/components/logo/index.js delete mode 100644 src/components/logo/logo-icon-svg.js delete mode 100644 src/components/logo/logo-svg.js delete mode 100644 src/components/logo/logo.js delete mode 100644 src/components/logo/logo.prod.stories.js delete mode 100644 src/components/menu/flyout-menu/__tests__/flyout-menu.test.js delete mode 100644 src/components/menu/flyout-menu/features/accepts_children.feature delete mode 100644 src/components/menu/flyout-menu/features/accepts_children/index.js delete mode 100644 src/components/menu/flyout-menu/features/position.feature delete mode 100644 src/components/menu/flyout-menu/features/position/index.js delete mode 100644 src/components/menu/flyout-menu/features/toggles_submenus.feature delete mode 100644 src/components/menu/flyout-menu/features/toggles_submenus/index.js delete mode 100644 src/components/menu/flyout-menu/flyout-menu.e2e.stories.js delete mode 100644 src/components/menu/flyout-menu/flyout-menu.js delete mode 100644 src/components/menu/flyout-menu/flyout-menu.prod.stories.js delete mode 100644 src/components/menu/flyout-menu/index.js delete mode 100644 src/components/menu/index.js delete mode 100644 src/components/menu/menu-divider/index.js delete mode 100644 src/components/menu/menu-divider/menu-divider.js delete mode 100644 src/components/menu/menu-divider/menu-divider.prod.stories.js delete mode 100644 src/components/menu/menu-item/__tests__/menu-item.test.js delete mode 100644 src/components/menu/menu-item/features/accepts_href.feature delete mode 100644 src/components/menu/menu-item/features/accepts_href/index.js delete mode 100644 src/components/menu/menu-item/features/accepts_icon.feature delete mode 100644 src/components/menu/menu-item/features/accepts_icon/index.js delete mode 100644 src/components/menu/menu-item/features/accepts_label.feature delete mode 100644 src/components/menu/menu-item/features/accepts_label/index.js delete mode 100644 src/components/menu/menu-item/features/accepts_suffix.feature delete mode 100644 src/components/menu/menu-item/features/accepts_suffix/index.js delete mode 100644 src/components/menu/menu-item/features/accepts_target.feature delete mode 100644 src/components/menu/menu-item/features/accepts_target/index.js delete mode 100644 src/components/menu/menu-item/features/is_clickable.feature delete mode 100644 src/components/menu/menu-item/features/is_clickable/index.js delete mode 100644 src/components/menu/menu-item/index.js delete mode 100644 src/components/menu/menu-item/menu-item.e2e.stories.js delete mode 100644 src/components/menu/menu-item/menu-item.js delete mode 100644 src/components/menu/menu-item/menu-item.prod.stories.js delete mode 100644 src/components/menu/menu-item/menu-item.styles.js delete mode 100644 src/components/menu/menu-section-header/features/accepts_label.feature delete mode 100644 src/components/menu/menu-section-header/features/accepts_label/index.js delete mode 100644 src/components/menu/menu-section-header/index.js delete mode 100644 src/components/menu/menu-section-header/menu-section-header.e2e.stories.js delete mode 100644 src/components/menu/menu-section-header/menu-section-header.js delete mode 100644 src/components/menu/menu-section-header/menu-section-header.prod.stories.js delete mode 100644 src/components/menu/menu/__tests__/menu.test.js delete mode 100644 src/components/menu/menu/features/accepts_children.feature delete mode 100644 src/components/menu/menu/features/accepts_children/index.js delete mode 100644 src/components/menu/menu/helpers.js delete mode 100644 src/components/menu/menu/index.js delete mode 100644 src/components/menu/menu/menu.e2e.stories.js delete mode 100644 src/components/menu/menu/menu.js delete mode 100644 src/components/menu/menu/menu.prod.stories.js delete mode 100644 src/components/menu/menu/use-menu.js delete mode 100644 src/components/modal/index.js delete mode 100644 src/components/modal/modal-actions/features/accepts_children.feature delete mode 100644 src/components/modal/modal-actions/features/accepts_children/index.js delete mode 100644 src/components/modal/modal-actions/index.js delete mode 100644 src/components/modal/modal-actions/modal-actions.e2e.stories.js delete mode 100644 src/components/modal/modal-actions/modal-actions.js delete mode 100644 src/components/modal/modal-content/features/accepts_children.feature delete mode 100644 src/components/modal/modal-content/features/accepts_children/index.js delete mode 100644 src/components/modal/modal-content/index.js delete mode 100644 src/components/modal/modal-content/modal-content.e2e.stories.js delete mode 100644 src/components/modal/modal-content/modal-content.js delete mode 100644 src/components/modal/modal-title/features/accepts_children.feature delete mode 100644 src/components/modal/modal-title/features/accepts_children/index.js delete mode 100644 src/components/modal/modal-title/index.js delete mode 100644 src/components/modal/modal-title/modal-title.e2e.stories.js delete mode 100644 src/components/modal/modal-title/modal-title.js delete mode 100644 src/components/modal/modal/close-button.js delete mode 100644 src/components/modal/modal/features/accepts_children.feature delete mode 100644 src/components/modal/modal/features/accepts_children/index.js delete mode 100644 src/components/modal/modal/features/can_be_closed.feature delete mode 100644 src/components/modal/modal/features/can_be_closed/index.js delete mode 100644 src/components/modal/modal/features/does_not_unmount_children_when_hiding.feature delete mode 100644 src/components/modal/modal/features/does_not_unmount_children_when_hiding/index.js delete mode 100644 src/components/modal/modal/index.js delete mode 100644 src/components/modal/modal/modal.e2e.stories.js delete mode 100644 src/components/modal/modal/modal.js delete mode 100644 src/components/modal/modal/modal.prod.stories.js delete mode 100644 src/components/modal/modal/modal.test.js delete mode 100644 src/components/node/features/accepts_children.feature delete mode 100644 src/components/node/features/accepts_children/index.js delete mode 100644 src/components/node/features/accepts_component.feature delete mode 100644 src/components/node/features/accepts_component/index.js delete mode 100644 src/components/node/features/accepts_icon.feature delete mode 100644 src/components/node/features/accepts_icon/index.js delete mode 100644 src/components/node/features/can_be_closed.feature delete mode 100644 src/components/node/features/can_be_closed/index.js delete mode 100644 src/components/node/features/can_be_opened.feature delete mode 100644 src/components/node/features/can_be_opened/index.js delete mode 100644 src/components/node/index.js delete mode 100644 src/components/node/leaves.js delete mode 100644 src/components/node/node.e2e.stories.js delete mode 100644 src/components/node/node.js delete mode 100644 src/components/node/node.prod.stories.js delete mode 100644 src/components/node/spacer.js delete mode 100644 src/components/node/toggle.js delete mode 100644 src/components/notice-box/__tests__/__snapshots__/notice-box-icon.test.js.snap delete mode 100644 src/components/notice-box/__tests__/notice-box-icon.test.js delete mode 100644 src/components/notice-box/__tests__/notice-box-message.test.js delete mode 100644 src/components/notice-box/__tests__/notice-box-title.test.js delete mode 100644 src/components/notice-box/features/accepts_children.feature delete mode 100644 src/components/notice-box/features/accepts_children/index.js delete mode 100644 src/components/notice-box/features/accepts_title.feature delete mode 100644 src/components/notice-box/features/accepts_title/index.js delete mode 100644 src/components/notice-box/index.js delete mode 100644 src/components/notice-box/notice-box-content.js delete mode 100644 src/components/notice-box/notice-box-icon.js delete mode 100644 src/components/notice-box/notice-box-message.js delete mode 100644 src/components/notice-box/notice-box-title.js delete mode 100644 src/components/notice-box/notice-box.e2e.stories.js delete mode 100644 src/components/notice-box/notice-box.js delete mode 100644 src/components/notice-box/notice-box.prod.stories.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/children_as_child_nodes.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/common.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/controlled_expanded.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/displaying_loading_error.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/expanded.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/force_reload.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/get-organisation-unit-data.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/highlight.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/loading_state.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/multi_selection.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/namespace.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/no_selection.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/path_based_filtering.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/single_selection.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/sub_unit_as_root.js delete mode 100644 src/components/organisation-unit-tree/__e2e__/tree_api.js delete mode 100644 src/components/organisation-unit-tree/__stories__/collapsed.js delete mode 100644 src/components/organisation-unit-tree/__stories__/custom-expanded-imperative-open.js delete mode 100644 src/components/organisation-unit-tree/__stories__/custom-node-label.js delete mode 100644 src/components/organisation-unit-tree/__stories__/development-stories.js delete mode 100644 src/components/organisation-unit-tree/__stories__/expanded.js delete mode 100644 src/components/organisation-unit-tree/__stories__/filtered-root.js delete mode 100644 src/components/organisation-unit-tree/__stories__/filtered.js delete mode 100644 src/components/organisation-unit-tree/__stories__/force-reload-all.js delete mode 100644 src/components/organisation-unit-tree/__stories__/force-reload-one-unit.js delete mode 100644 src/components/organisation-unit-tree/__stories__/highlighted.js delete mode 100644 src/components/organisation-unit-tree/__stories__/indeterminate.js delete mode 100644 src/components/organisation-unit-tree/__stories__/loading-error-grandchild.js delete mode 100644 src/components/organisation-unit-tree/__stories__/loading.js delete mode 100644 src/components/organisation-unit-tree/__stories__/multiple-roots.js delete mode 100644 src/components/organisation-unit-tree/__stories__/no-selection.js delete mode 100644 src/components/organisation-unit-tree/__stories__/replace-roots.js delete mode 100644 src/components/organisation-unit-tree/__stories__/root-error.js delete mode 100644 src/components/organisation-unit-tree/__stories__/root-loading.js delete mode 100644 src/components/organisation-unit-tree/__stories__/rtl.js delete mode 100644 src/components/organisation-unit-tree/__stories__/selected-multiple.js delete mode 100644 src/components/organisation-unit-tree/__stories__/shared.js delete mode 100644 src/components/organisation-unit-tree/__stories__/single-selection.js delete mode 100644 src/components/organisation-unit-tree/features/children_as_child_nodes.feature delete mode 100644 src/components/organisation-unit-tree/features/children_as_child_nodes/index.js delete mode 100644 src/components/organisation-unit-tree/features/controlled_expanded.feature delete mode 100644 src/components/organisation-unit-tree/features/controlled_expanded/index.js delete mode 100644 src/components/organisation-unit-tree/features/displaying_loading_error.feature delete mode 100644 src/components/organisation-unit-tree/features/displaying_loading_error/index.js delete mode 100644 src/components/organisation-unit-tree/features/expanded.feature delete mode 100644 src/components/organisation-unit-tree/features/expanded/index.js delete mode 100644 src/components/organisation-unit-tree/features/force_reload.feature delete mode 100644 src/components/organisation-unit-tree/features/force_reload/index.js delete mode 100644 src/components/organisation-unit-tree/features/highlight.feature delete mode 100644 src/components/organisation-unit-tree/features/highlight/index.js delete mode 100644 src/components/organisation-unit-tree/features/loading_state.feature delete mode 100644 src/components/organisation-unit-tree/features/loading_state/index.js delete mode 100644 src/components/organisation-unit-tree/features/multi_selection.feature delete mode 100644 src/components/organisation-unit-tree/features/multi_selection/index.js delete mode 100644 src/components/organisation-unit-tree/features/no_selection.feature delete mode 100644 src/components/organisation-unit-tree/features/no_selection/index.js delete mode 100644 src/components/organisation-unit-tree/features/path_based_filtering.feature delete mode 100644 src/components/organisation-unit-tree/features/path_based_filtering/index.js delete mode 100644 src/components/organisation-unit-tree/features/single_selection.feature delete mode 100644 src/components/organisation-unit-tree/features/single_selection/index.js delete mode 100644 src/components/organisation-unit-tree/features/sub_unit_as_root.feature delete mode 100644 src/components/organisation-unit-tree/features/sub_unit_as_root/index.js delete mode 100644 src/components/organisation-unit-tree/features/tree_api.feature delete mode 100644 src/components/organisation-unit-tree/features/tree_api/index.js delete mode 100644 src/components/organisation-unit-tree/get-all-expanded-paths/get-all-expanded-paths.js delete mode 100644 src/components/organisation-unit-tree/get-all-expanded-paths/get-all-expanded-paths.test.js delete mode 100644 src/components/organisation-unit-tree/get-all-expanded-paths/index.js delete mode 100644 src/components/organisation-unit-tree/helpers/index.js delete mode 100644 src/components/organisation-unit-tree/helpers/is-path-included.js delete mode 100644 src/components/organisation-unit-tree/helpers/left-trim-to-root-id.js delete mode 100644 src/components/organisation-unit-tree/helpers/sort-node-children-alphabetically.js delete mode 100644 src/components/organisation-unit-tree/index.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/compute-child-nodes.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/compute-child-nodes.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/error-message.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/has-descendant-selected-paths.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/has-descendant-selected-paths.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/index.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/disabled-selection-label.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/icon-empty.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/icon-folder-closed.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/icon-folder-open.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/icon-single.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/icon.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/iconized-checkbox.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/index.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/label-container.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/label.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/label/single-selection-label.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/loading-spinner.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/organisation-unit-node-children.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/organisation-unit-node.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/use-open-state.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/use-open-state.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/use-org-children.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/use-org-children.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/use-org-data/index.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/use-org-data/use-org-data.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-node/use-org-data/use-org-data.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree.e2e.stories.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree.prod.stories.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/default-render-node-label/default-render-node-label.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/default-render-node-label/index.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/filter-root-ids.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/index.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/organisation-unit-tree-root-error.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/organisation-unit-tree-root-loading.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/organisation-unit-tree.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/organisation-unit-tree.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-expanded/create-expand-handlers.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-expanded/create-expand-handlers.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-expanded/index.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-expanded/use-expanded.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-expanded/use-expanded.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-force-reload.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-force-reload.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-root-org-data/index.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-root-org-data/patch-missing-display-name.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-root-org-data/patch-missing-display-name.test.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-root-org-data/use-root-org-data.js delete mode 100644 src/components/organisation-unit-tree/organisation-unit-tree/use-root-org-data/use-root-org-unit.test.js delete mode 100644 src/components/organisation-unit-tree/prop-types.js delete mode 100644 src/components/pagination/__fixtures__/index.js delete mode 100644 src/components/pagination/__tests__/get-item-range.test.js delete mode 100644 src/components/pagination/__tests__/page-controls.test.js delete mode 100644 src/components/pagination/__tests__/page-select.test.js delete mode 100644 src/components/pagination/__tests__/page-size-select.test.js delete mode 100644 src/components/pagination/__tests__/page-summary.test.js delete mode 100644 src/components/pagination/__tests__/pagination.test.js delete mode 100644 src/components/pagination/get-default-page-summary-text.js delete mode 100644 src/components/pagination/get-item-range.js delete mode 100644 src/components/pagination/index.js delete mode 100644 src/components/pagination/page-controls.js delete mode 100644 src/components/pagination/page-select.js delete mode 100644 src/components/pagination/page-size-select.js delete mode 100644 src/components/pagination/page-summary.js delete mode 100644 src/components/pagination/pagination.js delete mode 100644 src/components/pagination/pagination.prod.stories.js delete mode 100644 src/components/popover/arrow.js delete mode 100644 src/components/popover/features/arrow_position.feature delete mode 100644 src/components/popover/features/arrow_position/index.js delete mode 100644 src/components/popover/features/clicking_outside.feature delete mode 100644 src/components/popover/features/clicking_outside/index.js delete mode 100644 src/components/popover/features/conditional_arrow.feature delete mode 100644 src/components/popover/features/conditional_arrow/index.js delete mode 100644 src/components/popover/features/position.feature delete mode 100644 src/components/popover/features/position/index.js delete mode 100644 src/components/popover/get-arrow-position.js delete mode 100644 src/components/popover/index.js delete mode 100644 src/components/popover/modifiers.js delete mode 100644 src/components/popover/popover.e2e.stories.js delete mode 100644 src/components/popover/popover.js delete mode 100644 src/components/popover/popover.prod.stories.js delete mode 100644 src/components/popper/features/accepts_different_reference_types.feature delete mode 100644 src/components/popper/features/accepts_different_reference_types/index.js delete mode 100644 src/components/popper/features/positions.feature delete mode 100644 src/components/popper/features/positions/index.js delete mode 100644 src/components/popper/get-reference-element.js delete mode 100644 src/components/popper/index.js delete mode 100644 src/components/popper/modifiers.js delete mode 100644 src/components/popper/popper.e2e.stories.js delete mode 100644 src/components/popper/popper.js delete mode 100644 src/components/popper/popper.prod.stories.js delete mode 100644 src/components/portal/index.js delete mode 100644 src/components/portal/portal.js delete mode 100644 src/components/radio/__tests__/radio.test.js delete mode 100644 src/components/radio/features/accepts_initial_focus.feature delete mode 100644 src/components/radio/features/accepts_initial_focus/index.js delete mode 100644 src/components/radio/features/accepts_label.feature delete mode 100644 src/components/radio/features/accepts_label/index.js delete mode 100644 src/components/radio/features/can_be_blurred.feature delete mode 100644 src/components/radio/features/can_be_blurred/index.js delete mode 100644 src/components/radio/features/can_be_changed.feature delete mode 100644 src/components/radio/features/can_be_changed/index.js delete mode 100644 src/components/radio/features/can_be_disabled.feature delete mode 100644 src/components/radio/features/can_be_disabled/index.js delete mode 100644 src/components/radio/features/can_be_focused.feature delete mode 100644 src/components/radio/features/can_be_focused/index.js delete mode 100644 src/components/radio/index.js delete mode 100644 src/components/radio/radio-icons.js delete mode 100644 src/components/radio/radio.e2e.stories.js delete mode 100644 src/components/radio/radio.js delete mode 100644 src/components/radio/radio.prod.stories.js delete mode 100644 src/components/required/index.js delete mode 100644 src/components/required/required.js delete mode 100644 src/components/segmented-control/index.js delete mode 100644 src/components/segmented-control/segmented-control.js delete mode 100644 src/components/segmented-control/segmented-control.prod.stories.js delete mode 100644 src/components/select/index.js delete mode 100644 src/components/select/multi-select-field/__tests__/multi-select-field.test.js delete mode 100644 src/components/select/multi-select-field/features/accepts_help_text.feature delete mode 100644 src/components/select/multi-select-field/features/accepts_help_text/index.js delete mode 100644 src/components/select/multi-select-field/features/accepts_label.feature delete mode 100644 src/components/select/multi-select-field/features/accepts_label/index.js delete mode 100644 src/components/select/multi-select-field/features/accepts_validation_text.feature delete mode 100644 src/components/select/multi-select-field/features/accepts_validation_text/index.js delete mode 100644 src/components/select/multi-select-field/features/can_be_required.feature delete mode 100644 src/components/select/multi-select-field/features/can_be_required/index.js delete mode 100644 src/components/select/multi-select-field/features/has_default_clear_text.feature delete mode 100644 src/components/select/multi-select-field/features/has_default_clear_text/index.js delete mode 100644 src/components/select/multi-select-field/features/has_default_empty_text.feature delete mode 100644 src/components/select/multi-select-field/features/has_default_empty_text/index.js delete mode 100644 src/components/select/multi-select-field/features/has_default_filter_nomatch_text.feature delete mode 100644 src/components/select/multi-select-field/features/has_default_filter_nomatch_text/index.js delete mode 100644 src/components/select/multi-select-field/features/has_default_filter_placeholder.feature delete mode 100644 src/components/select/multi-select-field/features/has_default_filter_placeholder/index.js delete mode 100644 src/components/select/multi-select-field/features/has_default_loading_text.feature delete mode 100644 src/components/select/multi-select-field/features/has_default_loading_text/index.js delete mode 100644 src/components/select/multi-select-field/index.js delete mode 100644 src/components/select/multi-select-field/multi-select-field.e2e.stories.js delete mode 100644 src/components/select/multi-select-field/multi-select-field.js delete mode 100644 src/components/select/multi-select-field/multi-select-field.prod.stories.js delete mode 100644 src/components/select/multi-select-option/index.js delete mode 100644 src/components/select/multi-select-option/multi-select-option.js delete mode 100644 src/components/select/multi-select/__tests__/multi-select.test.js delete mode 100644 src/components/select/multi-select/__tests__/selection-list.test.js delete mode 100644 src/components/select/multi-select/features/accepts_blur_cb.feature delete mode 100644 src/components/select/multi-select/features/accepts_blur_cb/index.js delete mode 100644 src/components/select/multi-select/features/accepts_focus_cb.feature delete mode 100644 src/components/select/multi-select/features/accepts_focus_cb/index.js delete mode 100644 src/components/select/multi-select/features/accepts_initial_focus.feature delete mode 100644 src/components/select/multi-select/features/accepts_initial_focus/index.js delete mode 100644 src/components/select/multi-select/features/accepts_loading.feature delete mode 100644 src/components/select/multi-select/features/accepts_loading/index.js delete mode 100644 src/components/select/multi-select/features/accepts_max_height.feature delete mode 100644 src/components/select/multi-select/features/accepts_max_height/index.js delete mode 100644 src/components/select/multi-select/features/accepts_placeholder.feature delete mode 100644 src/components/select/multi-select/features/accepts_placeholder/index.js delete mode 100644 src/components/select/multi-select/features/accepts_prefix.feature delete mode 100644 src/components/select/multi-select/features/accepts_prefix/index.js delete mode 100644 src/components/select/multi-select/features/allows_invalid_options.feature delete mode 100644 src/components/select/multi-select/features/allows_invalid_options/index.js delete mode 100644 src/components/select/multi-select/features/allows_selecting.feature delete mode 100644 src/components/select/multi-select/features/allows_selecting/index.js delete mode 100644 src/components/select/multi-select/features/can_be_cleared.feature delete mode 100644 src/components/select/multi-select/features/can_be_cleared/index.js delete mode 100644 src/components/select/multi-select/features/can_be_disabled.feature delete mode 100644 src/components/select/multi-select/features/can_be_disabled/index.js delete mode 100644 src/components/select/multi-select/features/can_be_empty.feature delete mode 100644 src/components/select/multi-select/features/can_be_empty/index.js delete mode 100644 src/components/select/multi-select/features/can_be_filtered.feature delete mode 100644 src/components/select/multi-select/features/can_be_filtered/index.js delete mode 100644 src/components/select/multi-select/features/can_be_opened_and_closed.feature delete mode 100644 src/components/select/multi-select/features/can_be_opened_and_closed/index.js delete mode 100644 src/components/select/multi-select/features/common/index.js delete mode 100644 src/components/select/multi-select/features/duplicate_option_values.feature delete mode 100644 src/components/select/multi-select/features/duplicate_option_values/index.js delete mode 100644 src/components/select/multi-select/features/menu_width_matches_input.feature delete mode 100644 src/components/select/multi-select/features/menu_width_matches_input/index.js delete mode 100644 src/components/select/multi-select/features/position.feature delete mode 100644 src/components/select/multi-select/features/position/index.js delete mode 100644 src/components/select/multi-select/features/shows_selections.feature delete mode 100644 src/components/select/multi-select/features/shows_selections/index.js delete mode 100644 src/components/select/multi-select/filterable-menu.js delete mode 100644 src/components/select/multi-select/index.js delete mode 100644 src/components/select/multi-select/input.js delete mode 100644 src/components/select/multi-select/menu.js delete mode 100644 src/components/select/multi-select/multi-select.e2e.stories.js delete mode 100644 src/components/select/multi-select/multi-select.js delete mode 100644 src/components/select/multi-select/multi-select.prod.stories.js delete mode 100644 src/components/select/multi-select/selection-list.js delete mode 100644 src/components/select/select/__tests__/select.test.js delete mode 100644 src/components/select/select/debounce/debounce.js delete mode 100644 src/components/select/select/debounce/debounce.spec.js delete mode 100644 src/components/select/select/empty.js delete mode 100644 src/components/select/select/filter-input.js delete mode 100644 src/components/select/select/filterable-menu.js delete mode 100644 src/components/select/select/index.js delete mode 100644 src/components/select/select/input-clear-button.js delete mode 100644 src/components/select/select/input-placeholder.js delete mode 100644 src/components/select/select/input-prefix.js delete mode 100644 src/components/select/select/input-wrapper.js delete mode 100644 src/components/select/select/loading.js delete mode 100644 src/components/select/select/menu-wrapper.js delete mode 100644 src/components/select/select/no-match.js delete mode 100644 src/components/select/select/option-helpers.js delete mode 100644 src/components/select/select/select.js delete mode 100644 src/components/select/single-select-field/__tests__/single-select-field.test.js delete mode 100644 src/components/select/single-select-field/features/accepts_help_text.feature delete mode 100644 src/components/select/single-select-field/features/accepts_help_text/index.js delete mode 100644 src/components/select/single-select-field/features/accepts_label.feature delete mode 100644 src/components/select/single-select-field/features/accepts_label/index.js delete mode 100644 src/components/select/single-select-field/features/accepts_validation_text.feature delete mode 100644 src/components/select/single-select-field/features/accepts_validation_text/index.js delete mode 100644 src/components/select/single-select-field/features/can_be_required.feature delete mode 100644 src/components/select/single-select-field/features/can_be_required/index.js delete mode 100644 src/components/select/single-select-field/features/can_show_conditionally.feature delete mode 100644 src/components/select/single-select-field/features/can_show_conditionally/index.js delete mode 100644 src/components/select/single-select-field/features/has_default_clear_text.feature delete mode 100644 src/components/select/single-select-field/features/has_default_clear_text/index.js delete mode 100644 src/components/select/single-select-field/features/has_default_empty_text.feature delete mode 100644 src/components/select/single-select-field/features/has_default_empty_text/index.js delete mode 100644 src/components/select/single-select-field/features/has_default_filter_nomatch_text.feature delete mode 100644 src/components/select/single-select-field/features/has_default_filter_nomatch_text/index.js delete mode 100644 src/components/select/single-select-field/features/has_default_filter_placeholder.feature delete mode 100644 src/components/select/single-select-field/features/has_default_filter_placeholder/index.js delete mode 100644 src/components/select/single-select-field/features/has_default_loading_text.feature delete mode 100644 src/components/select/single-select-field/features/has_default_loading_text/index.js delete mode 100644 src/components/select/single-select-field/index.js delete mode 100644 src/components/select/single-select-field/single-select-field.e2e.stories.js delete mode 100644 src/components/select/single-select-field/single-select-field.js delete mode 100644 src/components/select/single-select-field/single-select-field.prod.stories.js delete mode 100644 src/components/select/single-select-option/index.js delete mode 100644 src/components/select/single-select-option/single-select-option.js delete mode 100644 src/components/select/single-select/__tests__/selection.test.js delete mode 100644 src/components/select/single-select/__tests__/single-select.test.js delete mode 100644 src/components/select/single-select/features/accepts_blur_cb.feature delete mode 100644 src/components/select/single-select/features/accepts_blur_cb/index.js delete mode 100644 src/components/select/single-select/features/accepts_focus_cb.feature delete mode 100644 src/components/select/single-select/features/accepts_focus_cb/index.js delete mode 100644 src/components/select/single-select/features/accepts_initial_focus.feature delete mode 100644 src/components/select/single-select/features/accepts_initial_focus/index.js delete mode 100644 src/components/select/single-select/features/accepts_loading.feature delete mode 100644 src/components/select/single-select/features/accepts_loading/index.js delete mode 100644 src/components/select/single-select/features/accepts_max_height.feature delete mode 100644 src/components/select/single-select/features/accepts_max_height/index.js delete mode 100644 src/components/select/single-select/features/accepts_placeholder.feature delete mode 100644 src/components/select/single-select/features/accepts_placeholder/index.js delete mode 100644 src/components/select/single-select/features/accepts_prefix.feature delete mode 100644 src/components/select/single-select/features/accepts_prefix/index.js delete mode 100644 src/components/select/single-select/features/allows_invalid_options.feature delete mode 100644 src/components/select/single-select/features/allows_invalid_options/index.js delete mode 100644 src/components/select/single-select/features/allows_selecting.feature delete mode 100644 src/components/select/single-select/features/allows_selecting/index.js delete mode 100644 src/components/select/single-select/features/can_be_cleared.feature delete mode 100644 src/components/select/single-select/features/can_be_cleared/index.js delete mode 100644 src/components/select/single-select/features/can_be_disabled.feature delete mode 100644 src/components/select/single-select/features/can_be_disabled/index.js delete mode 100644 src/components/select/single-select/features/can_be_empty.feature delete mode 100644 src/components/select/single-select/features/can_be_empty/index.js delete mode 100644 src/components/select/single-select/features/can_be_filtered.feature delete mode 100644 src/components/select/single-select/features/can_be_filtered/index.js delete mode 100644 src/components/select/single-select/features/can_be_opened_and_closed.feature delete mode 100644 src/components/select/single-select/features/can_be_opened_and_closed/index.js delete mode 100644 src/components/select/single-select/features/common/index.js delete mode 100644 src/components/select/single-select/features/duplicate_option_values.feature delete mode 100644 src/components/select/single-select/features/duplicate_option_values/index.js delete mode 100644 src/components/select/single-select/features/menu_width_matches_input.feature delete mode 100644 src/components/select/single-select/features/menu_width_matches_input/index.js delete mode 100644 src/components/select/single-select/features/position.feature delete mode 100644 src/components/select/single-select/features/position/index.js delete mode 100644 src/components/select/single-select/features/shows_selections.feature delete mode 100644 src/components/select/single-select/features/shows_selections/index.js delete mode 100644 src/components/select/single-select/filterable-menu.js delete mode 100644 src/components/select/single-select/index.js delete mode 100644 src/components/select/single-select/input.js delete mode 100644 src/components/select/single-select/menu.js delete mode 100644 src/components/select/single-select/selection.js delete mode 100644 src/components/select/single-select/single-select.e2e.stories.js delete mode 100644 src/components/select/single-select/single-select.js delete mode 100644 src/components/select/single-select/single-select.prod.stories.js delete mode 100644 src/components/selector-bar/index.js delete mode 100644 src/components/selector-bar/selector-bar-item/features/toggle-children.feature delete mode 100644 src/components/selector-bar/selector-bar-item/features/toggle-children/index.js delete mode 100644 src/components/selector-bar/selector-bar-item/index.js delete mode 100644 src/components/selector-bar/selector-bar-item/selector-bar-item.e2e.stories.js delete mode 100644 src/components/selector-bar/selector-bar-item/selector-bar-item.js delete mode 100644 src/components/selector-bar/selector-bar/__stories__/common.js delete mode 100644 src/components/selector-bar/selector-bar/__stories__/keep-org-unit-expanded.js delete mode 100644 src/components/selector-bar/selector-bar/__stories__/rtl.js delete mode 100644 src/components/selector-bar/selector-bar/__stories__/with-multiple-rows.js delete mode 100644 src/components/selector-bar/selector-bar/__stories__/with-right-hand-side-content.js delete mode 100644 src/components/selector-bar/selector-bar/__stories__/with-some-inputs.js delete mode 100644 src/components/selector-bar/selector-bar/index.js delete mode 100644 src/components/selector-bar/selector-bar/selector-bar.js delete mode 100644 src/components/selector-bar/selector-bar/selector-bar.prod.stories.js delete mode 100644 src/components/selector-bar/selector-bar/selector-bar.test.js delete mode 100644 src/components/sharing-dialog/__tests__/sharing-dialog.test.js delete mode 100644 src/components/sharing-dialog/access-add/__tests__/access-add.test.js delete mode 100644 src/components/sharing-dialog/access-add/access-add.js delete mode 100644 src/components/sharing-dialog/access-add/index.js delete mode 100644 src/components/sharing-dialog/access-list/access-list.js delete mode 100644 src/components/sharing-dialog/access-list/index.js delete mode 100644 src/components/sharing-dialog/access-list/list-item-context.js delete mode 100644 src/components/sharing-dialog/access-list/list-item-icon.js delete mode 100644 src/components/sharing-dialog/access-list/list-item.js delete mode 100644 src/components/sharing-dialog/autocomplete/autocomplete.js delete mode 100644 src/components/sharing-dialog/autocomplete/index.js delete mode 100644 src/components/sharing-dialog/autocomplete/menu-popup.js delete mode 100644 src/components/sharing-dialog/autocomplete/sharing-autocomplete.js delete mode 100644 src/components/sharing-dialog/autocomplete/sharing-autocomplete.test.js delete mode 100644 src/components/sharing-dialog/cascade-sharing/__tests__/helpers.test.js delete mode 100644 src/components/sharing-dialog/cascade-sharing/cascade-sharing.js delete mode 100644 src/components/sharing-dialog/cascade-sharing/controls.js delete mode 100644 src/components/sharing-dialog/cascade-sharing/helpers.js delete mode 100644 src/components/sharing-dialog/cascade-sharing/index.js delete mode 100644 src/components/sharing-dialog/cascade-sharing/result-info.js delete mode 100644 src/components/sharing-dialog/cascade-sharing/static-info.js delete mode 100644 src/components/sharing-dialog/cascade-sharing/update-info.js delete mode 100644 src/components/sharing-dialog/constants.js delete mode 100644 src/components/sharing-dialog/destructive-select-option/destructive-select-option.js delete mode 100644 src/components/sharing-dialog/destructive-select-option/index.js delete mode 100644 src/components/sharing-dialog/features/access-level-change.feature delete mode 100644 src/components/sharing-dialog/features/access-level-change/index.js delete mode 100644 src/components/sharing-dialog/features/access-level-disable.feature delete mode 100644 src/components/sharing-dialog/features/access-level-disable/index.js delete mode 100644 src/components/sharing-dialog/features/access-level-remove.feature delete mode 100644 src/components/sharing-dialog/features/access-level-remove/index.js delete mode 100644 src/components/sharing-dialog/features/add-entity.feature delete mode 100644 src/components/sharing-dialog/features/add-entity/index.js delete mode 100644 src/components/sharing-dialog/features/dashboard.feature delete mode 100644 src/components/sharing-dialog/features/dashboard/index.js delete mode 100644 src/components/sharing-dialog/features/fixtures/all-users-no-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/all-users-view-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/all-users-view-edit-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/dashboard-sharing.json delete mode 100644 src/components/sharing-dialog/features/fixtures/dashboards.json delete mode 100644 src/components/sharing-dialog/features/fixtures/disabled-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/group-no-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/group-view-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/group-view-edit-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/index.js delete mode 100644 src/components/sharing-dialog/features/fixtures/no-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/search-group.json delete mode 100644 src/components/sharing-dialog/features/fixtures/search-user.json delete mode 100644 src/components/sharing-dialog/features/fixtures/user-no-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/user-view-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/user-view-edit-access.json delete mode 100644 src/components/sharing-dialog/features/fixtures/with-displayname.json delete mode 100644 src/components/sharing-dialog/features/fixtures/without-displayname.json delete mode 100644 src/components/sharing-dialog/features/title.feature delete mode 100644 src/components/sharing-dialog/features/title/index.js delete mode 100644 src/components/sharing-dialog/fetching-context/fetching-context.js delete mode 100644 src/components/sharing-dialog/fetching-context/index.js delete mode 100644 src/components/sharing-dialog/helpers/__tests__/debounce.test.js delete mode 100644 src/components/sharing-dialog/helpers/__tests__/helpers.test.js delete mode 100644 src/components/sharing-dialog/helpers/helpers.js delete mode 100644 src/components/sharing-dialog/helpers/index.js delete mode 100644 src/components/sharing-dialog/index.js delete mode 100644 src/components/sharing-dialog/modal/index.js delete mode 100644 src/components/sharing-dialog/modal/modal.js delete mode 100644 src/components/sharing-dialog/sharing-dialog.e2e.stories.js delete mode 100644 src/components/sharing-dialog/sharing-dialog.js delete mode 100644 src/components/sharing-dialog/sharing-dialog.prod.stories.js delete mode 100644 src/components/sharing-dialog/tabs/index.js delete mode 100644 src/components/sharing-dialog/tabs/tabbed-content.js delete mode 100644 src/components/sharing-dialog/text/index.js delete mode 100644 src/components/sharing-dialog/text/title.js delete mode 100644 src/components/status-icon/index.js delete mode 100644 src/components/status-icon/status-icon.js delete mode 100644 src/components/switch/index.js delete mode 100644 src/components/switch/switch-field/__tests__/switch-field.test.js delete mode 100644 src/components/switch/switch-field/features/can_be_required.feature delete mode 100644 src/components/switch/switch-field/features/can_be_required/index.js delete mode 100644 src/components/switch/switch-field/index.js delete mode 100644 src/components/switch/switch-field/switch-field.e2e.stories.js delete mode 100644 src/components/switch/switch-field/switch-field.js delete mode 100644 src/components/switch/switch-field/switch-field.prod.stories.js delete mode 100644 src/components/switch/switch/__tests__/switch.test.js delete mode 100644 src/components/switch/switch/features/accepts_initial_focus.feature delete mode 100644 src/components/switch/switch/features/accepts_initial_focus/index.js delete mode 100644 src/components/switch/switch/features/accepts_label.feature delete mode 100644 src/components/switch/switch/features/accepts_label/index.js delete mode 100644 src/components/switch/switch/features/can_be_blurred.feature delete mode 100644 src/components/switch/switch/features/can_be_blurred/index.js delete mode 100644 src/components/switch/switch/features/can_be_changed.feature delete mode 100644 src/components/switch/switch/features/can_be_changed/index.js delete mode 100644 src/components/switch/switch/features/can_be_disabled.feature delete mode 100644 src/components/switch/switch/features/can_be_disabled/index.js delete mode 100644 src/components/switch/switch/features/can_be_focused.feature delete mode 100644 src/components/switch/switch/features/can_be_focused/index.js delete mode 100644 src/components/switch/switch/index.js delete mode 100644 src/components/switch/switch/switch-icons.js delete mode 100644 src/components/switch/switch/switch.e2e.stories.js delete mode 100644 src/components/switch/switch/switch.js delete mode 100644 src/components/switch/switch/switch.prod.stories.js delete mode 100644 src/components/tab/index.js delete mode 100644 src/components/tab/tab-bar/animated-side-scroll.js delete mode 100644 src/components/tab/tab-bar/detect-horizontal-scrollbar-height.js delete mode 100644 src/components/tab/tab-bar/features/accepts_children.feature delete mode 100644 src/components/tab/tab-bar/features/accepts_children/index.js delete mode 100644 src/components/tab/tab-bar/features/auto_hides_scroll_buttons.feature delete mode 100644 src/components/tab/tab-bar/features/auto_hides_scroll_buttons/index.js delete mode 100644 src/components/tab/tab-bar/index.js delete mode 100644 src/components/tab/tab-bar/scroll-bar.js delete mode 100644 src/components/tab/tab-bar/scroll-button.js delete mode 100644 src/components/tab/tab-bar/tab-bar.e2e.stories.js delete mode 100644 src/components/tab/tab-bar/tab-bar.js delete mode 100644 src/components/tab/tab-bar/tab-bar.prod.stories.js delete mode 100644 src/components/tab/tab-bar/tabs.js delete mode 100644 src/components/tab/tab/features/accepts_children.feature delete mode 100644 src/components/tab/tab/features/accepts_children/index.js delete mode 100644 src/components/tab/tab/features/accepts_icon.feature delete mode 100644 src/components/tab/tab/features/accepts_icon/index.js delete mode 100644 src/components/tab/tab/features/is_clickable.feature delete mode 100644 src/components/tab/tab/features/is_clickable/index.js delete mode 100644 src/components/tab/tab/index.js delete mode 100644 src/components/tab/tab/tab.e2e.stories.js delete mode 100644 src/components/tab/tab/tab.js delete mode 100644 src/components/table/data-table/__tests__/data-table-cell.test.js delete mode 100644 src/components/table/data-table/__tests__/data-table-column-header.test.js delete mode 100644 src/components/table/data-table/__tests__/data-table-column-header/filter-handle.test.js delete mode 100644 src/components/table/data-table/__tests__/data-table-column-header/sorter.test.js delete mode 100644 src/components/table/data-table/__tests__/data-table-row.test.js delete mode 100644 src/components/table/data-table/__tests__/data-table-row/expand-handle-cell.js delete mode 100644 src/components/table/data-table/__tests__/data-table-row/expanded-row.test.js delete mode 100644 src/components/table/data-table/__tests__/data-table.test.js delete mode 100644 src/components/table/data-table/data-table-body.js delete mode 100644 src/components/table/data-table/data-table-cell.js delete mode 100644 src/components/table/data-table/data-table-column-header/data-table-column-header.js delete mode 100644 src/components/table/data-table/data-table-column-header/data-table-column-header.styles.js delete mode 100644 src/components/table/data-table/data-table-column-header/filter-handle.js delete mode 100644 src/components/table/data-table/data-table-column-header/sorter.js delete mode 100644 src/components/table/data-table/data-table-foot.js delete mode 100644 src/components/table/data-table/data-table-head.js delete mode 100644 src/components/table/data-table/data-table-row/data-table-row.js delete mode 100644 src/components/table/data-table/data-table-row/data-table-row.styles.js delete mode 100644 src/components/table/data-table/data-table-row/drag-handle-cell.js delete mode 100644 src/components/table/data-table/data-table-row/expand-handle-cell.js delete mode 100644 src/components/table/data-table/data-table-row/expanded-row.js delete mode 100644 src/components/table/data-table/data-table-toolbar.js delete mode 100644 src/components/table/data-table/data-table.e2e.stories.js delete mode 100644 src/components/table/data-table/data-table.js delete mode 100644 src/components/table/data-table/data-table.prod.stories.js delete mode 100644 src/components/table/data-table/features/can_scroll.feature delete mode 100644 src/components/table/data-table/features/can_scroll/index.js delete mode 100644 src/components/table/data-table/index.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table-body.test.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table-data-cell.test.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table-foot.test.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table-head.test.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table-header-cell-action.test.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table-header-cell.test.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table-row.test.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table-scroll-box.test.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table-toolbar.test.js delete mode 100644 src/components/table/data-table/table-elements/__tests__/table.test.js delete mode 100644 src/components/table/data-table/table-elements/features/can_scroll.feature delete mode 100644 src/components/table/data-table/table-elements/features/can_scroll/index.js delete mode 100644 src/components/table/data-table/table-elements/index.js delete mode 100644 src/components/table/data-table/table-elements/table-body.js delete mode 100644 src/components/table/data-table/table-elements/table-data-cell/table-data-cell.js delete mode 100644 src/components/table/data-table/table-elements/table-data-cell/table-data-cell.styles.js delete mode 100644 src/components/table/data-table/table-elements/table-foot.js delete mode 100644 src/components/table/data-table/table-elements/table-head.js delete mode 100644 src/components/table/data-table/table-elements/table-header-cell-action.js delete mode 100644 src/components/table/data-table/table-elements/table-header-cell/table-header-cell.js delete mode 100644 src/components/table/data-table/table-elements/table-header-cell/table-header-cell.styles.js delete mode 100644 src/components/table/data-table/table-elements/table-row.js delete mode 100644 src/components/table/data-table/table-elements/table-scroll-box.js delete mode 100644 src/components/table/data-table/table-elements/table-toolbar.js delete mode 100644 src/components/table/data-table/table-elements/table.e2e.stories.js delete mode 100644 src/components/table/data-table/table-elements/table.js delete mode 100644 src/components/table/data-table/table-elements/table.stories.internal.js delete mode 100644 src/components/table/index.js delete mode 100644 src/components/table/stacked-table/add-col-num-to-children.js delete mode 100644 src/components/table/stacked-table/content-with-title.js delete mode 100644 src/components/table/stacked-table/extract-header-labels.js delete mode 100644 src/components/table/stacked-table/index.js delete mode 100644 src/components/table/stacked-table/stacked-table-body.js delete mode 100644 src/components/table/stacked-table/stacked-table-cell-head.js delete mode 100644 src/components/table/stacked-table/stacked-table-cell.js delete mode 100644 src/components/table/stacked-table/stacked-table-foot.js delete mode 100644 src/components/table/stacked-table/stacked-table-head.js delete mode 100644 src/components/table/stacked-table/stacked-table-row-head.js delete mode 100644 src/components/table/stacked-table/stacked-table-row.js delete mode 100644 src/components/table/stacked-table/stacked-table.js delete mode 100644 src/components/table/stacked-table/stacked-table.prod.stories.js delete mode 100644 src/components/table/stacked-table/stacked-table.test.js delete mode 100644 src/components/table/stacked-table/supply-header-labels-to-children.js delete mode 100644 src/components/table/stacked-table/table-context.js delete mode 100644 src/components/table/stacked-table/table.js delete mode 100644 src/components/table/table/index.js delete mode 100644 src/components/table/table/table-body.js delete mode 100644 src/components/table/table/table-cell-head.js delete mode 100644 src/components/table/table/table-cell.js delete mode 100644 src/components/table/table/table-context.js delete mode 100644 src/components/table/table/table-foot.js delete mode 100644 src/components/table/table/table-head.js delete mode 100644 src/components/table/table/table-row-head.js delete mode 100644 src/components/table/table/table-row.js delete mode 100644 src/components/table/table/table.js delete mode 100644 src/components/table/table/table.prod.stories.js delete mode 100644 src/components/tag/features/accepts_icon.feature delete mode 100644 src/components/tag/features/accepts_icon/index.js delete mode 100644 src/components/tag/features/accepts_max_width.feature delete mode 100644 src/components/tag/features/accepts_max_width/index.js delete mode 100644 src/components/tag/features/accepts_text.feature delete mode 100644 src/components/tag/features/accepts_text/index.js delete mode 100644 src/components/tag/index.js delete mode 100644 src/components/tag/tag-icon.js delete mode 100644 src/components/tag/tag-text.js delete mode 100644 src/components/tag/tag.e2e.stories.js delete mode 100644 src/components/tag/tag.js delete mode 100644 src/components/tag/tag.prod.stories.js delete mode 100644 src/components/text-area/index.js delete mode 100644 src/components/text-area/text-area-field/__tests__/text-area-field.test.js delete mode 100644 src/components/text-area/text-area-field/features/can_be_required.feature delete mode 100644 src/components/text-area/text-area-field/features/can_be_required/index.js delete mode 100644 src/components/text-area/text-area-field/index.js delete mode 100644 src/components/text-area/text-area-field/text-area-field.e2e.stories.js delete mode 100644 src/components/text-area/text-area-field/text-area-field.js delete mode 100644 src/components/text-area/text-area-field/text-area-field.prod.stories.js delete mode 100644 src/components/text-area/text-area/__tests__/text-area.test.js delete mode 100644 src/components/text-area/text-area/features/accepts_initial_focus.feature delete mode 100644 src/components/text-area/text-area/features/accepts_initial_focus/index.js delete mode 100644 src/components/text-area/text-area/features/can_be_blurred.feature delete mode 100644 src/components/text-area/text-area/features/can_be_blurred/index.js delete mode 100644 src/components/text-area/text-area/features/can_be_changed.feature delete mode 100644 src/components/text-area/text-area/features/can_be_changed/index.js delete mode 100644 src/components/text-area/text-area/features/can_be_disabled.feature delete mode 100644 src/components/text-area/text-area/features/can_be_disabled/index.js delete mode 100644 src/components/text-area/text-area/features/can_be_focused.feature delete mode 100644 src/components/text-area/text-area/features/can_be_focused/index.js delete mode 100644 src/components/text-area/text-area/features/common/index.js delete mode 100644 src/components/text-area/text-area/index.js delete mode 100644 src/components/text-area/text-area/text-area.e2e.stories.js delete mode 100644 src/components/text-area/text-area/text-area.js delete mode 100644 src/components/text-area/text-area/text-area.prod.stories.js delete mode 100644 src/components/text-area/text-area/text-area.styles.js delete mode 100644 src/components/tooltip/features/common/constants.js delete mode 100644 src/components/tooltip/features/common/getReferenceAndBodyPositions.js delete mode 100644 src/components/tooltip/features/common/getReferenceAndContentPositions.js delete mode 100644 src/components/tooltip/features/common/index.js delete mode 100644 src/components/tooltip/features/layering.feature delete mode 100644 src/components/tooltip/features/layering/index.js delete mode 100644 src/components/tooltip/features/positions.feature delete mode 100644 src/components/tooltip/features/positions/index.js delete mode 100644 src/components/tooltip/features/scrolling_containers.feature delete mode 100644 src/components/tooltip/features/scrolling_containers/index.js delete mode 100644 src/components/tooltip/features/visibility_toggling.feature delete mode 100644 src/components/tooltip/features/visibility_toggling/index.js delete mode 100644 src/components/tooltip/index.js delete mode 100644 src/components/tooltip/tooltip.e2e.stories.js delete mode 100644 src/components/tooltip/tooltip.js delete mode 100644 src/components/tooltip/tooltip.prod.stories.js delete mode 100644 src/components/tooltip/tooltip.test.js delete mode 100644 src/components/transfer/__e2e__/add_remove-highlighted-options.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/common.js delete mode 100644 src/components/transfer/__e2e__/common/options.js delete mode 100644 src/components/transfer/__e2e__/common/stateful-decorator.js delete mode 100644 src/components/transfer/__e2e__/disabled-transfer-buttons.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/disabled-transfer-options.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/display-order.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/filter-options-list.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/highlight-range-of-options.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/loading_lists.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/notify_at_end_of_list.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/reorder-with-buttons.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/set_unset-highlighted-option.e2e.stories.js delete mode 100644 src/components/transfer/__e2e__/transferring-items.e2e.stories.js delete mode 100644 src/components/transfer/__tests__/common.test.js delete mode 100644 src/components/transfer/__tests__/helper/add-all-selectable-source-options.test.js delete mode 100644 src/components/transfer/__tests__/helper/add-individual-source-options.test.js delete mode 100644 src/components/transfer/__tests__/helper/default-filter-callback.test.js delete mode 100644 src/components/transfer/__tests__/helper/is-reorder-down-disabled.test.js delete mode 100644 src/components/transfer/__tests__/helper/is-reorder-up-disabled.test.js delete mode 100644 src/components/transfer/__tests__/helper/move-highlighted-picked-option-down.test.js delete mode 100644 src/components/transfer/__tests__/helper/move-highlighted-picked-option-up.test.js delete mode 100644 src/components/transfer/__tests__/helper/remove-all-picked-options.test.js delete mode 100644 src/components/transfer/__tests__/helper/remove-individual-picked-options.test.js delete mode 100644 src/components/transfer/__tests__/helper/use-highlighted-option.test.js delete mode 100644 src/components/transfer/__tests__/helper/use-highlighted-option/create-toggle-highlighted-option.test.js delete mode 100644 src/components/transfer/__tests__/helper/use-highlighted-option/toggle-add.test.js delete mode 100644 src/components/transfer/__tests__/helper/use-highlighted-option/toggle-range.test.js delete mode 100644 src/components/transfer/__tests__/helper/use-highlighted-option/toggle-replace.test.js delete mode 100644 src/components/transfer/__tests__/transfer.test.js delete mode 100644 src/components/transfer/actions.js delete mode 100644 src/components/transfer/add-all.js delete mode 100644 src/components/transfer/add-individual.js delete mode 100644 src/components/transfer/common/find-option-index.js delete mode 100644 src/components/transfer/common/get-mode-by-modifier-key.js delete mode 100644 src/components/transfer/common/index.js delete mode 100644 src/components/transfer/common/is-option.js delete mode 100644 src/components/transfer/common/modes.js delete mode 100644 src/components/transfer/common/remove-option.js delete mode 100644 src/components/transfer/common/styles.js delete mode 100644 src/components/transfer/common/toggle-value.js delete mode 100644 src/components/transfer/container.js delete mode 100644 src/components/transfer/end-intersection-detector.js delete mode 100644 src/components/transfer/features/add_remove-highlighted-options.feature delete mode 100644 src/components/transfer/features/add_remove-highlighted-options/index.js delete mode 100644 src/components/transfer/features/common/index.js delete mode 100644 src/components/transfer/features/disabled-transfer-buttons.feature delete mode 100644 src/components/transfer/features/disabled-transfer-buttons/index.js delete mode 100644 src/components/transfer/features/disabled-transfer-options.feature delete mode 100644 src/components/transfer/features/disabled-transfer-options/index.js delete mode 100644 src/components/transfer/features/display-order.feature delete mode 100644 src/components/transfer/features/display-order/index.js delete mode 100644 src/components/transfer/features/filter-options-list.feature delete mode 100644 src/components/transfer/features/filter-options-list/index.js delete mode 100644 src/components/transfer/features/highlight-range-of-options.feature delete mode 100644 src/components/transfer/features/highlight-range-of-options/index.js delete mode 100644 src/components/transfer/features/loading_lists.feature delete mode 100644 src/components/transfer/features/loading_lists/index.js delete mode 100644 src/components/transfer/features/notify_at_end_of_list.feature delete mode 100644 src/components/transfer/features/notify_at_end_of_list/index.js delete mode 100644 src/components/transfer/features/reorder-with-buttons.feature delete mode 100644 src/components/transfer/features/reorder-with-buttons/index.js delete mode 100644 src/components/transfer/features/set_unset-highlighted-option.feature delete mode 100644 src/components/transfer/features/set_unset-highlighted-option/index.js delete mode 100644 src/components/transfer/features/transferring-items.feature delete mode 100644 src/components/transfer/features/transferring-items/index.js delete mode 100644 src/components/transfer/filter.js delete mode 100644 src/components/transfer/icons.js delete mode 100644 src/components/transfer/index.js delete mode 100644 src/components/transfer/left-footer.js delete mode 100644 src/components/transfer/left-header.js delete mode 100644 src/components/transfer/left-side.js delete mode 100644 src/components/transfer/options-container.js delete mode 100644 src/components/transfer/picked-options.js delete mode 100644 src/components/transfer/remove-all.js delete mode 100644 src/components/transfer/remove-individual.js delete mode 100644 src/components/transfer/reordering-actions.js delete mode 100644 src/components/transfer/right-footer.js delete mode 100644 src/components/transfer/right-header.js delete mode 100644 src/components/transfer/right-side.js delete mode 100644 src/components/transfer/source-options.js delete mode 100644 src/components/transfer/transfer-option.js delete mode 100644 src/components/transfer/transfer.js delete mode 100644 src/components/transfer/transfer.prod.stories.js delete mode 100644 src/components/transfer/transfer/add-all-selectable-source-options.js delete mode 100644 src/components/transfer/transfer/add-individual-source-options.js delete mode 100644 src/components/transfer/transfer/create-double-click-handlers.js delete mode 100644 src/components/transfer/transfer/default-filter-callback.js delete mode 100644 src/components/transfer/transfer/get-option-click-handlers.js delete mode 100644 src/components/transfer/transfer/index.js delete mode 100644 src/components/transfer/transfer/is-reorder-down-disabled.js delete mode 100644 src/components/transfer/transfer/is-reorder-up-disabled.js delete mode 100644 src/components/transfer/transfer/move-highlighted-picked-option-down.js delete mode 100644 src/components/transfer/transfer/move-highlighted-picked-option-up.js delete mode 100644 src/components/transfer/transfer/remove-all-picked-options.js delete mode 100644 src/components/transfer/transfer/remove-individual-picked-options.js delete mode 100644 src/components/transfer/transfer/use-filter.js delete mode 100644 src/components/transfer/transfer/use-highlighted-options.js delete mode 100644 src/components/transfer/transfer/use-highlighted-options/create-toggle-highlighted-option.js delete mode 100644 src/components/transfer/transfer/use-highlighted-options/toggle-add.js delete mode 100644 src/components/transfer/transfer/use-highlighted-options/toggle-range.js delete mode 100644 src/components/transfer/transfer/use-highlighted-options/toggle-replace.js delete mode 100644 src/components/transfer/use-resize-counter.js delete mode 100644 src/components/user-avatar/image-avatar.js delete mode 100644 src/components/user-avatar/image-avatar.test.js delete mode 100644 src/components/user-avatar/index.js delete mode 100644 src/components/user-avatar/text-avatar.js delete mode 100644 src/components/user-avatar/text-avatar.test.js delete mode 100644 src/components/user-avatar/user-avatar.js delete mode 100644 src/components/user-avatar/user-avatar.prod.stories.js delete mode 100644 src/components/user-avatar/user-avatar.test.js delete mode 100644 src/constants/colors.js delete mode 100644 src/constants/elevations.js delete mode 100644 src/constants/index.js delete mode 100644 src/constants/layers.js delete mode 100644 src/constants/shared-prop-types.js delete mode 100644 src/constants/spacers.js delete mode 100644 src/constants/theme.js delete mode 100644 src/forms/__tests__/__snapshots__/index.test.js.snap delete mode 100644 src/forms/__tests__/index.test.js delete mode 100644 src/forms/formDecorator.js delete mode 100644 src/forms/index.js delete mode 100644 src/forms/shared/helpers.js delete mode 100644 src/forms/shared/helpers/createBlurHandler.js delete mode 100644 src/forms/shared/helpers/createChangeHandler.js delete mode 100644 src/forms/shared/helpers/createFocusHandler.js delete mode 100644 src/forms/shared/helpers/createSelectChangeHandler.js delete mode 100644 src/forms/shared/helpers/createToggleChangeHandler.js delete mode 100644 src/forms/shared/helpers/getValidationText.js delete mode 100644 src/forms/shared/helpers/hasError.js delete mode 100644 src/forms/shared/helpers/isLoading.js delete mode 100644 src/forms/shared/helpers/isValid.js delete mode 100644 src/forms/shared/propTypes.js delete mode 100644 src/forms/transformers/arrayWithIdObjects.js delete mode 100644 src/forms/transformers/index.js delete mode 100644 src/forms/types/CheckboxFieldFF/CheckboxFieldFF.d.ts delete mode 100644 src/forms/types/FieldGroupFF/FieldGroupFF.d.ts delete mode 100644 src/forms/types/FileInputFieldFF/FileInputFieldFF.d.ts delete mode 100644 src/forms/types/InputFieldFF/InputFieldFF.d.ts delete mode 100644 src/forms/types/MultiSelectFieldFF/MutliSelectFieldFF.d.ts delete mode 100644 src/forms/types/RadioFieldFF/RadioFieldFF.d.ts delete mode 100644 src/forms/types/SingleSelectFieldFF/SingleSelectFieldFF.d.ts delete mode 100644 src/forms/types/SwitchFieldFF/SwitchFieldFF.d.ts delete mode 100644 src/forms/types/TextAreaFieldFF/TextAreaFieldFF.d.ts delete mode 100644 src/forms/types/index.d.ts delete mode 100644 src/forms/types/transformers/index.d.ts delete mode 100644 src/forms/types/validators/index.d.ts delete mode 100644 src/forms/validators/__tests__/alphaNumeric.test.js delete mode 100644 src/forms/validators/__tests__/boolean.test.js delete mode 100644 src/forms/validators/__tests__/composeValidators.test.js delete mode 100644 src/forms/validators/__tests__/createCharacterLengthRange.test.js delete mode 100644 src/forms/validators/__tests__/createEqualTo.test.js delete mode 100644 src/forms/validators/__tests__/createMaxCharacterLength.test.js delete mode 100644 src/forms/validators/__tests__/createMaxNumber.test.js delete mode 100644 src/forms/validators/__tests__/createMinCharacterLength.test.js delete mode 100644 src/forms/validators/__tests__/createMinNumber.test.js delete mode 100644 src/forms/validators/__tests__/createNumberRange.test.js delete mode 100644 src/forms/validators/__tests__/createPattern.test.js delete mode 100644 src/forms/validators/__tests__/dhis2Password.test.js delete mode 100644 src/forms/validators/__tests__/dhis2Username.test.js delete mode 100644 src/forms/validators/__tests__/email.test.js delete mode 100644 src/forms/validators/__tests__/hasValue.test.js delete mode 100644 src/forms/validators/__tests__/integer.test.js delete mode 100644 src/forms/validators/__tests__/internationalPhoneNumber.test.js delete mode 100644 src/forms/validators/__tests__/number.test.js delete mode 100644 src/forms/validators/__tests__/string.test.js delete mode 100644 src/forms/validators/__tests__/url.test.js delete mode 100644 src/forms/validators/alphaNumeric.js delete mode 100644 src/forms/validators/boolean.js delete mode 100644 src/forms/validators/composeValidators.js delete mode 100644 src/forms/validators/createCharacterLengthRange.js delete mode 100644 src/forms/validators/createEqualTo.js delete mode 100644 src/forms/validators/createMaxCharacterLength.js delete mode 100644 src/forms/validators/createMaxNumber.js delete mode 100644 src/forms/validators/createMinCharacterLength.js delete mode 100644 src/forms/validators/createMinNumber.js delete mode 100644 src/forms/validators/createNumberRange.js delete mode 100644 src/forms/validators/createPattern.js delete mode 100644 src/forms/validators/dhis2Password.js delete mode 100644 src/forms/validators/dhis2Username.js delete mode 100644 src/forms/validators/email.js delete mode 100644 src/forms/validators/hasValue.js delete mode 100644 src/forms/validators/helpers/index.js delete mode 100644 src/forms/validators/index.js delete mode 100644 src/forms/validators/integer.js delete mode 100644 src/forms/validators/internationalPhoneNumber.js delete mode 100644 src/forms/validators/number.js delete mode 100644 src/forms/validators/string.js delete mode 100644 src/forms/validators/test-helpers/index.js delete mode 100644 src/forms/validators/url.js delete mode 100644 src/icons/.eslintrc.js delete mode 100644 src/icons/icons.prod.stories.js delete mode 100644 src/icons/index.js delete mode 100644 src/icons/react/Add16.js delete mode 100644 src/icons/react/Add24.js delete mode 100644 src/icons/react/AddCircle16.js delete mode 100644 src/icons/react/AddCircle24.js delete mode 100644 src/icons/react/Apps16.js delete mode 100644 src/icons/react/Apps24.js delete mode 100644 src/icons/react/Archive16.js delete mode 100644 src/icons/react/Archive24.js delete mode 100644 src/icons/react/ArrowDown16.js delete mode 100644 src/icons/react/ArrowDown24.js delete mode 100644 src/icons/react/ArrowLeft16.js delete mode 100644 src/icons/react/ArrowLeft24.js delete mode 100644 src/icons/react/ArrowLeftMulti16.js delete mode 100644 src/icons/react/ArrowLeftMulti24.js delete mode 100644 src/icons/react/ArrowRight16.js delete mode 100644 src/icons/react/ArrowRight24.js delete mode 100644 src/icons/react/ArrowRightMulti16.js delete mode 100644 src/icons/react/ArrowRightMulti24.js delete mode 100644 src/icons/react/ArrowUp16.js delete mode 100644 src/icons/react/ArrowUp24.js delete mode 100644 src/icons/react/At16.js delete mode 100644 src/icons/react/At24.js delete mode 100644 src/icons/react/Attachment16.js delete mode 100644 src/icons/react/Attachment24.js delete mode 100644 src/icons/react/Block16.js delete mode 100644 src/icons/react/Block24.js delete mode 100644 src/icons/react/Calendar16.js delete mode 100644 src/icons/react/Calendar24.js delete mode 100644 src/icons/react/Checkmark12.js delete mode 100644 src/icons/react/Checkmark16.js delete mode 100644 src/icons/react/Checkmark24.js delete mode 100644 src/icons/react/CheckmarkCircle16.js delete mode 100644 src/icons/react/CheckmarkCircle24.js delete mode 100644 src/icons/react/ChevronDown16.js delete mode 100644 src/icons/react/ChevronDown24.js delete mode 100644 src/icons/react/ChevronLeft16.js delete mode 100644 src/icons/react/ChevronLeft24.js delete mode 100644 src/icons/react/ChevronRight16.js delete mode 100644 src/icons/react/ChevronRight24.js delete mode 100644 src/icons/react/ChevronUp16.js delete mode 100644 src/icons/react/ChevronUp24.js delete mode 100644 src/icons/react/Clock16.js delete mode 100644 src/icons/react/Clock24.js delete mode 100644 src/icons/react/ClockHistory16.js delete mode 100644 src/icons/react/ClockHistory24.js delete mode 100644 src/icons/react/Color16.js delete mode 100644 src/icons/react/Color24.js delete mode 100644 src/icons/react/Copy16.js delete mode 100644 src/icons/react/Copy24.js delete mode 100644 src/icons/react/Cross16.js delete mode 100644 src/icons/react/Cross24.js delete mode 100644 src/icons/react/DashboardWindow16.js delete mode 100644 src/icons/react/DashboardWindow24.js delete mode 100644 src/icons/react/DataInteger16.js delete mode 100644 src/icons/react/DataInteger24.js delete mode 100644 src/icons/react/DataString16.js delete mode 100644 src/icons/react/DataString24.js delete mode 100644 src/icons/react/Delete16.js delete mode 100644 src/icons/react/Delete24.js delete mode 100644 src/icons/react/DimensionCategoryOptionGroupset16.js delete mode 100644 src/icons/react/DimensionData16.js delete mode 100644 src/icons/react/DimensionDataElementGroupset16.js delete mode 100644 src/icons/react/DimensionDataSet16.js delete mode 100644 src/icons/react/DimensionEventDataItem16.js delete mode 100644 src/icons/react/DimensionIndicator16.js delete mode 100644 src/icons/react/DimensionOrgUnit16.js delete mode 100644 src/icons/react/DimensionOrgUnitGroupset16.js delete mode 100644 src/icons/react/DimensionProgramIndicator16.js delete mode 100644 src/icons/react/DimensionValidationRule16.js delete mode 100644 src/icons/react/DirectionNorth16.js delete mode 100644 src/icons/react/DirectionNorth24.js delete mode 100644 src/icons/react/Download16.js delete mode 100644 src/icons/react/Download24.js delete mode 100644 src/icons/react/DragHandle16.js delete mode 100644 src/icons/react/DragHandle24.js delete mode 100644 src/icons/react/Duplicate16.js delete mode 100644 src/icons/react/Duplicate24.js delete mode 100644 src/icons/react/Edit16.js delete mode 100644 src/icons/react/Edit24.js delete mode 100644 src/icons/react/EditItems16.js delete mode 100644 src/icons/react/EditItems24.js delete mode 100644 src/icons/react/EmptyFrame16.js delete mode 100644 src/icons/react/EmptyFrame24.js delete mode 100644 src/icons/react/Error16.js delete mode 100644 src/icons/react/Error24.js delete mode 100644 src/icons/react/ErrorFilled16.js delete mode 100644 src/icons/react/ErrorFilled24.js delete mode 100644 src/icons/react/ExportItems24.js delete mode 100644 src/icons/react/FaceAdd16.js delete mode 100644 src/icons/react/FaceAdd24.js delete mode 100644 src/icons/react/File16.js delete mode 100644 src/icons/react/File24.js delete mode 100644 src/icons/react/FileDocument16.js delete mode 100644 src/icons/react/FileDocument24.js delete mode 100644 src/icons/react/Filter16.js delete mode 100644 src/icons/react/Filter24.js delete mode 100644 src/icons/react/Flag16.js delete mode 100644 src/icons/react/Flag24.js delete mode 100644 src/icons/react/Folder16.js delete mode 100644 src/icons/react/Folder24.js delete mode 100644 src/icons/react/FolderOpen16.js delete mode 100644 src/icons/react/FolderOpen24.js delete mode 100644 src/icons/react/Fullscreen16.js delete mode 100644 src/icons/react/Fullscreen24.js delete mode 100644 src/icons/react/FullscreenExit16.js delete mode 100644 src/icons/react/FullscreenExit24.js delete mode 100644 src/icons/react/Home16.js delete mode 100644 src/icons/react/Home24.js delete mode 100644 src/icons/react/Image16.js delete mode 100644 src/icons/react/Image24.js delete mode 100644 src/icons/react/ImportItems24.js delete mode 100644 src/icons/react/Info16.js delete mode 100644 src/icons/react/Info24.js delete mode 100644 src/icons/react/InfoFilled16.js delete mode 100644 src/icons/react/InfoFilled24.js delete mode 100644 src/icons/react/Launch16.js delete mode 100644 src/icons/react/Launch24.js delete mode 100644 src/icons/react/LayoutColumns16.js delete mode 100644 src/icons/react/LayoutColumns24.js delete mode 100644 src/icons/react/LayoutRows16.js delete mode 100644 src/icons/react/LayoutRows24.js delete mode 100644 src/icons/react/Legend16.js delete mode 100644 src/icons/react/Legend24.js delete mode 100644 src/icons/react/Link16.js delete mode 100644 src/icons/react/Link24.js delete mode 100644 src/icons/react/List16.js delete mode 100644 src/icons/react/List24.js delete mode 100644 src/icons/react/Location16.js delete mode 100644 src/icons/react/Location24.js delete mode 100644 src/icons/react/Lock16.js delete mode 100644 src/icons/react/Lock24.js delete mode 100644 src/icons/react/LockOpen16.js delete mode 100644 src/icons/react/LockOpen24.js delete mode 100644 src/icons/react/LogOut16.js delete mode 100644 src/icons/react/LogOut24.js delete mode 100644 src/icons/react/Mail16.js delete mode 100644 src/icons/react/Mail24.js delete mode 100644 src/icons/react/MailOpen16.js delete mode 100644 src/icons/react/MailOpen24.js delete mode 100644 src/icons/react/Messages16.js delete mode 100644 src/icons/react/Messages24.js delete mode 100644 src/icons/react/More16.js delete mode 100644 src/icons/react/More24.js delete mode 100644 src/icons/react/Move16.js delete mode 100644 src/icons/react/Move24.js delete mode 100644 src/icons/react/PushLeft16.js delete mode 100644 src/icons/react/PushLeft24.js delete mode 100644 src/icons/react/PushRight16.js delete mode 100644 src/icons/react/PushRight24.js delete mode 100644 src/icons/react/Question16.js delete mode 100644 src/icons/react/Question24.js delete mode 100644 src/icons/react/QuestionFilled16.js delete mode 100644 src/icons/react/QuestionFilled24.js delete mode 100644 src/icons/react/Queue16.js delete mode 100644 src/icons/react/Queue24.js delete mode 100644 src/icons/react/Redo16.js delete mode 100644 src/icons/react/Redo24.js delete mode 100644 src/icons/react/Reorder16.js delete mode 100644 src/icons/react/Reorder24.js delete mode 100644 src/icons/react/Reply16.js delete mode 100644 src/icons/react/Reply24.js delete mode 100644 src/icons/react/Ruler16.js delete mode 100644 src/icons/react/Ruler24.js delete mode 100644 src/icons/react/Save16.js delete mode 100644 src/icons/react/Save24.js delete mode 100644 src/icons/react/Search16.js delete mode 100644 src/icons/react/Search24.js delete mode 100644 src/icons/react/Settings16.js delete mode 100644 src/icons/react/Settings24.js delete mode 100644 src/icons/react/Share16.js delete mode 100644 src/icons/react/Share24.js delete mode 100644 src/icons/react/Star16.js delete mode 100644 src/icons/react/Star24.js delete mode 100644 src/icons/react/StarFilled16.js delete mode 100644 src/icons/react/StarFilled24.js delete mode 100644 src/icons/react/Subscribe16.js delete mode 100644 src/icons/react/Subscribe24.js delete mode 100644 src/icons/react/SubscribeOff16.js delete mode 100644 src/icons/react/SubscribeOff24.js delete mode 100644 src/icons/react/Subtract16.js delete mode 100644 src/icons/react/Subtract24.js delete mode 100644 src/icons/react/SubtractCircle16.js delete mode 100644 src/icons/react/SubtractCircle24.js delete mode 100644 src/icons/react/Sync16.js delete mode 100644 src/icons/react/Sync24.js delete mode 100644 src/icons/react/Table16.js delete mode 100644 src/icons/react/Table24.js delete mode 100644 src/icons/react/TerminalWindow16.js delete mode 100644 src/icons/react/TerminalWindow24.js delete mode 100644 src/icons/react/TextBold16.js delete mode 100644 src/icons/react/TextBold24.js delete mode 100644 src/icons/react/TextBox16.js delete mode 100644 src/icons/react/TextBox24.js delete mode 100644 src/icons/react/TextHeading16.js delete mode 100644 src/icons/react/TextHeading24.js delete mode 100644 src/icons/react/TextItalic16.js delete mode 100644 src/icons/react/TextItalic24.js delete mode 100644 src/icons/react/TextListOrdered16.js delete mode 100644 src/icons/react/TextListOrdered24.js delete mode 100644 src/icons/react/TextListUnordered16.js delete mode 100644 src/icons/react/TextListUnordered24.js delete mode 100644 src/icons/react/ThumbDown16.js delete mode 100644 src/icons/react/ThumbDown24.js delete mode 100644 src/icons/react/ThumbUp16.js delete mode 100644 src/icons/react/ThumbUp24.js delete mode 100644 src/icons/react/Translate16.js delete mode 100644 src/icons/react/Translate24.js delete mode 100644 src/icons/react/Undo16.js delete mode 100644 src/icons/react/Undo24.js delete mode 100644 src/icons/react/Upload16.js delete mode 100644 src/icons/react/Upload24.js delete mode 100644 src/icons/react/User16.js delete mode 100644 src/icons/react/User24.js delete mode 100644 src/icons/react/UserGroup16.js delete mode 100644 src/icons/react/UserGroup24.js delete mode 100644 src/icons/react/View16.js delete mode 100644 src/icons/react/View24.js delete mode 100644 src/icons/react/ViewOff16.js delete mode 100644 src/icons/react/ViewOff24.js delete mode 100644 src/icons/react/VisualizationArea16.js delete mode 100644 src/icons/react/VisualizationArea24.js delete mode 100644 src/icons/react/VisualizationAreaStacked16.js delete mode 100644 src/icons/react/VisualizationAreaStacked24.js delete mode 100644 src/icons/react/VisualizationBar16.js delete mode 100644 src/icons/react/VisualizationBar24.js delete mode 100644 src/icons/react/VisualizationBarStacked16.js delete mode 100644 src/icons/react/VisualizationBarStacked24.js delete mode 100644 src/icons/react/VisualizationColumn16.js delete mode 100644 src/icons/react/VisualizationColumn24.js delete mode 100644 src/icons/react/VisualizationColumnMulti16.js delete mode 100644 src/icons/react/VisualizationColumnMulti24.js delete mode 100644 src/icons/react/VisualizationColumnStacked16.js delete mode 100644 src/icons/react/VisualizationColumnStacked24.js delete mode 100644 src/icons/react/VisualizationGauge16.js delete mode 100644 src/icons/react/VisualizationGauge24.js delete mode 100644 src/icons/react/VisualizationLine16.js delete mode 100644 src/icons/react/VisualizationLine24.js delete mode 100644 src/icons/react/VisualizationLineMulti16.js delete mode 100644 src/icons/react/VisualizationLineMulti24.js delete mode 100644 src/icons/react/VisualizationLinelist16.js delete mode 100644 src/icons/react/VisualizationLinelist24.js delete mode 100644 src/icons/react/VisualizationOutlierTable16.js delete mode 100644 src/icons/react/VisualizationOutlierTable24.js delete mode 100644 src/icons/react/VisualizationPie16.js delete mode 100644 src/icons/react/VisualizationPie24.js delete mode 100644 src/icons/react/VisualizationPivotTable16.js delete mode 100644 src/icons/react/VisualizationPivotTable24.js delete mode 100644 src/icons/react/VisualizationRadar16.js delete mode 100644 src/icons/react/VisualizationRadar24.js delete mode 100644 src/icons/react/VisualizationScatter16.js delete mode 100644 src/icons/react/VisualizationScatter24.js delete mode 100644 src/icons/react/VisualizationSingleValue16.js delete mode 100644 src/icons/react/VisualizationSingleValue24.js delete mode 100644 src/icons/react/Warning16.js delete mode 100644 src/icons/react/Warning24.js delete mode 100644 src/icons/react/WarningFilled16.js delete mode 100644 src/icons/react/WarningFilled24.js delete mode 100644 src/icons/react/Window16.js delete mode 100644 src/icons/react/Window24.js delete mode 100644 src/icons/react/World16.js delete mode 100644 src/icons/react/World24.js delete mode 100644 src/icons/react/index.js delete mode 100644 src/icons/svg/add-16.svg delete mode 100644 src/icons/svg/add-24.svg delete mode 100644 src/icons/svg/add-circle-16.svg delete mode 100644 src/icons/svg/add-circle-24.svg delete mode 100644 src/icons/svg/apps-16.svg delete mode 100644 src/icons/svg/apps-24.svg delete mode 100644 src/icons/svg/archive-16.svg delete mode 100644 src/icons/svg/archive-24.svg delete mode 100644 src/icons/svg/arrow-down-16.svg delete mode 100644 src/icons/svg/arrow-down-24.svg delete mode 100644 src/icons/svg/arrow-left-16.svg delete mode 100644 src/icons/svg/arrow-left-24.svg delete mode 100644 src/icons/svg/arrow-left-multi-16.svg delete mode 100644 src/icons/svg/arrow-left-multi-24.svg delete mode 100644 src/icons/svg/arrow-right-16.svg delete mode 100644 src/icons/svg/arrow-right-24.svg delete mode 100644 src/icons/svg/arrow-right-multi-16.svg delete mode 100644 src/icons/svg/arrow-right-multi-24.svg delete mode 100644 src/icons/svg/arrow-up-16.svg delete mode 100644 src/icons/svg/arrow-up-24.svg delete mode 100644 src/icons/svg/at-16.svg delete mode 100644 src/icons/svg/at-24.svg delete mode 100644 src/icons/svg/attachment-16.svg delete mode 100644 src/icons/svg/attachment-24.svg delete mode 100644 src/icons/svg/block-16.svg delete mode 100644 src/icons/svg/block-24.svg delete mode 100644 src/icons/svg/calendar-16.svg delete mode 100644 src/icons/svg/calendar-24.svg delete mode 100644 src/icons/svg/checkmark-12.svg delete mode 100644 src/icons/svg/checkmark-16.svg delete mode 100644 src/icons/svg/checkmark-24.svg delete mode 100644 src/icons/svg/checkmark-circle-16.svg delete mode 100644 src/icons/svg/checkmark-circle-24.svg delete mode 100644 src/icons/svg/chevron-down-16.svg delete mode 100644 src/icons/svg/chevron-down-24.svg delete mode 100644 src/icons/svg/chevron-left-16.svg delete mode 100644 src/icons/svg/chevron-left-24.svg delete mode 100644 src/icons/svg/chevron-right-16.svg delete mode 100644 src/icons/svg/chevron-right-24.svg delete mode 100644 src/icons/svg/chevron-up-16.svg delete mode 100644 src/icons/svg/chevron-up-24.svg delete mode 100644 src/icons/svg/clock-16.svg delete mode 100644 src/icons/svg/clock-24.svg delete mode 100644 src/icons/svg/clock-history-16.svg delete mode 100644 src/icons/svg/clock-history-24.svg delete mode 100644 src/icons/svg/color-16.svg delete mode 100644 src/icons/svg/color-24.svg delete mode 100644 src/icons/svg/copy-16.svg delete mode 100644 src/icons/svg/copy-24.svg delete mode 100644 src/icons/svg/cross-16.svg delete mode 100644 src/icons/svg/cross-24.svg delete mode 100644 src/icons/svg/dashboard-window-16.svg delete mode 100644 src/icons/svg/dashboard-window-24.svg delete mode 100644 src/icons/svg/data-integer-16.svg delete mode 100644 src/icons/svg/data-integer-24.svg delete mode 100644 src/icons/svg/data-string-16.svg delete mode 100644 src/icons/svg/data-string-24.svg delete mode 100644 src/icons/svg/delete-16.svg delete mode 100644 src/icons/svg/delete-24.svg delete mode 100644 src/icons/svg/dimension-category-option-groupset-16.svg delete mode 100644 src/icons/svg/dimension-data-16.svg delete mode 100644 src/icons/svg/dimension-data-element-groupset-16.svg delete mode 100644 src/icons/svg/dimension-data-set-16.svg delete mode 100644 src/icons/svg/dimension-event-data-item-16.svg delete mode 100644 src/icons/svg/dimension-indicator-16.svg delete mode 100644 src/icons/svg/dimension-org-unit-16.svg delete mode 100644 src/icons/svg/dimension-org-unit-groupset-16.svg delete mode 100644 src/icons/svg/dimension-program-indicator-16.svg delete mode 100644 src/icons/svg/dimension-validation-rule-16.svg delete mode 100644 src/icons/svg/direction-north-16.svg delete mode 100644 src/icons/svg/direction-north-24.svg delete mode 100644 src/icons/svg/download-16.svg delete mode 100644 src/icons/svg/download-24.svg delete mode 100644 src/icons/svg/drag-handle-16.svg delete mode 100644 src/icons/svg/drag-handle-24.svg delete mode 100644 src/icons/svg/duplicate-16.svg delete mode 100644 src/icons/svg/duplicate-24.svg delete mode 100644 src/icons/svg/edit-16.svg delete mode 100644 src/icons/svg/edit-24.svg delete mode 100644 src/icons/svg/edit-items-16.svg delete mode 100644 src/icons/svg/edit-items-24.svg delete mode 100644 src/icons/svg/empty-frame-16.svg delete mode 100644 src/icons/svg/empty-frame-24.svg delete mode 100644 src/icons/svg/error-16.svg delete mode 100644 src/icons/svg/error-24.svg delete mode 100644 src/icons/svg/error-filled-16.svg delete mode 100644 src/icons/svg/error-filled-24.svg delete mode 100644 src/icons/svg/export-items-24.svg delete mode 100644 src/icons/svg/face-add-16.svg delete mode 100644 src/icons/svg/face-add-24.svg delete mode 100644 src/icons/svg/file-16.svg delete mode 100644 src/icons/svg/file-24.svg delete mode 100644 src/icons/svg/file-document-16.svg delete mode 100644 src/icons/svg/file-document-24.svg delete mode 100644 src/icons/svg/filter-16.svg delete mode 100644 src/icons/svg/filter-24.svg delete mode 100644 src/icons/svg/flag-16.svg delete mode 100644 src/icons/svg/flag-24.svg delete mode 100644 src/icons/svg/folder-16.svg delete mode 100644 src/icons/svg/folder-24.svg delete mode 100644 src/icons/svg/folder-open-16.svg delete mode 100644 src/icons/svg/folder-open-24.svg delete mode 100644 src/icons/svg/fullscreen-16.svg delete mode 100644 src/icons/svg/fullscreen-24.svg delete mode 100644 src/icons/svg/fullscreen-exit-16.svg delete mode 100644 src/icons/svg/fullscreen-exit-24.svg delete mode 100644 src/icons/svg/home-16.svg delete mode 100644 src/icons/svg/home-24.svg delete mode 100644 src/icons/svg/image-16.svg delete mode 100644 src/icons/svg/image-24.svg delete mode 100644 src/icons/svg/import-items-24.svg delete mode 100644 src/icons/svg/info-16.svg delete mode 100644 src/icons/svg/info-24.svg delete mode 100644 src/icons/svg/info-filled-16.svg delete mode 100644 src/icons/svg/info-filled-24.svg delete mode 100644 src/icons/svg/launch-16.svg delete mode 100644 src/icons/svg/launch-24.svg delete mode 100644 src/icons/svg/layout-columns-16.svg delete mode 100644 src/icons/svg/layout-columns-24.svg delete mode 100644 src/icons/svg/layout-rows-16.svg delete mode 100644 src/icons/svg/layout-rows-24.svg delete mode 100644 src/icons/svg/legend-16.svg delete mode 100644 src/icons/svg/legend-24.svg delete mode 100644 src/icons/svg/link-16.svg delete mode 100644 src/icons/svg/link-24.svg delete mode 100644 src/icons/svg/list-16.svg delete mode 100644 src/icons/svg/list-24.svg delete mode 100644 src/icons/svg/location-16.svg delete mode 100644 src/icons/svg/location-24.svg delete mode 100644 src/icons/svg/lock-16.svg delete mode 100644 src/icons/svg/lock-24.svg delete mode 100644 src/icons/svg/lock-open-16.svg delete mode 100644 src/icons/svg/lock-open-24.svg delete mode 100644 src/icons/svg/log-out-16.svg delete mode 100644 src/icons/svg/log-out-24.svg delete mode 100644 src/icons/svg/mail-16.svg delete mode 100644 src/icons/svg/mail-24.svg delete mode 100644 src/icons/svg/mail-open-16.svg delete mode 100644 src/icons/svg/mail-open-24.svg delete mode 100644 src/icons/svg/messages-16.svg delete mode 100644 src/icons/svg/messages-24.svg delete mode 100644 src/icons/svg/more-16.svg delete mode 100644 src/icons/svg/more-24.svg delete mode 100644 src/icons/svg/move-16.svg delete mode 100644 src/icons/svg/move-24.svg delete mode 100644 src/icons/svg/push-left-16.svg delete mode 100644 src/icons/svg/push-left-24.svg delete mode 100644 src/icons/svg/push-right-16.svg delete mode 100644 src/icons/svg/push-right-24.svg delete mode 100644 src/icons/svg/question-16.svg delete mode 100644 src/icons/svg/question-24.svg delete mode 100644 src/icons/svg/question-filled-16.svg delete mode 100644 src/icons/svg/question-filled-24.svg delete mode 100644 src/icons/svg/queue-16.svg delete mode 100644 src/icons/svg/queue-24.svg delete mode 100644 src/icons/svg/redo-16.svg delete mode 100644 src/icons/svg/redo-24.svg delete mode 100644 src/icons/svg/reorder-16.svg delete mode 100644 src/icons/svg/reorder-24.svg delete mode 100644 src/icons/svg/reply-16.svg delete mode 100644 src/icons/svg/reply-24.svg delete mode 100644 src/icons/svg/ruler-16.svg delete mode 100644 src/icons/svg/ruler-24.svg delete mode 100644 src/icons/svg/save-16.svg delete mode 100644 src/icons/svg/save-24.svg delete mode 100644 src/icons/svg/search-16.svg delete mode 100644 src/icons/svg/search-24.svg delete mode 100644 src/icons/svg/settings-16.svg delete mode 100644 src/icons/svg/settings-24.svg delete mode 100644 src/icons/svg/share-16.svg delete mode 100644 src/icons/svg/share-24.svg delete mode 100644 src/icons/svg/star-16.svg delete mode 100644 src/icons/svg/star-24.svg delete mode 100644 src/icons/svg/star-filled-16.svg delete mode 100644 src/icons/svg/star-filled-24.svg delete mode 100644 src/icons/svg/subscribe-16.svg delete mode 100644 src/icons/svg/subscribe-24.svg delete mode 100644 src/icons/svg/subscribe-off-16.svg delete mode 100644 src/icons/svg/subscribe-off-24.svg delete mode 100644 src/icons/svg/subtract-16.svg delete mode 100644 src/icons/svg/subtract-24.svg delete mode 100644 src/icons/svg/subtract-circle-16.svg delete mode 100644 src/icons/svg/subtract-circle-24.svg delete mode 100644 src/icons/svg/sync-16.svg delete mode 100644 src/icons/svg/sync-24.svg delete mode 100644 src/icons/svg/table-16.svg delete mode 100644 src/icons/svg/table-24.svg delete mode 100644 src/icons/svg/terminal-window-16.svg delete mode 100644 src/icons/svg/terminal-window-24.svg delete mode 100644 src/icons/svg/text-bold-16.svg delete mode 100644 src/icons/svg/text-bold-24.svg delete mode 100644 src/icons/svg/text-box-16.svg delete mode 100644 src/icons/svg/text-box-24.svg delete mode 100644 src/icons/svg/text-heading-16.svg delete mode 100644 src/icons/svg/text-heading-24.svg delete mode 100644 src/icons/svg/text-italic-16.svg delete mode 100644 src/icons/svg/text-italic-24.svg delete mode 100644 src/icons/svg/text-list-ordered-16.svg delete mode 100644 src/icons/svg/text-list-ordered-24.svg delete mode 100644 src/icons/svg/text-list-unordered-16.svg delete mode 100644 src/icons/svg/text-list-unordered-24.svg delete mode 100644 src/icons/svg/thumb-down-16.svg delete mode 100644 src/icons/svg/thumb-down-24.svg delete mode 100644 src/icons/svg/thumb-up-16.svg delete mode 100644 src/icons/svg/thumb-up-24.svg delete mode 100644 src/icons/svg/translate-16.svg delete mode 100644 src/icons/svg/translate-24.svg delete mode 100644 src/icons/svg/undo-16.svg delete mode 100644 src/icons/svg/undo-24.svg delete mode 100644 src/icons/svg/upload-16.svg delete mode 100644 src/icons/svg/upload-24.svg delete mode 100644 src/icons/svg/user-16.svg delete mode 100644 src/icons/svg/user-24.svg delete mode 100644 src/icons/svg/user-group-16.svg delete mode 100644 src/icons/svg/user-group-24.svg delete mode 100644 src/icons/svg/view-16.svg delete mode 100644 src/icons/svg/view-24.svg delete mode 100644 src/icons/svg/view-off-16.svg delete mode 100644 src/icons/svg/view-off-24.svg delete mode 100644 src/icons/svg/visualization-area-16.svg delete mode 100644 src/icons/svg/visualization-area-24.svg delete mode 100644 src/icons/svg/visualization-area-stacked-16.svg delete mode 100644 src/icons/svg/visualization-area-stacked-24.svg delete mode 100644 src/icons/svg/visualization-bar-16.svg delete mode 100644 src/icons/svg/visualization-bar-24.svg delete mode 100644 src/icons/svg/visualization-bar-stacked-16.svg delete mode 100644 src/icons/svg/visualization-bar-stacked-24.svg delete mode 100644 src/icons/svg/visualization-column-16.svg delete mode 100644 src/icons/svg/visualization-column-24.svg delete mode 100644 src/icons/svg/visualization-column-multi-16.svg delete mode 100644 src/icons/svg/visualization-column-multi-24.svg delete mode 100644 src/icons/svg/visualization-column-stacked-16.svg delete mode 100644 src/icons/svg/visualization-column-stacked-24.svg delete mode 100644 src/icons/svg/visualization-gauge-16.svg delete mode 100644 src/icons/svg/visualization-gauge-24.svg delete mode 100644 src/icons/svg/visualization-line-16.svg delete mode 100644 src/icons/svg/visualization-line-24.svg delete mode 100644 src/icons/svg/visualization-line-multi-16.svg delete mode 100644 src/icons/svg/visualization-line-multi-24.svg delete mode 100644 src/icons/svg/visualization-linelist-16.svg delete mode 100644 src/icons/svg/visualization-linelist-24.svg delete mode 100644 src/icons/svg/visualization-outlier-table-16.svg delete mode 100644 src/icons/svg/visualization-outlier-table-24.svg delete mode 100644 src/icons/svg/visualization-pie-16.svg delete mode 100644 src/icons/svg/visualization-pie-24.svg delete mode 100644 src/icons/svg/visualization-pivot-table-16.svg delete mode 100644 src/icons/svg/visualization-pivot-table-24.svg delete mode 100644 src/icons/svg/visualization-radar-16.svg delete mode 100644 src/icons/svg/visualization-radar-24.svg delete mode 100644 src/icons/svg/visualization-scatter-16.svg delete mode 100644 src/icons/svg/visualization-scatter-24.svg delete mode 100644 src/icons/svg/visualization-single-value-16.svg delete mode 100644 src/icons/svg/visualization-single-value-24.svg delete mode 100644 src/icons/svg/warning-16.svg delete mode 100644 src/icons/svg/warning-24.svg delete mode 100644 src/icons/svg/warning-filled-16.svg delete mode 100644 src/icons/svg/warning-filled-24.svg delete mode 100644 src/icons/svg/window-16.svg delete mode 100644 src/icons/svg/window-24.svg delete mode 100644 src/icons/svg/world-16.svg delete mode 100644 src/icons/svg/world-24.svg delete mode 100644 src/icons/templates/icon-template.js delete mode 100644 src/icons/templates/index-template.js diff --git a/src/components/button/button-strip/button-strip.e2e.stories.js b/src/button/button-strip/button-strip.e2e.stories.js similarity index 100% rename from src/components/button/button-strip/button-strip.e2e.stories.js rename to src/button/button-strip/button-strip.e2e.stories.js diff --git a/src/components/button/button-strip/button-strip.js b/src/button/button-strip/button-strip.js similarity index 100% rename from src/components/button/button-strip/button-strip.js rename to src/button/button-strip/button-strip.js diff --git a/src/components/button/button-strip/button-strip.prod.stories.js b/src/button/button-strip/button-strip.prod.stories.js similarity index 100% rename from src/components/button/button-strip/button-strip.prod.stories.js rename to src/button/button-strip/button-strip.prod.stories.js diff --git a/src/components/button/button-strip/features/accepts_children.feature b/src/button/button-strip/features/accepts_children.feature similarity index 100% rename from src/components/button/button-strip/features/accepts_children.feature rename to src/button/button-strip/features/accepts_children.feature diff --git a/src/components/button/button-strip/features/accepts_children/index.js b/src/button/button-strip/features/accepts_children/index.js similarity index 100% rename from src/components/button/button-strip/features/accepts_children/index.js rename to src/button/button-strip/features/accepts_children/index.js diff --git a/src/components/button/button-strip/index.js b/src/button/button-strip/index.js similarity index 100% rename from src/components/button/button-strip/index.js rename to src/button/button-strip/index.js diff --git a/src/components/button/button/__tests__/Button.test.js b/src/button/button/__tests__/Button.test.js similarity index 100% rename from src/components/button/button/__tests__/Button.test.js rename to src/button/button/__tests__/Button.test.js diff --git a/src/components/button/button/button.e2e.stories.js b/src/button/button/button.e2e.stories.js similarity index 100% rename from src/components/button/button/button.e2e.stories.js rename to src/button/button/button.e2e.stories.js diff --git a/src/components/button/button/button.js b/src/button/button/button.js similarity index 100% rename from src/components/button/button/button.js rename to src/button/button/button.js diff --git a/src/components/button/button/button.prod.stories.js b/src/button/button/button.prod.stories.js similarity index 100% rename from src/components/button/button/button.prod.stories.js rename to src/button/button/button.prod.stories.js diff --git a/src/components/button/button/button.styles.js b/src/button/button/button.styles.js similarity index 100% rename from src/components/button/button/button.styles.js rename to src/button/button/button.styles.js diff --git a/src/components/button/button/features/can_be_blurred.feature b/src/button/button/features/can_be_blurred.feature similarity index 100% rename from src/components/button/button/features/can_be_blurred.feature rename to src/button/button/features/can_be_blurred.feature diff --git a/src/components/button/button/features/can_be_blurred/index.js b/src/button/button/features/can_be_blurred/index.js similarity index 100% rename from src/components/button/button/features/can_be_blurred/index.js rename to src/button/button/features/can_be_blurred/index.js diff --git a/src/components/button/button/features/can_be_clicked.feature b/src/button/button/features/can_be_clicked.feature similarity index 100% rename from src/components/button/button/features/can_be_clicked.feature rename to src/button/button/features/can_be_clicked.feature diff --git a/src/components/button/button/features/can_be_clicked/index.js b/src/button/button/features/can_be_clicked/index.js similarity index 100% rename from src/components/button/button/features/can_be_clicked/index.js rename to src/button/button/features/can_be_clicked/index.js diff --git a/src/components/button/button/features/can_be_focused.feature b/src/button/button/features/can_be_focused.feature similarity index 100% rename from src/components/button/button/features/can_be_focused.feature rename to src/button/button/features/can_be_focused.feature diff --git a/src/components/button/button/features/can_be_focused/index.js b/src/button/button/features/can_be_focused/index.js similarity index 100% rename from src/components/button/button/features/can_be_focused/index.js rename to src/button/button/features/can_be_focused/index.js diff --git a/src/components/button/button/index.js b/src/button/button/index.js similarity index 100% rename from src/components/button/button/index.js rename to src/button/button/index.js diff --git a/src/components/button/dropdown-button/__tests__/dropdown-button.test.js b/src/button/dropdown-button/__tests__/dropdown-button.test.js similarity index 100% rename from src/components/button/dropdown-button/__tests__/dropdown-button.test.js rename to src/button/dropdown-button/__tests__/dropdown-button.test.js diff --git a/src/components/button/dropdown-button/dropdown-button.e2e.stories.js b/src/button/dropdown-button/dropdown-button.e2e.stories.js similarity index 100% rename from src/components/button/dropdown-button/dropdown-button.e2e.stories.js rename to src/button/dropdown-button/dropdown-button.e2e.stories.js diff --git a/src/components/button/dropdown-button/dropdown-button.js b/src/button/dropdown-button/dropdown-button.js similarity index 100% rename from src/components/button/dropdown-button/dropdown-button.js rename to src/button/dropdown-button/dropdown-button.js diff --git a/src/components/button/dropdown-button/dropdown-button.prod.stories.js b/src/button/dropdown-button/dropdown-button.prod.stories.js similarity index 100% rename from src/components/button/dropdown-button/dropdown-button.prod.stories.js rename to src/button/dropdown-button/dropdown-button.prod.stories.js diff --git a/src/components/button/dropdown-button/features/accepts_children.feature b/src/button/dropdown-button/features/accepts_children.feature similarity index 100% rename from src/components/button/dropdown-button/features/accepts_children.feature rename to src/button/dropdown-button/features/accepts_children.feature diff --git a/src/components/button/dropdown-button/features/accepts_children/index.js b/src/button/dropdown-button/features/accepts_children/index.js similarity index 100% rename from src/components/button/dropdown-button/features/accepts_children/index.js rename to src/button/dropdown-button/features/accepts_children/index.js diff --git a/src/components/button/dropdown-button/features/accepts_component.feature b/src/button/dropdown-button/features/accepts_component.feature similarity index 100% rename from src/components/button/dropdown-button/features/accepts_component.feature rename to src/button/dropdown-button/features/accepts_component.feature diff --git a/src/components/button/dropdown-button/features/accepts_component/index.js b/src/button/dropdown-button/features/accepts_component/index.js similarity index 100% rename from src/components/button/dropdown-button/features/accepts_component/index.js rename to src/button/dropdown-button/features/accepts_component/index.js diff --git a/src/components/button/dropdown-button/features/accepts_icon.feature b/src/button/dropdown-button/features/accepts_icon.feature similarity index 100% rename from src/components/button/dropdown-button/features/accepts_icon.feature rename to src/button/dropdown-button/features/accepts_icon.feature diff --git a/src/components/button/dropdown-button/features/accepts_icon/index.js b/src/button/dropdown-button/features/accepts_icon/index.js similarity index 100% rename from src/components/button/dropdown-button/features/accepts_icon/index.js rename to src/button/dropdown-button/features/accepts_icon/index.js diff --git a/src/components/button/dropdown-button/features/accepts_initial_focus.feature b/src/button/dropdown-button/features/accepts_initial_focus.feature similarity index 100% rename from src/components/button/dropdown-button/features/accepts_initial_focus.feature rename to src/button/dropdown-button/features/accepts_initial_focus.feature diff --git a/src/components/button/dropdown-button/features/accepts_initial_focus/index.js b/src/button/dropdown-button/features/accepts_initial_focus/index.js similarity index 100% rename from src/components/button/dropdown-button/features/accepts_initial_focus/index.js rename to src/button/dropdown-button/features/accepts_initial_focus/index.js diff --git a/src/components/button/dropdown-button/features/button_is_clickable.feature b/src/button/dropdown-button/features/button_is_clickable.feature similarity index 100% rename from src/components/button/dropdown-button/features/button_is_clickable.feature rename to src/button/dropdown-button/features/button_is_clickable.feature diff --git a/src/components/button/dropdown-button/features/button_is_clickable/index.js b/src/button/dropdown-button/features/button_is_clickable/index.js similarity index 100% rename from src/components/button/dropdown-button/features/button_is_clickable/index.js rename to src/button/dropdown-button/features/button_is_clickable/index.js diff --git a/src/components/button/dropdown-button/features/can_be_disabled.feature b/src/button/dropdown-button/features/can_be_disabled.feature similarity index 100% rename from src/components/button/dropdown-button/features/can_be_disabled.feature rename to src/button/dropdown-button/features/can_be_disabled.feature diff --git a/src/components/button/dropdown-button/features/can_be_disabled/index.js b/src/button/dropdown-button/features/can_be_disabled/index.js similarity index 100% rename from src/components/button/dropdown-button/features/can_be_disabled/index.js rename to src/button/dropdown-button/features/can_be_disabled/index.js diff --git a/src/components/button/dropdown-button/features/common/index.js b/src/button/dropdown-button/features/common/index.js similarity index 100% rename from src/components/button/dropdown-button/features/common/index.js rename to src/button/dropdown-button/features/common/index.js diff --git a/src/components/button/dropdown-button/features/opens_a_dropdown.feature b/src/button/dropdown-button/features/opens_a_dropdown.feature similarity index 100% rename from src/components/button/dropdown-button/features/opens_a_dropdown.feature rename to src/button/dropdown-button/features/opens_a_dropdown.feature diff --git a/src/components/button/dropdown-button/features/opens_a_dropdown/index.js b/src/button/dropdown-button/features/opens_a_dropdown/index.js similarity index 100% rename from src/components/button/dropdown-button/features/opens_a_dropdown/index.js rename to src/button/dropdown-button/features/opens_a_dropdown/index.js diff --git a/src/components/button/dropdown-button/index.js b/src/button/dropdown-button/index.js similarity index 100% rename from src/components/button/dropdown-button/index.js rename to src/button/dropdown-button/index.js diff --git a/src/components/button/index.js b/src/button/index.js similarity index 100% rename from src/components/button/index.js rename to src/button/index.js diff --git a/src/components/button/split-button/features/accepts_children.feature b/src/button/split-button/features/accepts_children.feature similarity index 100% rename from src/components/button/split-button/features/accepts_children.feature rename to src/button/split-button/features/accepts_children.feature diff --git a/src/components/button/split-button/features/accepts_children/index.js b/src/button/split-button/features/accepts_children/index.js similarity index 100% rename from src/components/button/split-button/features/accepts_children/index.js rename to src/button/split-button/features/accepts_children/index.js diff --git a/src/components/button/split-button/features/accepts_icon.feature b/src/button/split-button/features/accepts_icon.feature similarity index 100% rename from src/components/button/split-button/features/accepts_icon.feature rename to src/button/split-button/features/accepts_icon.feature diff --git a/src/components/button/split-button/features/accepts_icon/index.js b/src/button/split-button/features/accepts_icon/index.js similarity index 100% rename from src/components/button/split-button/features/accepts_icon/index.js rename to src/button/split-button/features/accepts_icon/index.js diff --git a/src/components/button/split-button/features/accepts_initial_focus.feature b/src/button/split-button/features/accepts_initial_focus.feature similarity index 100% rename from src/components/button/split-button/features/accepts_initial_focus.feature rename to src/button/split-button/features/accepts_initial_focus.feature diff --git a/src/components/button/split-button/features/accepts_initial_focus/index.js b/src/button/split-button/features/accepts_initial_focus/index.js similarity index 100% rename from src/components/button/split-button/features/accepts_initial_focus/index.js rename to src/button/split-button/features/accepts_initial_focus/index.js diff --git a/src/components/button/split-button/features/arrow_opens_menu.feature b/src/button/split-button/features/arrow_opens_menu.feature similarity index 100% rename from src/components/button/split-button/features/arrow_opens_menu.feature rename to src/button/split-button/features/arrow_opens_menu.feature diff --git a/src/components/button/split-button/features/arrow_opens_menu/index.js b/src/button/split-button/features/arrow_opens_menu/index.js similarity index 100% rename from src/components/button/split-button/features/arrow_opens_menu/index.js rename to src/button/split-button/features/arrow_opens_menu/index.js diff --git a/src/components/button/split-button/features/button_is_clickable.feature b/src/button/split-button/features/button_is_clickable.feature similarity index 100% rename from src/components/button/split-button/features/button_is_clickable.feature rename to src/button/split-button/features/button_is_clickable.feature diff --git a/src/components/button/split-button/features/button_is_clickable/index.js b/src/button/split-button/features/button_is_clickable/index.js similarity index 100% rename from src/components/button/split-button/features/button_is_clickable/index.js rename to src/button/split-button/features/button_is_clickable/index.js diff --git a/src/components/button/split-button/features/can_be_disabled.feature b/src/button/split-button/features/can_be_disabled.feature similarity index 100% rename from src/components/button/split-button/features/can_be_disabled.feature rename to src/button/split-button/features/can_be_disabled.feature diff --git a/src/components/button/split-button/features/can_be_disabled/index.js b/src/button/split-button/features/can_be_disabled/index.js similarity index 100% rename from src/components/button/split-button/features/can_be_disabled/index.js rename to src/button/split-button/features/can_be_disabled/index.js diff --git a/src/components/button/split-button/features/common/index.js b/src/button/split-button/features/common/index.js similarity index 100% rename from src/components/button/split-button/features/common/index.js rename to src/button/split-button/features/common/index.js diff --git a/src/components/button/split-button/index.js b/src/button/split-button/index.js similarity index 100% rename from src/components/button/split-button/index.js rename to src/button/split-button/index.js diff --git a/src/components/button/split-button/split-button.e2e.stories.js b/src/button/split-button/split-button.e2e.stories.js similarity index 100% rename from src/components/button/split-button/split-button.e2e.stories.js rename to src/button/split-button/split-button.e2e.stories.js diff --git a/src/components/button/split-button/split-button.js b/src/button/split-button/split-button.js similarity index 100% rename from src/components/button/split-button/split-button.js rename to src/button/split-button/split-button.js diff --git a/src/components/button/split-button/split-button.prod.stories.js b/src/button/split-button/split-button.prod.stories.js similarity index 100% rename from src/components/button/split-button/split-button.prod.stories.js rename to src/button/split-button/split-button.prod.stories.js diff --git a/src/components/button/split-button/split-button.test.js b/src/button/split-button/split-button.test.js similarity index 100% rename from src/components/button/split-button/split-button.test.js rename to src/button/split-button/split-button.test.js diff --git a/src/components/alert/alert-bar/action.js b/src/components/alert/alert-bar/action.js deleted file mode 100644 index c83c6b09b3..0000000000 --- a/src/components/alert/alert-bar/action.js +++ /dev/null @@ -1,37 +0,0 @@ -import { spacers } from '../../../constants/index.js' -import PropTypes from 'prop-types' -import React, { Component } from 'react' - -class Action extends Component { - onClick = (event) => { - this.props.onClick(event) - this.props.hide(event) - } - - render() { - return ( - - {this.props.label} - - - ) - } -} - -Action.propTypes = { - dataTest: PropTypes.string.isRequired, - hide: PropTypes.func.isRequired, - label: PropTypes.string.isRequired, - onClick: PropTypes.func.isRequired, -} - -export { Action } diff --git a/src/components/alert/alert-bar/actions.js b/src/components/alert/alert-bar/actions.js deleted file mode 100644 index f58f74313b..0000000000 --- a/src/components/alert/alert-bar/actions.js +++ /dev/null @@ -1,47 +0,0 @@ -import { arrayWithLength } from '@dhis2/prop-types' -import { spacers } from '../../../constants/index.js' -import PropTypes from 'prop-types' -import React from 'react' -import { Action } from './action.js' - -const Actions = ({ actions, hide, dataTest }) => { - if (!actions) { - return null - } - - return ( -
- {actions.map((action) => ( - - ))} - -
- ) -} - -const actionsPropType = arrayWithLength( - 0, - 2, - PropTypes.shape({ - label: PropTypes.string.isRequired, - onClick: PropTypes.func.isRequired, - }) -) - -Actions.propTypes = { - dataTest: PropTypes.string.isRequired, - hide: PropTypes.func.isRequired, - actions: actionsPropType, -} - -export { Actions, actionsPropType } diff --git a/src/components/alert/alert-bar/alert-bar.e2e.stories.js b/src/components/alert/alert-bar/alert-bar.e2e.stories.js deleted file mode 100644 index 1987690404..0000000000 --- a/src/components/alert/alert-bar/alert-bar.e2e.stories.js +++ /dev/null @@ -1,53 +0,0 @@ -import React, { useState } from 'react' -import { AlertBar } from './index.js' - -window.onHidden = window.Cypress && window.Cypress.cy.stub() - -export default { title: 'AlertBar' } - -export const Default = () => Default -export const CustomDuration = () => ( - Custom duration -) -export const PermanentWithActions = () => ( - {} }, - { label: 'Cancel', onClick: () => {} }, - ]} - > - With Actions - -) -export const DisabledIcon = () => Message -export const CustomIcon = () => ( - Custom icon}>Message -) -export const WithMessage = () => With a message -export const WithOnHidden = () => ( - Message -) -export const Permanent = () => Message -export const HiddenProp = () => { - const [hidden, setHidden] = useState(true) - const toggleVisibility = () => setHidden((prevHidden) => !prevHidden) - return ( - - - - - ) -} diff --git a/src/components/alert/alert-bar/alert-bar.js b/src/components/alert/alert-bar/alert-bar.js deleted file mode 100644 index 8e84bd2c23..0000000000 --- a/src/components/alert/alert-bar/alert-bar.js +++ /dev/null @@ -1,178 +0,0 @@ -import { mutuallyExclusive } from '@dhis2/prop-types' -import cx from 'classnames' -import PropTypes from 'prop-types' -import React, { useRef, useState, useEffect } from 'react' -import { Actions, actionsPropType } from './actions.js' -import styles, { ANIMATION_TIME } from './alert-bar.styles.js' -import { Dismiss } from './dismiss.js' -import { Icon, iconPropType } from './icon.js' -import { Message } from './message.js' - -const AlertBar = ({ - actions, - children, - className, - critical, - dataTest, - duration, - hidden, - icon, - permanent, - success, - warning, - onHidden, -}) => { - const [inViewport, setInViewport] = useState(!hidden) - const [inDOM, setInDOM] = useState(!hidden) - const showTimeout = useRef(null) - const displayTimeout = useRef(null) - const hideTimeout = useRef(null) - const displayStartTime = useRef(null) - const displayTimeRemaining = useRef(null) - const info = !critical && !success && !warning - const shouldAutoHide = !(permanent || warning || critical) - const show = () => { - setInDOM(true) - setInViewport(true) - } - const hide = () => { - setInDOM(true) - setInViewport(false) - } - const remove = () => { - setInDOM(false) - setInViewport(false) - onHidden && onHidden({}, null) - } - const clearAllTimeouts = () => { - clearTimeout(showTimeout.current) - clearTimeout(displayTimeout.current) - clearTimeout(hideTimeout.current) - } - const runHideAnimation = () => { - clearAllTimeouts() - hide() - hideTimeout.current = setTimeout(remove, ANIMATION_TIME) - } - const startDisplayTimeout = () => { - if (shouldAutoHide) { - clearAllTimeouts() - displayStartTime.current = Date.now() - displayTimeRemaining.current = duration - displayTimeout.current = setTimeout( - runHideAnimation, - displayTimeRemaining.current - ) - } - } - const runShowAnimation = () => { - clearAllTimeouts() - show() - showTimeout.current = setTimeout(startDisplayTimeout, ANIMATION_TIME) - } - const pauseDisplayTimeout = () => { - if (shouldAutoHide) { - clearAllTimeouts() - const elapsedTime = Date.now() - displayStartTime.current - displayTimeRemaining.current -= elapsedTime - } - } - const resumeDisplayTimeout = () => { - if (shouldAutoHide) { - clearAllTimeouts() - displayTimeout.current = setTimeout( - runHideAnimation, - displayTimeRemaining.current - ) - } - } - - useEffect(() => { - // Additional check on inDOM prevents the AlertBar from briefly showing - // when it is mounted with a hidden prop set to true - if (hidden && inDOM) { - runHideAnimation() - } - if (!hidden) { - runShowAnimation() - } - - return clearAllTimeouts - }, [hidden]) - - return !inDOM ? null : ( -
- - {children} - - - - -
- ) -} - -const alertTypePropType = mutuallyExclusive( - ['success', 'warning', 'critical'], - PropTypes.bool -) - -AlertBar.defaultProps = { - duration: 8000, - dataTest: 'dhis2-uicore-alertbar', - icon: true, -} - -AlertBar.propTypes = { - /** An array of 0-2 action objects -`[{label: "Save", onClick: clickHandler}]`*/ - actions: actionsPropType, - /** The message string for the alert */ - children: PropTypes.string, - className: PropTypes.string, - /** Alert bars with `critical` will not autohide */ - critical: alertTypePropType, - dataTest: PropTypes.string, - /** How long you want the notification to display, in `ms`, when it's not permanent */ - duration: PropTypes.number, - /** AlertBar will be hidden on creation when this is set to true */ - hidden: PropTypes.bool, - /** - * A specific icon to override the default icon in the bar. - * If `false` is provided, no icon will be shown. - */ - icon: iconPropType, - /** When set, AlertBar will not autohide */ - permanent: PropTypes.bool, - success: alertTypePropType, - /** Alert bars with `warning` will not autohide */ - warning: alertTypePropType, - onHidden: PropTypes.func, -} - -export { AlertBar } diff --git a/src/components/alert/alert-bar/alert-bar.prod.stories.js b/src/components/alert/alert-bar/alert-bar.prod.stories.js deleted file mode 100644 index 7d44614f33..0000000000 --- a/src/components/alert/alert-bar/alert-bar.prod.stories.js +++ /dev/null @@ -1,229 +0,0 @@ -import { IconFile16 } from '../../../icons/index.js' -import React, { useState } from 'react' -import { AlertBar } from './index.js' - -const subtitle = ` -A floating alert that informs the user about temporary information -in the context of the current screen. -` - -const description = ` -Alert bars notify a user of some information. There are different types of -alert bar for displaying different types of content. Use the alert bar type -that matches your content type and importance. Note that alert bar can be -ignored by the user, so they shouldn't be used for content that needs to -block an app flow, use a modal instead. - -Alert bars are always displayed at centered and fixed at the bottom of the -screen. Some types of alert bar dismiss after a set time, others must be -dismissed by the user. - -See specification: [Design System](https://github.com/dhis2/design-system/blob/master/molecules/alertbar.md) - -\`\`\`js -import { AlertBar } from '@dhis2/ui' -\`\`\` -` - -const Wrapper = (fn) => ( -
-
- {fn()} -
-
-) - -const alertTypeArgType = { - table: { - type: { - summary: 'bool', - detail: "'success', 'warning', and 'critical' are mutually exclusive props", - }, - }, - control: { - type: 'boolean', - }, -} -const iconArgType = { - table: { - type: { - summary: 'bool | element', - }, - }, -} -const actionsArgType = { - table: { - type: { - summary: '[{ label: string, onClick: func }]', - }, - }, -} - -export default { - title: 'Alert Bar', - component: AlertBar, - decorators: [Wrapper], - parameters: { - componentSubtitle: subtitle, - docs: { - description: { - component: description, - }, - }, - }, - argTypes: { - actions: { ...actionsArgType }, - critical: { ...alertTypeArgType }, - success: { ...alertTypeArgType }, - warning: { ...alertTypeArgType }, - icon: { ...iconArgType }, - }, -} - -export const Default = (args) => ( - Default - I will autohide -) - -export const States = () => ( - - Default (info) - - Success - - - Warning - - - Critical - - -) - -export const RTL = () => ( - -
- Default (info) - - Success - - - Warning - - - Critical - -
-
-) - -export const AutoHiding = () => ( - - Permanent never auto-hides - Warning never auto-hides - Critial never auto-hides - { - console.log('onHidden payload', payload) - console.log('onHidden event', event) - }} - > - Custom duration, hides after 2s - - { - console.log('onHidden payload', payload) - console.log('onHidden event', event) - }} - > - Default auto-hides after 8s - - -) -AutoHiding.storyName = 'Auto hiding' - -export const WithActions = () => ( - {} }, - { label: 'Cancel', onClick: () => {} }, - ]} - > - With Actions - -) -WithActions.storyName = 'With actions' - -export const WithActionsAndInsufficientSpace = () => ( - {} }, - { label: 'Long action 2', onClick: () => {} }, - ]} - > - Some text, a pretty normal amount, that conflicts with pretty long - actions - -) -WithActionsAndInsufficientSpace.storyName = - 'With actions and insufficient space' - -export const Icons = () => ( - - Default icon - - No icon - - }> - Custom icon - - -) - -export const TextOverflow = () => ( - - Short text - - If the alert bar gets a ver long text, it will grow to a maximum of - 600px and the text will overflow across several lines. If there are - multiple AlertBars in a stack, they will all grow to the size of the - widest sibling. - - -) -TextOverflow.storyName = 'Text overflow' - -export const HiddenProp = () => { - const [hidden, setHidden] = useState(true) - const toggleVisibility = () => setHidden((prevHidden) => !prevHidden) - return ( - - - - - ) -} -HiddenProp.storyName = 'Hidden prop' diff --git a/src/components/alert/alert-bar/alert-bar.styles.js b/src/components/alert/alert-bar/alert-bar.styles.js deleted file mode 100644 index 9429dada9a..0000000000 --- a/src/components/alert/alert-bar/alert-bar.styles.js +++ /dev/null @@ -1,76 +0,0 @@ -import { colors, spacers, elevations } from '../../../constants/index.js' -import css from 'styled-jsx/css' - -export const ANIMATION_TIME = 350 - -export default css` - div { - display: flex; - justify-content: space-between; - align-items: center; - border-radius: 4px; - box-shadow: ${elevations.e300}; - padding-top: ${spacers.dp8}; - padding-inline-end: ${spacers.dp8}; - padding-bottom: ${spacers.dp8}; - padding-inline-start: ${spacers.dp24}; - margin-bottom: ${spacers.dp16}; - max-width: 600px; - min-width: 300px; - font-size: 14px; - pointer-events: all; - } - - /* States */ - - div.info { - background-color: ${colors.grey900}; - color: ${colors.white}; - } - div.success { - background-color: ${colors.green800}; - color: ${colors.white}; - } - div.warning { - background-color: ${colors.yellow300}; - color: ${colors.yellow900}; - } - div.critical { - background-color: ${colors.red800}; - color: ${colors.white}; - } - - /* Animation */ - - @keyframes slidein { - from { - transform: translateY(1000px); - } - to { - transform: translateY(0); - } - } - - @keyframes slideout { - from { - transform: translateY(0); - } - to { - transform: translateY(1000px); - } - } - - div.inViewport { - animation-duration: ${ANIMATION_TIME}ms; - animation-name: slidein; - animation-fill-mode: forwards; - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } - - div { - animation-duration: ${ANIMATION_TIME}ms; - animation-name: slideout; - animation-fill-mode: forwards; - animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); - } -` diff --git a/src/components/alert/alert-bar/dismiss.js b/src/components/alert/alert-bar/dismiss.js deleted file mode 100644 index c9324ede23..0000000000 --- a/src/components/alert/alert-bar/dismiss.js +++ /dev/null @@ -1,39 +0,0 @@ -import { spacers } from '../../../constants/index.js' -import { IconCross24 } from '../../../icons/index.js' -import PropTypes from 'prop-types' -import React from 'react' - -const Dismiss = ({ onClick, dataTest }) => ( -
- - -
-) - -Dismiss.propTypes = { - dataTest: PropTypes.string.isRequired, - onClick: PropTypes.func.isRequired, -} - -export { Dismiss } diff --git a/src/components/alert/alert-bar/features/api.feature b/src/components/alert/alert-bar/features/api.feature deleted file mode 100644 index b2e94160c7..0000000000 --- a/src/components/alert/alert-bar/features/api.feature +++ /dev/null @@ -1,29 +0,0 @@ -Feature: AlertBar API - - Scenario: AlertBar icon shows by default - Given a default AlertBar is rendered - Then the icon will be visible - - Scenario: AlertBar icon can be hidden - Given an AlertBar with disabled icon is rendered - Then the icon will not be rendered - - Scenario: Custom AlertBar icon - Given an AlertBar with custom icon is rendered - Then the custom icon will be visible - - Scenario: Standard AlertBar with a message - Given an AlertBar with a message is rendered - Then the message will be visible - - Scenario: The AlertBar renders with a permanent flag - Given an AlertBar with permanent is rendered - When the default duration has passed - Then the AlertBar will be visible - - Scenario: AlertBar will call the onHidden cb when hidden - Given an AlertBar with onHidden handler is rendered - When the default duration has passed - Then the AlertBar is not rendered - Then the onHidden handler is called - diff --git a/src/components/alert/alert-bar/features/api/index.js b/src/components/alert/alert-bar/features/api/index.js deleted file mode 100644 index de57875b20..0000000000 --- a/src/components/alert/alert-bar/features/api/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('an AlertBar with onHidden handler is rendered', () => { - cy.visitStory('AlertBar', 'With on hidden') -}) - -Given('an AlertBar with disabled icon is rendered', () => { - cy.visitStory('AlertBar', 'Disabled icon') -}) - -Given('an AlertBar with custom icon is rendered', () => { - cy.visitStory('AlertBar', 'Custom icon') -}) - -Given('an AlertBar with a message is rendered', () => { - cy.visitStory('AlertBar', 'With message') -}) - -Given('an AlertBar with permanent is rendered', () => { - cy.visitStory('AlertBar', 'Permanent') - cy.get('[data-test="dhis2-uicore-alertbar"]').should('be.visible') -}) - -When('the Alertbar is not rendered', () => { - cy.wait(8000) - cy.get('[data-test="dhis2-uicore-alertbar"]').should('not.exist') -}) - -Then('the icon will be visible', () => { - cy.get('[data-test="dhis2-uicore-alertbar-icon"]').should('be.visible') -}) - -Then('the icon will not be rendered', () => { - cy.get('[data-test="dhis2-uicore-alertbar-icon"]').should('not.exist') -}) - -Then('the custom icon will be visible', () => { - cy.get('[data-test="dhis2-uicore-alertbar-icon"]') - .contains('Custom icon') - .should('be.visible') -}) - -Then('the message will be visible', () => { - cy.get('[data-test="dhis2-uicore-alertbar"]') - .contains('With a message') - .should('be.visible') -}) - -Then('the AlertBar will be visible', () => { - cy.get('[data-test="dhis2-uicore-alertbar"]').should('be.visible') -}) diff --git a/src/components/alert/alert-bar/features/common/index.js b/src/components/alert/alert-bar/features/common/index.js deleted file mode 100644 index 5774f6f651..0000000000 --- a/src/components/alert/alert-bar/features/common/index.js +++ /dev/null @@ -1,26 +0,0 @@ -import { When, Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a default AlertBar is rendered', () => { - cy.visitStory('AlertBar', 'Default') - cy.get('[data-test="dhis2-uicore-alertbar"]').should('be.visible') -}) - -Given('the AlertBar is rendered', () => { - cy.get('[data-test="dhis2-uicore-alertbar"]').should('exist') - cy.get('[data-test="dhis2-uicore-alertbar"]').should('be.visible') -}) - -Then('the AlertBar is not rendered', () => { - cy.get('[data-test="dhis2-uicore-alertbar"]').should('not.exist') -}) - -When('the default duration has passed', () => { - cy.wait(8000) -}) - -Then('the onHidden handler is called', () => { - cy.window().should((win) => { - expect(win.onHidden).to.be.calledOnce - expect(win.onHidden).to.be.calledWith({}, null) - }) -}) diff --git a/src/components/alert/alert-bar/features/hide.feature b/src/components/alert/alert-bar/features/hide.feature deleted file mode 100644 index cfa440e818..0000000000 --- a/src/components/alert/alert-bar/features/hide.feature +++ /dev/null @@ -1,26 +0,0 @@ -Feature: Hiding the AlertBar - - Scenario: AlertBar hides automatically after the default time - Given a default AlertBar is rendered - When the default duration has passed - Then the AlertBar is not rendered - - Scenario: AlertBars hides automatically after a custom time - Given an AlertBar with a custom duration is rendered - When the custom duration has passed - Then the AlertBar is not rendered - - Scenario: The user clicks the "Cancel" button - Given a permanent AlertBar with actions is rendered - When the user clicks on the "Cancel" button - Then the AlertBar is not rendered - - Scenario: The hidden prop is toggled - Given a permanent AlertBar with hidden and onHidden is rendered - Then the AlertBar is not rendered - And the onHidden handler is not called - When the user click a button which toggles the hidden prop to false - Then the AlertBar is rendered - When the user click a button which toggles the hidden prop to true - Then the AlertBar is not rendered - And the onHidden handler is called diff --git a/src/components/alert/alert-bar/features/hide/index.js b/src/components/alert/alert-bar/features/hide/index.js deleted file mode 100644 index 83a2c89bcf..0000000000 --- a/src/components/alert/alert-bar/features/hide/index.js +++ /dev/null @@ -1,39 +0,0 @@ -import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a permanent AlertBar with hidden and onHidden is rendered', () => { - cy.visitStory('AlertBar', 'Hidden prop') -}) - -Given('an AlertBar with a custom duration is rendered', () => { - cy.visitStory('AlertBar', 'Custom duration') - cy.get('[data-test="dhis2-uicore-alertbar"]').should('be.visible') -}) - -Given('a permanent AlertBar with actions is rendered', () => { - cy.visitStory('AlertBar', 'Permanent with actions') - cy.get('[data-test="dhis2-uicore-alertbar"]').should('be.visible') -}) - -When('the user clicks on the "Cancel" button', () => { - cy.get( - '[data-test="dhis2-uicore-alertbar-action"]:contains("Cancel")' - ).click() -}) - -When('the user click a button which toggles the hidden prop to false', () => { - cy.get('button:contains("Show")').click() -}) - -When('the user click a button which toggles the hidden prop to true', () => { - cy.get('button:contains("Hide")').click() -}) - -When('the custom duration has passed', () => { - cy.wait(2000) -}) - -Then('the onHidden handler is not called', () => { - cy.window().should((win) => { - expect(win.onHidden).to.not.be.called - }) -}) diff --git a/src/components/alert/alert-bar/icon.js b/src/components/alert/alert-bar/icon.js deleted file mode 100644 index a09eb77141..0000000000 --- a/src/components/alert/alert-bar/icon.js +++ /dev/null @@ -1,82 +0,0 @@ -import { mutuallyExclusive } from '@dhis2/prop-types' -import { spacers, colors } from '../../../constants/index.js' -import { - IconErrorFilled24, - IconInfoFilled24, - IconWarningFilled24, - IconCheckmark24, -} from '../../../icons/index.js' -import PropTypes from 'prop-types' -import React from 'react' - -const StatusIcon = ({ error, warning, valid, info, defaultTo }) => { - if (error) { - return - } - if (warning) { - return - } - if (valid) { - return - } - if (info) { - return - } - - return defaultTo -} - -StatusIcon.defaultProps = { - defaultTo: null, -} - -StatusIcon.propTypes = { - defaultTo: PropTypes.element, - error: PropTypes.bool, - info: PropTypes.bool, - valid: PropTypes.bool, - warning: PropTypes.bool, -} - -const Icon = ({ icon, success, warning, critical, info, dataTest }) => { - if (icon === false) { - return null - } - - return ( -
- {React.isValidElement(icon) ? ( - icon - ) : ( - - )} - -
- ) -} - -const iconPropType = PropTypes.oneOfType([PropTypes.bool, PropTypes.element]) -const alertStatePropType = mutuallyExclusive( - ['success', 'warning', 'critical', 'info'], - PropTypes.bool -) - -Icon.propTypes = { - dataTest: PropTypes.string.isRequired, - critical: alertStatePropType, - icon: iconPropType, - info: alertStatePropType, - success: alertStatePropType, - warning: alertStatePropType, -} - -export { Icon, iconPropType } diff --git a/src/components/alert/alert-bar/index.js b/src/components/alert/alert-bar/index.js deleted file mode 100644 index 685cf1eeba..0000000000 --- a/src/components/alert/alert-bar/index.js +++ /dev/null @@ -1 +0,0 @@ -export { AlertBar } from './alert-bar.js' diff --git a/src/components/alert/alert-bar/message.js b/src/components/alert/alert-bar/message.js deleted file mode 100644 index 1e37e4af39..0000000000 --- a/src/components/alert/alert-bar/message.js +++ /dev/null @@ -1,19 +0,0 @@ -import PropTypes from 'prop-types' -import React from 'react' - -const Message = ({ children }) => ( -
- {children} - -
-) - -Message.propTypes = { - children: PropTypes.string.isRequired, -} - -export { Message } diff --git a/src/components/alert/alert-stack/alert-stack.e2e.stories.js b/src/components/alert/alert-stack/alert-stack.e2e.stories.js deleted file mode 100644 index 372df0d277..0000000000 --- a/src/components/alert/alert-stack/alert-stack.e2e.stories.js +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react' -import { AlertBar } from '../alert-bar/index.js' -import { AlertStack } from './alert-stack.js' - -export default { title: 'AlertStack' } - -export const Default = () => ( - - Message - Message - Message - -) diff --git a/src/components/alert/alert-stack/alert-stack.js b/src/components/alert/alert-stack/alert-stack.js deleted file mode 100644 index bd10a741f6..0000000000 --- a/src/components/alert/alert-stack/alert-stack.js +++ /dev/null @@ -1,44 +0,0 @@ -import { layers } from '../../../constants/index.js' -import { Portal } from '../../portal/index.js' -import cx from 'classnames' -import PropTypes from 'prop-types' -import React from 'react' - -export const AlertStack = ({ className, children, dataTest }) => ( - -
- {children} - -
-
-) - -AlertStack.defaultProps = { - dataTest: 'dhis2-uicore-alertstack', -} - -AlertStack.propTypes = { - children: PropTypes.node, - className: PropTypes.string, - dataTest: PropTypes.string, -} diff --git a/src/components/alert/alert-stack/alert-stack.prod.stories.js b/src/components/alert/alert-stack/alert-stack.prod.stories.js deleted file mode 100644 index ec1a6189a5..0000000000 --- a/src/components/alert/alert-stack/alert-stack.prod.stories.js +++ /dev/null @@ -1,68 +0,0 @@ -import React, { useEffect } from 'react' -import { AlertBar } from '../alert-bar/index.js' -import { AlertStack } from './alert-stack.js' - -const description = ` -A container for Alert Bars. - -_**Note:** The demos on this page may be slow._ - -\`\`\`js -import { AlertStack } from '@dhis2/ui' -\`\`\` -` - -export default { - title: 'Alert Stack', - component: AlertStack, - // Use an iframe in docs to contain 'portal' - parameters: { - docs: { - inlineStories: false, - iframeHeight: '300px', - description: { component: description }, - }, - }, -} - -export const Default = (args) => ( - - First notification - I am at the bottom - - Second notification - - - Third notification - - - Fourth notification - I am at the top - - -) - -export const RTL = (args) => { - useEffect(() => { - document.body.dir = 'rtl' - return () => { - document.body.dir = 'ltr' - } - }, []) - return ( -
- - - First notification - I am at the bottom - - - Second notification - - - Third notification - - - Fourth notification - I am at the top - - -
- ) -} diff --git a/src/components/alert/alert-stack/features/render_children.feature b/src/components/alert/alert-stack/features/render_children.feature deleted file mode 100644 index 3da21828b7..0000000000 --- a/src/components/alert/alert-stack/features/render_children.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Shows AlertBars - - Scenario: AlertStack with AlertBars - Given an AlertStack with multiple AlertBars is rendered - Then the AlertBars will be visible diff --git a/src/components/alert/alert-stack/features/render_children/alertbars.js b/src/components/alert/alert-stack/features/render_children/alertbars.js deleted file mode 100644 index e8b0a2003e..0000000000 --- a/src/components/alert/alert-stack/features/render_children/alertbars.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('an AlertStack with multiple AlertBars is rendered', () => { - cy.visitStory('Alertstack', 'Default') - cy.get('[data-test="dhis2-uicore-alertstack"]').should('be.visible') -}) - -Then('the AlertBars will be visible', () => { - cy.get('[data-test="dhis2-uicore-alertbar"]').should('have.length', 3) - cy.get('[data-test="dhis2-uicore-alertbar"]').should('be.visible') -}) diff --git a/src/components/alert/alert-stack/index.js b/src/components/alert/alert-stack/index.js deleted file mode 100644 index 48f6ef2d0e..0000000000 --- a/src/components/alert/alert-stack/index.js +++ /dev/null @@ -1 +0,0 @@ -export { AlertStack } from './alert-stack.js' diff --git a/src/components/alert/index.js b/src/components/alert/index.js deleted file mode 100644 index 06d4fc7444..0000000000 --- a/src/components/alert/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { AlertBar } from './alert-bar/index.js' -export { AlertStack } from './alert-stack/index.js' diff --git a/src/components/box/box.e2e.stories.js b/src/components/box/box.e2e.stories.js deleted file mode 100644 index 498db343ae..0000000000 --- a/src/components/box/box.e2e.stories.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react' -import { Box } from './box.js' - -export default { title: 'Box' } -export const WithChildren = () => I am a child -export const Multiple = () => ( - - I am a child in a Box. - -) diff --git a/src/components/box/box.js b/src/components/box/box.js deleted file mode 100644 index da9daa35b1..0000000000 --- a/src/components/box/box.js +++ /dev/null @@ -1,50 +0,0 @@ -import PropTypes from 'prop-types' -import React from 'react' - -export const Box = ({ - overflow, - height, - minHeight, - maxHeight, - width, - minWidth, - maxWidth, - marginTop, - children, - dataTest, - className, -}) => ( -
- {children} - -
-) - -Box.defaultProps = { - dataTest: 'dhis2-uicore-box', -} - -Box.propTypes = { - children: PropTypes.node, - className: PropTypes.string, - dataTest: PropTypes.string, - height: PropTypes.string, - marginTop: PropTypes.string, - maxHeight: PropTypes.string, - maxWidth: PropTypes.string, - minHeight: PropTypes.string, - minWidth: PropTypes.string, - overflow: PropTypes.string, - width: PropTypes.string, -} diff --git a/src/components/box/box.prod.stories.js b/src/components/box/box.prod.stories.js deleted file mode 100644 index d1c9c78e18..0000000000 --- a/src/components/box/box.prod.stories.js +++ /dev/null @@ -1,58 +0,0 @@ -import React from 'react' -import { Box } from './box.js' - -const description = ` -A box for creating some layout on the page. - -\`\`\`js -import { Box } from '@dhis2/ui' -\`\`\` -` - -export default { - title: 'Box', - component: Box, - parameters: { docs: { description: { component: description } } }, -} - -const Template = (args) => - -export const Default = Template.bind({}) -Default.args = { children: 'I am a child in a Box.' } - -export const Height = Template.bind({}) -Height.args = { - ...Default.args, - height: '250px', -} - -export const MaxHeight = Template.bind({}) -MaxHeight.args = { - children: ( -

I am a tall child in a low Box.

- ), - maxHeight: '250px', -} - -export const MinHeight = Template.bind({}) -MinHeight.args = { ...Default.args, minHeight: '50vh' } - -export const Width = Template.bind({}) -Width.args = { ...Default.args, width: '250px' } - -export const MinWidth = Template.bind({}) -MinWidth.args = { ...Default.args, minWidth: '50vh' } - -export const MaxWidth = Template.bind({}) -MaxWidth.args = { ...Default.args, maxWidth: '50vh' } - -export const Overflow = Template.bind({}) -Overflow.args = { - maxHeight: '250px', - overflow: 'scroll', - children: ( -

- I am a tall child in a low Box, and my parent clips me -

- ), -} diff --git a/src/components/box/features/accepts_children.feature b/src/components/box/features/accepts_children.feature deleted file mode 100644 index ed14a95680..0000000000 --- a/src/components/box/features/accepts_children.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: The Box renders children - - Scenario: A Box with children - Given a Box with children is rendered - Then the children are visible diff --git a/src/components/box/features/accepts_children/index.js b/src/components/box/features/accepts_children/index.js deleted file mode 100644 index 3171815a40..0000000000 --- a/src/components/box/features/accepts_children/index.js +++ /dev/null @@ -1,10 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Box with children is rendered', () => { - cy.visitStory('Box', 'With children') - cy.get('[data-test="dhis2-uicore-box"]').should('be.visible') -}) - -Then('the children are visible', () => { - cy.contains('I am a child').should('be.visible') -}) diff --git a/src/components/box/features/accepts_multiple_props.feature b/src/components/box/features/accepts_multiple_props.feature deleted file mode 100644 index 0e7ff62d96..0000000000 --- a/src/components/box/features/accepts_multiple_props.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: The Box accepts multiple props - - Scenario: A Box with multiple props - Given a Box with multiple props is rendered - Then the styles are all applied diff --git a/src/components/box/features/accepts_multiple_props/index.js b/src/components/box/features/accepts_multiple_props/index.js deleted file mode 100644 index 988c9cbfab..0000000000 --- a/src/components/box/features/accepts_multiple_props/index.js +++ /dev/null @@ -1,12 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Box with multiple props is rendered', () => { - cy.visitStory('Box', 'Multiple') - cy.get('[data-test="dhis2-uicore-box"]').should('be.visible') -}) - -Then('the styles are all applied', () => { - cy.get('[data-test="dhis2-uicore-box"]') - .should('have.css', 'margin-top', '16px') - .should('have.css', 'max-width', '400px') -}) diff --git a/src/components/box/index.js b/src/components/box/index.js deleted file mode 100644 index 6bb9722ea8..0000000000 --- a/src/components/box/index.js +++ /dev/null @@ -1 +0,0 @@ -export { Box } from './box.js' diff --git a/src/components/calendar/__e2e__/calendar-input.e2e.stories.js b/src/components/calendar/__e2e__/calendar-input.e2e.stories.js deleted file mode 100644 index ce0a882598..0000000000 --- a/src/components/calendar/__e2e__/calendar-input.e2e.stories.js +++ /dev/null @@ -1,22 +0,0 @@ -import React from 'react' -import { CalendarInput as component } from '../index.js' -import { CalendarWithClearButton } from '../stories/calendar-input.prod.stories.js' -export default { title: 'CalendarInputTesting', component } - -export { - EthiopicWithAmharic, - EthiopicWithEnglish, - NepaliWithEnglish, - NepaliWithNepali, - GregorianWithArabic, - GregorianWithEnglish, - IslamicWithArabic, -} from '../stories/calendar-input.prod.stories.js' - -export const TestCalendarWithClearButton = () => { - const params = new URLSearchParams(location.search) - const calendar = params.get('calendar') ?? 'gregory' - const initialDate = params.get('initialDate') ?? null - - return -} diff --git a/src/components/calendar/calendar-input/calendar-input.js b/src/components/calendar/calendar-input/calendar-input.js deleted file mode 100644 index e0c0b5bd7a..0000000000 --- a/src/components/calendar/calendar-input/calendar-input.js +++ /dev/null @@ -1,152 +0,0 @@ -import { Button } from '../../button/index.js' -import { Card } from '../../card/index.js' -import { InputField, InputFieldProps } from '../../input/index.js' -import { Layer } from '../../layer/index.js' -import { Popper } from '../../popper/index.js' -import cx from 'classnames' -import React, { useRef, useState } from 'react' -import { Calendar, CalendarProps } from '../calendar/calendar.js' -import i18n from '../../../locales/index.js' - -const offsetModifier = { - name: 'offset', - options: { - offset: [0, 2], - }, -} - -export const CalendarInput = ({ - onDateSelect, - calendar, - date, - dir, - locale, - numberingSystem, - weekDayFormat, - timeZone, - width, - cellSize, - clearable, - ...rest -} = {}) => { - const ref = useRef() - const [open, setOpen] = useState(false) - - const calendarProps = React.useMemo(() => { - const onDateSelectWrapper = (selectedDate) => { - setOpen(false) - onDateSelect?.(selectedDate) - } - return { - onDateSelect: onDateSelectWrapper, - calendar, - date, - dir, - locale, - numberingSystem, - weekDayFormat, - timeZone, - width, - cellSize, - } - }, [ - calendar, - cellSize, - date, - dir, - locale, - numberingSystem, - onDateSelect, - timeZone, - weekDayFormat, - width, - ]) - - const onFocus = () => { - setOpen(true) - } - - return ( - <> -
- - {clearable && ( -
- -
- )} -
- {open && ( - { - setOpen(false) - }} - > - - - - - - - )} - - - - ) -} - -CalendarInput.defaultProps = { - dataTest: 'dhis2-uiwidgets-calendar-inputfield', -} -CalendarInput.propTypes = { - ...CalendarProps, - ...InputFieldProps, -} diff --git a/src/components/calendar/calendar/calendar-table-cell.js b/src/components/calendar/calendar/calendar-table-cell.js deleted file mode 100644 index 3924b184e0..0000000000 --- a/src/components/calendar/calendar/calendar-table-cell.js +++ /dev/null @@ -1,97 +0,0 @@ -import { colors } from '../../../constants/index.js' -import cx from 'classnames' -import PropTypes from 'prop-types' -import React from 'react' - -export const CalendarTableCell = ({ day, cellSize, selectedDate }) => { - const dayHoverBackgroundColor = colors.grey200 - const selectedDayBackgroundColor = colors.teal700 - - return ( - - - - - ) -} - -CalendarTableCell.propTypes = { - cellSize: PropTypes.string, - day: PropTypes.shape({ - calendarDate: PropTypes.string, - isInCurrentMonth: PropTypes.bool, - isSelected: PropTypes.bool, - isToday: PropTypes.bool, - label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - onClick: PropTypes.func, - }), - selectedDate: PropTypes.string, -} diff --git a/src/components/calendar/calendar/calendar-table-days-header.js b/src/components/calendar/calendar/calendar-table-days-header.js deleted file mode 100644 index 56f6fa1c3b..0000000000 --- a/src/components/calendar/calendar/calendar-table-days-header.js +++ /dev/null @@ -1,40 +0,0 @@ -import { colors } from '../../../constants/index.js' -import PropTypes from 'prop-types' -import React from 'react' - -export const CalendarTableDaysHeader = ({ weekDayLabels }) => { - const dayNamesColor = colors.grey700 - - return ( - <> - - - {weekDayLabels.map((label, i) => ( - - {label} - - ))} - - - - - ) -} - -CalendarTableDaysHeader.propTypes = { - weekDayLabels: PropTypes.arrayOf(PropTypes.string), -} diff --git a/src/components/calendar/calendar/calendar-table.js b/src/components/calendar/calendar/calendar-table.js deleted file mode 100644 index b58b139ed4..0000000000 --- a/src/components/calendar/calendar/calendar-table.js +++ /dev/null @@ -1,72 +0,0 @@ -import { spacers } from '../../../constants/index.js' -import PropTypes from 'prop-types' -import React from 'react' -import { CalendarTableCell } from './calendar-table-cell.js' -import { CalendarTableDaysHeader } from './calendar-table-days-header.js' - -export const CalendarTable = ({ - weekDayLabels, - calendarWeekDays, - width, - cellSize, - selectedDate, -}) => ( -
- - - - {calendarWeekDays.map((week, weekIndex) => ( - - {week.map((day) => ( - - ))} - - ))} - -
- -
-) - -CalendarTable.propTypes = { - calendarWeekDays: PropTypes.arrayOf( - PropTypes.arrayOf( - PropTypes.shape({ - calendarDate: PropTypes.string, - isInCurrentMonth: PropTypes.bool, - isSelected: PropTypes.bool, - isToday: PropTypes.bool, - label: PropTypes.oneOfType([ - PropTypes.string, - PropTypes.number, - ]), - zdt: PropTypes.object, - onClick: PropTypes.func, - }).isRequired - ).isRequired - ).isRequired, - cellSize: PropTypes.string, - selectedDate: PropTypes.string, - weekDayLabels: PropTypes.arrayOf(PropTypes.string), - width: PropTypes.string, -} diff --git a/src/components/calendar/calendar/calendar.js b/src/components/calendar/calendar/calendar.js deleted file mode 100644 index 809d3cd976..0000000000 --- a/src/components/calendar/calendar/calendar.js +++ /dev/null @@ -1,117 +0,0 @@ -import { - useDatePicker, - useResolvedDirection, -} from '@dhis2/multi-calendar-dates' -import { colors } from '../../../constants/index.js' -import PropTypes from 'prop-types' -import React, { useState } from 'react' -import { CalendarTable } from './calendar-table.js' -import { NavigationContainer } from './navigation-container.js' - -export const Calendar = ({ - onDateSelect, - calendar, - date, - dir, - locale, - numberingSystem, - weekDayFormat, - timeZone, - width, - cellSize, -}) => { - const wrapperBorderColor = colors.grey300 - const backgroundColor = 'none' - - const [selectedDateString, setSelectedDateString] = useState(date) - const languageDirection = useResolvedDirection(dir, locale) - - const options = { - locale, - calendar, - timeZone, - numberingSystem, - weekDayFormat, - } - - const pickerOptions = useDatePicker({ - onDateSelect: (result) => { - const { calendarDateString } = result - setSelectedDateString(calendarDateString) - onDateSelect(result) - }, - date: selectedDateString, - options, - }) - - const { calendarWeekDays, weekDayLabels } = pickerOptions - - return ( -
-
- - -
- -
- ) -} - -Calendar.defaultProps = { - cellSize: '32px', - width: '240px', - weekDayFormat: 'narrow', -} - -export const CalendarProps = { - /** the calendar to use such gregory, ethiopic, nepali - full supported list here: https://github.com/dhis2/multi-calendar-dates/blob/main/src/constants/calendars.ts */ - calendar: PropTypes.any.isRequired, - /** Called with signature `(null)` \|\| `({ dateCalendarString: string, dateCalendar: Temporal.ZonedDateTime })` with `dateCalendarString` being the stringified date in the specified calendar in the format `yyyy-MM-dd` */ - onDateSelect: PropTypes.func.isRequired, - /** the size of a single cell in the table forming the calendar */ - cellSize: PropTypes.string, - /** the currently selected date using an iso-like format YYYY-MM-DD, in the calendar system provided (not iso8601) */ - date: PropTypes.string, - /** the direction of the library - internally the library will use rtl for rtl-languages but this can be overridden here for more control */ - dir: PropTypes.oneOf(['ltr', 'rtl']), - /** any valid locale - if none provided, the internal library will fallback to the user locale (more info here: https://github.com/dhis2/multi-calendar-dates/blob/main/src/hooks/internal/useResolvedLocaleOptions.ts#L15) */ - locale: PropTypes.string, - /** numbering system to use - full list here https://github.com/dhis2/multi-calendar-dates/blob/main/src/constants/numberingSystems.ts */ - numberingSystem: PropTypes.string, - /** the timeZone to use */ - timeZone: PropTypes.string, - /** the format to display for the week day, i.e. Monday (long), Mon (short), M (narrow) */ - weekDayFormat: PropTypes.oneOf(['narrow', 'short', 'long']), - /** the width of the calendar component */ - width: PropTypes.string, -} - -Calendar.propTypes = CalendarProps diff --git a/src/components/calendar/calendar/navigation-container.js b/src/components/calendar/calendar/navigation-container.js deleted file mode 100644 index 101562a7e5..0000000000 --- a/src/components/calendar/calendar/navigation-container.js +++ /dev/null @@ -1,184 +0,0 @@ -import { colors, spacers } from '../../../constants/index.js' -import { IconChevronLeft16, IconChevronRight16 } from '../../../icons/index.js' -import PropTypes from 'prop-types' -import React from 'react' -import i18n from '../../../locales/index.js' - -const wrapperBorderColor = colors.grey300 -const headerBackground = colors.grey050 - -export const NavigationContainer = ({ languageDirection, pickerOptions }) => { - const PreviousIcon = - languageDirection === 'ltr' ? IconChevronLeft16 : IconChevronRight16 - const NextIcon = - languageDirection === 'ltr' ? IconChevronRight16 : IconChevronLeft16 - - const { currMonth, currYear, nextMonth, nextYear, prevMonth, prevYear } = - pickerOptions - - // Ethiopic years - when localised to English - add the era (i.e. 2015 ERA1), which is redundant in practice (like writing AD for gregorian years) - // there is an ongoing discussion in JS-Temporal polyfill whether the era should be included or not, but for our case, it's safer to remove it - const currentYearLabel = currYear.label?.toString().replace(/ERA1/, '') - - return ( - <> -
-
-
- -
-
- {currMonth.label} -
-
- -
-
-
-
- -
-
- - {currentYearLabel} - -
-
- -
-
-
- - - ) -} - -NavigationContainer.propTypes = { - languageDirection: PropTypes.oneOf(['ltr', 'rtl']), - pickerOptions: PropTypes.shape({ - currMonth: PropTypes.shape({ - label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - }), - currYear: PropTypes.shape({ - label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - }), - nextMonth: PropTypes.shape({ - label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - navigateTo: PropTypes.func, - }), - nextYear: PropTypes.shape({ - label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - navigateTo: PropTypes.func, - }), - prevMonth: PropTypes.shape({ - label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - navigateTo: PropTypes.func, - }), - prevYear: PropTypes.shape({ - label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), - navigateTo: PropTypes.func, - }), - }), -} diff --git a/src/components/calendar/features/supports_calendar_clear_button.feature b/src/components/calendar/features/supports_calendar_clear_button.feature deleted file mode 100644 index 45b0a6b7a2..0000000000 --- a/src/components/calendar/features/supports_calendar_clear_button.feature +++ /dev/null @@ -1,23 +0,0 @@ -Feature: The Calendar allows clearing the selection - - Scenario: Clear the selection in the Gregorian calendar - Given a "gregory" calendar is rendered with a selected date "2021-10-13" - Then we should be able to clear it - And show the current month afterwards - And allow selecting today's date - And highlight today as the selected date - - Scenario: Clear the selection in the Ethiopic calendar - Given a "ethiopic" calendar is rendered with a selected date "2014-02-03" - Then we should be able to clear it - And show the current month afterwards - And allow selecting today's date - And highlight today as the selected date - - Scenario: Clear the selection in the Nepali calendar - Given a "nepali" calendar is rendered with a selected date "2078-06-27" - Then we should be able to clear it - And show the current month afterwards - And allow selecting today's date - And highlight today as the selected date - diff --git a/src/components/calendar/features/supports_calendar_clear_button/supports_calendar_clear_button.js b/src/components/calendar/features/supports_calendar_clear_button/supports_calendar_clear_button.js deleted file mode 100644 index 2113d97c8b..0000000000 --- a/src/components/calendar/features/supports_calendar_clear_button/supports_calendar_clear_button.js +++ /dev/null @@ -1,64 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given( - 'a "{word}" calendar is rendered with a selected date "{word}"', - (calendar, initialDate) => { - cy.visitStory( - 'CalendarInputTesting', - 'Test Calendar With Clear Button', - { - qs: { - initialDate, - calendar, - }, - } - ) - - cy.get('[data-test="storybook-calendar-date-value"]').should( - 'have.text', - initialDate - ) - } -) - -Then('we should be able to clear it', () => { - cy.get(`[data-test="calendar-clear-button"]`).click() - cy.get('[data-test="storybook-calendar-date-value"]').should( - 'have.text', - 'undefined' - ) -}) - -Then('show the current month afterwards', () => { - cy.get('[data-test="dhis2-uiwidgets-calendar-inputfield"]').click() - cy.get('.isToday').should('be.visible') -}) - -Then("allow selecting today's date", () => { - cy.get('.isToday') - .parent() - .invoke('attr', 'data-test') - .then((todayDate) => { - cy.get('.isToday').click() - cy.get('[data-test="storybook-calendar-date-value"]').should( - 'have.text', - todayDate - ) - cy.get( - '[data-test="dhis2-uiwidgets-calendar-inputfield"] input' - ).should('have.value', todayDate) - }) -}) - -Then('highlight today as the selected date', () => { - cy.get('[data-test="dhis2-uiwidgets-calendar-inputfield"]').click() - cy.get('.isToday') - .parent() - .invoke('attr', 'data-test') - .then((todayDate) => { - cy.get('.isSelected').should( - 'have.text', - Number(todayDate.split('-')[2]).toString() - ) - }) -}) diff --git a/src/components/calendar/features/supports_ethiopic_calendar.feature b/src/components/calendar/features/supports_ethiopic_calendar.feature deleted file mode 100644 index e043bfa33d..0000000000 --- a/src/components/calendar/features/supports_ethiopic_calendar.feature +++ /dev/null @@ -1,20 +0,0 @@ -Feature: The Calendar renders in the Ethiopic calendar system - - Scenario: Display an Ethiopic calendar in Amharic - Given an Ethiopic calendar is rendered in "amharic" - Then days should be rendered in "amharic" - And months should be rendered in "amharic" with navigation - - Scenario: Select a day in the Ethiopic calendar in Amharic - Given an Ethiopic calendar is rendered in "amharic" - Then we should be able to select a day - - Scenario: Display an Ethiopic calendar in English - Given an Ethiopic calendar is rendered in "english" - Then days should be rendered in "english" - And months should be rendered in "english" with navigation - And the era should not be displayed in the year - - Scenario: Select a day in the Ethiopic calendar in English - Given an Ethiopic calendar is rendered in English - Then we should be able to select a day diff --git a/src/components/calendar/features/supports_ethiopic_calendar/supports_ethiopic_calendar.js b/src/components/calendar/features/supports_ethiopic_calendar/supports_ethiopic_calendar.js deleted file mode 100644 index f21ddd8ec0..0000000000 --- a/src/components/calendar/features/supports_ethiopic_calendar/supports_ethiopic_calendar.js +++ /dev/null @@ -1,56 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('an Ethiopic calendar is rendered in {word}', (language) => { - cy.visitStory('CalendarInputTesting', `Ethiopic With ${language}`) - - cy.get('[data-test="dhis2-uiwidgets-calendar-inputfield"]').click() - cy.get('[data-test=calendar]').should('be.visible') -}) - -Then('days should be rendered in "{word}"', (language) => { - const days = - language === 'amharic' - ? ['ሰኞ', 'ማክሰ', 'ረቡዕ', 'ሐሙስ', 'ዓርብ', 'ቅዳሜ', 'እሑድ'] - : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] - - days.forEach((day) => { - cy.contains(day).should('be.visible') - }) -}) - -Then('months should be rendered in "{word}" with navigation', (language) => { - const months = - language === 'amharic' - ? { current: 'ጥቅምት', previous: 'መስከረም', next: 'ኅዳር' } - : { current: 'Tekemt', previous: 'Meskerem', next: 'Hedar' } - - cy.contains(months.current).should('be.visible') - cy.get('[data-test="calendar-next-month"]').click() - cy.contains(months.next).should('be.visible') - cy.get('[data-test="calendar-previous-month"]').click() - cy.get('[data-test="calendar-previous-month"]').click() - cy.contains(months.previous).should('be.visible') -}) - -Then('the era should not be displayed in the year', () => { - cy.get('[data-test="calendar-current-year"]').should( - 'not.contain.text', - 'ERA1' - ) -}) - -Then('we should be able to select a day', () => { - const date = '2014-02-03' - cy.get(`[data-test="${date}"]`).click() - - cy.get('[data-test="dhis2-uiwidgets-calendar-inputfield"] input').should( - 'have.value', - date - ) - - cy.get('[data-test="storybook-calendar-result"]').should('have.text', date) - cy.get('[data-test="storybook-calendar-result-iso"]').should( - 'have.text', - '13 October 2021' - ) -}) diff --git a/src/components/calendar/features/supports_gregorian_calendar.feature b/src/components/calendar/features/supports_gregorian_calendar.feature deleted file mode 100644 index 33465fdb78..0000000000 --- a/src/components/calendar/features/supports_gregorian_calendar.feature +++ /dev/null @@ -1,19 +0,0 @@ -Feature: The Calendar renders in the Gregorian calendar system - - Scenario: Display a Gregorian calendar in arabic - Given a Gregorian calendar is rendered in "arabic" - Then days should be rendered in "arabic" - And months should be rendered in "arabic" with navigation - - Scenario: Select a day in the Gregorian calendar in arabic - Given a Gregorian calendar is rendered in "arabic" - Then we should be able to select a day - - Scenario: Display a Gregorian calendar in English - Given a Gregorian calendar is rendered in "english" - Then days should be rendered in "english" - And months should be rendered in "english" with navigation - - Scenario: Select a day in the Gregorian calendar in English - Given a Gregorian calendar is rendered in English - Then we should be able to select a day diff --git a/src/components/calendar/features/supports_gregorian_calendar/supports_gregorian_calendar.js b/src/components/calendar/features/supports_gregorian_calendar/supports_gregorian_calendar.js deleted file mode 100644 index f96eeeed2d..0000000000 --- a/src/components/calendar/features/supports_gregorian_calendar/supports_gregorian_calendar.js +++ /dev/null @@ -1,57 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Gregorian calendar is rendered in {word}', (language) => { - cy.visitStory('CalendarInputTesting', `Gregorian With ${language}`) - - cy.get('[data-test="dhis2-uiwidgets-calendar-inputfield"]').click() - cy.get('[data-test=calendar]').should('be.visible') -}) - -Then('days should be rendered in "{word}"', (language) => { - const days = - language === 'arabic' - ? [ - 'الاثنين', - 'الثلاثاء', - 'الأربعاء', - 'الخميس', - 'الجمعة', - 'السبت', - 'الأحد', - ] - : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] - - days.forEach((day) => { - cy.contains(day).should('be.visible') - }) -}) - -Then('months should be rendered in "{word}" with navigation', (language) => { - const months = - language === 'english' - ? { current: 'October', previous: 'September', next: 'November' } - : { current: 'أكتوبر', previous: 'سبتمبر', next: 'نوفمبر' } - - cy.contains(months.current).should('be.visible') - cy.get('[data-test="calendar-next-month"]').click() - cy.contains(months.next).should('be.visible') - cy.get('[data-test="calendar-previous-month"]').click() - cy.get('[data-test="calendar-previous-month"]').click() - cy.contains(months.previous).should('be.visible') -}) - -Then('we should be able to select a day', () => { - const date = '2021-10-13' - cy.get(`[data-test="${date}"]`).click() - - cy.get('[data-test="dhis2-uiwidgets-calendar-inputfield"] input').should( - 'have.value', - date - ) - - cy.get('[data-test="storybook-calendar-result"]').should('have.text', date) - cy.get('[data-test="storybook-calendar-result-iso"]').should( - 'have.text', - '13 October 2021' - ) -}) diff --git a/src/components/calendar/features/supports_islamic_calendar.feature b/src/components/calendar/features/supports_islamic_calendar.feature deleted file mode 100644 index 2d5c94809a..0000000000 --- a/src/components/calendar/features/supports_islamic_calendar.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: The Calendar renders in the islamic-civil calendar system - - Scenario: A Calendar for the Islamic calendar - Given an Islamic calendar is rendered with Arabic locale - Then days should be rendered in Arabic diff --git a/src/components/calendar/features/supports_islamic_calendar/supports_islamic_calendar.js b/src/components/calendar/features/supports_islamic_calendar/supports_islamic_calendar.js deleted file mode 100644 index a7cd152227..0000000000 --- a/src/components/calendar/features/supports_islamic_calendar/supports_islamic_calendar.js +++ /dev/null @@ -1,17 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('an Islamic calendar is rendered with Arabic locale', () => { - cy.visitStory('CalendarInputTesting', `Islamic With Arabic`) - cy.get('[data-test="dhis2-uiwidgets-calendar-inputfield"]').click() - cy.get('[data-test=calendar]').should('be.visible') -}) - -Then('days should be rendered in Arabic', () => { - cy.contains('الأحد').should('be.visible') - cy.contains('السبت').should('be.visible') - cy.contains('الجمعة').should('be.visible') - cy.contains('الخميس').should('be.visible') - cy.contains('الأربعاء').should('be.visible') - cy.contains('الثلاثاء').should('be.visible') - cy.contains('الاثنين').should('be.visible') -}) diff --git a/src/components/calendar/features/supports_nepali_calendar.feature b/src/components/calendar/features/supports_nepali_calendar.feature deleted file mode 100644 index addc3a0945..0000000000 --- a/src/components/calendar/features/supports_nepali_calendar.feature +++ /dev/null @@ -1,19 +0,0 @@ -Feature: The Calendar renders in Nepali calendar system - - Scenario: Display a Nepali calendar in Nepali - Given a nepali calendar in "nepali" is rendered - Then nepali days should be rendered in "nepali" - And months should be rendered in "nepali" with navigation - - Scenario: Select a day in the Nepali calendar in Nepali - Given a nepali calendar in "nepali" is rendered - Then we should be able to select a day - - Scenario: Display a Nepali calendar in English - Given a nepali calendar in "english" is rendered - Then nepali days should be rendered in "english" - And months should be rendered in "english" with navigation - - Scenario: Select a day in the Nepali calendar in English - Given a nepali calendar in "english" is rendered - Then we should be able to select a day \ No newline at end of file diff --git a/src/components/calendar/features/supports_nepali_calendar/supports_nepali_calendar.js b/src/components/calendar/features/supports_nepali_calendar/supports_nepali_calendar.js deleted file mode 100644 index 5c75ac14bc..0000000000 --- a/src/components/calendar/features/supports_nepali_calendar/supports_nepali_calendar.js +++ /dev/null @@ -1,55 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a nepali calendar in "{word}" is rendered', (language) => { - cy.visitStory('CalendarInputTesting', `Nepali With ${language}`) - cy.get('[data-test="dhis2-uiwidgets-calendar-inputfield"]', { - timeout: 10000, - }).click() - cy.get('[data-test=calendar]').should('be.visible') -}) - -Then('nepali days should be rendered in "{word}"', (language) => { - const days = - language === 'nepali' - ? ['आइत', 'सोम', 'सोम', 'बुध', 'बिही', 'शुक्र', 'शनि'] - : ['Som', 'Mangl', 'Budha', 'Bihi', 'Shukra', 'Shani', 'Aaita'] - - days.forEach((day) => { - cy.contains(day).should('be.visible') - }) -}) - -Then('months should be rendered in "{word}" with navigation', (language) => { - // - - const months = - language === 'nepali' - ? { current: 'असोज', previous: 'भदौ', next: 'कार्तिक' } - : { current: 'Ashwin', previous: 'Bhadra', next: 'Kartik' } - - cy.contains(months.current).should('be.visible') - cy.get('[data-test="calendar-next-month"]').click() - cy.contains(months.next).should('be.visible') - cy.get('[data-test="calendar-previous-month"]').click() - cy.get('[data-test="calendar-previous-month"]').click() - cy.contains(months.previous).should('be.visible') -}) - -Then('we should be able to select a day', () => { - const nepaliDate = '2078-06-27' - cy.get(`[data-test="${nepaliDate}"]`).click() - - cy.get('[data-test="dhis2-uiwidgets-calendar-inputfield"] input').should( - 'have.value', - nepaliDate - ) - - cy.get('[data-test="storybook-calendar-result"]').should( - 'have.text', - nepaliDate - ) - cy.get('[data-test="storybook-calendar-result-iso"]').should( - 'have.text', - '13 October 2021' - ) -}) diff --git a/src/components/calendar/index.js b/src/components/calendar/index.js deleted file mode 100644 index 252dc77ae4..0000000000 --- a/src/components/calendar/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { Calendar } from './calendar/calendar.js' -export { CalendarInput } from './calendar-input/calendar-input.js' diff --git a/src/components/calendar/stories/calendar-input.prod.stories.js b/src/components/calendar/stories/calendar-input.prod.stories.js deleted file mode 100644 index f9f6ed6d5e..0000000000 --- a/src/components/calendar/stories/calendar-input.prod.stories.js +++ /dev/null @@ -1,118 +0,0 @@ -import React, { useState } from 'react' -import { CalendarInput } from '../calendar-input/calendar-input.js' -import { CalendarStoryWrapper } from './calendar-story-wrapper.js' - -const subtitle = `[Experimental] Calendar Input is a wrapper around Calendar displaying an input that triggers the calendar` -const description = ` -Use a CalendarInput where there is a need to let the user input a date. - -Note that it requires a parent, like [Box](../?path=/docs/layout-box--default), to define its size. - -\`\`\`js -import { CalendarInput } from '@dhis2/ui' -\`\`\` -` - -export default { - title: 'CalendarInput', - component: CalendarInput, - parameters: { - componentSubtitle: subtitle, - docs: { description: { component: description } }, - }, -} - -const buildCalendar = - ({ date, locale, calendar }) => - () => - ( - {}} - /> - ) - -export const EthiopicWithAmharic = buildCalendar({ - calendar: 'ethiopic', - locale: 'am-ET', - date: '2014-02-03', // 13 Oct 2021 -}) - -export const EthiopicWithEnglish = buildCalendar({ - calendar: 'ethiopian', // using "ethiopian" rather than the correct "ethiopic" to immitate DHIS2 calendar types - locale: 'en-ET', - date: '2014-02-03', // 13 Oct 2021 -}) - -export const NepaliWithNepali = buildCalendar({ - calendar: 'nepali', - locale: 'ne-NP', - date: '2078-06-27', // 13 Oct 2021 -}) - -export const NepaliWithEnglish = buildCalendar({ - calendar: 'nepali', - locale: 'en-NP', - date: '2078-06-27', // 13 Oct 2021 -}) - -export const GregorianWithEnglish = buildCalendar({ - calendar: 'gregorian', - locale: 'en-CA', - date: '2021-10-13', -}) - -export const GregorianWithArabic = buildCalendar({ - calendar: 'gregorian', - locale: 'ar-SD', - date: '2021-10-13', -}) - -export const IslamicWithArabic = () => { - return ( -
- {}} - /> -
- ) -} - -export const CalendarWithClearButton = ({ - calendar = 'gregory', - date: initialDate = null, -}) => { - const [date, setDate] = useState(initialDate) - return ( - <> - { - setDate(date?.calendarDateString) - }} - clearable - /> -
- value: - - {date ?? 'undefined'} - -
- - ) -} diff --git a/src/components/calendar/stories/calendar-story-wrapper.js b/src/components/calendar/stories/calendar-story-wrapper.js deleted file mode 100644 index e43ed91688..0000000000 --- a/src/components/calendar/stories/calendar-story-wrapper.js +++ /dev/null @@ -1,176 +0,0 @@ -import { constants } from '@dhis2/multi-calendar-dates' -import PropTypes from 'prop-types' -import React, { useState } from 'react' -import { Calendar } from '../calendar/calendar.js' - -const { calendars, numberingSystems } = constants -export const CalendarStoryWrapper = (props) => { - const { - calendar, - locale, - timeZone, - dir, - component: Component, - date, - weekDayFormat, - } = props - const [selectedCalendar, setSelectedCalendar] = useState(calendar) - const [selectedNumberingSystem, setSelectedNumberingSystem] = useState() - const [selectedDirection, setSelectedDirection] = useState(dir) - const [selectedWeekFormat, setWeekDayFormat] = useState(weekDayFormat) - - const [selectedLocale, setLocale] = useState(locale) - const [selectedDate, setSelectedDate] = useState({ - calendarDateString: date, - }) - - const changeCalendar = ({ target: { value } }) => { - setSelectedCalendar(value) - } - const changeNumberingSystem = ({ target: { value } }) => { - if (value === '-1') { - setSelectedNumberingSystem(null) - } else { - setSelectedNumberingSystem(value) - } - } - const changeDirection = ({ target: { value } }) => { - setSelectedDirection(value) - } - - const changeWeekFormat = ({ target: { value } }) => { - setWeekDayFormat(value) - } - - const onLocaleChanged = ({ target: { value } }) => { - setLocale(value) - } - - return ( -
-
-
Options
- - - - - -
- { - setSelectedDate(date) - }} - timeZone={timeZone} - weekDayFormat={selectedWeekFormat} - numberingSystem={selectedNumberingSystem} - /> -
-
- {selectedDate && ( - <> -
- - - {selectedDate.calendarDateString} - -
-
- - - {selectedDate.calendarDate - ?.withCalendar('iso8601') - .toLocaleString('en-GB', { - dateStyle: 'long', - })} - -
-
- - {JSON.stringify(selectedDate, null, 2)} -
- - )} -
-
-
- ) -} - -CalendarStoryWrapper.defaultProps = { - calendar: 'gregorian', - component: Calendar, - weekDayFormat: 'narrow', -} - -CalendarStoryWrapper.propTypes = { - calendar: PropTypes.string.isRequired, - component: PropTypes.elementType.isRequired, - date: PropTypes.string, - dir: PropTypes.oneOf(['ltr', 'rtl']), - locale: PropTypes.string, - timeZone: PropTypes.string, - weekDayFormat: PropTypes.string, -} diff --git a/src/components/calendar/stories/calendar.prod.stories.js b/src/components/calendar/stories/calendar.prod.stories.js deleted file mode 100644 index ff5a81f9ce..0000000000 --- a/src/components/calendar/stories/calendar.prod.stories.js +++ /dev/null @@ -1,52 +0,0 @@ -import React from 'react' -import { Calendar } from '../calendar/calendar.js' -import { CalendarStoryWrapper } from './calendar-story-wrapper.js' - -const subtitle = `[Experimental] Calendar component is useful for creating a variety of calendars including Ethiopic, Islamic etc..` -const description = ` -Use a Calendar where there is a need to let the user select a date. - -Note that it requires a parent, like [Box](../?path=/docs/layout-box--default), to define its size. - -\`\`\`js -import { Calendar } from '@dhis2/ui' -\`\`\` -` - -export default { - title: 'Calendar', - component: Calendar, - parameters: { - componentSubtitle: subtitle, - docs: { description: { component: description } }, - }, -} - -export const Ethiopic = (args) => { - return ( - - ) -} - -export const Nepali = (args) => { - return ( - - ) -} - -export const WithAnyCalendar = (args) => { - return -} diff --git a/src/components/card/card.e2e.stories.js b/src/components/card/card.e2e.stories.js deleted file mode 100644 index 2da68f0aa9..0000000000 --- a/src/components/card/card.e2e.stories.js +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react' -import { Card } from './card.js' - -export default { title: 'Card' } -export const WithChildren = () => ( - - I am a child - I am a child - I am a child - -) diff --git a/src/components/card/card.js b/src/components/card/card.js deleted file mode 100644 index 9405c11656..0000000000 --- a/src/components/card/card.js +++ /dev/null @@ -1,36 +0,0 @@ -import { colors, elevations } from '../../constants/index.js' -import cx from 'classnames' -import PropTypes from 'prop-types' -import React from 'react' - -const Card = ({ className, children, dataTest }) => ( -
- {children} - - -
-) - -Card.defaultProps = { - dataTest: 'dhis2-uicore-card', -} - -Card.propTypes = { - children: PropTypes.node, - className: PropTypes.string, - dataTest: PropTypes.string, -} - -export { Card } diff --git a/src/components/card/card.prod.stories.js b/src/components/card/card.prod.stories.js deleted file mode 100644 index 1ec4b1c5f0..0000000000 --- a/src/components/card/card.prod.stories.js +++ /dev/null @@ -1,36 +0,0 @@ -import { Box } from '../box/index.js' -import React from 'react' -import { Card } from './card.js' - -const subtitle = ` -A card is a container element for grouping together -and separating blocks of content. -` - -const description = ` -Use a card where there is content that can be grouped together. -Cards are most often useful when this grouped content may be repeated, -for example with items on a dashboard, or different sections of patient -information displayed in a profile. - -Note that it requires a parent, like [Box](../?path=/docs/layout-box--default), to define its size. - -\`\`\`js -import { Card } from '@dhis2/ui' -\`\`\` -` - -export default { - title: 'Card', - component: Card, - parameters: { - componentSubtitle: subtitle, - docs: { description: { component: description } }, - }, -} - -export const Default = (args) => ( - - - -) diff --git a/src/components/card/features/accepts_children.feature b/src/components/card/features/accepts_children.feature deleted file mode 100644 index d3c50fdfe7..0000000000 --- a/src/components/card/features/accepts_children.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: The Card renders children - - Scenario: A Card with children - Given a Card with children is rendered - Then the children are visible diff --git a/src/components/card/features/accepts_children/index.js b/src/components/card/features/accepts_children/index.js deleted file mode 100644 index 96789514d9..0000000000 --- a/src/components/card/features/accepts_children/index.js +++ /dev/null @@ -1,10 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Card with children is rendered', () => { - cy.visitStory('Card', 'With children') - cy.get('[data-test="dhis2-uicore-card"]').should('be.visible') -}) - -Then('the children are visible', () => { - cy.contains('I am a child').should('be.visible') -}) diff --git a/src/components/card/index.js b/src/components/card/index.js deleted file mode 100644 index cec521f960..0000000000 --- a/src/components/card/index.js +++ /dev/null @@ -1 +0,0 @@ -export { Card } from './card.js' diff --git a/src/components/center/center.js b/src/components/center/center.js deleted file mode 100644 index 7222bbb4aa..0000000000 --- a/src/components/center/center.js +++ /dev/null @@ -1,51 +0,0 @@ -import cx from 'classnames' -import PropTypes from 'prop-types' -import React, { forwardRef } from 'react' - -export const Center = forwardRef( - ({ className, dataTest, children, position }, ref) => ( -
-
{children}
- - -
- ) -) - -Center.displayName = 'Center' - -Center.defaultProps = { - dataTest: 'dhis2-uicore-centeredcontent', - position: 'middle', -} - -Center.propTypes = { - children: PropTypes.node, - className: PropTypes.string, - dataTest: PropTypes.string, - /** Vertical alignment */ - position: PropTypes.oneOf(['top', 'middle', 'bottom']), -} diff --git a/src/components/center/center.prod.stories.js b/src/components/center/center.prod.stories.js deleted file mode 100644 index 583b844f44..0000000000 --- a/src/components/center/center.prod.stories.js +++ /dev/null @@ -1,34 +0,0 @@ -import React from 'react' -import { Center } from './center.js' - -const description = ` -Centers children horizontally, and by default, vertically. -Use the \`top\` or \`bottom\` props to change vertical alignment. - -\`\`\`js -import { CenteredContent } from '@dhis2/ui' -\`\`\` -` - -const Wrapper = (story) =>
{story()}
- -export default { - title: 'Center', - component: Center, - decorators: [Wrapper], - parameters: { docs: { description: { component: description } } }, -} - -const Template = (args) => ( -
- Center me -
-) - -export const Default = Template.bind({}) - -export const Top = Template.bind({}) -Top.args = { position: 'top' } - -export const Bottom = Template.bind({}) -Bottom.args = { position: 'bottom' } diff --git a/src/components/center/index.js b/src/components/center/index.js deleted file mode 100644 index 761aa08e19..0000000000 --- a/src/components/center/index.js +++ /dev/null @@ -1 +0,0 @@ -export { Center } from './center.js' diff --git a/src/components/checkbox/checkbox-field/__tests__/checkbox-field.test.js b/src/components/checkbox/checkbox-field/__tests__/checkbox-field.test.js deleted file mode 100644 index 9fbfea5387..0000000000 --- a/src/components/checkbox/checkbox-field/__tests__/checkbox-field.test.js +++ /dev/null @@ -1,32 +0,0 @@ -import { render, fireEvent, screen } from '@testing-library/react' -import React from 'react' -import { CheckboxField } from '../checkbox-field.js' - -describe('', () => { - it('should call the onKeyDown callback when provided', () => { - const onKeyDown = jest.fn() - - render( - - ) - - fireEvent.keyDown(screen.getByRole('checkbox'), { - key: 'Enter', - code: 'Enter', - charCode: 13, - }) - - expect(onKeyDown).toHaveBeenCalledWith( - { name: 'foo', value: 'bar', checked: true }, - expect.objectContaining({}) - ) - - expect(onKeyDown).toHaveBeenCalledTimes(1) - }) -}) diff --git a/src/components/checkbox/checkbox-field/checkbox-field.e2e.stories.js b/src/components/checkbox/checkbox-field/checkbox-field.e2e.stories.js deleted file mode 100644 index 5d41e9ecfc..0000000000 --- a/src/components/checkbox/checkbox-field/checkbox-field.e2e.stories.js +++ /dev/null @@ -1,26 +0,0 @@ -import React from 'react' -import { CheckboxField } from './index.js' - -export default { title: 'CheckboxField' } -export const WithLabelAndRequired = () => ( - -) -export const WithHelpText = () => ( - -) -export const WithLabel = () => ( - -) -export const WithValidationText = () => ( - -) diff --git a/src/components/checkbox/checkbox-field/checkbox-field.js b/src/components/checkbox/checkbox-field/checkbox-field.js deleted file mode 100644 index 243a0c0186..0000000000 --- a/src/components/checkbox/checkbox-field/checkbox-field.js +++ /dev/null @@ -1,120 +0,0 @@ -import { sharedPropTypes } from '../../../constants/index.js' -import { Field } from '../../field/index.js' -import { Required } from '../../required/index.js' -import PropTypes from 'prop-types' -import React from 'react' -import { Checkbox } from '../checkbox/index.js' - -const AddRequired = ({ label, required, dataTest }) => ( - - {label} - {required && } - -) -AddRequired.propTypes = { - dataTest: PropTypes.string, - label: PropTypes.node, - required: PropTypes.bool, -} - -const CheckboxField = ({ - value, - label, - name, - className, - tabIndex, - onChange, - onFocus, - onKeyDown, - onBlur, - checked, - disabled, - valid, - warning, - error, - dense, - initialFocus, - required, - helpText, - validationText, - dataTest, -}) => ( - - - } - name={name} - tabIndex={tabIndex} - onChange={onChange} - onFocus={onFocus} - onKeyDown={onKeyDown} - onBlur={onBlur} - checked={checked} - disabled={disabled} - valid={valid} - warning={warning} - error={error} - dense={dense} - initialFocus={initialFocus} - /> - -) - -CheckboxField.defaultProps = { - dataTest: 'dhis2-uiwidgets-checkboxfield', -} - -CheckboxField.propTypes = { - checked: PropTypes.bool, - className: PropTypes.string, - dataTest: PropTypes.string, - /** Smaller dimensions for information-dense layouts */ - dense: PropTypes.bool, - /** Disables the checkbox */ - disabled: PropTypes.bool, - /** Applies 'error' styling to checkbox and validation text for feedback. Mutually exclusive with `warning` and `valid` props */ - error: sharedPropTypes.statusPropType, - /** Useful instructions for the user */ - helpText: PropTypes.string, - initialFocus: PropTypes.bool, - /** Labels the checkbox */ - label: PropTypes.node, - /** Name associate with the checkbox. Passed in object as argument to event handlers */ - name: PropTypes.string, - /** Adds an asterisk to indicate this field is required */ - required: PropTypes.bool, - tabIndex: PropTypes.string, - /** Applies 'valid' styling to checkbox and validation text for feedback. Mutually exclusive with `warning` and `error` props */ - valid: sharedPropTypes.statusPropType, - /** Adds text below the checkbox to provide validation feedback. Acquires styles from `valid`, `warning` and `error` statuses */ - validationText: PropTypes.string, - /** Value associated with the checkbox. Passed in object as argument to event handlers */ - value: PropTypes.string, - /** Applies 'warning' styling to checkbox and validation text for feedback. Mutually exclusive with `valid` and `error` props */ - warning: sharedPropTypes.statusPropType, - /** Called with signature `({ name: string, value: string, checked: bool }, event)` */ - onBlur: PropTypes.func, - /** Called with signature `({ name: string, value: string, checked: bool }, event)` */ - onChange: PropTypes.func, - /** Called with signature `({ name: string, value: string, checked: bool }, event)` */ - onFocus: PropTypes.func, - /** Called with signature `({ name: string, value: string, checked: bool }, event)` */ - onKeyDown: PropTypes.func, -} - -export { CheckboxField } diff --git a/src/components/checkbox/checkbox-field/checkbox-field.prod.stories.js b/src/components/checkbox/checkbox-field/checkbox-field.prod.stories.js deleted file mode 100644 index d5cb802a75..0000000000 --- a/src/components/checkbox/checkbox-field/checkbox-field.prod.stories.js +++ /dev/null @@ -1,149 +0,0 @@ -import { sharedPropTypes } from '../../../constants/index.js' -import React from 'react' -import { CheckboxField } from './index.js' - -const description = ` -A \`CheckboxField\` is a Checkbox component wrapped with extra form utilities, including the ability to add a label, help text, and validation text. Validation styles like 'error' apply to all of these subcomponents. - -See the basic Checkbox for usage and design system guidelines. - -\`\`\`js -import { CheckboxField } from '@dhis2/ui' -\`\`\` -` - -const logger = ({ name, value, checked }) => - console.log(`name: ${name}, value: ${value}, checked: ${checked}`) - -export default { - title: 'Checkbox Field', - component: CheckboxField, - parameters: { docs: { description: { component: description } } }, - // Default args for stories - args: { - name: 'checkboxName', - label: 'Checkbox Field', - value: 'defaultValue', - onChange: logger, - }, - argTypes: { - valid: { ...sharedPropTypes.statusArgType }, - warning: { ...sharedPropTypes.statusArgType }, - error: { ...sharedPropTypes.statusArgType }, - }, -} - -const Template = (args) => - -const CheckedUncheckedTemplate = (args) => ( - <> - - - -) - -export const Default = Template.bind({}) - -export const FocusedUnchecked = Template.bind({}) -FocusedUnchecked.args = { initialFocus: true } -// Disable stories on docs page that grab focus -FocusedUnchecked.parameters = { docs: { disable: true } } - -export const FocusedChecked = Template.bind({}) -FocusedChecked.args = { ...FocusedUnchecked.args, checked: true } -FocusedChecked.parameters = { docs: { disable: true } } - -export const Checked = Template.bind({}) -Checked.args = { checked: true, value: 'checkedValue' } - -export const Required = Template.bind({}) -Required.args = { required: true } - -export const Disabled = CheckedUncheckedTemplate.bind({}) -Disabled.args = { disabled: true } - -export const HelpText = (args) => ( - <> - - - -) -HelpText.args = { helpText: 'Help text' } - -export const Valid = CheckedUncheckedTemplate.bind({}) -Valid.args = { - valid: true, - validationText: 'I am validation text', - value: 'validValue', -} - -export const Warning = CheckedUncheckedTemplate.bind({}) -Warning.args = { - warning: true, - value: 'warningValue', - validationText: 'I am validation text', -} - -export const Error = CheckedUncheckedTemplate.bind({}) -Error.args = { - error: true, - value: 'errorValue', - validationText: 'I am validation text', -} - -export const ImageLabel = Template.bind({}) -ImageLabel.args = { label: } - -export const DefaultDense = Template.bind({}) -DefaultDense.storyName = 'Default - Dense' -DefaultDense.args = { dense: true } - -export const FocusedUncheckedDense = Template.bind({}) -FocusedUncheckedDense.args = { ...DefaultDense.args, ...FocusedUnchecked.args } -FocusedUncheckedDense.parameters = { docs: { disable: true } } -FocusedUncheckedDense.storyName = 'Focused unchecked - Dense' - -export const FocusedCheckedDense = Template.bind({}) -FocusedCheckedDense.args = { ...DefaultDense.args, ...FocusedChecked.args } -FocusedCheckedDense.parameters = { docs: { disable: true } } -FocusedCheckedDense.storyName = 'Focused checked - Dense' - -export const CheckedDense = Template.bind({}) -CheckedDense.args = { ...DefaultDense.args, ...Checked.args } -CheckedDense.storyName = 'Checked - Dense' - -export const RequiredDense = Template.bind({}) -RequiredDense.args = { ...DefaultDense.args, ...Required.args } -RequiredDense.storyName = 'Required - Dense' - -export const DisabledDense = CheckedUncheckedTemplate.bind({}) -DisabledDense.args = { ...DefaultDense.args, ...Disabled.args } -DisabledDense.storyName = 'Disabled - Dense' - -export const ValidDense = CheckedUncheckedTemplate.bind({}) -ValidDense.args = { ...DefaultDense.args, ...Valid.args } -ValidDense.storyName = 'Valid - Dense' - -export const WarningDense = CheckedUncheckedTemplate.bind({}) -WarningDense.args = { ...DefaultDense.args, ...Warning.args } -WarningDense.storyName = 'Warning - Dense' - -export const ErrorDense = CheckedUncheckedTemplate.bind({}) -ErrorDense.args = { ...DefaultDense.args, ...Error.args } -ErrorDense.storyName = 'Error - Dense' - -export const ImageLabelDense = Template.bind({}) -ImageLabelDense.args = { ...DefaultDense.args, ...ImageLabel.args } -ImageLabelDense.storyName = 'Image label - Dense' - -export const RTL = (args) => ( -
- <> - - -
-) diff --git a/src/components/checkbox/checkbox-field/features/accepts_help_text.feature b/src/components/checkbox/checkbox-field/features/accepts_help_text.feature deleted file mode 100644 index f0a3374d78..0000000000 --- a/src/components/checkbox/checkbox-field/features/accepts_help_text.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Help text for the CheckboxField - - Scenario: Rendering a CheckboxField with help text - Given a CheckboxField with help text is rendered - Then the help text is visible diff --git a/src/components/checkbox/checkbox-field/features/accepts_help_text/index.js b/src/components/checkbox/checkbox-field/features/accepts_help_text/index.js deleted file mode 100644 index 436c121c87..0000000000 --- a/src/components/checkbox/checkbox-field/features/accepts_help_text/index.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a CheckboxField with help text is rendered', () => { - cy.visitStory('CheckboxField', 'With help text') -}) - -Then('the help text is visible', () => { - cy.get('[data-test="dhis2-uiwidgets-checkboxfield-help"]') - .contains('Help text') - .should('be.visible') -}) diff --git a/src/components/checkbox/checkbox-field/features/accepts_label.feature b/src/components/checkbox/checkbox-field/features/accepts_label.feature deleted file mode 100644 index b80629ae92..0000000000 --- a/src/components/checkbox/checkbox-field/features/accepts_label.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Label for the CheckboxField - - Scenario: Rendering a CheckboxField with a label - Given a CheckboxField with a label is rendered - Then the label is visible diff --git a/src/components/checkbox/checkbox-field/features/accepts_label/index.js b/src/components/checkbox/checkbox-field/features/accepts_label/index.js deleted file mode 100644 index 16a5aedb29..0000000000 --- a/src/components/checkbox/checkbox-field/features/accepts_label/index.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a CheckboxField with a label is rendered', () => { - cy.visitStory('CheckboxField', 'With label') -}) - -Then('the label is visible', () => { - cy.get('[data-test="dhis2-uiwidgets-checkboxfield"]') - .contains('The label') - .should('be.visible') -}) diff --git a/src/components/checkbox/checkbox-field/features/accepts_validation_text.feature b/src/components/checkbox/checkbox-field/features/accepts_validation_text.feature deleted file mode 100644 index 912ac3a0b2..0000000000 --- a/src/components/checkbox/checkbox-field/features/accepts_validation_text.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Validation text for the CheckboxField - - Scenario: Rendering a CheckboxField with validation text - Given a CheckboxField with validation text is rendered - Then the validation text is visible diff --git a/src/components/checkbox/checkbox-field/features/accepts_validation_text/index.js b/src/components/checkbox/checkbox-field/features/accepts_validation_text/index.js deleted file mode 100644 index c75ad16ee1..0000000000 --- a/src/components/checkbox/checkbox-field/features/accepts_validation_text/index.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a CheckboxField with validation text is rendered', () => { - cy.visitStory('CheckboxField', 'With validation text') -}) - -Then('the validation text is visible', () => { - cy.get('[data-test="dhis2-uiwidgets-checkboxfield-validation"]') - .contains('Validation text') - .should('be.visible') -}) diff --git a/src/components/checkbox/checkbox-field/features/can_be_required.feature b/src/components/checkbox/checkbox-field/features/can_be_required.feature deleted file mode 100644 index 6c8b6e3134..0000000000 --- a/src/components/checkbox/checkbox-field/features/can_be_required.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Required status for the CheckboxField - - Scenario: Rendering a CheckboxField that is required - Given a CheckboxField with label and a required flag is rendered - Then the required indicator is visible diff --git a/src/components/checkbox/checkbox-field/features/can_be_required/index.js b/src/components/checkbox/checkbox-field/features/can_be_required/index.js deleted file mode 100644 index 241351f807..0000000000 --- a/src/components/checkbox/checkbox-field/features/can_be_required/index.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a CheckboxField with label and a required flag is rendered', () => { - cy.visitStory('CheckboxField', 'With label and required') -}) - -Then('the required indicator is visible', () => { - cy.get('[data-test="dhis2-uiwidgets-checkboxfield-required"]').should( - 'be.visible' - ) -}) diff --git a/src/components/checkbox/checkbox-field/index.js b/src/components/checkbox/checkbox-field/index.js deleted file mode 100644 index c3ac92c4bd..0000000000 --- a/src/components/checkbox/checkbox-field/index.js +++ /dev/null @@ -1 +0,0 @@ -export { CheckboxField } from './checkbox-field.js' diff --git a/src/components/checkbox/checkbox/__tests__/checkbox.test.js b/src/components/checkbox/checkbox/__tests__/checkbox.test.js deleted file mode 100644 index a762567911..0000000000 --- a/src/components/checkbox/checkbox/__tests__/checkbox.test.js +++ /dev/null @@ -1,31 +0,0 @@ -import { render, fireEvent, screen } from '@testing-library/react' -import React from 'react' -import { Checkbox } from '../checkbox.js' - -describe('', () => { - it('should call the onKeyDown callback when provided', () => { - const onKeyDown = jest.fn() - - render( - - ) - - fireEvent.keyDown(screen.getByRole('checkbox'), { - key: 'Enter', - code: 'Enter', - charCode: 13, - }) - - expect(onKeyDown).toHaveBeenCalledWith( - { name: 'foo', value: 'bar', checked: true }, - expect.objectContaining({}) - ) - - expect(onKeyDown).toHaveBeenCalledTimes(1) - }) -}) diff --git a/src/components/checkbox/checkbox/checkbox-icon.js b/src/components/checkbox/checkbox/checkbox-icon.js deleted file mode 100644 index e85b2f2d27..0000000000 --- a/src/components/checkbox/checkbox/checkbox-icon.js +++ /dev/null @@ -1,201 +0,0 @@ -import { colors } from '../../../constants/index.js' -import PropTypes from 'prop-types' -import React from 'react' -import css from 'styled-jsx/css' - -const commonStyles = css` - svg { - display: block; - pointer-events: none; - } - svg .border { - fill: ${colors.grey800}; - } - svg .background, - svg .indeterminate, - svg .checkmark { - fill: ${colors.white}; - } - - svg.checked .background, - svg.indeterminate .background { - fill: ${colors.teal500}; - } - svg.valid .background { - fill: ${colors.blue600}; - } - svg.warning .background { - fill: ${colors.yellow700}; - } - svg.error .background { - fill: ${colors.red500}; - } - - svg.checked .border, - svg.indeterminate .border { - fill: ${colors.teal900}; - } - - svg:not(.checked) .checkmark, - svg:not(.indeterminate) .indeterminate { - fill: none; - } - svg:not(.checked):not(.indeterminate) .background { - fill: ${colors.white}; - } -` - -export function CheckboxRegular({ className }) { - return ( - - - - - - - - - ) -} -CheckboxRegular.propTypes = { - className: PropTypes.string, -} - -export function CheckboxDense({ className }) { - return ( - - - - - - - - - ) -} -CheckboxDense.propTypes = { - className: PropTypes.string, -} diff --git a/src/components/checkbox/checkbox/checkbox.e2e.stories.js b/src/components/checkbox/checkbox/checkbox.e2e.stories.js deleted file mode 100644 index f47bee5748..0000000000 --- a/src/components/checkbox/checkbox/checkbox.e2e.stories.js +++ /dev/null @@ -1,55 +0,0 @@ -import React from 'react' -import { Checkbox } from './index.js' - -window.onClick = window.Cypress && window.Cypress.cy.stub() -window.onChange = window.Cypress && window.Cypress.cy.stub() -window.onBlur = window.Cypress && window.Cypress.cy.stub() -window.onFocus = window.Cypress && window.Cypress.cy.stub() - -export default { title: 'Checkbox' } -export const WithOnChange = () => ( - -) -export const WithInitialFocusAndOnBlur = () => ( - -) -export const WithOnFocus = () => ( - -) -export const DisabledWithOnClick = () => ( - -) -export const WithLabel = () => ( - -) -export const WithInitialFocus = () => ( - -) -export const IndeterminateProp = () => ( - -) -export const NoIndeterminateProp = () => ( - -) diff --git a/src/components/checkbox/checkbox/checkbox.js b/src/components/checkbox/checkbox/checkbox.js deleted file mode 100644 index 8f90912836..0000000000 --- a/src/components/checkbox/checkbox/checkbox.js +++ /dev/null @@ -1,214 +0,0 @@ -import { mutuallyExclusive } from '@dhis2/prop-types' -import { colors, spacers, theme, sharedPropTypes } from '../../../constants/index.js' -import cx from 'classnames' -import PropTypes from 'prop-types' -import React, { Component, createRef } from 'react' -import { CheckboxRegular, CheckboxDense } from './checkbox-icon.js' - -class Checkbox extends Component { - ref = createRef() - - componentDidMount() { - if (this.props.initialFocus) { - this.ref.current.focus() - } - - this.setIndeterminate(this.props.indeterminate) - } - - componentDidUpdate(prevProps) { - if (prevProps.indeterminate !== this.props.indeterminate) { - this.setIndeterminate(this.props.indeterminate) - } - } - - setIndeterminate(indeterminate) { - this.ref.current.indeterminate = indeterminate - } - - handleChange = (e) => { - if (this.props.onChange) { - this.props.onChange(this.createHandlerPayload(), e) - } - } - - handleBlur = (e) => { - if (this.props.onBlur) { - this.props.onBlur(this.createHandlerPayload(), e) - } - } - - handleFocus = (e) => { - if (this.props.onFocus) { - this.props.onFocus(this.createHandlerPayload(), e) - } - } - - handleKeyDown = (e) => { - if (this.props.onKeyDown) { - this.props.onKeyDown(this.createHandlerPayload(), e) - } - } - - createHandlerPayload() { - return { - value: this.props.value, - name: this.props.name, - checked: !this.props.checked, - } - } - - render() { - const { - checked, - indeterminate, - className, - disabled, - error, - label, - name, - tabIndex, - valid, - value, - warning, - dense, - dataTest, - } = this.props - - const classes = cx({ - checked, - indeterminate, - disabled, - valid, - error, - warning, - }) - - return ( - - ) - } -} - -Checkbox.defaultProps = { - checked: false, - indeterminate: false, - dataTest: 'dhis2-uicore-checkbox', -} - -const uniqueOnStatePropType = mutuallyExclusive( - ['checked', 'indeterminate'], - PropTypes.bool -) - -Checkbox.propTypes = { - checked: uniqueOnStatePropType, - className: PropTypes.string, - dataTest: PropTypes.string, - dense: PropTypes.bool, - disabled: PropTypes.bool, - error: sharedPropTypes.statusPropType, - indeterminate: uniqueOnStatePropType, - initialFocus: PropTypes.bool, - label: PropTypes.node, - name: PropTypes.string, - tabIndex: PropTypes.string, - valid: sharedPropTypes.statusPropType, - value: PropTypes.string, - warning: sharedPropTypes.statusPropType, - onBlur: PropTypes.func, - /** Called with signature `(object, event)` */ - onChange: PropTypes.func, - onFocus: PropTypes.func, - onKeyDown: PropTypes.func, -} - -export { Checkbox } diff --git a/src/components/checkbox/checkbox/checkbox.prod.stories.js b/src/components/checkbox/checkbox/checkbox.prod.stories.js deleted file mode 100644 index 59ca3e9bdd..0000000000 --- a/src/components/checkbox/checkbox/checkbox.prod.stories.js +++ /dev/null @@ -1,182 +0,0 @@ -import { sharedPropTypes } from '../../../constants/index.js' -import React from 'react' -import { Checkbox } from './index.js' - -const subtitle = - 'A checkbox is a control that allows a user to toggle an option.' - -const description = ` -Checkboxes are used when an option can be toggled on or off. Toggling a checkbox on (true) is always considered a positive action and should reflect a positive/true/on state. Multiple checkboxes can be used in a list where a user can toggle multiple elements. - -Do not use checkboxes in a list of several options where only a single option can be toggled, use [radio buttons](../?path=/docs/forms-radio-radio--default) here instead. - -If there are many options that need to select from, consider using a [select](../?path=/docs/forms-single-select-single-select--with-options) instead. - -\`\`\`js -import { Checkbox } from '@dhis2/ui' -\`\`\` -` - -window.onChange = (payload, event) => { - console.log('onClick payload', payload) - console.log('onClick event', event) -} - -window.onFocus = (payload, event) => { - console.log('onFocus payload', payload) - console.log('onFocus event', event) -} - -window.onBlur = (payload, event) => { - console.log('onBlur payload', payload) - console.log('onBlur event', event) -} - -const onChange = (...args) => window.onChange(...args) -const onFocus = (...args) => window.onFocus(...args) -const onBlur = (...args) => window.onBlur(...args) - -const defaultArgs = { name: 'Ex', label: 'Checkbox', onChange, onFocus, onBlur } - -const uniqueOnStateArgType = { - table: { - type: { - summary: 'bool', - detail: "'checked' and 'indeterminate' are mutually exclusive props", - }, - }, - control: { type: 'boolean' }, -} - -export default { - title: 'Checkbox', - component: Checkbox, - parameters: { - componentSubtitle: subtitle, - docs: { description: { component: description } }, - }, - // Sets default args on all stories unless overridden - args: { ...defaultArgs }, - argTypes: { - checked: { ...uniqueOnStateArgType }, - indeterminate: { ...uniqueOnStateArgType }, - valid: { ...sharedPropTypes.statusArgType }, - warning: { ...sharedPropTypes.statusArgType }, - error: { ...sharedPropTypes.statusArgType }, - }, -} - -const Template = (args) => - -const CheckedUncheckedTemplate = (args) => ( - <> - - - -) - -export const Default = Template.bind({}) -Default.args = { value: 'default' } - -export const FocusedUnchecked = (args) => ( - <> - - - -) -FocusedUnchecked.storyName = 'Focused unchecked' -/** - * 'initialFocus' causes docs page to scroll away every time a control is - * changed, so it's disabled - */ -FocusedUnchecked.parameters = { docs: { disable: true } } - -export const FocusedChecked = (args) => ( - <> - - - -) -FocusedChecked.storyName = 'Focused checked' -FocusedChecked.parameters = { docs: { disable: true } } - -export const Checked = Template.bind({}) -Checked.args = { checked: true, value: 'checked' } - -export const Indeterminate = Template.bind({}) -Indeterminate.args = { indeterminate: true, value: 'checked' } - -export const Disabled = CheckedUncheckedTemplate.bind({}) -Disabled.args = { disabled: true, value: 'disabled' } - -export const Valid = CheckedUncheckedTemplate.bind({}) -Valid.args = { valid: true, value: 'valid' } - -export const Warning = CheckedUncheckedTemplate.bind({}) -Warning.args = { warning: true, value: 'warning' } - -export const Error = CheckedUncheckedTemplate.bind({}) -Error.args = { error: true, value: 'error' } - -export const ImageLabel = Template.bind({}) -ImageLabel.args = { - label: , - value: 'with-help', -} - -export const DefaultDense = Template.bind({}) -DefaultDense.args = { dense: true, value: 'default' } -DefaultDense.storyName = 'Default - Dense' - -export const FocusedUncheckedDense = Template.bind({}) -FocusedUncheckedDense.args = { - dense: true, - initialFocus: true, - value: 'default', -} -FocusedUncheckedDense.storyName = 'Focused unchecked - Dense' -FocusedUncheckedDense.parameters = { docs: { disable: true } } - -export const FocusedCheckedDense = Template.bind({}) -FocusedCheckedDense.args = { ...FocusedUncheckedDense.args, checked: true } -FocusedCheckedDense.storyName = 'Focused checked - Dense' -FocusedCheckedDense.parameters = { docs: { disable: true } } - -export const CheckedDense = Template.bind({}) -CheckedDense.args = { dense: true, checked: true, value: 'checked' } -CheckedDense.storyName = 'Checked - Dense' - -export const IndeterminateDense = Template.bind({}) -IndeterminateDense.args = { dense: true, indeterminate: true, value: 'checked' } -IndeterminateDense.storyName = 'Indeterminate - Dense' - -export const DisabledDense = CheckedUncheckedTemplate.bind({}) -DisabledDense.args = { ...Disabled.args, dense: true } -DisabledDense.storyName = 'Disabled - Dense' - -export const ValidDense = CheckedUncheckedTemplate.bind({}) -ValidDense.args = { ...Valid.args, dense: true } -ValidDense.storyName = 'Valid - Dense' - -export const WarningDense = CheckedUncheckedTemplate.bind({}) -WarningDense.args = { ...Warning.args, dense: true } -WarningDense.storyName = 'Warning - Dense' - -export const ErrorDense = CheckedUncheckedTemplate.bind({}) -ErrorDense.args = { ...Error.args, dense: true } -ErrorDense.storyName = 'Error - Dense' - -export const ImageLabelDense = Template.bind({}) -ImageLabelDense.args = { ...ImageLabel.args, dense: true } -ImageLabelDense.storyName = 'Image label - Dense' - -export const RTL = (args) => ( -
- -
-) diff --git a/src/components/checkbox/checkbox/features/accepts_initial_focus.feature b/src/components/checkbox/checkbox/features/accepts_initial_focus.feature deleted file mode 100644 index aa13f60d43..0000000000 --- a/src/components/checkbox/checkbox/features/accepts_initial_focus.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: Focusing the Checkbox on mount - - Scenario: The Checkbox renders with focus - Given a Checkbox with initialFocus is rendered - Then the Checkbox is focused diff --git a/src/components/checkbox/checkbox/features/accepts_initial_focus/index.js b/src/components/checkbox/checkbox/features/accepts_initial_focus/index.js deleted file mode 100644 index 1dcb306796..0000000000 --- a/src/components/checkbox/checkbox/features/accepts_initial_focus/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Checkbox with initialFocus is rendered', () => { - cy.visitStory('Checkbox', 'With initial focus') -}) - -Then('the Checkbox is focused', () => { - cy.focused().parent('[data-test="dhis2-uicore-checkbox"]').should('exist') -}) diff --git a/src/components/checkbox/checkbox/features/accepts_label.feature b/src/components/checkbox/checkbox/features/accepts_label.feature deleted file mode 100644 index 4bb799be3c..0000000000 --- a/src/components/checkbox/checkbox/features/accepts_label.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: The Checkbox shows a label - - Scenario: The Checkbox has a label - Given a Checkbox with a label is rendered - Then the label is shown diff --git a/src/components/checkbox/checkbox/features/accepts_label/index.js b/src/components/checkbox/checkbox/features/accepts_label/index.js deleted file mode 100644 index 101e5ca88d..0000000000 --- a/src/components/checkbox/checkbox/features/accepts_label/index.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Checkbox with a label is rendered', () => { - cy.visitStory('Checkbox', 'With label') -}) - -Then('the label is shown', () => { - cy.get('[data-test="dhis2-uicore-checkbox"]') - .contains('The label') - .should('be.visible') -}) diff --git a/src/components/checkbox/checkbox/features/can_be_blurred.feature b/src/components/checkbox/checkbox/features/can_be_blurred.feature deleted file mode 100644 index 4d74292009..0000000000 --- a/src/components/checkbox/checkbox/features/can_be_blurred.feature +++ /dev/null @@ -1,6 +0,0 @@ -Feature: The Checkbox has an onBlur api - - Scenario: The user blurs the Checkbox - Given a Checkbox with initialFocus and onBlur handler is rendered - When the Checkbox is blurred - Then the onBlur handler is called diff --git a/src/components/checkbox/checkbox/features/can_be_blurred/index.js b/src/components/checkbox/checkbox/features/can_be_blurred/index.js deleted file mode 100644 index 3e736f8de7..0000000000 --- a/src/components/checkbox/checkbox/features/can_be_blurred/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Checkbox with initialFocus and onBlur handler is rendered', () => { - cy.visitStory('Checkbox', 'With initial focus and on blur') -}) - -When('the Checkbox is blurred', () => { - cy.get('[data-test="dhis2-uicore-checkbox"] input').blur() -}) - -Then('the onBlur handler is called', () => { - cy.window().should((win) => { - expect(win.onBlur).to.be.calledWith({ - value: 'default', - name: 'Ex', - checked: true, - }) - }) -}) diff --git a/src/components/checkbox/checkbox/features/can_be_changed.feature b/src/components/checkbox/checkbox/features/can_be_changed.feature deleted file mode 100644 index 029249c87f..0000000000 --- a/src/components/checkbox/checkbox/features/can_be_changed.feature +++ /dev/null @@ -1,6 +0,0 @@ -Feature: The Checkbox has an onChange api - - Scenario: The user clicks the Checkbox - Given a Checkbox with onChange handler is rendered - When the Checkbox is clicked - Then the onChange handler is called diff --git a/src/components/checkbox/checkbox/features/can_be_changed/index.js b/src/components/checkbox/checkbox/features/can_be_changed/index.js deleted file mode 100644 index fca04eef66..0000000000 --- a/src/components/checkbox/checkbox/features/can_be_changed/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Checkbox with onChange handler is rendered', () => { - cy.visitStory('Checkbox', 'With on change') -}) - -When('the Checkbox is clicked', () => { - cy.get('[data-test="dhis2-uicore-checkbox"]').click() -}) - -Then('the onChange handler is called', () => { - cy.window().should((win) => { - expect(win.onChange).to.be.calledWith({ - value: 'default', - name: 'Ex', - checked: true, - }) - }) -}) diff --git a/src/components/checkbox/checkbox/features/can_be_disabled.feature b/src/components/checkbox/checkbox/features/can_be_disabled.feature deleted file mode 100644 index 393f105175..0000000000 --- a/src/components/checkbox/checkbox/features/can_be_disabled.feature +++ /dev/null @@ -1,6 +0,0 @@ -Feature: The Checkbox can be disabled - - Scenario: The user clicks a disabled Checkbox - Given a disabled Checkbox with onClick handler is rendered - When the Checkbox is clicked - Then the onClick handler is not called diff --git a/src/components/checkbox/checkbox/features/can_be_disabled/index.js b/src/components/checkbox/checkbox/features/can_be_disabled/index.js deleted file mode 100644 index 78685ff209..0000000000 --- a/src/components/checkbox/checkbox/features/can_be_disabled/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a disabled Checkbox with onClick handler is rendered', () => { - cy.visitStory('Checkbox', 'Disabled with on click') -}) - -When('the Checkbox is clicked', () => { - cy.get('[data-test="dhis2-uicore-checkbox"] input').click({ force: true }) -}) - -Then('the onClick handler is not called', () => { - cy.window().should((win) => { - expect(win.onClick).not.to.be.called - }) -}) diff --git a/src/components/checkbox/checkbox/features/can_be_focused.feature b/src/components/checkbox/checkbox/features/can_be_focused.feature deleted file mode 100644 index bca2923a93..0000000000 --- a/src/components/checkbox/checkbox/features/can_be_focused.feature +++ /dev/null @@ -1,6 +0,0 @@ -Feature: The Checkbox has an onFocus api - - Scenario: The user focuses the Checkbox - Given a Checkbox with onFocus handler is rendered - When the Checkbox is focused - Then the onFocus handler is called diff --git a/src/components/checkbox/checkbox/features/can_be_focused/index.js b/src/components/checkbox/checkbox/features/can_be_focused/index.js deleted file mode 100644 index 9237aaa459..0000000000 --- a/src/components/checkbox/checkbox/features/can_be_focused/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Checkbox with onFocus handler is rendered', () => { - cy.visitStory('Checkbox', 'With on focus') -}) - -When('the Checkbox is focused', () => { - cy.get('[data-test="dhis2-uicore-checkbox"] input').focus() -}) - -Then('the onFocus handler is called', () => { - cy.window().should((win) => { - expect(win.onFocus).to.be.calledWith({ - value: 'default', - name: 'Ex', - checked: true, - }) - }) -}) diff --git a/src/components/checkbox/checkbox/features/has_indeterminate_prop.feature b/src/components/checkbox/checkbox/features/has_indeterminate_prop.feature deleted file mode 100644 index b37f3baafc..0000000000 --- a/src/components/checkbox/checkbox/features/has_indeterminate_prop.feature +++ /dev/null @@ -1,9 +0,0 @@ -Feature: The input component has an indeterminate prop - - Scenario: The checkbox has the indeterminate prop - Given the checkbox is marked as indeterminate - Then its input-element's indeterminate prop is true - - Scenario: The checkbox does not have the indeterminate prop - Given the checkbox is not marked as indeterminate - Then its input-element's indeterminate prop is false diff --git a/src/components/checkbox/checkbox/features/has_indeterminate_prop/index.js b/src/components/checkbox/checkbox/features/has_indeterminate_prop/index.js deleted file mode 100644 index c8ce30e102..0000000000 --- a/src/components/checkbox/checkbox/features/has_indeterminate_prop/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('the checkbox is marked as indeterminate', () => { - cy.visitStory('Checkbox', 'Indeterminate prop') -}) - -Given('the checkbox is not marked as indeterminate', () => { - cy.visitStory('Checkbox', 'No indeterminate prop') -}) - -Then("its input-element's indeterminate prop is {word}", (bool) => { - cy.get('input').should(($input) => { - if (bool === 'true') { - expect($input[0].indeterminate).to.be.true - } else { - expect($input[0].indeterminate).to.be.false - } - }) -}) diff --git a/src/components/checkbox/checkbox/index.js b/src/components/checkbox/checkbox/index.js deleted file mode 100644 index d139a7ef73..0000000000 --- a/src/components/checkbox/checkbox/index.js +++ /dev/null @@ -1 +0,0 @@ -export { Checkbox } from './checkbox.js' diff --git a/src/components/checkbox/index.js b/src/components/checkbox/index.js deleted file mode 100644 index 7fb939f725..0000000000 --- a/src/components/checkbox/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { Checkbox } from './checkbox/index.js' -export { CheckboxField } from './checkbox-field/index.js' diff --git a/src/components/chip/chip.e2e.stories.js b/src/components/chip/chip.e2e.stories.js deleted file mode 100644 index 02b6d33fce..0000000000 --- a/src/components/chip/chip.e2e.stories.js +++ /dev/null @@ -1,14 +0,0 @@ -import React from 'react' -import { Chip } from './chip.js' - -window.onClick = window.Cypress && window.Cypress.cy.stub() -window.onRemove = window.Cypress && window.Cypress.cy.stub() - -export default { title: 'Chip' } -export const Default = () => Message -export const WithOnClick = () => Chippy -export const WithOnRemove = () => ( - Chipmunk -) -export const WithChildren = () => I am a child -export const WithIcon = () => Icon}>Message diff --git a/src/components/chip/chip.js b/src/components/chip/chip.js deleted file mode 100644 index e907be973b..0000000000 --- a/src/components/chip/chip.js +++ /dev/null @@ -1,149 +0,0 @@ -import { colors, theme } from '../../constants/index.js' -import cx from 'classnames' -import PropTypes from 'prop-types' -import React from 'react' -import { Content } from './content.js' -import { Icon } from './icon.js' -import { Remove } from './remove.js' - -const DEFAULT_INLINE_MARGIN = '4' - -const Chip = ({ - selected, - dense, - disabled, - dragging, - overflow, - className, - children, - onRemove, - onClick, - icon, - dataTest, - marginBottom, - marginLeft, - marginRight, - marginTop, - marginInlineStart, - marginInlineEnd, -}) => ( - { - if (!disabled && onClick) { - onClick({}, e) - } - }} - className={cx(className, { - selected, - dense, - disabled, - dragging, - })} - data-test={dataTest} - > - - {children} - - - - - -) - -Chip.defaultProps = { - dataTest: 'dhis2-uicore-chip', - marginBottom: 4, - marginTop: 4, -} - -Chip.propTypes = { - children: PropTypes.any, - className: PropTypes.string, - dataTest: PropTypes.string, - dense: PropTypes.bool, - disabled: PropTypes.bool, - dragging: PropTypes.bool, - icon: PropTypes.element, - /** `margin-bottom` value, applied in `px` */ - marginBottom: PropTypes.number, - /** `margin-inline-end` value, applied in `px` */ - marginInlineEnd: PropTypes.number, - /** `margin-inline-start` value, applied in `px` */ - marginInlineStart: PropTypes.number, - /** `margin-inline-start` value, applied in `px` */ - marginLeft: PropTypes.number, - /** `margin-inline-end` value, applied in `px` */ - marginRight: PropTypes.number, - /** `margin-top` value, applied in `px` */ - marginTop: PropTypes.number, - overflow: PropTypes.bool, - selected: PropTypes.bool, - onClick: PropTypes.func, - onRemove: PropTypes.func, -} - -export { Chip } diff --git a/src/components/chip/chip.prod.stories.js b/src/components/chip/chip.prod.stories.js deleted file mode 100644 index 015fbfbc5b..0000000000 --- a/src/components/chip/chip.prod.stories.js +++ /dev/null @@ -1,135 +0,0 @@ -import React from 'react' -import { Chip } from './chip.js' - -const subtitle = `Chips are useful for displaying a selection of defined choices and filters to the user.` - -const description = ` -Chips are used to display a list of defined options, filters or views for a related view. Chips are always a secondary content to a main element, for example a data table or a dashboard. -See an example application of chips [here](https://github.com/dhis2/design-system/blob/master/atoms/chip.md#usage). - -#### Chip vs. Button - -Chips should only be used for filtering or selecting an option. Do not use filters to trigger actions such as 'Save', 'Exit' or 'Open'. Use a [button](../?path=/docs/actions-buttons-button--basic) to trigger actions. - -#### Displaying chips - -- Chips should be displayed in a horizontal list, where space permits. -- Do not stack single chips on top of one another if there is space to display them inline. -- Do not use horizontal scrolling to display a large number of chips. Always wrap chips onto a new line below. - -\`\`\`js -import { Chip } from '@dhis2/ui' -\`\`\` -` - -window.onClick = (payload, event) => { - console.log('onClick payload', payload) - console.log('onClick event', event) -} - -window.onRemove = (payload, event) => { - console.log('onRemove payload', payload) - console.log('onRemove event', event) -} - -const onClick = (...args) => window.onClick(...args) -const onRemove = (...args) => window.onRemove(...args) - -export default { - title: 'Chip', - component: Chip, - parameters: { - componentSubtitle: subtitle, - docs: { description: { component: description } }, - }, - args: { onClick }, -} - -const Template = (args) => - -export const Default = Template.bind({}) -Default.args = { children: 'Chippy' } - -export const Selected = Template.bind({}) -Selected.args = { selected: true, children: 'Chipmunk' } - -export const Overflow = Template.bind({}) -Overflow.args = { - overflow: true, - selected: true, - children: 'A super long chip which should definitely truncate', -} - -export const Removable = Template.bind({}) -Removable.args = { ...Default.args, onRemove } - -const Globe = () => ( - - LGTM icon - - -) - -export const Icon = Template.bind({}) -Icon.args = { icon: , children: 'With an icon' } - -const GlobeResizable = () => ( - - LGTM icon - - -) - -export const IconContent = Template.bind({}) -IconContent.args = { - children: ( - - With an icon - - - - - - - - ), -} - -export const Dense = () => I am dense -Dense.args = { dense: true, children: 'I am dense' } - -export const DenseRemoveable = Template.bind({}) -DenseRemoveable.args = { - ...Dense.args, - ...Removable.args, - children: 'Removable and dense', -} - -export const RTLRemovable = (args) => ( -
- RTL removable -
-) -RTLRemovable.args = { ...Removable.args } diff --git a/src/components/chip/content.js b/src/components/chip/content.js deleted file mode 100644 index fa2c6191f5..0000000000 --- a/src/components/chip/content.js +++ /dev/null @@ -1,29 +0,0 @@ -import { spacers } from '../../constants/index.js' -import cx from 'classnames' -import PropTypes from 'prop-types' -import React from 'react' - -export const Content = ({ children, overflow }) => ( - - {children} - - - -) - -Content.propTypes = { - children: PropTypes.any, - overflow: PropTypes.bool, -} diff --git a/src/components/chip/features/accepts_children.feature b/src/components/chip/features/accepts_children.feature deleted file mode 100644 index fad69e4e41..0000000000 --- a/src/components/chip/features/accepts_children.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: The Chip renders children - - Scenario: A Chip with children - Given a Chip with children is rendered - Then the children are visible diff --git a/src/components/chip/features/accepts_children/index.js b/src/components/chip/features/accepts_children/index.js deleted file mode 100644 index 866e065ec0..0000000000 --- a/src/components/chip/features/accepts_children/index.js +++ /dev/null @@ -1,10 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Chip with children is rendered', () => { - cy.visitStory('Chip', 'With children') - cy.get('[data-test="dhis2-uicore-chip"]').should('be.visible') -}) - -Then('the children are visible', () => { - cy.contains('I am a child').should('be.visible') -}) diff --git a/src/components/chip/features/accepts_icon.feature b/src/components/chip/features/accepts_icon.feature deleted file mode 100644 index a8d6dfbe13..0000000000 --- a/src/components/chip/features/accepts_icon.feature +++ /dev/null @@ -1,9 +0,0 @@ -Feature: The Chip accepts an icon prop - - Scenario: Default Chip does not render an icon - Given a default Chip is rendered - Then the icon will not be rendered - - Scenario: Chip renders supplied icon - Given a Chip supplied with an icon is rendered - Then the icon will be visible diff --git a/src/components/chip/features/accepts_icon/index.js b/src/components/chip/features/accepts_icon/index.js deleted file mode 100644 index c873f015d6..0000000000 --- a/src/components/chip/features/accepts_icon/index.js +++ /dev/null @@ -1,21 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a default Chip is rendered', () => { - cy.visitStory('Chip', 'Default') - cy.get('[data-test="dhis2-uicore-chip"]').should('be.visible') -}) - -Given('a Chip supplied with an icon is rendered', () => { - cy.visitStory('Chip', 'With icon') - cy.get('[data-test="dhis2-uicore-chip"]').should('be.visible') -}) - -Then('the icon will not be rendered', () => { - cy.get('[data-test="dhis2-uicore-chip-icon"]').should('not.exist') -}) - -Then('the icon will be visible', () => { - cy.get('[data-test="dhis2-uicore-chip-icon"]') - .contains('Icon') - .should('be.visible') -}) diff --git a/src/components/chip/features/is_clickable.feature b/src/components/chip/features/is_clickable.feature deleted file mode 100644 index d4cf83fe32..0000000000 --- a/src/components/chip/features/is_clickable.feature +++ /dev/null @@ -1,6 +0,0 @@ -Feature: The Chip has an onClick api - - Scenario: The user clicks on the Chip - Given a Chip with onClick handler is rendered - When the Chip is clicked - Then the onClick handler is called diff --git a/src/components/chip/features/is_clickable/index.js b/src/components/chip/features/is_clickable/index.js deleted file mode 100644 index fdf2ddec2d..0000000000 --- a/src/components/chip/features/is_clickable/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Chip with onClick handler is rendered', () => { - cy.visitStory('Chip', 'With on click') -}) - -When('the Chip is clicked', () => { - cy.get('[data-test="dhis2-uicore-chip"]').click() -}) - -Then('the onClick handler is called', () => { - cy.window().should((win) => { - expect(win.onClick).to.be.calledWith({}) - }) -}) diff --git a/src/components/chip/features/is_removable.feature b/src/components/chip/features/is_removable.feature deleted file mode 100644 index 3306387b00..0000000000 --- a/src/components/chip/features/is_removable.feature +++ /dev/null @@ -1,6 +0,0 @@ -Feature: The Chip has an onRemove api - - Scenario: The user removes the Chip - Given a Chip with onRemove handler is rendered - When the remove icon is clicked - Then the onRemove handler is called diff --git a/src/components/chip/features/is_removable/index.js b/src/components/chip/features/is_removable/index.js deleted file mode 100644 index 42095bc948..0000000000 --- a/src/components/chip/features/is_removable/index.js +++ /dev/null @@ -1,15 +0,0 @@ -import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Chip with onRemove handler is rendered', () => { - cy.visitStory('Chip', 'With on remove') -}) - -When('the remove icon is clicked', () => { - cy.get('[data-test="dhis2-uicore-chip-remove"]').click() -}) - -Then('the onRemove handler is called', () => { - cy.window().should((win) => { - expect(win.onRemove).to.be.calledWith({}) - }) -}) diff --git a/src/components/chip/icon.js b/src/components/chip/icon.js deleted file mode 100644 index 24e2bb5000..0000000000 --- a/src/components/chip/icon.js +++ /dev/null @@ -1,37 +0,0 @@ -import { spacers } from '../../constants/index.js' -import PropTypes from 'prop-types' -import React from 'react' - -export const Icon = ({ icon, dataTest }) => { - if (!icon) { - return null - } - - return ( - - {icon} - - - - ) -} - -Icon.propTypes = { - dataTest: PropTypes.string.isRequired, - /** the slot for an icon is 24x24px, bigger elements will be clipped */ - icon: PropTypes.element, -} diff --git a/src/components/chip/index.js b/src/components/chip/index.js deleted file mode 100644 index 8214f999ee..0000000000 --- a/src/components/chip/index.js +++ /dev/null @@ -1 +0,0 @@ -export { Chip } from './chip.js' diff --git a/src/components/chip/remove.js b/src/components/chip/remove.js deleted file mode 100644 index 18b838c641..0000000000 --- a/src/components/chip/remove.js +++ /dev/null @@ -1,82 +0,0 @@ -import { colors } from '../../constants/index.js' -import PropTypes from 'prop-types' -import React from 'react' -import { css, resolve } from 'styled-jsx/css' - -function CancelOutline({ className }) { - return ( - - - - - - ) -} -CancelOutline.propTypes = { - className: PropTypes.string, -} - -const containerStyle = css` - span { - display: flex; - justify-content: center; - align-items: center; - height: 20px; - width: 20px; - margin-inline-end: 4px; - border-radius: 12px; - margin-inline-start: -8px; - } - span:hover { - background: ${colors.grey400}; - } -` - -const removeIcon = resolve` - svg { - fill: ${colors.grey600}; - height: 16px; - width: 16px; - cursor: pointer; - opacity: 1; - pointer-events: all; - } -` - -export const Remove = ({ onRemove, dataTest }) => { - if (!onRemove) { - return null - } - - return ( - { - e.stopPropagation() // stop onRemove from triggering onClick on container - onRemove({}, e) - }} - data-test={dataTest} - > - - {removeIcon.styles} - - - - ) -} - -Remove.propTypes = { - dataTest: PropTypes.string.isRequired, - onRemove: PropTypes.func, -} diff --git a/src/components/cover/cover.e2e.stories.js b/src/components/cover/cover.e2e.stories.js deleted file mode 100644 index 0a2b53bc1b..0000000000 --- a/src/components/cover/cover.e2e.stories.js +++ /dev/null @@ -1,48 +0,0 @@ -import React from 'react' -import { Cover } from './cover.js' - -window.onButtonClick = window.Cypress && window.Cypress.cy.stub() -window.onCover = window.Cypress && window.Cypress.cy.stub() - -export default { - title: 'Cover', - component: Cover, - decorators: [ - (story) => ( -
- {story()} - -
- ), - ], -} - -export const WithChildren = () => ( - -

I am a child

-
-) - -export const Blocking = () => ( - <> - - - -) - -export const WithClickHandler = () => ( - - - -) diff --git a/src/components/cover/cover.js b/src/components/cover/cover.js deleted file mode 100644 index ccda781a65..0000000000 --- a/src/components/cover/cover.js +++ /dev/null @@ -1,49 +0,0 @@ -import { layers } from '../../constants/index.js' -import cx from 'classnames' -import PropTypes from 'prop-types' -import React from 'react' - -const createClickHandler = (onClick) => (event) => { - // don't respond to clicks that originated in the children - if (onClick && event.target === event.currentTarget) { - onClick({}, event) - } -} - -const Cover = ({ children, className, dataTest, onClick, translucent }) => ( -
- {children} - -
-) - -Cover.defaultProps = { - dataTest: 'dhis2-uicore-componentcover', -} - -Cover.propTypes = { - children: PropTypes.node, - className: PropTypes.string, - dataTest: PropTypes.string, - /** Adds a semi-transparent background to the cover */ - translucent: PropTypes.bool, - onClick: PropTypes.func, -} - -export { Cover } diff --git a/src/components/cover/cover.prod.stories.js b/src/components/cover/cover.prod.stories.js deleted file mode 100644 index d5cbe197a1..0000000000 --- a/src/components/cover/cover.prod.stories.js +++ /dev/null @@ -1,52 +0,0 @@ -import { Center } from '../center/index.js' -import { CircularLoader } from '../loader/index.js' -import React from 'react' -import { Cover } from './cover.js' - -const description = ` -Covers sibling components. Useful for covering a component while it is loading. - -\`\`\`js -import { Cover } from '@dhis2/ui' -\`\`\` -` - -export default { - title: 'Component Cover', - component: Cover, - parameters: { docs: { description: { component: description } } }, -} - -const Template = (args) => ( -
- - -

Text behind the cover

-

Lorem ipsum

-
-) - -export const Default = Template.bind({}) - -export const Translucent = Template.bind({}) -Translucent.args = { translucent: true } - -export const WithClickHandler = Template.bind({}) -WithClickHandler.args = { onClick: () => alert('Cover was clicked') } - -export const WithCenteredContentCircularLoader = Template.bind({}) -WithCenteredContentCircularLoader.args = { - translucent: true, - children: ( -
- -
- ), -} diff --git a/src/components/cover/features/accepts_children.feature b/src/components/cover/features/accepts_children.feature deleted file mode 100644 index 42f59e2d6e..0000000000 --- a/src/components/cover/features/accepts_children.feature +++ /dev/null @@ -1,5 +0,0 @@ -Feature: The Cover renders children - - Scenario: A Cover with children - Given a Cover with children is rendered - Then the children are visible diff --git a/src/components/cover/features/accepts_children/index.js b/src/components/cover/features/accepts_children/index.js deleted file mode 100644 index 6b590236c6..0000000000 --- a/src/components/cover/features/accepts_children/index.js +++ /dev/null @@ -1,10 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Cover with children is rendered', () => { - cy.visitStory('Cover', 'With Children') - cy.get('[data-test="dhis2-uicore-componentcover"]').should('be.visible') -}) - -Then('the children are visible', () => { - cy.contains('I am a child').should('be.visible') -}) diff --git a/src/components/cover/features/click_behavior.feature b/src/components/cover/features/click_behavior.feature deleted file mode 100644 index a14428522c..0000000000 --- a/src/components/cover/features/click_behavior.feature +++ /dev/null @@ -1,17 +0,0 @@ -Feature: The Cover has configurable click behaviour - - Scenario: A blocking Cover - Given a Cover with a button below it is rendered - When the user clicks on the button coordinates - Then the onClick handler of the button is not called - - Scenario: A blocking Cover with an onClick handler - Given a Cover with a button in it is rendered - When the user clicks on the Cover - Then the onClick handler of the Cover is called - - Scenario: Clicks orginating from children are ignored - Given a Cover with a button in it is rendered - When the user clicks the button - Then the onClick handler of the button is called - But the onClick handler of the Cover is not called diff --git a/src/components/cover/features/click_behavior/index.js b/src/components/cover/features/click_behavior/index.js deleted file mode 100644 index 6cf69bf319..0000000000 --- a/src/components/cover/features/click_behavior/index.js +++ /dev/null @@ -1,52 +0,0 @@ -import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a Cover with a button below it is rendered', () => { - cy.visitStory('Cover', 'Blocking') -}) - -Given('a Cover with a button in it is rendered', () => { - cy.visitStory('Cover', 'With Click Handler') -}) - -When('the user clicks the button', () => { - cy.get('[data-test="button"]').click() -}) - -When('the user clicks on the Cover', () => { - cy.get('[data-test="dhis2-uicore-componentcover"]').click() -}) - -When('the user clicks on the button coordinates', () => { - cy.getPositionsBySelectors('button').then(([rect]) => { - // Get button center coordinates - const buttonCenterX = rect.left + rect.width / 2 - const buttonCenterY = rect.top + rect.height / 2 - - // click body on the button center - cy.get('body').click(buttonCenterX, buttonCenterY) - }) -}) - -Then('the onClick handler of the button is called', () => { - cy.window().should((win) => { - expect(win.onButtonClick).to.be.calledOnce - }) -}) - -Then('the onClick handler of the Cover is called', () => { - cy.window().should((win) => { - expect(win.onCover).to.be.calledOnce - }) -}) - -Then('the onClick handler of the button is not called', () => { - cy.window().should((win) => { - expect(win.onButtonClick).to.have.callCount(0) - }) -}) - -Then('the onClick handler of the Cover is not called', () => { - cy.window().should((win) => { - expect(win.onCover).to.have.callCount(0) - }) -}) diff --git a/src/components/cover/index.js b/src/components/cover/index.js deleted file mode 100644 index 49e49ee2d0..0000000000 --- a/src/components/cover/index.js +++ /dev/null @@ -1 +0,0 @@ -export { Cover } from './cover.js' diff --git a/src/components/css/css-reset/css-reset.js b/src/components/css/css-reset/css-reset.js deleted file mode 100644 index 25f97ab200..0000000000 --- a/src/components/css/css-reset/css-reset.js +++ /dev/null @@ -1,199 +0,0 @@ -import { theme } from '../../../constants/index.js' -import React from 'react' - -const CssReset = () => ( - -) - -export { CssReset } diff --git a/src/components/css/css-reset/css-reset.prod.stories.js b/src/components/css/css-reset/css-reset.prod.stories.js deleted file mode 100644 index c52e293128..0000000000 --- a/src/components/css/css-reset/css-reset.prod.stories.js +++ /dev/null @@ -1,43 +0,0 @@ -import React from 'react' -import { CssReset } from './index.js' - -const description = ` -A tool for adding a global normalization stylesheet into the DOM that applies DHIS2 styles. - -- https://github.com/necolas/normalize.css -- https://www.paulirish.com/2012/box-sizing-border-box-ftw/ - -\`\`\`js -import { CssReset } from '@dhis2/ui' -\`\`\` -` - -const App = ({ children }) =>
{children}
- -export default { - title: 'CSS Reset', - component: CssReset, - parameters: { docs: { description: { component: description } } }, -} - -export const Default = (args) => ( - - - -

- The CssReset component injects a global normalization - stylesheet into the DOM that sets the DHIS2 application defaults. -

- -

- This also sets the font-family on the body{' '} - element to the DHIS2 font, which allows it to trickle down to the - components as well. -

- -

- Just include the component in your application, preferably as early - as possible to avoid FOUC.{' '} -

-
-) diff --git a/src/components/css/css-reset/index.js b/src/components/css/css-reset/index.js deleted file mode 100644 index 6200dd804d..0000000000 --- a/src/components/css/css-reset/index.js +++ /dev/null @@ -1 +0,0 @@ -export { CssReset } from './css-reset.js' diff --git a/src/components/css/css-variables/css-variables.e2e.stories.js b/src/components/css/css-variables/css-variables.e2e.stories.js deleted file mode 100644 index 3d15080bd5..0000000000 --- a/src/components/css/css-variables/css-variables.e2e.stories.js +++ /dev/null @@ -1,43 +0,0 @@ -import React from 'react' -import { CssVariables } from './index.js' - -export default { title: 'CssVariables' } -export const WithColors = () => ( - - -
-
-) -export const WithTheme = () => ( - - -
-
-) -export const WithLayers = () => ( - - -
-
-) -export const WithSpacers = () => ( - - -
-
-) -export const WithElevations = () => ( - - -
-
-) diff --git a/src/components/css/css-variables/css-variables.js b/src/components/css/css-variables/css-variables.js deleted file mode 100644 index 3a1cf518a0..0000000000 --- a/src/components/css/css-variables/css-variables.js +++ /dev/null @@ -1,55 +0,0 @@ -import * as theme from '../../../constants/index.js' -import PropTypes from 'prop-types' -import React from 'react' - -const toPrefixedThemeSection = (themeSectionKey) => - // eslint-disable-next-line import/namespace - Object.entries(theme[themeSectionKey]).reduce((prefixed, [key, value]) => { - prefixed[`${themeSectionKey}-${key}`] = value - - return prefixed - }, {}) - -const toCustomPropertyString = (themeSection) => - Object.entries(themeSection) - .map(([key, value]) => `--${key}: ${value};`) - .join('\n') - -const CssVariables = ({ colors, theme, layers, spacers, elevations }) => { - const allowedProps = { colors, theme, layers, spacers, elevations } - const variables = Object.keys(allowedProps) - // Filter all props that are false - .filter((prop) => allowedProps[prop]) - // Map props to corresponding theme section and prefixes keys with section name - .map(toPrefixedThemeSection) - // Map each section to a single string of css custom property declarations - .map(toCustomPropertyString) - // Join all the sections to a single string - .join('\n') - - return ( - - ) -} - -CssVariables.defaultProps = { - colors: false, - theme: false, - layers: false, - spacers: false, - elevations: false, -} - -CssVariables.propTypes = { - colors: PropTypes.bool, - elevations: PropTypes.bool, - layers: PropTypes.bool, - spacers: PropTypes.bool, - theme: PropTypes.bool, -} - -export { CssVariables } diff --git a/src/components/css/css-variables/css-variables.prod.stories.js b/src/components/css/css-variables/css-variables.prod.stories.js deleted file mode 100644 index b7a9486062..0000000000 --- a/src/components/css/css-variables/css-variables.prod.stories.js +++ /dev/null @@ -1,51 +0,0 @@ -import React from 'react' -import { CssVariables } from './index.js' - -const description = ` -A utility for adding DHIS2 theme variables to global CSS variables. - -\`\`\`js -import { CssVariables } from '@dhis2/ui' -\`\`\` -` - -const App = ({ children }) =>
{children}
- -export default { - title: 'CSS Variables', - component: CssVariables, - parameters: { docs: { description: { component: description } } }, -} - -export const AllVariables = (args) => ( - - - -

- The sections of the theme that should be inserted can be toggled - with flags, which allows the theme variables to be used as regular - CSS custom properties. So this{' '} - text uses the - vanilla CSS{' '} - - custom properties - {' '} - set by the CssVariables component. -

-
-) -AllVariables.args = { - colors: true, - theme: true, - layers: true, - spacers: true, - elevations: true, -} - -export const NoVariables = (args) => ( - - - -

By default no custom properties are inserted.

-
-) diff --git a/src/components/css/css-variables/features/sets_variables.feature b/src/components/css/css-variables/features/sets_variables.feature deleted file mode 100644 index 4647dbaf69..0000000000 --- a/src/components/css/css-variables/features/sets_variables.feature +++ /dev/null @@ -1,21 +0,0 @@ -Feature: CssVariables sets css variables - - Scenario: CssVariables with colors - Given a CssVariables component with colors flag is rendered - Then the colors css variables are set - - Scenario: CssVariables with theme - Given a CssVariables component with theme flag is rendered - Then the theme css variables are set - - Scenario: CssVariables with layers - Given a CssVariables component with layers flag is rendered - Then the layers css variables are set - - Scenario: CssVariables with spacers - Given a CssVariables component with spacers flag is rendered - Then the spacers css variables are set - - Scenario: CssVariables with elevations - Given a CssVariables component with elevations flag is rendered - Then the elevations css variables are set diff --git a/src/components/css/css-variables/features/sets_variables/index.js b/src/components/css/css-variables/features/sets_variables/index.js deleted file mode 100644 index dc94966a06..0000000000 --- a/src/components/css/css-variables/features/sets_variables/index.js +++ /dev/null @@ -1,53 +0,0 @@ -import { Given, Then } from '@badeball/cypress-cucumber-preprocessor' - -Given('a CssVariables component with colors flag is rendered', () => { - cy.visitStory('CssVariables', 'With colors') -}) - -Given('a CssVariables component with theme flag is rendered', () => { - cy.visitStory('CssVariables', 'With theme') -}) - -Given('a CssVariables component with layers flag is rendered', () => { - cy.visitStory('CssVariables', 'With layers') -}) - -Given('a CssVariables component with spacers flag is rendered', () => { - cy.visitStory('CssVariables', 'With spacers') -}) - -Given('a CssVariables component with elevations flag is rendered', () => { - cy.visitStory('CssVariables', 'With elevations') -}) - -Then('the colors css variables are set', () => { - cy.get('div#custom').should( - 'have.css', - 'background-color', - 'rgb(9, 51, 113)' - ) -}) - -Then('the theme css variables are set', () => { - cy.get('div#custom').should( - 'have.css', - 'background-color', - 'rgb(9, 51, 113)' - ) -}) - -Then('the layers css variables are set', () => { - cy.get('div#custom').should('have.css', 'z-index', '9999') -}) - -Then('the spacers css variables are set', () => { - cy.get('div#custom').should('have.css', 'margin', '4px') -}) - -Then('the elevations css variables are set', () => { - cy.get('div#custom').should( - 'have.css', - 'box-shadow', - 'rgba(33, 41, 52, 0.06) 0px 1px 2px 0px, rgba(33, 41, 52, 0.1) 0px 1px 3px 0px' - ) -}) diff --git a/src/components/css/css-variables/index.js b/src/components/css/css-variables/index.js deleted file mode 100644 index f468edfb34..0000000000 --- a/src/components/css/css-variables/index.js +++ /dev/null @@ -1 +0,0 @@ -export { CssVariables } from './css-variables.js' diff --git a/src/components/css/index.js b/src/components/css/index.js deleted file mode 100644 index 609289b24a..0000000000 --- a/src/components/css/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { CssReset } from './css-reset/index.js' -export { CssVariables } from './css-variables/index.js' diff --git a/src/components/divider/divider.js b/src/components/divider/divider.js deleted file mode 100644 index d0e77ac722..0000000000 --- a/src/components/divider/divider.js +++ /dev/null @@ -1,53 +0,0 @@ -import { colors, spacers } from '../../constants/index.js' -import PropTypes from 'prop-types' -import React from 'react' - -const flipMargin = (margin) => { - const splitMargin = margin.split(/\s+/) - if (splitMargin?.length === 4) { - return [ - splitMargin[0], - splitMargin[3], - splitMargin[2], - splitMargin[1], - ].join(' ') - } - return margin -} - -const Divider = ({ className, dataTest, dense, margin }) => { - return ( -
- - -
- ) -} - -Divider.defaultProps = { - dataTest: 'dhis2-uicore-divider', - margin: `${spacers.dp8} 0`, -} - -Divider.propTypes = { - className: PropTypes.string, - dataTest: PropTypes.string, - dense: PropTypes.bool, - margin: PropTypes.string, -} - -export { Divider } diff --git a/src/components/divider/divider.prod.stories.js b/src/components/divider/divider.prod.stories.js deleted file mode 100644 index 797c41ed00..0000000000 --- a/src/components/divider/divider.prod.stories.js +++ /dev/null @@ -1,40 +0,0 @@ -import React from 'react' -import { Divider } from './divider.js' - -const description = ` -A light divider to separate content. - -\`\`\`js -import { Divider } from '@dhis2/ui' -\`\`\` -` - -export default { - title: 'Divider', - component: Divider, - argTypes: { margin: { table: { defaultValue: { summary: '8px 0' } } } }, - parameters: { docs: { description: { component: description } } }, -} - -const Template = (args) => ( - <> -
Content above
- -
Content below
- -) - -export const Default = Template.bind({}) - -export const Dense = Template.bind({}) -Dense.args = { dense: true } - -export const Margin = Template.bind({}) -Margin.args = { margin: '20px 20px 20px 20px' } - -export const RTLUnevenMargin = (args) => ( -
-