pixel-react 1.10.15 → 1.10.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +48 -0
- package/lib/index.cjs.map +1 -0
- package/package.json +7 -2
- package/.prettierrc.js +0 -13
- package/.storybook/main.ts +0 -26
- package/.storybook/preview-head.html +0 -3
- package/.storybook/preview.ts +0 -26
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +0 -1
- package/index.scss +0 -5
- package/rollup.config.mjs +0 -73
- package/src/ComponentProps/TreeNodeProps.ts +0 -37
- package/src/StyleGuide/ColorPalette/ColorPalette.stories.tsx +0 -16
- package/src/StyleGuide/ColorPalette/ColorPalette.tsx +0 -67
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +0 -359
- package/src/StyleGuide/ColorPalette/index.ts +0 -1
- package/src/StyleGuide/ColorPalette/types.ts +0 -19
- package/src/StyleGuide/Typography/Typography.stories.tsx +0 -16
- package/src/StyleGuide/Typography/Typography.tsx +0 -60
- package/src/StyleGuide/Typography/TypographyList.ts +0 -3
- package/src/StyleGuide/Typography/types.ts +0 -9
- package/src/assets/icons/Arrow.svg +0 -5
- package/src/assets/icons/Header_preset.svg +0 -18
- package/src/assets/icons/accordion_header_icon.svg +0 -10
- package/src/assets/icons/active_license_icon.svg +0 -3
- package/src/assets/icons/add_archive.svg +0 -9
- package/src/assets/icons/add_file.svg +0 -4
- package/src/assets/icons/add_label_icon.svg +0 -3
- package/src/assets/icons/add_locator.svg +0 -5
- package/src/assets/icons/add_testcase.svg +0 -3
- package/src/assets/icons/add_user.svg +0 -9
- package/src/assets/icons/add_variable.svg +0 -11
- package/src/assets/icons/add_variable_icon.svg +0 -4
- package/src/assets/icons/ai_search.svg +0 -9
- package/src/assets/icons/alert.svg +0 -17
- package/src/assets/icons/all_borders.svg +0 -3
- package/src/assets/icons/all_projects.svg +0 -3
- package/src/assets/icons/android.svg +0 -9
- package/src/assets/icons/android_icon.svg +0 -6
- package/src/assets/icons/apk_file_type.svg +0 -4
- package/src/assets/icons/app_switch.svg +0 -11
- package/src/assets/icons/approval_pending.svg +0 -8
- package/src/assets/icons/arrow_down.svg +0 -3
- package/src/assets/icons/arrow_right.svg +0 -5
- package/src/assets/icons/arrow_up.svg +0 -3
- package/src/assets/icons/arrows_down_icon.svg +0 -3
- package/src/assets/icons/arrows_right_icon.svg +0 -10
- package/src/assets/icons/arrows_top_icon.svg +0 -3
- package/src/assets/icons/attachment_icon.svg +0 -3
- package/src/assets/icons/authorization.svg +0 -4
- package/src/assets/icons/authorization_icon.svg +0 -4
- package/src/assets/icons/auto_save_icon.svg +0 -4
- package/src/assets/icons/automation_testcase.svg +0 -4
- package/src/assets/icons/azure.svg +0 -9
- package/src/assets/icons/back_icon.svg +0 -3
- package/src/assets/icons/backward.svg +0 -10
- package/src/assets/icons/backward_icon.svg +0 -3
- package/src/assets/icons/beautify_icon.svg +0 -3
- package/src/assets/icons/bitbucket.svg +0 -9
- package/src/assets/icons/bold.svg +0 -3
- package/src/assets/icons/border_bottom.svg +0 -3
- package/src/assets/icons/border_left.svg +0 -3
- package/src/assets/icons/border_right.svg +0 -3
- package/src/assets/icons/border_top.svg +0 -3
- package/src/assets/icons/browser_stack.svg +0 -9
- package/src/assets/icons/browserstack_icon.svg +0 -24
- package/src/assets/icons/calendar_icon.svg +0 -9
- package/src/assets/icons/capture_icon.svg +0 -3
- package/src/assets/icons/check_mark.svg +0 -3
- package/src/assets/icons/chrome.svg +0 -12
- package/src/assets/icons/clear_cache.svg +0 -5
- package/src/assets/icons/clear_history.svg +0 -6
- package/src/assets/icons/client_profile.svg +0 -4
- package/src/assets/icons/clock_icon.svg +0 -11
- package/src/assets/icons/clone_icon.svg +0 -3
- package/src/assets/icons/close_defects_icon.svg +0 -12
- package/src/assets/icons/close_pill.svg +0 -3
- package/src/assets/icons/cloud_server_host_icon.svg +0 -3
- package/src/assets/icons/code.svg +0 -4
- package/src/assets/icons/code_colored.svg +0 -4
- package/src/assets/icons/collapse-icon.svg +0 -6
- package/src/assets/icons/compressed_file_type.svg +0 -4
- package/src/assets/icons/configuration.svg +0 -3
- package/src/assets/icons/continue_without_sign.svg +0 -3
- package/src/assets/icons/copy-icon.svg +0 -3
- package/src/assets/icons/csharp.svg +0 -9
- package/src/assets/icons/csv_file_type.svg +0 -4
- package/src/assets/icons/cypress.svg +0 -9
- package/src/assets/icons/dashboard_icon.svg +0 -31
- package/src/assets/icons/dashboard_mobile_icon.svg +0 -47
- package/src/assets/icons/dashboard_web_icon.svg +0 -9
- package/src/assets/icons/data_provider.svg +0 -8
- package/src/assets/icons/dataset_list.svg +0 -3
- package/src/assets/icons/defect_density_icon.svg +0 -12
- package/src/assets/icons/defects.svg +0 -8
- package/src/assets/icons/delete.svg +0 -3
- package/src/assets/icons/delete_filled.svg +0 -12
- package/src/assets/icons/delete_info.svg +0 -17
- package/src/assets/icons/depends_on_script.svg +0 -7
- package/src/assets/icons/design_link.svg +0 -7
- package/src/assets/icons/details.svg +0 -3
- package/src/assets/icons/disable_icon.svg +0 -3
- package/src/assets/icons/double_underline.svg +0 -5
- package/src/assets/icons/download-icon.svg +0 -3
- package/src/assets/icons/download_file_icon.svg +0 -3
- package/src/assets/icons/download_icon.svg +0 -4
- package/src/assets/icons/drag_icon.svg +0 -5
- package/src/assets/icons/drawer_maximize.svg +0 -6
- package/src/assets/icons/dropzone_icon.svg +0 -18
- package/src/assets/icons/edge.svg +0 -30
- package/src/assets/icons/edit_icon.svg +0 -5
- package/src/assets/icons/element.svg +0 -4
- package/src/assets/icons/email_group.svg +0 -3
- package/src/assets/icons/enable_icon.svg +0 -3
- package/src/assets/icons/error.svg +0 -17
- package/src/assets/icons/excel_corner_menu.svg +0 -3
- package/src/assets/icons/executions_icon.svg +0 -3
- package/src/assets/icons/expand-icon.svg +0 -6
- package/src/assets/icons/export.svg +0 -5
- package/src/assets/icons/export_collection_icon.svg +0 -13
- package/src/assets/icons/external_user.svg +0 -13
- package/src/assets/icons/eye_closed.svg +0 -3
- package/src/assets/icons/eye_open_icon.svg +0 -3
- package/src/assets/icons/failed_status_icon.svg +0 -12
- package/src/assets/icons/file.svg +0 -12
- package/src/assets/icons/file_colored.svg +0 -5
- package/src/assets/icons/fill_color.svg +0 -7
- package/src/assets/icons/filter.svg +0 -5
- package/src/assets/icons/fire_fox.svg +0 -106
- package/src/assets/icons/fireflink_finder_logo.svg +0 -7
- package/src/assets/icons/fireflink_icon.svg +0 -4
- package/src/assets/icons/fireflink_logo.svg +0 -13
- package/src/assets/icons/fireflink_platform.svg +0 -4
- package/src/assets/icons/firefox.svg +0 -84
- package/src/assets/icons/flaky_status_icon.svg +0 -12
- package/src/assets/icons/formate_painter.svg +0 -5
- package/src/assets/icons/formula_icon.svg +0 -3
- package/src/assets/icons/forward.svg +0 -3
- package/src/assets/icons/forward_icon.svg +0 -3
- package/src/assets/icons/full_access_icon.svg +0 -4
- package/src/assets/icons/gif_file_type.svg +0 -4
- package/src/assets/icons/github.svg +0 -9
- package/src/assets/icons/gitlab.svg +0 -9
- package/src/assets/icons/global_variable_icon.svg +0 -4
- package/src/assets/icons/group_user.svg +0 -12
- package/src/assets/icons/hamburger_menu.svg +0 -3
- package/src/assets/icons/help_icon.svg +0 -10
- package/src/assets/icons/hide_access_icon.svg +0 -3
- package/src/assets/icons/hide_icon.svg +0 -9
- package/src/assets/icons/history_icon.svg +0 -19
- package/src/assets/icons/html_file_type.svg +0 -4
- package/src/assets/icons/impact_list.svg +0 -6
- package/src/assets/icons/import.svg +0 -5
- package/src/assets/icons/import_icon.svg +0 -4
- package/src/assets/icons/info.svg +0 -17
- package/src/assets/icons/info_icon.svg +0 -5
- package/src/assets/icons/info_user.svg +0 -5
- package/src/assets/icons/internet_explorer.svg +0 -3
- package/src/assets/icons/ios_icon.svg +0 -11
- package/src/assets/icons/ipk_file_type.svg +0 -4
- package/src/assets/icons/italic.svg +0 -3
- package/src/assets/icons/java.svg +0 -4
- package/src/assets/icons/javascript.svg +0 -11
- package/src/assets/icons/jenkins.svg +0 -9
- package/src/assets/icons/jira.svg +0 -3
- package/src/assets/icons/jira_colored.svg +0 -15
- package/src/assets/icons/jira_logo.svg +0 -9
- package/src/assets/icons/jpg_file_type.svg +0 -4
- package/src/assets/icons/json_file_type.svg +0 -4
- package/src/assets/icons/label_icon.svg +0 -8
- package/src/assets/icons/label_plus.svg +0 -3
- package/src/assets/icons/labels.svg +0 -8
- package/src/assets/icons/lambda_icon.svg +0 -3
- package/src/assets/icons/left_arrow_icon.svg +0 -3
- package/src/assets/icons/license_expired.svg +0 -20
- package/src/assets/icons/license_info.svg +0 -28
- package/src/assets/icons/license_warning.svg +0 -10
- package/src/assets/icons/link_expired.svg +0 -186
- package/src/assets/icons/linked_defects.svg +0 -11
- package/src/assets/icons/linux.svg +0 -42
- package/src/assets/icons/local.svg +0 -3
- package/src/assets/icons/local_variable_icon.svg +0 -4
- package/src/assets/icons/logo.svg +0 -18
- package/src/assets/icons/mac.svg +0 -9
- package/src/assets/icons/machine_disable_icon.svg +0 -18
- package/src/assets/icons/machine_enable_icon.svg +0 -10
- package/src/assets/icons/manage_apps.svg +0 -3
- package/src/assets/icons/manual_locator.svg +0 -8
- package/src/assets/icons/manual_testcase.svg +0 -3
- package/src/assets/icons/maximize_icon.svg +0 -5
- package/src/assets/icons/maximize_script.svg +0 -12
- package/src/assets/icons/maximize_tree.svg +0 -3
- package/src/assets/icons/mic.svg +0 -4
- package/src/assets/icons/mic_filled.svg +0 -28
- package/src/assets/icons/minimize_script.svg +0 -5
- package/src/assets/icons/mobile_icon.svg +0 -3
- package/src/assets/icons/module_icon.svg +0 -3
- package/src/assets/icons/moon_stars.svg +0 -10
- package/src/assets/icons/more.svg +0 -11
- package/src/assets/icons/move_icon.svg +0 -5
- package/src/assets/icons/ms_dynamic.svg +0 -4
- package/src/assets/icons/ms_dynamic_icon.svg +0 -15
- package/src/assets/icons/nlp_help_icon.svg +0 -3
- package/src/assets/icons/no_access_icon.svg +0 -4
- package/src/assets/icons/no_border.svg +0 -3
- package/src/assets/icons/no_data.svg +0 -13
- package/src/assets/icons/no_license_found.svg +0 -22
- package/src/assets/icons/notification_icon.svg +0 -3
- package/src/assets/icons/open_defects_icon.svg +0 -12
- package/src/assets/icons/opera.svg +0 -9
- package/src/assets/icons/parameters.svg +0 -3
- package/src/assets/icons/passed_status_icon.svg +0 -12
- package/src/assets/icons/pdf_file_type.svg +0 -4
- package/src/assets/icons/playwright.svg +0 -9
- package/src/assets/icons/plus_icon.svg +0 -11
- package/src/assets/icons/plus_round_icon.svg +0 -38
- package/src/assets/icons/plus_user_icon.svg +0 -3
- package/src/assets/icons/png_file_type.svg +0 -4
- package/src/assets/icons/pre_post_condition.svg +0 -8
- package/src/assets/icons/primary_calendar_icon.svg +0 -3
- package/src/assets/icons/program_element.svg +0 -8
- package/src/assets/icons/project_element.svg +0 -4
- package/src/assets/icons/project_env_variable_icon.svg +0 -4
- package/src/assets/icons/project_status_icon.svg +0 -10
- package/src/assets/icons/python.svg +0 -19
- package/src/assets/icons/quality_score_icon.svg +0 -12
- package/src/assets/icons/quick_run_setting_icon.svg +0 -5
- package/src/assets/icons/refresh-icon.svg +0 -4
- package/src/assets/icons/refresh_icon.svg +0 -4
- package/src/assets/icons/regenerate.svg +0 -4
- package/src/assets/icons/reload.svg +0 -3
- package/src/assets/icons/remove.svg +0 -12
- package/src/assets/icons/remove_user.svg +0 -3
- package/src/assets/icons/replace.svg +0 -12
- package/src/assets/icons/replace_file.svg +0 -14
- package/src/assets/icons/replace_icon.svg +0 -6
- package/src/assets/icons/reset-link.svg +0 -52
- package/src/assets/icons/right_arrow_filled_icon.svg +0 -5
- package/src/assets/icons/right_arrow_icon.svg +0 -4
- package/src/assets/icons/rotate_icon.svg +0 -10
- package/src/assets/icons/run_automation_scripts_icon.svg +0 -33
- package/src/assets/icons/run_icon.svg +0 -26
- package/src/assets/icons/run_manual_testcase_icon.svg +0 -4
- package/src/assets/icons/safari.svg +0 -93
- package/src/assets/icons/safari_icon.svg +0 -12
- package/src/assets/icons/sales_force.svg +0 -7
- package/src/assets/icons/salesforce_icon.svg +0 -14
- package/src/assets/icons/sample_template_first.svg +0 -29
- package/src/assets/icons/sample_template_second.svg +0 -47
- package/src/assets/icons/sause_lab.svg +0 -3
- package/src/assets/icons/sause_lab_icon.svg +0 -3
- package/src/assets/icons/save_as_step.svg +0 -3
- package/src/assets/icons/screenshot.svg +0 -7
- package/src/assets/icons/search.svg +0 -3
- package/src/assets/icons/send_step.svg +0 -4
- package/src/assets/icons/settings.svg +0 -3
- package/src/assets/icons/single_user.svg +0 -12
- package/src/assets/icons/skipped_status_icon.svg +0 -12
- package/src/assets/icons/slack.svg +0 -9
- package/src/assets/icons/spinner.svg +0 -42
- package/src/assets/icons/standard_template.svg +0 -30
- package/src/assets/icons/step_group.svg +0 -10
- package/src/assets/icons/strike_through.svg +0 -3
- package/src/assets/icons/success.svg +0 -17
- package/src/assets/icons/suites_icon.svg +0 -3
- package/src/assets/icons/sun_icon.svg +0 -10
- package/src/assets/icons/swipe_icon.svg +0 -9
- package/src/assets/icons/switch_license_icon.svg +0 -123
- package/src/assets/icons/system_warning.svg +0 -61
- package/src/assets/icons/tap_icon.svg +0 -4
- package/src/assets/icons/test_data.svg +0 -5
- package/src/assets/icons/test_data_set.svg +0 -7
- package/src/assets/icons/test_freshers_logo.svg +0 -8
- package/src/assets/icons/text_align_center.svg +0 -3
- package/src/assets/icons/text_align_left.svg +0 -3
- package/src/assets/icons/text_align_right.svg +0 -3
- package/src/assets/icons/text_color.svg +0 -3
- package/src/assets/icons/tick_icon.svg +0 -5
- package/src/assets/icons/toast_close.svg +0 -3
- package/src/assets/icons/total_defects_status_icon.svg +0 -13
- package/src/assets/icons/txt_file_type.svg +0 -4
- package/src/assets/icons/underline.svg +0 -4
- package/src/assets/icons/unfollow_icon.svg +0 -3
- package/src/assets/icons/update_icon.svg +0 -3
- package/src/assets/icons/user_password_lock.svg +0 -220
- package/src/assets/icons/user_profile.svg +0 -3
- package/src/assets/icons/user_warning.svg +0 -235
- package/src/assets/icons/user_with_system.svg +0 -637
- package/src/assets/icons/variable.svg +0 -3
- package/src/assets/icons/variable_icon.svg +0 -4
- package/src/assets/icons/variable_set.svg +0 -5
- package/src/assets/icons/vertical_separator.svg +0 -3
- package/src/assets/icons/view_access_icon.svg +0 -4
- package/src/assets/icons/view_icon.svg +0 -3
- package/src/assets/icons/warning.svg +0 -17
- package/src/assets/icons/warning_status_icon.svg +0 -12
- package/src/assets/icons/web&mobile_icon.svg +0 -3
- package/src/assets/icons/web_icon.svg +0 -3
- package/src/assets/icons/web_mobile_icon.svg +0 -29
- package/src/assets/icons/web_service_icon.svg +0 -3
- package/src/assets/icons/web_services_icon.svg +0 -30
- package/src/assets/icons/window_maximize.svg +0 -3
- package/src/assets/icons/window_minimize.svg +0 -3
- package/src/assets/icons/window_restore.svg +0 -4
- package/src/assets/icons/windows.svg +0 -10
- package/src/assets/icons/wrong_mark.svg +0 -3
- package/src/assets/icons/wswb_delete_icon.svg +0 -4
- package/src/assets/icons/wswb_plus_icon.svg +0 -5
- package/src/assets/icons/xls_file_type.svg +0 -4
- package/src/assets/icons/xlsx_file_type.svg +0 -4
- package/src/assets/icons/xml_file_type.svg +0 -4
- package/src/assets/utils/functionUtils.ts +0 -96
- package/src/components/Accordion/Accordion.stories.tsx +0 -58
- package/src/components/Accordion/Accordion.tsx +0 -80
- package/src/components/Accordion/index.ts +0 -1
- package/src/components/Accordion/types.ts +0 -52
- package/src/components/AddResourceButton/AddResourceButton.stories.tsx +0 -142
- package/src/components/AddResourceButton/AddResourceButton.tsx +0 -138
- package/src/components/AddResourceButton/ArrowsButton/ArrowsButton.tsx +0 -45
- package/src/components/AddResourceButton/index.ts +0 -1
- package/src/components/AddResourceButton/type.ts +0 -103
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.stories.tsx +0 -122
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +0 -164
- package/src/components/AllProjectsDropdown/index.ts +0 -1
- package/src/components/AllProjectsDropdown/types.ts +0 -14
- package/src/components/AppHeader/AppHeader.stories.tsx +0 -554
- package/src/components/AppHeader/AppHeader.tsx +0 -206
- package/src/components/AppHeader/index.ts +0 -1
- package/src/components/AppHeader/types.ts +0 -55
- package/src/components/AttachImage/AttachImage.stories.tsx +0 -24
- package/src/components/AttachImage/AttachImage.tsx +0 -60
- package/src/components/AttachImage/index.ts +0 -2
- package/src/components/AttachImage/types.ts +0 -26
- package/src/components/AttachmentButton/AttachmentButton.stories.tsx +0 -81
- package/src/components/AttachmentButton/AttachmentButton.tsx +0 -129
- package/src/components/AttachmentButton/index.ts +0 -1
- package/src/components/AttachmentButton/types.ts +0 -13
- package/src/components/Avatar/Avatar.stories.tsx +0 -76
- package/src/components/Avatar/Avatar.tsx +0 -41
- package/src/components/Avatar/index.ts +0 -1
- package/src/components/Avatar/types.ts +0 -35
- package/src/components/BrowserTabs/BrowserTabs.stories.tsx +0 -366
- package/src/components/BrowserTabs/BrowserTabs.tsx +0 -128
- package/src/components/BrowserTabs/index.ts +0 -1
- package/src/components/BrowserTabs/types.ts +0 -73
- package/src/components/Button/Button.stories.tsx +0 -81
- package/src/components/Button/Button.tsx +0 -92
- package/src/components/Button/index.ts +0 -1
- package/src/components/Button/types.ts +0 -90
- package/src/components/Charts/BarChart/BarChart.stories.tsx +0 -161
- package/src/components/Charts/BarChart/BarChart.tsx +0 -358
- package/src/components/Charts/BarChart/index.ts +0 -1
- package/src/components/Charts/BarChart/types.ts +0 -12
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.tsx +0 -90
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +0 -568
- package/src/components/Charts/DashboardDonutChart/index.ts +0 -1
- package/src/components/Charts/DashboardDonutChart/types.ts +0 -63
- package/src/components/Charts/DonutChart/DonutChart.stories.tsx +0 -30
- package/src/components/Charts/DonutChart/DonutChart.tsx +0 -246
- package/src/components/Charts/DonutChart/index.ts +0 -1
- package/src/components/Charts/DonutChart/type.ts +0 -23
- package/src/components/Charts/IconRadialChart/IconRadialChart.stories.tsx +0 -52
- package/src/components/Charts/IconRadialChart/IconRadialChart.tsx +0 -174
- package/src/components/Charts/IconRadialChart/index.ts +0 -1
- package/src/components/Charts/IconRadialChart/types.ts +0 -29
- package/src/components/Charts/LineChart/LineChart.stories.tsx +0 -199
- package/src/components/Charts/LineChart/LineChart.tsx +0 -395
- package/src/components/Charts/LineChart/index.ts +0 -1
- package/src/components/Charts/LineChart/types.ts +0 -32
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.stories.tsx +0 -170
- package/src/components/Charts/MultiRadialChart/MultiRadialChart.tsx +0 -353
- package/src/components/Charts/MultiRadialChart/index.ts +0 -1
- package/src/components/Charts/MultiRadialChart/types.ts +0 -30
- package/src/components/Charts/PieChart/PieChart.stories.tsx +0 -46
- package/src/components/Charts/PieChart/PieChart.tsx +0 -192
- package/src/components/Charts/PieChart/index.ts +0 -1
- package/src/components/Charts/PieChart/types.ts +0 -28
- package/src/components/Charts/RadialChart/RadialChart.stories.tsx +0 -36
- package/src/components/Charts/RadialChart/RadialChart.tsx +0 -180
- package/src/components/Charts/RadialChart/index.ts +0 -1
- package/src/components/Charts/RadialChart/types.ts +0 -32
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -108
- package/src/components/Checkbox/Checkbox.tsx +0 -57
- package/src/components/Checkbox/index.ts +0 -1
- package/src/components/Checkbox/types.ts +0 -34
- package/src/components/Chip/Chip.stories.tsx +0 -126
- package/src/components/Chip/Chip.tsx +0 -39
- package/src/components/Chip/index.ts +0 -1
- package/src/components/Chip/types.ts +0 -19
- package/src/components/ChooseFile/ChooseFile.stories.tsx +0 -190
- package/src/components/ChooseFile/ChooseFile.tsx +0 -45
- package/src/components/ChooseFile/types.ts +0 -78
- package/src/components/Comment/Comments.stories.tsx +0 -230
- package/src/components/Comment/Comments.tsx +0 -70
- package/src/components/Comment/comment/Comment.tsx +0 -206
- package/src/components/Comment/comment/useNode.ts +0 -51
- package/src/components/Comment/index.ts +0 -1
- package/src/components/Comment/type.ts +0 -36
- package/src/components/ConditionalDropdown/ConditionalDropdown.stories.tsx +0 -151
- package/src/components/ConditionalDropdown/ConditionalDropdown.tsx +0 -276
- package/src/components/ConditionalDropdown/OptionsDropdown.tsx +0 -44
- package/src/components/ConditionalDropdown/index.ts +0 -1
- package/src/components/ConditionalDropdown/types.ts +0 -166
- package/src/components/ConnectingBranch/BranchComponents/MachineInstances.tsx +0 -167
- package/src/components/ConnectingBranch/ConnectingBranch.stories.tsx +0 -64
- package/src/components/ConnectingBranch/ConnectingBranch.tsx +0 -213
- package/src/components/ConnectingBranch/data.tsx +0 -220
- package/src/components/ConnectingBranch/index.ts +0 -1
- package/src/components/ConnectingBranch/types.ts +0 -53
- package/src/components/CreateVariable/CreateVariableSlider.stories.tsx +0 -66
- package/src/components/CreateVariable/CreateVariableSlider.tsx +0 -95
- package/src/components/CreateVariable/index.ts +0 -1
- package/src/components/CreateVariable/types.ts +0 -58
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -193
- package/src/components/DatePicker/DatePicker.tsx +0 -542
- package/src/components/DatePicker/Timepicker.tsx +0 -360
- package/src/components/DatePicker/index.ts +0 -1
- package/src/components/DatePicker/types.ts +0 -109
- package/src/components/DownloadClient/DownloadClient.stories.tsx +0 -26
- package/src/components/DownloadClient/DownloadClient.tsx +0 -90
- package/src/components/DownloadClient/index.ts +0 -1
- package/src/components/DownloadClient/type.ts +0 -33
- package/src/components/DragAndDrop/DragAndDrop.d.ts +0 -5
- package/src/components/DragAndDrop/DragAndDrop.stories.tsx +0 -25
- package/src/components/DragAndDrop/DragAndDrop.ts +0 -7
- package/src/components/DragAndDrop/DragAndDropList.tsx +0 -151
- package/src/components/DragAndDrop/index.ts +0 -1
- package/src/components/Drawer/Drawer.stories.tsx +0 -157
- package/src/components/Drawer/Drawer.tsx +0 -237
- package/src/components/Drawer/Types.ts +0 -165
- package/src/components/Drawer/index.ts +0 -1
- package/src/components/EditTextField/EditTextField.stories.tsx +0 -127
- package/src/components/EditTextField/EditTextField.tsx +0 -175
- package/src/components/EditTextField/index.ts +0 -1
- package/src/components/EditTextField/types.ts +0 -55
- package/src/components/Editor/Editor.stories.tsx +0 -54
- package/src/components/Editor/Editor.tsx +0 -250
- package/src/components/Editor/VariableDropdown.tsx +0 -64
- package/src/components/Editor/constants.ts +0 -180
- package/src/components/Editor/index.ts +0 -1
- package/src/components/Editor/types.ts +0 -89
- package/src/components/Excel/ColorBarSelector/ColorBarSelector.tsx +0 -43
- package/src/components/Excel/ExcelContextMenu/ExcelContextMenu.tsx +0 -46
- package/src/components/Excel/ExcelFile/ExcelFile.tsx +0 -627
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.tsx +0 -183
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Cell.tsx +0 -170
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +0 -187
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Copied.tsx +0 -25
- package/src/components/Excel/ExcelFile/ExcelFileComponents/CornerIndicator.tsx +0 -56
- package/src/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.tsx +0 -41
- package/src/components/Excel/ExcelFile/ExcelFileComponents/DataViewer.tsx +0 -46
- package/src/components/Excel/ExcelFile/ExcelFileComponents/FloatingRect.tsx +0 -61
- package/src/components/Excel/ExcelFile/ExcelFileComponents/HeaderRow.tsx +0 -7
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Row.tsx +0 -5
- package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +0 -168
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Selected.tsx +0 -32
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +0 -568
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Table.tsx +0 -19
- package/src/components/Excel/ExcelFile/ExcelFileComponents/actions.ts +0 -605
- package/src/components/Excel/ExcelFile/ExcelFileComponents/areModelsEqual.ts +0 -18
- package/src/components/Excel/ExcelFile/ExcelFileComponents/context.ts +0 -12
- package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.ts +0 -153
- package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.ts +0 -32
- package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/index.ts +0 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.ts +0 -152
- package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/point-hash.ts +0 -10
- package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/point-set.ts +0 -69
- package/src/components/Excel/ExcelFile/ExcelFileComponents/index.ts +0 -49
- package/src/components/Excel/ExcelFile/ExcelFileComponents/matrix.ts +0 -382
- package/src/components/Excel/ExcelFile/ExcelFileComponents/point-range.ts +0 -82
- package/src/components/Excel/ExcelFile/ExcelFileComponents/point.ts +0 -15
- package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +0 -763
- package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +0 -917
- package/src/components/Excel/ExcelFile/ExcelFileComponents/selection.ts +0 -257
- package/src/components/Excel/ExcelFile/ExcelFileComponents/types.ts +0 -269
- package/src/components/Excel/ExcelFile/ExcelFileComponents/typings/fast-formula-parser.d.ts +0 -58
- package/src/components/Excel/ExcelFile/ExcelFileComponents/use-dispatch.ts +0 -8
- package/src/components/Excel/ExcelFile/ExcelFileComponents/use-selector.ts +0 -9
- package/src/components/Excel/ExcelFile/ExcelFileComponents/util.ts +0 -172
- package/src/components/Excel/ExcelFile.stories.tsx +0 -171
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +0 -467
- package/src/components/Excel/Types.ts +0 -199
- package/src/components/Excel/dataConversion.ts +0 -192
- package/src/components/Excel/index.ts +0 -1
- package/src/components/ExpandableMenu/ExpandableMenu.stories.tsx +0 -67
- package/src/components/ExpandableMenu/ExpandableMenu.tsx +0 -101
- package/src/components/ExpandableMenu/index.ts +0 -1
- package/src/components/ExpandableMenu/types.ts +0 -34
- package/src/components/FF_Captcha/Recaptcha.tsx +0 -51
- package/src/components/FF_Captcha/captcha.stories.tsx +0 -40
- package/src/components/FF_Captcha/index.ts +0 -0
- package/src/components/FF_Captcha/types.ts +0 -30
- package/src/components/FieldSet/FieldSet.stories.tsx +0 -104
- package/src/components/FieldSet/FieldSet.tsx +0 -29
- package/src/components/FieldSet/index.ts +0 -1
- package/src/components/FieldSet/types.ts +0 -8
- package/src/components/FileDropzone/Dropzone.tsx +0 -109
- package/src/components/FileDropzone/FileDropzone.stories.tsx +0 -273
- package/src/components/FileDropzone/FileDropzone.tsx +0 -164
- package/src/components/FileDropzone/FilePreview.tsx +0 -77
- package/src/components/FileDropzone/RadioFilePreview.tsx +0 -80
- package/src/components/FileDropzone/index.ts +0 -1
- package/src/components/FileDropzone/types.ts +0 -208
- package/src/components/Form/Form.d.ts +0 -3
- package/src/components/Form/Form.stories.tsx +0 -508
- package/src/components/Form/Form.ts +0 -2
- package/src/components/Form/Forms.tsx +0 -39
- package/src/components/Form/index.ts +0 -1
- package/src/components/Form/types.ts +0 -1
- package/src/components/Form/validation.json +0 -29
- package/src/components/GridLayout/GridLayout.stories.tsx +0 -90
- package/src/components/GridLayout/GridLayout.tsx +0 -39
- package/src/components/GridLayout/index.ts +0 -1
- package/src/components/GridLayout/types.ts +0 -84
- package/src/components/HighlightText/HighlightText.stories.tsx +0 -22
- package/src/components/HighlightText/HighlightText.tsx +0 -33
- package/src/components/HighlightText/index.ts +0 -1
- package/src/components/HighlightText/types.ts +0 -4
- package/src/components/Icon/Icon.stories.tsx +0 -113
- package/src/components/Icon/Icon.tsx +0 -88
- package/src/components/Icon/iconList.ts +0 -590
- package/src/components/Icon/index.ts +0 -1
- package/src/components/Icon/types.ts +0 -14
- package/src/components/IconButton/IconButton.stories.tsx +0 -34
- package/src/components/IconButton/IconButton.tsx +0 -33
- package/src/components/IconButton/index.ts +0 -1
- package/src/components/IconButton/types.ts +0 -6
- package/src/components/IconRadioGroup/IconRadioGroup.stories.tsx +0 -108
- package/src/components/IconRadioGroup/IconRadioGroup.tsx +0 -73
- package/src/components/IconRadioGroup/index.ts +0 -1
- package/src/components/IconRadioGroup/type.ts +0 -50
- package/src/components/Input/Input.stories.tsx +0 -153
- package/src/components/Input/Input.tsx +0 -126
- package/src/components/Input/index.ts +0 -1
- package/src/components/Input/types.ts +0 -94
- package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +0 -169
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +0 -140
- package/src/components/InputWithDropdown/index.ts +0 -1
- package/src/components/InputWithDropdown/types.ts +0 -121
- package/src/components/LabelEditTextField/LabelEditTextField.stories.tsx +0 -198
- package/src/components/LabelEditTextField/LabelEditTextField.tsx +0 -267
- package/src/components/LabelEditTextField/index.ts +0 -1
- package/src/components/LabelEditTextField/types.ts +0 -51
- package/src/components/LazyLoad/LazyLoad.d.ts +0 -3
- package/src/components/LazyLoad/LazyLoad.stories.tsx +0 -34
- package/src/components/LazyLoad/LazyLoad.ts +0 -2
- package/src/components/LazyLoad/LazyLoading.tsx +0 -28
- package/src/components/LazyLoad/index.ts +0 -1
- package/src/components/MachineInputField/MachineInputField.stories.tsx +0 -33
- package/src/components/MachineInputField/MachineInputField.tsx +0 -85
- package/src/components/MachineInputField/index.ts +0 -1
- package/src/components/MachineInputField/types.ts +0 -15
- package/src/components/MenuOption/MenuOption.stories.tsx +0 -212
- package/src/components/MenuOption/MenuOption.tsx +0 -238
- package/src/components/MenuOption/index.ts +0 -1
- package/src/components/MenuOption/types.ts +0 -232
- package/src/components/MiniModal/MiniModal.stories.tsx +0 -800
- package/src/components/MiniModal/MiniModal.tsx +0 -346
- package/src/components/MiniModal/index.ts +0 -1
- package/src/components/MiniModal/types.ts +0 -125
- package/src/components/MobileSkin/MobileSkin.stories.tsx +0 -94
- package/src/components/MobileSkin/MobileSkin.tsx +0 -74
- package/src/components/MobileSkin/MobileSkinInterface.ts +0 -13
- package/src/components/MobileSkin/index.ts +0 -1
- package/src/components/MobileSkin/types.ts +0 -33
- package/src/components/Modal/Modal.stories.tsx +0 -77
- package/src/components/Modal/Modal.tsx +0 -97
- package/src/components/Modal/index.tsx +0 -1
- package/src/components/Modal/types.ts +0 -43
- package/src/components/ModulesChip/ModuleChip.stories.tsx +0 -41
- package/src/components/ModulesChip/ModuleChip.tsx +0 -28
- package/src/components/ModulesChip/index.ts +0 -1
- package/src/components/ModulesChip/types.ts +0 -14
- package/src/components/MultiSelect/Dropdown.scss +0 -77
- package/src/components/MultiSelect/Dropdown.tsx +0 -169
- package/src/components/MultiSelect/MultiSelect.stories.tsx +0 -290
- package/src/components/MultiSelect/MultiSelect.tsx +0 -486
- package/src/components/MultiSelect/MultiSelectTypes.ts +0 -49
- package/src/components/MultiSelect/dropdownTypes.ts +0 -21
- package/src/components/MultiSelect/index.ts +0 -1
- package/src/components/NLPInput/NlpInput.stories.tsx +0 -70
- package/src/components/NLPInput/NlpInput.tsx +0 -410
- package/src/components/NLPInput/components/NlpDropDown/NlpDropDownType.ts +0 -62
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.tsx +0 -320
- package/src/components/NLPInput/index.ts +0 -1
- package/src/components/NLPInput/sampleData.ts +0 -162
- package/src/components/NLPInput/types.tsx +0 -136
- package/src/components/Paper/Paper.stories.tsx +0 -77
- package/src/components/Paper/Paper.tsx +0 -14
- package/src/components/Paper/index.ts +0 -1
- package/src/components/Paper/types.ts +0 -19
- package/src/components/PhoneInput/PhoneInput.d.ts +0 -3
- package/src/components/PhoneInput/PhoneInput.stories.tsx +0 -70
- package/src/components/PhoneInput/PhoneInput.tsx +0 -98
- package/src/components/PhoneInput/index.ts +0 -1
- package/src/components/PhoneInput/types.ts +0 -16
- package/src/components/PopUpModal/PopUpModal.stories.tsx +0 -67
- package/src/components/PopUpModal/PopUpModal.tsx +0 -87
- package/src/components/PopUpModal/types.ts +0 -17
- package/src/components/ProgressBar/ProgressBar.stories.tsx +0 -22
- package/src/components/ProgressBar/ProgressBar.tsx +0 -61
- package/src/components/ProgressBar/index.ts +0 -1
- package/src/components/ProgressBar/types.ts +0 -12
- package/src/components/RadioButton/RadioButton.stories.tsx +0 -43
- package/src/components/RadioButton/RadioButton.tsx +0 -45
- package/src/components/RadioButton/index.ts +0 -1
- package/src/components/RadioButton/radioButtonTypes.tsx +0 -62
- package/src/components/RadioGroup/RadioGroup.stories.tsx +0 -150
- package/src/components/RadioGroup/RadioGroup.tsx +0 -49
- package/src/components/RadioGroup/index.ts +0 -1
- package/src/components/RadioGroup/radioGroupTypes.tsx +0 -96
- package/src/components/ScriptSwitchButton/ScriptSwitchButton.stories.tsx +0 -48
- package/src/components/ScriptSwitchButton/ScriptSwitchButton.tsx +0 -65
- package/src/components/ScriptSwitchButton/index.ts +0 -1
- package/src/components/Search/Search.stories.tsx +0 -44
- package/src/components/Search/Search.tsx +0 -149
- package/src/components/Search/index.ts +0 -1
- package/src/components/Search/types.ts +0 -20
- package/src/components/Select/Select.stories.tsx +0 -508
- package/src/components/Select/Select.tsx +0 -305
- package/src/components/Select/components/Dropdown.tsx +0 -196
- package/src/components/Select/components/types.ts +0 -30
- package/src/components/Select/index.ts +0 -1
- package/src/components/Select/types.ts +0 -171
- package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.tsx +0 -80
- package/src/components/SequentialConnectingBranch/SequentialConnectingBranch.tsx +0 -230
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +0 -356
- package/src/components/SequentialConnectingBranch/components/Branches/types.ts +0 -33
- package/src/components/SequentialConnectingBranch/components/ConnectingBranches/ConnectingBranches.tsx +0 -78
- package/src/components/SequentialConnectingBranch/components/ConnectingBranches/types.ts +0 -25
- package/src/components/SequentialConnectingBranch/components/DatasetTooltip/DataSetTooltip.tsx +0 -36
- package/src/components/SequentialConnectingBranch/components/DatasetTooltip/types.ts +0 -9
- package/src/components/SequentialConnectingBranch/index.ts +0 -1
- package/src/components/SequentialConnectingBranch/types.ts +0 -80
- package/src/components/StateDropdown/StateDropdown.stories.tsx +0 -104
- package/src/components/StateDropdown/StateDropdown.tsx +0 -245
- package/src/components/StateDropdown/StateDropdownTypes.tsx +0 -27
- package/src/components/StateDropdown/index.ts +0 -1
- package/src/components/StatusButton/StatusButton.stories.tsx +0 -91
- package/src/components/StatusButton/StatusButton.tsx +0 -46
- package/src/components/StatusButton/index.ts +0 -1
- package/src/components/StatusButton/types.ts +0 -45
- package/src/components/StatusCard/StatusCard.stories.tsx +0 -190
- package/src/components/StatusCard/StatusCard.tsx +0 -134
- package/src/components/StatusCard/index.ts +0 -1
- package/src/components/StatusCard/types.ts +0 -18
- package/src/components/Table/Table.stories.tsx +0 -432
- package/src/components/Table/Table.tsx +0 -296
- package/src/components/Table/Types.ts +0 -135
- package/src/components/Table/index.ts +0 -1
- package/src/components/TableTree/Components/AddModule/AddModule.tsx +0 -73
- package/src/components/TableTree/Components/TableBody.tsx +0 -47
- package/src/components/TableTree/Components/TableCell.tsx +0 -182
- package/src/components/TableTree/Components/TableHead.tsx +0 -41
- package/src/components/TableTree/Components/TableRow.tsx +0 -46
- package/src/components/TableTree/TableTree.stories.tsx +0 -275
- package/src/components/TableTree/TableTree.tsx +0 -198
- package/src/components/TableTree/Utils/addNewRow.ts +0 -53
- package/src/components/TableTree/Utils/getAllChildIds.ts +0 -14
- package/src/components/TableTree/Utils/renderSpaces.ts +0 -0
- package/src/components/TableTree/data.ts +0 -148
- package/src/components/TableTree/index.ts +0 -1
- package/src/components/TableTree/types.ts +0 -86
- package/src/components/TableWithAccordion/TableWithAccordion.stories.tsx +0 -94
- package/src/components/TableWithAccordion/TableWithAccordion.tsx +0 -174
- package/src/components/TableWithAccordion/data.ts +0 -37
- package/src/components/TableWithAccordion/index.ts +0 -1
- package/src/components/TableWithAccordion/types.ts +0 -70
- package/src/components/Tabs/Tabs.stories.tsx +0 -179
- package/src/components/Tabs/Tabs.tsx +0 -82
- package/src/components/Tabs/index.ts +0 -1
- package/src/components/Tabs/types.ts +0 -50
- package/src/components/TextArea/Textarea.stories.tsx +0 -92
- package/src/components/TextArea/Textarea.tsx +0 -86
- package/src/components/TextArea/Types.ts +0 -85
- package/src/components/TextArea/index.tsx +0 -1
- package/src/components/ThemeProvider/ThemeProvider.tsx +0 -27
- package/src/components/ThemeProvider/index.ts +0 -1
- package/src/components/ThemeProvider/types.ts +0 -14
- package/src/components/Toast/Toast.stories.tsx +0 -144
- package/src/components/Toast/Toast.tsx +0 -117
- package/src/components/Toast/index.ts +0 -1
- package/src/components/Toast/types.ts +0 -27
- package/src/components/Toastify/Toastify.stories.tsx +0 -71
- package/src/components/Toastify/Toastify.tsx +0 -95
- package/src/components/Toastify/index.ts +0 -1
- package/src/components/Toastify/types.ts +0 -10
- package/src/components/Toggle/Toggle.stories.tsx +0 -132
- package/src/components/Toggle/Toggle.tsx +0 -96
- package/src/components/Toggle/index.ts +0 -1
- package/src/components/Toggle/types.ts +0 -43
- package/src/components/ToggleSwitch/ToggleSwitch.stories.tsx +0 -52
- package/src/components/ToggleSwitch/ToggleSwitch.tsx +0 -30
- package/src/components/ToggleSwitch/index.ts +0 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -98
- package/src/components/Tooltip/Tooltip.tsx +0 -194
- package/src/components/Tooltip/index.ts +0 -1
- package/src/components/Tooltip/types.ts +0 -66
- package/src/components/Typography/Typography.scss +0 -25
- package/src/components/Typography/Typography.stories.tsx +0 -59
- package/src/components/Typography/Typography.tsx +0 -41
- package/src/components/Typography/index.ts +0 -1
- package/src/components/Typography/types.ts +0 -57
- package/src/components/VariableInput/VariableInput.stories.tsx +0 -32
- package/src/components/VariableInput/VariableInput.tsx +0 -352
- package/src/components/VariableInput/index.ts +0 -1
- package/src/components/VariableInput/types.ts +0 -56
- package/src/components/variableSuggestionInputDropDown/OptionsDropdown.tsx +0 -51
- package/src/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.stories.tsx +0 -155
- package/src/components/variableSuggestionInputDropDown/VariableSuggestionInputDropDown.tsx +0 -244
- package/src/components/variableSuggestionInputDropDown/index.ts +0 -1
- package/src/components/variableSuggestionInputDropDown/types.ts +0 -166
- package/src/hooks/keyboardevents/useEscKeyEvent.tsx +0 -30
- package/src/hooks/useClickOutside.tsx +0 -30
- package/src/hooks/useFileDropzone.tsx +0 -275
- package/src/hooks/useIntersectionObserver.tsx +0 -56
- package/src/hooks/usePortalPosition.tsx +0 -53
- package/src/hooks/useTheme.tsx +0 -13
- package/src/index.ts +0 -357
- package/src/utils/FormatString/FormatString.stories.tsx +0 -58
- package/src/utils/FormatString/FormatString.tsx +0 -41
- package/src/utils/TableCell/TableCell.ts +0 -19
- package/src/utils/capitalize/capitalize.stories.tsx +0 -44
- package/src/utils/capitalize/capitalize.tsx +0 -4
- package/src/utils/checkDuplicates/CheckDuplicates.stories.tsx +0 -40
- package/src/utils/checkDuplicates/checkDuplicates.ts +0 -13
- package/src/utils/checkEmpty/checkEmpty.stories.tsx +0 -34
- package/src/utils/checkEmpty/checkEmpty.ts +0 -24
- package/src/utils/compareArrays/compareArrays.stories.tsx +0 -62
- package/src/utils/compareArrays/compareArrays.ts +0 -31
- package/src/utils/compareObjects/compareObjects.stories.tsx +0 -51
- package/src/utils/compareObjects/compareObjects.ts +0 -53
- package/src/utils/debounce/debounce.stories.tsx +0 -81
- package/src/utils/debounce/debounce.ts +0 -28
- package/src/utils/downloadFile/saveFileFromBlob.stories.tsx +0 -62
- package/src/utils/downloadFile/saveFileFromBlob.ts +0 -40
- package/src/utils/ffID/ffID.stories.tsx +0 -35
- package/src/utils/ffID/ffid.ts +0 -7
- package/src/utils/findAndInsert/findAndInsert.stories.tsx +0 -120
- package/src/utils/findAndInsert/findAndInsert.ts +0 -49
- package/src/utils/formData/ConvertFormDataToObject.stories.tsx +0 -27
- package/src/utils/formData/ConvertFormDataToObject.ts +0 -14
- package/src/utils/functionCheck/functionCheck.ts +0 -8
- package/src/utils/getAnchorElement/getAnchorElement.ts +0 -7
- package/src/utils/getEncryptedData/getEncryptedData.stories.tsx +0 -55
- package/src/utils/getEncryptedData/getEncryptedData.ts +0 -8
- package/src/utils/getExtension/getExtension.stories.tsx +0 -24
- package/src/utils/getExtension/getExtension.ts +0 -28
- package/src/utils/getSelectOptionValue/getSelectOptionValue.ts +0 -31
- package/src/utils/getSequentialPayload/getSequentialPayload.stories.tsx +0 -73
- package/src/utils/getSequentialPayload/getSequentialPayload.ts +0 -16
- package/src/utils/getSequentialPayload/types.ts +0 -39
- package/src/utils/getTreeDetails/getTreeDetails.stories.tsx +0 -217
- package/src/utils/getTreeDetails/getTreeDetails.ts +0 -118
- package/src/utils/handleTreeNodeSelect/HandleTreeNodeSelect.stories.tsx +0 -195
- package/src/utils/handleTreeNodeSelect/handleTreeNodeSelect.ts +0 -63
- package/src/utils/indexDBStore/indexDB.ts +0 -180
- package/src/utils/keyBoardActionUtil/UseKeyboardAction.stories.tsx +0 -53
- package/src/utils/keyBoardActionUtil/UseKeyboardActions.tsx +0 -20
- package/src/utils/keyBoardActionUtil/types.ts +0 -4
- package/src/utils/swapArrayItem/dragAndDropUtils.ts +0 -11
- package/src/utils/throttle/throttle.stories.tsx +0 -100
- package/src/utils/throttle/throttle.ts +0 -33
- package/src/utils/truncateText/truncateText.stories.tsx +0 -37
- package/src/utils/truncateText/truncateText.ts +0 -4
- package/src/utils/validateFile/validateFile.stories.tsx +0 -49
- package/src/utils/validateFile/validateFile.ts +0 -39
- package/src/validations/regex.stories.tsx +0 -425
- package/src/validations/regex.ts +0 -228
- package/tsconfig.json +0 -45
- package/vite.config.js +0 -42
- /package/{src/components/Accordion → lib/styles}/Accordion.scss +0 -0
- /package/{src/components/TableTree/Components/AddModule → lib/styles}/AddModule.scss +0 -0
- /package/{src/components/AddResourceButton → lib/styles}/AddResourceButton.scss +0 -0
- /package/{src/components/AllProjectsDropdown → lib/styles}/AllProjectsDropdown.scss +0 -0
- /package/{src/components/AppHeader → lib/styles}/AppHeader.scss +0 -0
- /package/{src/components/AddResourceButton/ArrowsButton → lib/styles}/ArrowsButton.scss +0 -0
- /package/{src/components/AttachImage → lib/styles}/AttachImage.scss +0 -0
- /package/{src/components/AttachmentButton → lib/styles}/AttachmentButton.scss +0 -0
- /package/{src/components/Avatar → lib/styles}/Avatar.scss +0 -0
- /package/{src/components/Charts/BarChart → lib/styles}/BarChart.scss +0 -0
- /package/{src/assets/Themes → lib/styles}/BaseTheme.scss +0 -0
- /package/{src/assets/Themes → lib/styles}/BlueTheme.scss +0 -0
- /package/{src/components/SequentialConnectingBranch/components/Branches → lib/styles}/Branches.scss +0 -0
- /package/{src/components/BrowserTabs → lib/styles}/BrowserTabs.scss +0 -0
- /package/{src/components/Button → lib/styles}/Button.scss +0 -0
- /package/{src/components/Checkbox → lib/styles}/Checkbox.scss +0 -0
- /package/{src/components/Chip → lib/styles}/Chip.scss +0 -0
- /package/{src/components/Excel/ColorBarSelector → lib/styles}/ColorBarSelector.scss +0 -0
- /package/{src/StyleGuide/ColorPalette → lib/styles}/ColorPalette.scss +0 -0
- /package/{src/components/Comment → lib/styles}/Comments.scss +0 -0
- /package/{src/components/ConditionalDropdown → lib/styles}/ConditionalDropdown.scss +0 -0
- /package/{src/components/ConnectingBranch → lib/styles}/ConnectingBranch.scss +0 -0
- /package/{src/components/SequentialConnectingBranch/components/ConnectingBranches → lib/styles}/ConnectingBranches.scss +0 -0
- /package/{src/components/CreateVariable → lib/styles}/CreateVariableSlider.scss +0 -0
- /package/{src/assets/Themes → lib/styles}/DarkTheme.scss +0 -0
- /package/{src/components/Charts/DashboardDonutChart → lib/styles}/DashboardDonutChart.scss +0 -0
- /package/{src/components/SequentialConnectingBranch/components/DatasetTooltip → lib/styles}/DataSetTooltip.scss +0 -0
- /package/{src/components/DatePicker → lib/styles}/DatePicker.scss +0 -0
- /package/{src/components/Charts/DonutChart → lib/styles}/DonutChart.scss +0 -0
- /package/{src/components/DownloadClient → lib/styles}/DownloadClient.scss +0 -0
- /package/{src/components/DragAndDrop → lib/styles}/DragAndDropList.scss +0 -0
- /package/{src/components/Drawer → lib/styles}/Drawer.scss +0 -0
- /package/{src/components/Select/components → lib/styles}/Dropdown.scss +0 -0
- /package/{src/components/EditTextField → lib/styles}/EditTextField.scss +0 -0
- /package/{src/components/Editor → lib/styles}/Editor.scss +0 -0
- /package/{src/components/Excel/ExcelContextMenu → lib/styles}/ExcelContextMenu.scss +0 -0
- /package/{src/components/Excel/ExcelFile → lib/styles}/ExcelFile.scss +0 -0
- /package/{src/components/Excel/ExcelToolBar → lib/styles}/ExcelToolBar.scss +0 -0
- /package/{src/components/ExpandableMenu → lib/styles}/ExpandableMenu.scss +0 -0
- /package/{src/components/FieldSet → lib/styles}/FieldSet.scss +0 -0
- /package/{src/components/FileDropzone → lib/styles}/FileDropzone.scss +0 -0
- /package/{src/components/Form → lib/styles}/Form.scss +0 -0
- /package/{src/components/GridLayout → lib/styles}/GridLayout.scss +0 -0
- /package/{src/components/GridLayout → lib/styles}/GridLayoutStory.scss +0 -0
- /package/{src/components/HighlightText → lib/styles}/HighlightText.scss +0 -0
- /package/{src/components/IconButton → lib/styles}/IconButton.scss +0 -0
- /package/{src/components/Charts/IconRadialChart → lib/styles}/IconRadialChart.scss +0 -0
- /package/{src/components/IconRadioGroup → lib/styles}/IconRadioGroup.scss +0 -0
- /package/{src/components/Icon → lib/styles}/Icons.scss +0 -0
- /package/{src/components/Input → lib/styles}/Input.scss +0 -0
- /package/{src/components/InputWithDropdown → lib/styles}/InputWithDropdown.scss +0 -0
- /package/{src/components/LabelEditTextField → lib/styles}/LabelEditTextField.scss +0 -0
- /package/{src/components/Charts/LineChart → lib/styles}/LineChart.scss +0 -0
- /package/{src/components/MachineInputField → lib/styles}/MachineInputField.scss +0 -0
- /package/{src/components/MenuOption → lib/styles}/MenuOption.scss +0 -0
- /package/{src/components/MiniModal → lib/styles}/MiniModal.scss +0 -0
- /package/{src/components/MobileSkin → lib/styles}/MobileSkin.scss +0 -0
- /package/{src/components/ModulesChip → lib/styles}/ModuleChip.scss +0 -0
- /package/{src/components/Charts/MultiRadialChart → lib/styles}/MultiRadialChart.scss +0 -0
- /package/{src/components/MultiSelect → lib/styles}/MultiSelect.scss +0 -0
- /package/{src/components/NLPInput → lib/styles}/NLPInput.scss +0 -0
- /package/{src/components/NLPInput/components/NlpDropDown → lib/styles}/NlpDropdown.scss +0 -0
- /package/{src/components/Paper → lib/styles}/Paper.scss +0 -0
- /package/{src/components/Charts/PieChart → lib/styles}/PieChart.scss +0 -0
- /package/{src/components/PopUpModal → lib/styles}/PopUpModal.scss +0 -0
- /package/{src/components/ProgressBar → lib/styles}/ProgressBar.scss +0 -0
- /package/{src/components/Charts/RadialChart → lib/styles}/RadialChart.scss +0 -0
- /package/{src/components/RadioButton → lib/styles}/RadioButton.scss +0 -0
- /package/{src/components/RadioGroup → lib/styles}/RadioGroup.scss +0 -0
- /package/{src/components/FF_Captcha → lib/styles}/Recaptcha.scss +0 -0
- /package/{src/components/ScriptSwitchButton → lib/styles}/ScriptSwitchButton.scss +0 -0
- /package/{src/components/Search → lib/styles}/Search.scss +0 -0
- /package/{src/components/Select → lib/styles}/Select.scss +0 -0
- /package/{src/components/SequentialConnectingBranch → lib/styles}/SequentialConnectingBranch.scss +0 -0
- /package/{src/components/Excel/ExcelFile/ExcelFileComponents → lib/styles}/Spreadsheet.scss +0 -0
- /package/{src/components/StatusButton → lib/styles}/StatusButton.scss +0 -0
- /package/{src/components/StatusCard → lib/styles}/StatusCard.scss +0 -0
- /package/{src/components/Table → lib/styles}/Table.scss +0 -0
- /package/{src/components/TableTree → lib/styles}/TableTree.scss +0 -0
- /package/{src/components/TableTree → lib/styles}/TableTreeStories.scss +0 -0
- /package/{src/components/TableWithAccordion → lib/styles}/TableWithAccordion.scss +0 -0
- /package/{src/components/Tabs → lib/styles}/Tabs.scss +0 -0
- /package/{src/components/TextArea → lib/styles}/Textarea.scss +0 -0
- /package/{src/assets/Themes → lib/styles}/Theme.scss +0 -0
- /package/{src/components/Toast → lib/styles}/Toast.scss +0 -0
- /package/{src/components/Toggle → lib/styles}/Toggle.scss +0 -0
- /package/{src/components/ToggleSwitch → lib/styles}/ToggleSwitch.scss +0 -0
- /package/{src/components/Tooltip → lib/styles}/Tooltip.scss +0 -0
- /package/{src/StyleGuide/Typography → lib/styles}/Typography.scss +0 -0
- /package/{src/components/Editor → lib/styles}/VariableDropdown.scss +0 -0
- /package/{src/components/VariableInput → lib/styles}/VariableInput.scss +0 -0
- /package/{src/components/variableSuggestionInputDropDown → lib/styles}/VariableSuggestionInputDropDown.scss +0 -0
- /package/{src/assets → lib}/styles/_colors.scss +0 -0
- /package/{src/assets → lib}/styles/_fonts.scss +0 -0
- /package/{src/assets → lib}/styles/_mixins.scss +0 -0
- /package/{src/components/Modal → lib/styles}/modal.scss +0 -0
- /package/{src/components/PhoneInput → lib/styles}/phoneInput.scss +0 -0
@@ -1,346 +0,0 @@
|
|
1
|
-
import { useEffect, useRef, useState, useCallback, forwardRef } from 'react';
|
2
|
-
import { createPortal } from 'react-dom';
|
3
|
-
import { MiniEditModalProps, Rect, AvailableSpace } from './types.js';
|
4
|
-
import Button from '../Button/Button.js';
|
5
|
-
import useEscapeKey from '../../hooks/keyboardevents/useEscKeyEvent.js';
|
6
|
-
import useClickOutside from '../../hooks/useClickOutside';
|
7
|
-
import classNames from 'classnames';
|
8
|
-
import './MiniModal.scss';
|
9
|
-
import Typography from '../Typography';
|
10
|
-
|
11
|
-
const MiniModal = forwardRef<HTMLDivElement, MiniEditModalProps>(
|
12
|
-
(
|
13
|
-
{
|
14
|
-
anchorRef,
|
15
|
-
headerProps,
|
16
|
-
childContent,
|
17
|
-
cancelButtonProps = () => {},
|
18
|
-
proceedButtonProps = () => {},
|
19
|
-
footerContent,
|
20
|
-
isWrapped = false,
|
21
|
-
isAnimated = false,
|
22
|
-
isPopOver = false,
|
23
|
-
modalPosition = 'bottom',
|
24
|
-
leftTopArrow = false,
|
25
|
-
firstAnchorRef,
|
26
|
-
anchorRefLeftNum,
|
27
|
-
modalProperties,
|
28
|
-
anchorLeftDistanceForWrapper = 170,
|
29
|
-
extraTopSpace,
|
30
|
-
extraRightSpace,
|
31
|
-
extraLeftSpace,
|
32
|
-
isIconModel,
|
33
|
-
wrapperProperties,
|
34
|
-
arrowProperties,
|
35
|
-
arrowZIndex,
|
36
|
-
overlay,
|
37
|
-
outSideClick,
|
38
|
-
},
|
39
|
-
ref
|
40
|
-
) => {
|
41
|
-
const [modalPositionState, setModalPositionState] = useState({
|
42
|
-
top: 0,
|
43
|
-
left: 0,
|
44
|
-
});
|
45
|
-
const [isVisible, setIsVisible] = useState(false);
|
46
|
-
const modalRef = useRef<HTMLDivElement>(null);
|
47
|
-
const {
|
48
|
-
width: modalWidth,
|
49
|
-
height: modalHeight,
|
50
|
-
borderRadius: modalBorderRadius = 4,
|
51
|
-
zIndex: modalZIndex = 99,
|
52
|
-
boxShadow: modalBoxShadow,
|
53
|
-
left: modalLeft,
|
54
|
-
top: modalTop,
|
55
|
-
padding: modalPadding,
|
56
|
-
} = modalProperties || {};
|
57
|
-
|
58
|
-
const {
|
59
|
-
left: popOverLeft,
|
60
|
-
top: popOverTop,
|
61
|
-
size: popOverSize = 10,
|
62
|
-
} = arrowProperties || {};
|
63
|
-
// Function to calculate available space
|
64
|
-
const getAvailableSpace = (rect: Rect): AvailableSpace => {
|
65
|
-
const { top, left, bottom, right } = rect;
|
66
|
-
const viewportWidth = window.innerWidth;
|
67
|
-
const viewportHeight = window.innerHeight;
|
68
|
-
|
69
|
-
return {
|
70
|
-
spaceTop: top,
|
71
|
-
spaceLeft: left,
|
72
|
-
spaceRight: viewportWidth - right,
|
73
|
-
spaceBottom: viewportHeight - bottom,
|
74
|
-
};
|
75
|
-
};
|
76
|
-
|
77
|
-
// Helper function to get the anchor element
|
78
|
-
const getAnchorElement = () => {
|
79
|
-
if (typeof anchorRef === 'string') {
|
80
|
-
return document.getElementById(anchorRef);
|
81
|
-
}
|
82
|
-
return anchorRef?.current || null;
|
83
|
-
};
|
84
|
-
|
85
|
-
const anchorElement = getAnchorElement();
|
86
|
-
const anchorRect = anchorElement?.getBoundingClientRect();
|
87
|
-
|
88
|
-
if (!isWrapped && anchorRect) {
|
89
|
-
const availableSpace = getAvailableSpace(anchorRect);
|
90
|
-
switch (modalPosition) {
|
91
|
-
case 'top':
|
92
|
-
if (availableSpace.spaceTop < (modalProperties?.height ?? 150)) {
|
93
|
-
modalPosition = 'bottom';
|
94
|
-
}
|
95
|
-
break;
|
96
|
-
case 'left':
|
97
|
-
if (availableSpace.spaceLeft < (modalProperties?.width ?? 480)) {
|
98
|
-
modalPosition = 'right';
|
99
|
-
}
|
100
|
-
break;
|
101
|
-
case 'right':
|
102
|
-
if (availableSpace.spaceRight < (modalProperties?.width ?? 480)) {
|
103
|
-
modalPosition = 'left';
|
104
|
-
}
|
105
|
-
break;
|
106
|
-
case 'bottom':
|
107
|
-
if (availableSpace.spaceBottom < (modalProperties?.height ?? 150)) {
|
108
|
-
modalPosition = 'top';
|
109
|
-
}
|
110
|
-
break;
|
111
|
-
default:
|
112
|
-
break;
|
113
|
-
}
|
114
|
-
}
|
115
|
-
|
116
|
-
// Specify for the wrapper div left position
|
117
|
-
const calculateAnchorRefLeft = (anchorRefLeftNum?: number) => {
|
118
|
-
if (anchorRefLeftNum) {
|
119
|
-
return anchorRefLeftNum;
|
120
|
-
}
|
121
|
-
return 0;
|
122
|
-
};
|
123
|
-
|
124
|
-
// Specify for the arrow position in left or top
|
125
|
-
const getArrowClassName = () => {
|
126
|
-
if (leftTopArrow && modalPosition === 'right') {
|
127
|
-
return 'left-top-arrow';
|
128
|
-
}
|
129
|
-
return modalPosition === 'right' ? 'left-middle-arrow' : '';
|
130
|
-
};
|
131
|
-
const calculatedAnchorRefLeft = calculateAnchorRefLeft(anchorRefLeftNum);
|
132
|
-
|
133
|
-
// Specify specific wrapper modal position
|
134
|
-
const firstAnchor =
|
135
|
-
firstAnchorRef?.current &&
|
136
|
-
firstAnchorRef?.current?.getBoundingClientRect().left -
|
137
|
-
anchorLeftDistanceForWrapper;
|
138
|
-
|
139
|
-
// Specifying the modal top
|
140
|
-
const calculateModalTop = () => {
|
141
|
-
const safeHeight = modalProperties?.height ?? 0;
|
142
|
-
if (modalPosition === 'bottom') {
|
143
|
-
return isWrapped
|
144
|
-
? modalPositionState.top + (extraTopSpace?.wrappedModal ?? 5)
|
145
|
-
: modalPositionState.top + (extraTopSpace?.normalModal ?? 10);
|
146
|
-
} else if (modalPosition === 'right') {
|
147
|
-
return leftTopArrow
|
148
|
-
? modalPositionState.top - (extraRightSpace?.leftTopArrow ?? 30)
|
149
|
-
: modalPositionState?.top -
|
150
|
-
safeHeight / (extraRightSpace?.middleLeftArrow ?? 3.5);
|
151
|
-
} else if (modalPosition === 'top') {
|
152
|
-
return (
|
153
|
-
modalPositionState.top -
|
154
|
-
(safeHeight + (extraTopSpace?.normalModal ?? 10))
|
155
|
-
);
|
156
|
-
}
|
157
|
-
return modalPositionState.top - safeHeight / 1.5;
|
158
|
-
};
|
159
|
-
const calculatedModalTop = calculateModalTop();
|
160
|
-
|
161
|
-
// Specifying the modal left
|
162
|
-
const calculateModalLeft = () => {
|
163
|
-
if (modalPosition === 'right') {
|
164
|
-
return (
|
165
|
-
modalPositionState.left + (extraLeftSpace?.rightAlignModal ?? 40)
|
166
|
-
);
|
167
|
-
} else if (firstAnchorRef) {
|
168
|
-
return firstAnchor;
|
169
|
-
} else if (modalPosition === 'left') {
|
170
|
-
return modalPositionState.left - (modalProperties?.width ?? 404) - 15;
|
171
|
-
} else {
|
172
|
-
return modalPositionState.left - (extraLeftSpace?.normal ?? 30);
|
173
|
-
}
|
174
|
-
};
|
175
|
-
const calculatedModalLeft = calculateModalLeft();
|
176
|
-
|
177
|
-
// Handle escape and enter functionality
|
178
|
-
const handleEsc = useEscapeKey('Escape');
|
179
|
-
const handleEnter = useEscapeKey('Enter');
|
180
|
-
handleEsc(outSideClick);
|
181
|
-
handleEnter(proceedButtonProps?.onClick);
|
182
|
-
useClickOutside(modalRef, outSideClick);
|
183
|
-
|
184
|
-
// Calculate the modal position
|
185
|
-
const calculatePosition = useCallback(() => {
|
186
|
-
const anchorRect = anchorElement?.getBoundingClientRect();
|
187
|
-
if (anchorRect) {
|
188
|
-
const { bottom, left } = anchorRect;
|
189
|
-
const { scrollX, scrollY } = window;
|
190
|
-
let topPosition = bottom + scrollY;
|
191
|
-
let leftPosition = left + scrollX;
|
192
|
-
|
193
|
-
setModalPositionState({
|
194
|
-
top: topPosition,
|
195
|
-
left: leftPosition,
|
196
|
-
});
|
197
|
-
}
|
198
|
-
}, [anchorElement]);
|
199
|
-
|
200
|
-
useEffect(() => {
|
201
|
-
const timeoutId = setTimeout(() => {
|
202
|
-
setIsVisible(true);
|
203
|
-
calculatePosition();
|
204
|
-
}, 100);
|
205
|
-
window.addEventListener('resize', calculatePosition);
|
206
|
-
window.addEventListener('scroll', calculatePosition);
|
207
|
-
|
208
|
-
return () => {
|
209
|
-
window.removeEventListener('resize', calculatePosition);
|
210
|
-
clearTimeout(timeoutId);
|
211
|
-
window.removeEventListener('scroll', calculatePosition);
|
212
|
-
};
|
213
|
-
}, [calculatePosition]);
|
214
|
-
|
215
|
-
const {
|
216
|
-
width: wrapperWidth = 35,
|
217
|
-
zIndex: wrapperZIndex = 101,
|
218
|
-
boxShadow: wrapperBoxShadow,
|
219
|
-
} = wrapperProperties || {};
|
220
|
-
const { isOverlay, backgroundColorOverlay, zIndexOverlay } = overlay || {};
|
221
|
-
|
222
|
-
if (isWrapped && isPopOver) {
|
223
|
-
return null;
|
224
|
-
}
|
225
|
-
|
226
|
-
return createPortal(
|
227
|
-
<>
|
228
|
-
{isOverlay && (
|
229
|
-
<div
|
230
|
-
className={classNames('ff-mini-modal-overlay')}
|
231
|
-
style={{
|
232
|
-
zIndex: zIndexOverlay ?? 98,
|
233
|
-
backgroundColor: backgroundColorOverlay ?? 'transparent',
|
234
|
-
}}
|
235
|
-
onClick={cancelButtonProps?.onClick}
|
236
|
-
></div>
|
237
|
-
)}
|
238
|
-
<div
|
239
|
-
ref={ref || modalRef}
|
240
|
-
className={classNames('ff-mini-edit-modal-container', {
|
241
|
-
modalVisible: isVisible,
|
242
|
-
animatedModal: isAnimated,
|
243
|
-
})}
|
244
|
-
style={{
|
245
|
-
top: `${modalTop ?? calculatedModalTop}px`,
|
246
|
-
left: `${modalLeft ?? calculatedModalLeft}px`,
|
247
|
-
}}
|
248
|
-
>
|
249
|
-
{isPopOver && (
|
250
|
-
<div
|
251
|
-
className={`popover-arrow popover-arrow-${
|
252
|
-
modalPosition === 'right'
|
253
|
-
? 'left'
|
254
|
-
: modalPosition === 'top'
|
255
|
-
? 'bottom'
|
256
|
-
: modalPosition === 'left'
|
257
|
-
? 'right'
|
258
|
-
: 'top'
|
259
|
-
} ${getArrowClassName()}`}
|
260
|
-
style={{
|
261
|
-
zIndex: `${arrowZIndex}`,
|
262
|
-
top: `${popOverTop && popOverTop}px`,
|
263
|
-
left: `${popOverLeft && popOverLeft}px`,
|
264
|
-
borderWidth: `${
|
265
|
-
modalPosition === 'right'
|
266
|
-
? `${popOverSize}px ${popOverSize}px ${popOverSize}px 0`
|
267
|
-
: modalPosition === 'top'
|
268
|
-
? `${popOverSize}px ${popOverSize}px 0 ${popOverSize}px`
|
269
|
-
: modalPosition === 'left'
|
270
|
-
? `${popOverSize}px 0 ${popOverSize}px ${popOverSize}px`
|
271
|
-
: `0 ${popOverSize}px ${popOverSize}px ${popOverSize}px`
|
272
|
-
}`,
|
273
|
-
}}
|
274
|
-
/>
|
275
|
-
)}
|
276
|
-
{isWrapped && (
|
277
|
-
<div
|
278
|
-
className={'wrapped-div'}
|
279
|
-
style={{
|
280
|
-
left: `${calculatedAnchorRefLeft}px`,
|
281
|
-
width: `${wrapperWidth}px`,
|
282
|
-
zIndex: `${wrapperZIndex}`,
|
283
|
-
boxShadow:
|
284
|
-
wrapperBoxShadow ??
|
285
|
-
`0px -3px 4px 0px var(--ff-mini-modal-box-shadow)`,
|
286
|
-
}}
|
287
|
-
></div>
|
288
|
-
)}
|
289
|
-
<div
|
290
|
-
className={classNames('mini-edit-modal', {
|
291
|
-
'mini-edit-modal-wrapper-shadow': !!isWrapped && !modalBoxShadow,
|
292
|
-
'mini-edit-modal-arrow-shadow': !!isPopOver && !modalBoxShadow,
|
293
|
-
})}
|
294
|
-
style={{
|
295
|
-
minWidth: isWrapped ? '358px' : '',
|
296
|
-
width: `${modalWidth}px`,
|
297
|
-
height: `${modalHeight}px`,
|
298
|
-
borderRadius: `${modalBorderRadius}px`,
|
299
|
-
zIndex: `${modalZIndex}`,
|
300
|
-
boxShadow: `${
|
301
|
-
modalBoxShadow ??
|
302
|
-
'0px 4px 8px var(--ff-mini-modal-arrow-shadow)'
|
303
|
-
}`,
|
304
|
-
padding: `${modalPadding ?? 4}px`,
|
305
|
-
}}
|
306
|
-
>
|
307
|
-
{headerProps ? (
|
308
|
-
<Typography as="div">{headerProps}</Typography>
|
309
|
-
) : isIconModel ? (
|
310
|
-
<></>
|
311
|
-
) : (
|
312
|
-
<Typography as="header">
|
313
|
-
<Typography as="h2">Header text</Typography>
|
314
|
-
<hr />
|
315
|
-
</Typography>
|
316
|
-
)}
|
317
|
-
{childContent}
|
318
|
-
{footerContent ? (
|
319
|
-
<Typography as="footer">{footerContent}</Typography>
|
320
|
-
) : isIconModel ? (
|
321
|
-
<></>
|
322
|
-
) : (
|
323
|
-
<footer className="modal-footer">
|
324
|
-
<Button
|
325
|
-
variant="primary"
|
326
|
-
className="btn-cancel"
|
327
|
-
onClick={cancelButtonProps?.onClick}
|
328
|
-
label={cancelButtonProps?.text}
|
329
|
-
/>
|
330
|
-
<Button
|
331
|
-
variant="secondary"
|
332
|
-
className="btn-proceed"
|
333
|
-
label={proceedButtonProps?.text}
|
334
|
-
onClick={proceedButtonProps?.onClick}
|
335
|
-
/>
|
336
|
-
</footer>
|
337
|
-
)}
|
338
|
-
</div>
|
339
|
-
</div>
|
340
|
-
</>,
|
341
|
-
document.body
|
342
|
-
);
|
343
|
-
}
|
344
|
-
);
|
345
|
-
|
346
|
-
export default MiniModal;
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './MiniModal';
|
@@ -1,125 +0,0 @@
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
2
|
-
interface ModalDimensions {
|
3
|
-
width?: number;
|
4
|
-
height?: number;
|
5
|
-
borderRadius?: number;
|
6
|
-
zIndex?: number;
|
7
|
-
boxShadow?: string;
|
8
|
-
left?: number;
|
9
|
-
top?: number;
|
10
|
-
padding?: number;
|
11
|
-
}
|
12
|
-
export interface MiniEditModalProps {
|
13
|
-
/**
|
14
|
-
* A reference to the button element that triggers the modal.
|
15
|
-
*/
|
16
|
-
anchorRef?: RefObject<HTMLButtonElement> | string;
|
17
|
-
id?: string | number;
|
18
|
-
/**
|
19
|
-
* Optional properties for configuring the modal header.
|
20
|
-
*/
|
21
|
-
headerProps?: ReactNode;
|
22
|
-
/**
|
23
|
-
* The main content to be displayed inside the modal
|
24
|
-
*/
|
25
|
-
childContent: ReactNode;
|
26
|
-
/**
|
27
|
-
* Props for the cancel button inside the modal
|
28
|
-
*/
|
29
|
-
cancelButtonProps?: any;
|
30
|
-
/**
|
31
|
-
* Props for the proceed button inside the modal.
|
32
|
-
*/
|
33
|
-
proceedButtonProps?: any;
|
34
|
-
/**
|
35
|
-
* Optional content for the footer of the modal.
|
36
|
-
*/
|
37
|
-
footerContent?: ReactNode;
|
38
|
-
/**
|
39
|
-
* Determines if the modal should be wrapped inside a container element.
|
40
|
-
*/
|
41
|
-
isWrapped?: boolean;
|
42
|
-
/**
|
43
|
-
* Determines if the modal should have an animation when displayed.
|
44
|
-
*/
|
45
|
-
isAnimated?: boolean;
|
46
|
-
/**
|
47
|
-
* Specifies if the modal should behave as a popover with an arrow.
|
48
|
-
*/
|
49
|
-
isPopOver?: boolean;
|
50
|
-
/**
|
51
|
-
* Specifies if the modal should behave as a popover with an arrow.
|
52
|
-
*/
|
53
|
-
isIconModel?: boolean;
|
54
|
-
/**
|
55
|
-
* Sets the position of the modal relative to its anchor.
|
56
|
-
* bottom: The modal appears below the anchor.
|
57
|
-
* right: The modal appears to the right of the anchor.
|
58
|
-
*/
|
59
|
-
modalPosition?: 'bottom' | 'right' | 'top' | 'left';
|
60
|
-
/**
|
61
|
-
* Adds a top-left aligned arrow to the modal when its position is set to `'right'`.
|
62
|
-
*/
|
63
|
-
leftTopArrow?: boolean;
|
64
|
-
/**
|
65
|
-
* A reference to an additional anchor element for positioning the modal.
|
66
|
-
*/
|
67
|
-
firstAnchorRef?: RefObject<HTMLButtonElement>;
|
68
|
-
/**
|
69
|
-
* A numeric value representing the left position of the anchor element, used to calculate the modal's left position.
|
70
|
-
*/
|
71
|
-
anchorRefLeftNum?: number;
|
72
|
-
/**
|
73
|
-
* Optional properties for configuring the modal's dimensions.
|
74
|
-
* width: The width of the modal.
|
75
|
-
* height: The height of the modal.
|
76
|
-
*/
|
77
|
-
modalProperties?: ModalDimensions;
|
78
|
-
/**distance for the wrapper model from align alignments */
|
79
|
-
anchorLeftDistanceForWrapper?: number;
|
80
|
-
/**extra top space added from anchor */
|
81
|
-
extraTopSpace?: {
|
82
|
-
wrappedModal?: number;
|
83
|
-
normalModal?: number;
|
84
|
-
};
|
85
|
-
/**extra right space added from anchor */
|
86
|
-
extraRightSpace?: {
|
87
|
-
leftTopArrow?: number;
|
88
|
-
middleLeftArrow?: number;
|
89
|
-
};
|
90
|
-
/**extra left space added from anchor */
|
91
|
-
extraLeftSpace?: {
|
92
|
-
normal?: number;
|
93
|
-
rightAlignModal?: number;
|
94
|
-
};
|
95
|
-
wrapperProperties?: {
|
96
|
-
width?: number;
|
97
|
-
zIndex?: number;
|
98
|
-
boxShadow?: string;
|
99
|
-
};
|
100
|
-
arrowZIndex?: number;
|
101
|
-
arrowProperties?: {
|
102
|
-
left?: number;
|
103
|
-
top?: number;
|
104
|
-
size?: number;
|
105
|
-
};
|
106
|
-
overlay?: {
|
107
|
-
isOverlay?: boolean;
|
108
|
-
zIndexOverlay?: number;
|
109
|
-
backgroundColorOverlay?: string;
|
110
|
-
};
|
111
|
-
outSideClick?: any;
|
112
|
-
}
|
113
|
-
export interface Rect {
|
114
|
-
top: number;
|
115
|
-
left: number;
|
116
|
-
bottom: number;
|
117
|
-
right: number;
|
118
|
-
}
|
119
|
-
|
120
|
-
export interface AvailableSpace {
|
121
|
-
spaceTop: number;
|
122
|
-
spaceLeft: number;
|
123
|
-
spaceRight: number;
|
124
|
-
spaceBottom: number;
|
125
|
-
}
|
@@ -1,94 +0,0 @@
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
-
import MobileSkin from './MobileSkin';
|
3
|
-
import React from 'react';
|
4
|
-
|
5
|
-
const meta: Meta<typeof MobileSkin> = {
|
6
|
-
title: 'Components/MobileSkin',
|
7
|
-
component: MobileSkin,
|
8
|
-
parameters: {
|
9
|
-
layout: 'padded',
|
10
|
-
},
|
11
|
-
tags: ['autodocs'],
|
12
|
-
};
|
13
|
-
|
14
|
-
const navBarIcons = [
|
15
|
-
{
|
16
|
-
title: 'Forward',
|
17
|
-
name: 'right_arrow_icon',
|
18
|
-
onClick: () => {},
|
19
|
-
height: 16,
|
20
|
-
width: 16,
|
21
|
-
},
|
22
|
-
{
|
23
|
-
title: 'Backward',
|
24
|
-
name: 'left_arrow_icon',
|
25
|
-
onClick: () => {},
|
26
|
-
height: 16,
|
27
|
-
width: 16,
|
28
|
-
},
|
29
|
-
{
|
30
|
-
title: 'Refresh',
|
31
|
-
name: 'refresh_icon',
|
32
|
-
onClick: () => {},
|
33
|
-
height: 16,
|
34
|
-
width: 16,
|
35
|
-
},
|
36
|
-
{
|
37
|
-
title: 'Capture',
|
38
|
-
name: 'minimize_script',
|
39
|
-
onClick: () => {},
|
40
|
-
height: 16,
|
41
|
-
width: 16,
|
42
|
-
},
|
43
|
-
{
|
44
|
-
title: 'Rotate',
|
45
|
-
name: 'replace_icon',
|
46
|
-
onClick: () => {},
|
47
|
-
height: 16,
|
48
|
-
width: 16,
|
49
|
-
},
|
50
|
-
];
|
51
|
-
const randomImage: string =
|
52
|
-
'https://plus.unsplash.com/premium_photo-1664303228186-a61e7dc91597?q=80&w=1384&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D';
|
53
|
-
|
54
|
-
type Story = StoryObj<typeof MobileSkin>;
|
55
|
-
|
56
|
-
const defaultArgs = {
|
57
|
-
navBarIcons: navBarIcons,
|
58
|
-
mobileWidth: 220,
|
59
|
-
mobileHeight: 448,
|
60
|
-
children: <p>No Data Found</p>,
|
61
|
-
};
|
62
|
-
|
63
|
-
export const PortraitView: Story = {
|
64
|
-
args: {
|
65
|
-
...defaultArgs,
|
66
|
-
orientation: 'portrait',
|
67
|
-
},
|
68
|
-
};
|
69
|
-
|
70
|
-
export const LandscapeView: Story = {
|
71
|
-
args: {
|
72
|
-
...defaultArgs,
|
73
|
-
orientation: 'landscape',
|
74
|
-
},
|
75
|
-
};
|
76
|
-
|
77
|
-
export const PortraitViewWithNavbar: Story = {
|
78
|
-
args: {
|
79
|
-
...defaultArgs,
|
80
|
-
orientation: 'portrait',
|
81
|
-
UtilityBar: true,
|
82
|
-
navBarIcons: navBarIcons,
|
83
|
-
},
|
84
|
-
};
|
85
|
-
|
86
|
-
export const LandscapeViewWithNavbar: Story = {
|
87
|
-
args: {
|
88
|
-
...defaultArgs,
|
89
|
-
orientation: 'landscape',
|
90
|
-
UtilityBar: true,
|
91
|
-
navBarIcons: navBarIcons,
|
92
|
-
},
|
93
|
-
};
|
94
|
-
export default meta;
|
@@ -1,74 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './MobileSkin.scss';
|
3
|
-
import Icon from '../Icon';
|
4
|
-
import Tooltip from '../Tooltip';
|
5
|
-
import { MobileSkinProps } from './MobileSkinInterface';
|
6
|
-
|
7
|
-
const MobileSkin: React.FC<MobileSkinProps> = ({
|
8
|
-
children,
|
9
|
-
orientation = '',
|
10
|
-
navBarIcons,
|
11
|
-
mobileHeight = 448,
|
12
|
-
mobileWidth = 220,
|
13
|
-
UtilityBar,
|
14
|
-
}) => {
|
15
|
-
const isPortrait = orientation === 'portrait';
|
16
|
-
const containerHeight = isPortrait ? mobileHeight : mobileWidth;
|
17
|
-
const containerWidth = isPortrait ? mobileWidth : mobileHeight;
|
18
|
-
|
19
|
-
return (
|
20
|
-
<div
|
21
|
-
className={`ff-mobileskin-wrapper ${
|
22
|
-
isPortrait ? 'portrait' : 'landscape'
|
23
|
-
}`}
|
24
|
-
>
|
25
|
-
<div
|
26
|
-
className="ff-mobileskin-container"
|
27
|
-
style={{
|
28
|
-
height: containerHeight + 16,
|
29
|
-
width: containerWidth + 16,
|
30
|
-
}}
|
31
|
-
>
|
32
|
-
<div
|
33
|
-
className="ff-mobile-container"
|
34
|
-
style={{
|
35
|
-
width: containerWidth,
|
36
|
-
height: containerHeight,
|
37
|
-
}}
|
38
|
-
>
|
39
|
-
<div className="ff-mobile-image-container">
|
40
|
-
{React.isValidElement(children) ? (
|
41
|
-
children
|
42
|
-
) : (
|
43
|
-
<img
|
44
|
-
src={children as string}
|
45
|
-
alt="Mobile content"
|
46
|
-
style={{
|
47
|
-
width: isPortrait ? '100%' : `${mobileWidth * 2.1}px`,
|
48
|
-
height: isPortrait ? '100%' : `${mobileHeight * 0.5}px`,
|
49
|
-
}}
|
50
|
-
/>
|
51
|
-
)}
|
52
|
-
</div>
|
53
|
-
</div>
|
54
|
-
</div>
|
55
|
-
{UtilityBar && (
|
56
|
-
<div className="ff-nav-bar">
|
57
|
-
{navBarIcons?.map((icon, index) => (
|
58
|
-
<div
|
59
|
-
key={index}
|
60
|
-
className={`ff-nav-bar-icon ${icon?.className || ''} ${
|
61
|
-
index === navBarIcons.length - 1 ? 'last-icon' : ''
|
62
|
-
}`}
|
63
|
-
onClick={icon.onClick}
|
64
|
-
>
|
65
|
-
<Tooltip title={icon?.title} children={<Icon {...icon} />} />
|
66
|
-
</div>
|
67
|
-
))}
|
68
|
-
</div>
|
69
|
-
)}
|
70
|
-
</div>
|
71
|
-
);
|
72
|
-
};
|
73
|
-
|
74
|
-
export default MobileSkin;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
interface NavBarIcon {
|
2
|
-
name: string;
|
3
|
-
[key: string]: any;
|
4
|
-
}
|
5
|
-
|
6
|
-
export interface MobileSkinProps {
|
7
|
-
children: React.ReactNode | string;
|
8
|
-
orientation?: 'portrait' | 'landscape';
|
9
|
-
UtilityBar?: boolean;
|
10
|
-
navBarIcons?: NavBarIcon[];
|
11
|
-
mobileHeight?: number;
|
12
|
-
mobileWidth?: number;
|
13
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export { default } from './MobileSkin';
|
@@ -1,33 +0,0 @@
|
|
1
|
-
export interface iconDetails {
|
2
|
-
/**
|
3
|
-
* details of each icon in which name must be there
|
4
|
-
*/
|
5
|
-
name: string;
|
6
|
-
[key: string]: any;
|
7
|
-
}
|
8
|
-
export interface MobileSkinProps {
|
9
|
-
/**
|
10
|
-
* The content inside the mobile skin component
|
11
|
-
*/
|
12
|
-
children: React.ReactNode | string;
|
13
|
-
/**
|
14
|
-
* Portrait or landScape View of the Mobile
|
15
|
-
*/
|
16
|
-
orientation: 'portrait' | 'landscape';
|
17
|
-
/**
|
18
|
-
* height of the MobileSkin
|
19
|
-
*/
|
20
|
-
mobileHeight?: number;
|
21
|
-
/**
|
22
|
-
* width of the MobileSkin
|
23
|
-
*/
|
24
|
-
mobileWidth?: number;
|
25
|
-
/**
|
26
|
-
* if you need the lower navbar below the mobileSkin you pass this prop
|
27
|
-
*/
|
28
|
-
UtilityBar?: boolean;
|
29
|
-
/**
|
30
|
-
* takes the icons details like icon name , title, onClick event, height , width, etc but name is must
|
31
|
-
*/
|
32
|
-
navbarIcons?: Array<iconDetails>;
|
33
|
-
}
|