impact-ui 3.7.25 → 4.0.0-alpha.10
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/MIGRATION_GUIDE.md +328 -0
- package/README.md +154 -15
- package/bin/migrate-image-paths.cjs +127 -0
- package/bin/migrate.js +293 -0
- package/codemods/component-map.js +153 -0
- package/codemods/image-paths-transform.js +69 -0
- package/codemods/transform.js +136 -0
- package/dist/components/Accordion/index.js +2 -1
- package/dist/components/AccordionModern/index.js +2 -1
- package/dist/components/Alert/index.js +2 -1
- package/dist/components/Avatar/index.js +2 -1
- package/dist/components/Badge/filled/filledIconLabelBadges/index.js +2 -1
- package/dist/components/Badge/filled/filledOnlyIconBadges/index.js +2 -1
- package/dist/components/Badge/filled/filledOnlyLabelBadges/index.js +2 -1
- package/dist/components/Badge/index.js +3 -2
- package/dist/components/Badge/stroke/strokeIconLabelBadges/index.js +2 -1
- package/dist/components/Badge/stroke/strokeOnlyIconBadges/index.js +2 -1
- package/dist/components/Badge/stroke/strokeOnlyLabelBadges/index.js +2 -1
- package/dist/components/Badge/subtle/subtleIOnlyIconBadges/index.js +2 -1
- package/dist/components/Badge/subtle/subtleIconLabelBadges/index.js +2 -1
- package/dist/components/Badge/subtle/subtleOnlyLabelBadges/index.js +2 -1
- package/dist/components/BottomSheet/index.js +2 -1
- package/dist/components/Breadcrumbs/index.js +2 -1
- package/dist/components/Button/index.js +2 -1
- package/dist/components/ButtonGroup/index.js +2 -1
- package/dist/components/Card/index.js +2 -1
- package/dist/components/Chart/index.js +2 -1
- package/dist/components/Chatbot/index.js +2 -1
- package/dist/components/Checkbox/index.js +2 -1
- package/dist/components/Chips/index.js +2 -1
- package/dist/components/CreateItemFlow/index.js +2 -1
- package/dist/components/DatePicker/datePickerDropdown.js +2 -1
- package/dist/components/DatePicker/index.js +3 -2
- package/dist/components/DateRangePicker/dateRangePickerDropdown.js +2 -1
- package/dist/components/DateRangePicker/index.js +3 -2
- package/dist/components/DynamicLayout/index.js +2 -1
- package/dist/components/EmptyState/EmptyStateImage.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyStateImage.js +3 -2
- package/dist/components/EmptyState/index.js +2 -1
- package/dist/components/FileUpload/index.js +2 -1
- package/dist/components/FilterPanel/index.js +2 -1
- package/dist/components/FiltersStrip/index.js +2 -1
- package/dist/components/Header/index.js +2 -1
- package/dist/components/HomePage/index.js +2 -1
- package/dist/components/Input/index.js +2 -1
- package/dist/components/Loader/index.js +2 -1
- package/dist/components/Menu/IconMenuItem.js +2 -1
- package/dist/components/Menu/MenuHeaderInfo.js +2 -1
- package/dist/components/Menu/NestedMenuItem.js +2 -1
- package/dist/components/Menu/index.js +2 -1
- package/dist/components/Menu/nestedMenuItemsFromObject.js +2 -1
- package/dist/components/Modal/index.js +2 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +2 -1
- package/dist/components/Notification/index.js +2 -1
- package/dist/components/Panel/index.js +2 -1
- package/dist/components/Popover/index.js +2 -1
- package/dist/components/ProgressBar/index.js +2 -1
- package/dist/components/Prompt/index.js +2 -1
- package/dist/components/RadioButtonGroup/index.js +2 -1
- package/dist/components/Select/index.js +2 -1
- package/dist/components/Sidebar/index.js +2 -1
- package/dist/components/Slider/index.js +2 -1
- package/dist/components/Stepper/index.js +2 -1
- package/dist/components/Switch/index.js +2 -1
- package/dist/components/Table/TableImpl.js +4 -3
- package/dist/components/TableChat/EmptyContainer.js +2 -1
- package/dist/components/TableChat/TableChatSidePanel.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.js +2 -1
- package/dist/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.js +2 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +2 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +2 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +2 -1
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +2 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +2 -1
- package/dist/components/TableChat/components/TextEditor/MentionList.js +2 -1
- package/dist/components/Tabs/index.js +2 -1
- package/dist/components/Tag/index.js +2 -1
- package/dist/components/TagGroup/index.js +2 -1
- package/dist/components/TextArea/index.js +2 -1
- package/dist/components/Toast/index.js +2 -1
- package/dist/components/Tooltip/index.js +2 -1
- package/dist/components/common/HelperText/index.js +2 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -1
- package/dist/mcp-component-registry.json +1 -1
- package/dist/styles/entry.d.ts +2 -0
- package/dist/styles/entry.d.ts.map +1 -0
- package/dist/styles/entry.js +1 -0
- package/dist/styles/style.css +1 -1
- package/eslint-plugin/index.js +91 -0
- package/eslint-plugin/rules/no-barrel-import.js +224 -0
- package/package.json +153 -89
- package/dist/0db32db10ae1525f.svg +0 -9
- package/dist/2bc76319b1fa572e.svg +0 -9
- package/dist/39d49e4daed1a992.svg +0 -9
- package/dist/44beedf64dc29d19.svg +0 -9
- package/dist/49a4f914058314f1.svg +0 -9
- package/dist/6fc8a59d621a04a1.svg +0 -13
- package/dist/78f845dcfc981491.svg +0 -9
- package/dist/b31c0c2a19c1c19a.svg +0 -9
- package/dist/index.js +0 -308
- package/dist/index.js.map +0 -1
- package/src/components/Accordion/Accordion.styles.scss +0 -118
- package/src/components/Accordion/index.js +0 -104
- package/src/components/AccordionModern/AccordionModern.styles.scss +0 -121
- package/src/components/AccordionModern/SortableAccordionComp.js +0 -156
- package/src/components/AccordionModern/index.js +0 -103
- package/src/components/Alert/Alert.styles.scss +0 -131
- package/src/components/Alert/index.js +0 -71
- package/src/components/Avatar/Avatar.styles.scss +0 -25
- package/src/components/Avatar/index.js +0 -58
- package/src/components/Badge/Badges.style.scss +0 -55
- package/src/components/Badge/filled/filledIconLabelBadges/filledIconLabelBadges.styles.scss +0 -32
- package/src/components/Badge/filled/filledIconLabelBadges/index.js +0 -38
- package/src/components/Badge/filled/filledOnlyIconBadges/filledOnlyIconBadges.styles.scss +0 -26
- package/src/components/Badge/filled/filledOnlyIconBadges/index.js +0 -31
- package/src/components/Badge/filled/filledOnlyLabelBadges/filledOnlyLabelBadges.styles.scss +0 -66
- package/src/components/Badge/filled/filledOnlyLabelBadges/index.js +0 -31
- package/src/components/Badge/filled/index.js +0 -30
- package/src/components/Badge/index.js +0 -53
- package/src/components/Badge/stroke/index.js +0 -43
- package/src/components/Badge/stroke/strokeIconLabelBadges/index.js +0 -38
- package/src/components/Badge/stroke/strokeIconLabelBadges/strokeIconLabelBadges.styles.scss +0 -33
- package/src/components/Badge/stroke/strokeOnlyIconBadges/index.js +0 -31
- package/src/components/Badge/stroke/strokeOnlyIconBadges/strokeOnlyIconBadges.styles.scss +0 -27
- package/src/components/Badge/stroke/strokeOnlyLabelBadges/index.js +0 -31
- package/src/components/Badge/stroke/strokeOnlyLabelBadges/strokeOnlyLabelBadges.styles.scss +0 -89
- package/src/components/Badge/styles.css +0 -52
- package/src/components/Badge/subtle/index.js +0 -41
- package/src/components/Badge/subtle/subtleIOnlyIconBadges/index.js +0 -31
- package/src/components/Badge/subtle/subtleIOnlyIconBadges/subtleIOnlyIconBadges.scss +0 -26
- package/src/components/Badge/subtle/subtleIconLabelBadges/index.js +0 -38
- package/src/components/Badge/subtle/subtleIconLabelBadges/subtleIconLabelBadges.scss +0 -56
- package/src/components/Badge/subtle/subtleOnlyLabelBadges/index.js +0 -31
- package/src/components/Badge/subtle/subtleOnlyLabelBadges/subtleOnlyLabelBadges.scss +0 -70
- package/src/components/BottomSheet/BottomSheet.styles.scss +0 -46
- package/src/components/BottomSheet/index.js +0 -60
- package/src/components/Breadcrumbs/Breadcrumbs.styles.scss +0 -65
- package/src/components/Breadcrumbs/index.js +0 -121
- package/src/components/Button/Button.styles.scss +0 -345
- package/src/components/Button/index.js +0 -171
- package/src/components/ButtonGroup/ButtonGroup.styles.scss +0 -125
- package/src/components/ButtonGroup/index.js +0 -84
- package/src/components/Card/Card.styles.scss +0 -33
- package/src/components/Card/index.js +0 -21
- package/src/components/Chart/Chart.style.scss +0 -142
- package/src/components/Chart/index.js +0 -752
- package/src/components/ChatBot/bookMarkPanel.js +0 -74
- package/src/components/ChatBot/chatBot.style.scss +0 -1295
- package/src/components/ChatBot/chatBotFooter.js +0 -14
- package/src/components/ChatBot/chatBotLandingScreen.js +0 -26
- package/src/components/ChatBot/chatInput.js +0 -206
- package/src/components/ChatBot/chatbotModuleMenu.js +0 -278
- package/src/components/ChatBot/constant.js +0 -32
- package/src/components/ChatBot/conversationScreen.js +0 -281
- package/src/components/ChatBot/customScreen.js +0 -69
- package/src/components/ChatBot/historyPanel.js +0 -579
- package/src/components/ChatBot/index.js +0 -473
- package/src/components/ChatBot/newChatComponent.js +0 -105
- package/src/components/ChatBot/utils.js +0 -27
- package/src/components/Checkbox/Checkbox.styles.scss +0 -232
- package/src/components/Checkbox/dashed/index.js +0 -34
- package/src/components/Checkbox/default/index.js +0 -70
- package/src/components/Checkbox/index.js +0 -50
- package/src/components/Checkbox/withDropDown/index.js +0 -96
- package/src/components/Checkbox/withoutFormLabel/index.js +0 -46
- package/src/components/Chips/Chip.style.scss +0 -134
- package/src/components/Chips/index.js +0 -34
- package/src/components/CreateItemFlow/CreateItemFlow.styles.scss +0 -37
- package/src/components/CreateItemFlow/index.js +0 -145
- package/src/components/DatePicker/DatePicker.styles.scss +0 -519
- package/src/components/DatePicker/datePickerDropdown.js +0 -282
- package/src/components/DatePicker/datePickerFooter.js +0 -76
- package/src/components/DatePicker/datePickerInput.js +0 -333
- package/src/components/DatePicker/index.js +0 -288
- package/src/components/DatePicker/showMonthYearSelect.js +0 -119
- package/src/components/DateRangePicker/DateRangePicker.styles.scss +0 -635
- package/src/components/DateRangePicker/dateRangePickerCustom.js +0 -22
- package/src/components/DateRangePicker/dateRangePickerDropdown.js +0 -320
- package/src/components/DateRangePicker/dateRangePickerFooter.js +0 -50
- package/src/components/DateRangePicker/dateRangePickerInput.js +0 -544
- package/src/components/DateRangePicker/index.js +0 -393
- package/src/components/DateRangePicker/showMonthYearSelect.js +0 -103
- package/src/components/DateRangePicker/utils.js +0 -71
- package/src/components/DynamicLayout/DynamicLayout.styles.scss +0 -153
- package/src/components/DynamicLayout/index.js +0 -73
- package/src/components/EmptyState/EmptyState.styles.scss +0 -88
- package/src/components/EmptyState/EmptyStateImageComponent.jsx +0 -36
- package/src/components/EmptyState/index.js +0 -54
- package/src/components/FileUpload/FileUpload.styles.scss +0 -449
- package/src/components/FileUpload/index.js +0 -641
- package/src/components/FilterPanel/FilterPanel.styles.scss +0 -241
- package/src/components/FilterPanel/FilterPanelHeader.js +0 -15
- package/src/components/FilterPanel/PanelFooter.js +0 -65
- package/src/components/FilterPanel/PanelSidebar.js +0 -85
- package/src/components/FilterPanel/index.js +0 -147
- package/src/components/FiltersStrip/FiltersStrip.styles.scss +0 -343
- package/src/components/FiltersStrip/Slider/FilterSlider.styles.scss +0 -85
- package/src/components/FiltersStrip/Slider/Portal.js +0 -59
- package/src/components/FiltersStrip/Slider/index.js +0 -233
- package/src/components/FiltersStrip/appliedFilter.js +0 -180
- package/src/components/FiltersStrip/filterDropDown.js +0 -96
- package/src/components/FiltersStrip/index.js +0 -127
- package/src/components/FiltersStrip/mockData.js +0 -227
- package/src/components/Header/Header.styles.scss +0 -223
- package/src/components/Header/index.js +0 -156
- package/src/components/HomePage/HomePage.styles.scss +0 -1638
- package/src/components/HomePage/constant.js +0 -331
- package/src/components/HomePage/index.js +0 -675
- package/src/components/Input/Input.styles.scss +0 -318
- package/src/components/Input/helperText.js +0 -19
- package/src/components/Input/index.js +0 -60
- package/src/components/Input/inputWithIcon.js +0 -134
- package/src/components/Input/vanilaInput.js +0 -68
- package/src/components/Loader/Loader.styles.scss +0 -90
- package/src/components/Loader/index.js +0 -69
- package/src/components/Menu/IconMenuItem.js +0 -100
- package/src/components/Menu/Menu.styles.scss +0 -190
- package/src/components/Menu/MenuHeader.jsx +0 -84
- package/src/components/Menu/MenuHeaderInfo.jsx +0 -319
- package/src/components/Menu/MenuHeaderInfo.styles.scss +0 -123
- package/src/components/Menu/NestedMenuItem.js +0 -189
- package/src/components/Menu/index.js +0 -254
- package/src/components/Menu/nestedMenuItemsFromObject.js +0 -100
- package/src/components/Modal/Modal.styles.scss +0 -129
- package/src/components/Modal/index.js +0 -141
- package/src/components/MonthPicker/MonthPicker.styles.scss +0 -255
- package/src/components/MonthPicker/constant.js +0 -1
- package/src/components/MonthPicker/index.js +0 -373
- package/src/components/MonthRangePicker/MonthRangePicker.styles.scss +0 -383
- package/src/components/MonthRangePicker/constant.js +0 -1
- package/src/components/MonthRangePicker/index.js +0 -574
- package/src/components/Notification/Notification.styles.scss +0 -594
- package/src/components/Notification/NotificationBody/NotificationInfoList/chipsLists.js +0 -144
- package/src/components/Notification/NotificationBody/NotificationInfoList/index.js +0 -128
- package/src/components/Notification/NotificationBody/NotificationInfoList/notificationList.js +0 -165
- package/src/components/Notification/NotificationBody/NotificationPanels/chipsLists.js +0 -85
- package/src/components/Notification/NotificationBody/NotificationPanels/index.js +0 -259
- package/src/components/Notification/NotificationBody/NotificationPanels/notificationList.js +0 -637
- package/src/components/Notification/NotificationBody/index.js +0 -117
- package/src/components/Notification/index.js +0 -128
- package/src/components/Notification/mockData.js +0 -389
- package/src/components/Notification/notificationFooter.js +0 -31
- package/src/components/Notification/notificationHeader.js +0 -28
- package/src/components/Panel/Panel.styles.scss +0 -71
- package/src/components/Panel/index.js +0 -144
- package/src/components/Popover/Popover.styles.scss +0 -52
- package/src/components/Popover/index.js +0 -71
- package/src/components/Portal/index.js +0 -31
- package/src/components/ProgressBar/ProgressBar.styles.scss +0 -62
- package/src/components/ProgressBar/index.js +0 -40
- package/src/components/Prompt/Prompt.styles.scss +0 -107
- package/src/components/Prompt/index.js +0 -107
- package/src/components/RadioButtonGroup/RadioButtonGroup.styles.scss +0 -136
- package/src/components/RadioButtonGroup/index.js +0 -107
- package/src/components/Select/SearchFilter.js +0 -72
- package/src/components/Select/Select.styles.scss +0 -748
- package/src/components/Select/customGroupHeading.js +0 -24
- package/src/components/Select/dropdown.js +0 -65
- package/src/components/Select/hooks/index.js +0 -2
- package/src/components/Select/hooks/useClickOutside.js +0 -61
- package/src/components/Select/hooks/useMenuPosition.js +0 -288
- package/src/components/Select/index.js +0 -1307
- package/src/components/Select/menuList.js +0 -119
- package/src/components/Select/optionList.js +0 -215
- package/src/components/Select/selected-option-tags.js +0 -99
- package/src/components/Select/utils.js +0 -232
- package/src/components/Sidebar/Menus/childMenu.js +0 -88
- package/src/components/Sidebar/Menus/index.js +0 -130
- package/src/components/Sidebar/Menus/parentMenu.js +0 -173
- package/src/components/Sidebar/Sidebar.styles.scss +0 -411
- package/src/components/Sidebar/actions.js +0 -31
- package/src/components/Sidebar/index.js +0 -84
- package/src/components/Sidebar/mock.js +0 -202
- package/src/components/Slider/Sliders.styles.scss +0 -260
- package/src/components/Slider/index.js +0 -314
- package/src/components/Stepper/Stepper.styles.scss +0 -355
- package/src/components/Stepper/index.js +0 -101
- package/src/components/Switch/Switch.styles.scss +0 -96
- package/src/components/Switch/index.js +0 -59
- package/src/components/Table/AdvanceSearchModalItem.js +0 -392
- package/src/components/Table/AdvanceSortModal.js +0 -332
- package/src/components/Table/AgGridHeader.js +0 -1009
- package/src/components/Table/CommentsPortal.js +0 -428
- package/src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +0 -323
- package/src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +0 -476
- package/src/components/Table/NoComments.js +0 -295
- package/src/components/Table/Table.styles.scss +0 -3859
- package/src/components/Table/actionBar.js +0 -43
- package/src/components/Table/advanceSearchModal.js +0 -797
- package/src/components/Table/commentPanel.js +0 -421
- package/src/components/Table/filterUtils.js +0 -850
- package/src/components/Table/index.js +0 -2175
- package/src/components/Table/mockData.js +0 -1344
- package/src/components/Table/tableFunctions.js +0 -1676
- package/src/components/Table/tableHeader.js +0 -476
- package/src/components/Table/tableIcons.js +0 -61
- package/src/components/Table/tableMoreOptions.js +0 -293
- package/src/components/Table/tablePagination.js +0 -63
- package/src/components/Table/tableSettings.js +0 -287
- package/src/components/Table/withCommentIcon.js +0 -107
- package/src/components/TableChat/EmptyContainer.jsx +0 -13
- package/src/components/TableChat/README.md +0 -588
- package/src/components/TableChat/TableChatSidePanel.jsx +0 -832
- package/src/components/TableChat/TableChatSidePanel.styles.scss +0 -57
- package/src/components/TableChat/components/ChatMessageSkeleton/ChatFooterSkeleton.jsx +0 -43
- package/src/components/TableChat/components/ChatMessageSkeleton/ChatHeaderSkeleton.jsx +0 -55
- package/src/components/TableChat/components/ChatMessageSkeleton/ChatMessageListSkeleton.jsx +0 -94
- package/src/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.jsx +0 -22
- package/src/components/TableChat/components/ChatMessageSkeleton/ChatSkeleton.scss +0 -179
- package/src/components/TableChat/components/SkeletonList.jsx +0 -12
- package/src/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.jsx +0 -171
- package/src/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.styles.scss +0 -37
- package/src/components/TableChat/components/TableChatLeftSection/ChannelCheckbox/ChannelCheckbox.jsx +0 -28
- package/src/components/TableChat/components/TableChatLeftSection/ChatChannelItem.jsx +0 -116
- package/src/components/TableChat/components/TableChatLeftSection/ChatChannelList.jsx +0 -89
- package/src/components/TableChat/components/TableChatLeftSection/ChatHeaderButton/ChatHeaderButton.jsx +0 -27
- package/src/components/TableChat/components/TableChatLeftSection/ChatHeaderNavigation.jsx +0 -191
- package/src/components/TableChat/components/TableChatLeftSection/ChatIconButton/ChatIconButton.jsx +0 -23
- package/src/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.jsx +0 -117
- package/src/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.styles.scss +0 -469
- package/src/components/TableChat/components/TableChatLeftSection/UnreadBadge/UnreadBadge.jsx +0 -16
- package/src/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.jsx +0 -119
- package/src/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.styles.scss +0 -87
- package/src/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.jsx +0 -216
- package/src/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.styles.scss +0 -291
- package/src/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.jsx +0 -19
- package/src/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/DeletedMessage.styles.scss +0 -55
- package/src/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.jsx +0 -61
- package/src/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.styles.scss +0 -13
- package/src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.jsx +0 -432
- package/src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.jsx +0 -365
- package/src/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.jsx +0 -42
- package/src/components/TableChat/components/TableChatRightSection/ChatHeader/chatHeader.styles.scss +0 -323
- package/src/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.jsx +0 -793
- package/src/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.styles.scss +0 -394
- package/src/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.jsx +0 -61
- package/src/components/TableChat/components/TableChatRightSection/ChatMessageActions/ChatMessageActions.styles.scss +0 -28
- package/src/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.jsx +0 -11
- package/src/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.styles.scss +0 -3
- package/src/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.jsx +0 -220
- package/src/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.styles.scss +0 -128
- package/src/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.jsx +0 -246
- package/src/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.styles.scss +0 -210
- package/src/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.jsx +0 -52
- package/src/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.styles.scss +0 -34
- package/src/components/TableChat/components/TableChatRightSection/EmojiPicker/EmojiPicker.jsx +0 -31
- package/src/components/TableChat/components/TableChatRightSection/FileUploader/FileUploader.jsx +0 -170
- package/src/components/TableChat/components/TableChatRightSection/ImageUploader/ImageUploader.jsx +0 -165
- package/src/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChat.styles.scss +0 -587
- package/src/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.jsx +0 -244
- package/src/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.jsx +0 -29
- package/src/components/TableChat/components/TableChatRightSection/ReplyBadge/ReplyBadge.styles.scss +0 -47
- package/src/components/TableChat/components/TableChatRightSection/TableChatRightSection.jsx +0 -1340
- package/src/components/TableChat/components/TableChatRightSection/TableChatRightSection.styles.scss +0 -147
- package/src/components/TableChat/components/TextEditor/EditorToolbar.jsx +0 -209
- package/src/components/TableChat/components/TextEditor/EditorToolbar.styles.scss +0 -61
- package/src/components/TableChat/components/TextEditor/Mention.jsx +0 -234
- package/src/components/TableChat/components/TextEditor/MentionList.jsx +0 -118
- package/src/components/TableChat/components/TextEditor/MentionList.scss +0 -146
- package/src/components/TableChat/components/TextEditor/styles.scss +0 -278
- package/src/components/TableChat/components/TextEditor/suggestion.js +0 -124
- package/src/components/TableChat/components/chatConfig.js +0 -64
- package/src/components/TableChat/hooks/useInfiniteScroll.js +0 -256
- package/src/components/TableOld/AgGridHeader.js +0 -545
- package/src/components/TableOld/Table.styles.scss +0 -2192
- package/src/components/TableOld/actionBar.js +0 -43
- package/src/components/TableOld/index.js +0 -598
- package/src/components/TableOld/mockData.js +0 -1344
- package/src/components/TableOld/tableFunctions.js +0 -1734
- package/src/components/TableOld/tableHeader.js +0 -251
- package/src/components/TableOld/tableIcons.js +0 -61
- package/src/components/TableOld/tablePagination.js +0 -64
- package/src/components/TableOld/tableSettings.js +0 -166
- package/src/components/Tabs/Tabs.styles.scss +0 -120
- package/src/components/Tabs/index.js +0 -91
- package/src/components/Tabs/tabPanel.js +0 -38
- package/src/components/Tag/Tags.styles.scss +0 -71
- package/src/components/Tag/filled.js +0 -48
- package/src/components/Tag/index.js +0 -54
- package/src/components/Tag/solid.js +0 -47
- package/src/components/Tag/stroke.js +0 -47
- package/src/components/Tag/utils.js +0 -12
- package/src/components/TagGroup/TagGroup.styles.scss +0 -7
- package/src/components/TagGroup/index.js +0 -6
- package/src/components/TextArea/TextArea.styles.scss +0 -158
- package/src/components/TextArea/index.js +0 -121
- package/src/components/Toast/Toast.styles.scss +0 -66
- package/src/components/Toast/index.js +0 -35
- package/src/components/Tooltip/Tooltips.styles.scss +0 -111
- package/src/components/Tooltip/index.js +0 -68
- package/src/components/common/HelperText/HelperText.styles.scss +0 -18
- package/src/components/common/HelperText/index.js +0 -44
- package/src/components/common/MentionEditor/MentionEditor.styles.scss +0 -301
- package/src/components/common/MentionEditor/MentionList/MentionList.styles.scss +0 -146
- package/src/components/common/MentionEditor/MentionList/index.js +0 -130
- package/src/components/common/MentionEditor/index.js +0 -246
- package/src/components/common/MentionEditor/suggestion.js +0 -124
- package/src/components/index.js +0 -53
- package/src/stories/Accordion.stories.js +0 -151
- package/src/stories/AccordionModern.stories.js +0 -263
- package/src/stories/Alert.stories.js +0 -103
- package/src/stories/Avatar.stories.js +0 -79
- package/src/stories/Badge.stories.js +0 -112
- package/src/stories/BottomSheet.stories.js +0 -224
- package/src/stories/Breadcrumbs.stories.js +0 -143
- package/src/stories/Button.stories.js +0 -190
- package/src/stories/ButtonGroup.stories.js +0 -123
- package/src/stories/Card.stories.js +0 -73
- package/src/stories/Changelog.mdx +0 -1006
- package/src/stories/Chart.stories.js +0 -2017
- package/src/stories/ChatBot.stories.js +0 -668
- package/src/stories/Checkbox.stories.js +0 -209
- package/src/stories/Chips.stories.js +0 -106
- package/src/stories/CreateItemFlow.stories.js +0 -255
- package/src/stories/DatePicker.stories.js +0 -311
- package/src/stories/DateRangePicker.stories.js +0 -364
- package/src/stories/EmptyState.stories.js +0 -110
- package/src/stories/FileUpload.stories.js +0 -169
- package/src/stories/FilterPanel.stories.js +0 -309
- package/src/stories/FiltersStrip.stories.js +0 -244
- package/src/stories/GettingStarted.mdx +0 -153
- package/src/stories/Header.stories.js +0 -185
- package/src/stories/HomePage.stories.js +0 -201
- package/src/stories/Input.stories.js +0 -165
- package/src/stories/Loader.stories.js +0 -33
- package/src/stories/Menu.stories.js +0 -309
- package/src/stories/Modal.stories.js +0 -185
- package/src/stories/MonthPicker.stories.js +0 -313
- package/src/stories/MonthRangePicker.stories.js +0 -255
- package/src/stories/Notification.stories.js +0 -500
- package/src/stories/Panel.stories.js +0 -179
- package/src/stories/Popover.stories.js +0 -125
- package/src/stories/ProgressBar.stories.js +0 -93
- package/src/stories/Prompt.stories.js +0 -120
- package/src/stories/RadioButtonGroup.stories.js +0 -83
- package/src/stories/Select.stories.js +0 -753
- package/src/stories/Sidebar.stories.js +0 -177
- package/src/stories/Slider.stories.js +0 -226
- package/src/stories/Stepper.stories.js +0 -158
- package/src/stories/Switch.stories.js +0 -72
- package/src/stories/Table.stories.js +0 -4323
- package/src/stories/TableChat.mdx +0 -992
- package/src/stories/TableChat.stories.js +0 -1712
- package/src/stories/TableOld.stories.js +0 -954
- package/src/stories/Tabs.stories.js +0 -253
- package/src/stories/Tag.stories.js +0 -92
- package/src/stories/TagGroup.stories.js +0 -39
- package/src/stories/TextArea.stories.js +0 -148
- package/src/stories/Toast.stories.js +0 -113
- package/src/stories/Tooltip.stories.js +0 -86
- package/src/stories/storybookLinks.mdx +0 -20
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
@import "../../styles/index.scss";
|
|
2
|
-
|
|
3
|
-
.impact_drawer_container_medium {
|
|
4
|
-
width: 375px;
|
|
5
|
-
height: 100%;
|
|
6
|
-
}
|
|
7
|
-
.impact_drawer_container_large {
|
|
8
|
-
width: 526px;
|
|
9
|
-
height: 100%;
|
|
10
|
-
}
|
|
11
|
-
.MuiBox-root {
|
|
12
|
-
width: auto;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.impact_drawer_container {
|
|
16
|
-
.impact_drawer_header {
|
|
17
|
-
position: sticky;
|
|
18
|
-
top: 0;
|
|
19
|
-
z-index: 1;
|
|
20
|
-
background: $lightBlueColor;
|
|
21
|
-
height: 40px;
|
|
22
|
-
display: flex;
|
|
23
|
-
justify-content: space-between;
|
|
24
|
-
padding: 0 16px;
|
|
25
|
-
align-items: center;
|
|
26
|
-
.impact_drawer_heading {
|
|
27
|
-
font-size: 16px;
|
|
28
|
-
font-weight: $BoldFontWeight;
|
|
29
|
-
}
|
|
30
|
-
.close_icon {
|
|
31
|
-
background: url("../../assets/close.svg") no-repeat;
|
|
32
|
-
background-size: 16px;
|
|
33
|
-
background-position: center;
|
|
34
|
-
width: 16px;
|
|
35
|
-
height: 16px;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.impact_drawer_body {
|
|
41
|
-
z-index: 0;
|
|
42
|
-
position: relative;
|
|
43
|
-
padding: 16px;
|
|
44
|
-
overflow-y: auto;
|
|
45
|
-
height: calc(100% - 100px);
|
|
46
|
-
width: 100%;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.impact_drawer_footer {
|
|
50
|
-
position: absolute;
|
|
51
|
-
bottom: 0;
|
|
52
|
-
background: white;
|
|
53
|
-
z-index: 1;
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
padding: 0 16px;
|
|
57
|
-
height: 56px;
|
|
58
|
-
border-top: 1px solid #d9dde7;
|
|
59
|
-
left: 0;
|
|
60
|
-
right: 0;
|
|
61
|
-
.ia-styles.ia-btn.ia-btn-link {
|
|
62
|
-
text-decoration: none;
|
|
63
|
-
}
|
|
64
|
-
.impact_drawer_footer_right_container {
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
gap: 8px;
|
|
68
|
-
margin-left: auto;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Box from "@mui/material/Box";
|
|
3
|
-
import Drawer from "@mui/material/Drawer";
|
|
4
|
-
import { Button } from "../Button";
|
|
5
|
-
import List from "@mui/material/List";
|
|
6
|
-
import Divider from "@mui/material/Divider";
|
|
7
|
-
import ListItem from "@mui/material/ListItem";
|
|
8
|
-
import ListItemButton from "@mui/material/ListItemButton";
|
|
9
|
-
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
10
|
-
import ListItemText from "@mui/material/ListItemText";
|
|
11
|
-
import InboxIcon from "@mui/icons-material/MoveToInbox";
|
|
12
|
-
import MailIcon from "@mui/icons-material/Mail";
|
|
13
|
-
import "./Panel.styles.scss";
|
|
14
|
-
|
|
15
|
-
export function Panel({
|
|
16
|
-
className,
|
|
17
|
-
title,
|
|
18
|
-
size,
|
|
19
|
-
anchor = "right",
|
|
20
|
-
open,
|
|
21
|
-
setIsOpen,
|
|
22
|
-
children,
|
|
23
|
-
onClose,
|
|
24
|
-
primaryButtonLabel,
|
|
25
|
-
onPrimaryButtonClick,
|
|
26
|
-
secondaryButtonLabel,
|
|
27
|
-
onSecondaryButtonClick,
|
|
28
|
-
primaryButtonProps,
|
|
29
|
-
secondaryButtonProps,
|
|
30
|
-
width,
|
|
31
|
-
zIndex = 1500,
|
|
32
|
-
customFooterContent,
|
|
33
|
-
...args
|
|
34
|
-
}) {
|
|
35
|
-
const toggleDrawer = (anchor, isOpen) => (event) => {
|
|
36
|
-
if (
|
|
37
|
-
event.type === "keydown" &&
|
|
38
|
-
(event.key === "Tab" || event.key === "Shift")
|
|
39
|
-
) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (onClose) {
|
|
43
|
-
onClose();
|
|
44
|
-
}
|
|
45
|
-
setIsOpen(isOpen);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
const getSize = (size) => {
|
|
49
|
-
switch (size) {
|
|
50
|
-
case "medium":
|
|
51
|
-
return "impact_drawer_container_medium";
|
|
52
|
-
default:
|
|
53
|
-
return "impact_drawer_container_large";
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
if (!secondaryButtonLabel && !primaryButtonLabel) {
|
|
58
|
-
return (
|
|
59
|
-
<Drawer
|
|
60
|
-
anchor={anchor}
|
|
61
|
-
open={open}
|
|
62
|
-
onClose={toggleDrawer(anchor, false)}
|
|
63
|
-
sx={{
|
|
64
|
-
"& .MuiDrawer-paper": {
|
|
65
|
-
zIndex: `${zIndex}`,
|
|
66
|
-
},
|
|
67
|
-
}}
|
|
68
|
-
>
|
|
69
|
-
<div
|
|
70
|
-
className={`impact_drawer_container ${getSize(size)} ${className}`}
|
|
71
|
-
style={{ width: `${width}px` }}
|
|
72
|
-
>
|
|
73
|
-
<div className="impact_drawer_header">
|
|
74
|
-
<div className="impact_drawer_heading">{title}</div>
|
|
75
|
-
<span
|
|
76
|
-
role="button"
|
|
77
|
-
className="close_icon"
|
|
78
|
-
onClick={toggleDrawer(anchor, false)}
|
|
79
|
-
></span>
|
|
80
|
-
</div>
|
|
81
|
-
<div
|
|
82
|
-
className="impact_drawer_body"
|
|
83
|
-
style={{ height: "calc(100% - 40px)" }}
|
|
84
|
-
>
|
|
85
|
-
{children}
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</Drawer>
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return (
|
|
93
|
-
<Drawer
|
|
94
|
-
anchor={anchor}
|
|
95
|
-
open={open}
|
|
96
|
-
onClose={toggleDrawer(anchor, false)}
|
|
97
|
-
sx={{
|
|
98
|
-
"& .MuiDrawer-paper": {
|
|
99
|
-
zIndex: `${zIndex}`,
|
|
100
|
-
},
|
|
101
|
-
}}
|
|
102
|
-
{...args}
|
|
103
|
-
>
|
|
104
|
-
<div
|
|
105
|
-
className={`impact_drawer_container ${getSize(size)} ${className}`}
|
|
106
|
-
style={{ width: `${width}px` }}
|
|
107
|
-
>
|
|
108
|
-
<div className="impact_drawer_header">
|
|
109
|
-
<div className="impact_drawer_heading">{title}</div>
|
|
110
|
-
<span
|
|
111
|
-
role="button"
|
|
112
|
-
className="close_icon"
|
|
113
|
-
onClick={toggleDrawer(anchor, false)}
|
|
114
|
-
></span>
|
|
115
|
-
</div>
|
|
116
|
-
<div className="impact_drawer_body">{children}</div>
|
|
117
|
-
<div className="impact_drawer_footer">
|
|
118
|
-
{customFooterContent ? customFooterContent : null}
|
|
119
|
-
<div className="impact_drawer_footer_right_container">
|
|
120
|
-
{secondaryButtonLabel && (
|
|
121
|
-
<Button
|
|
122
|
-
label={secondaryButtonLabel}
|
|
123
|
-
variant="url"
|
|
124
|
-
onClick={onSecondaryButtonClick}
|
|
125
|
-
{...secondaryButtonProps}
|
|
126
|
-
>
|
|
127
|
-
{secondaryButtonLabel}
|
|
128
|
-
</Button>
|
|
129
|
-
)}
|
|
130
|
-
{primaryButtonLabel && (
|
|
131
|
-
<Button
|
|
132
|
-
label={primaryButtonLabel}
|
|
133
|
-
onClick={onPrimaryButtonClick}
|
|
134
|
-
{...primaryButtonProps}
|
|
135
|
-
>
|
|
136
|
-
{primaryButtonLabel}
|
|
137
|
-
</Button>
|
|
138
|
-
)}
|
|
139
|
-
</div>
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
</Drawer>
|
|
143
|
-
);
|
|
144
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
@import "../../styles/index.scss";
|
|
2
|
-
|
|
3
|
-
.popover-container {
|
|
4
|
-
min-width: 240px;
|
|
5
|
-
padding: 12px;
|
|
6
|
-
border-radius: 12px !important;
|
|
7
|
-
box-shadow: 0px 0px 4px 0px $boxShadowColor;
|
|
8
|
-
margin-top: 2px;
|
|
9
|
-
|
|
10
|
-
.popover-content {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
gap: 12px;
|
|
14
|
-
|
|
15
|
-
.popover-header {
|
|
16
|
-
display: flex;
|
|
17
|
-
justify-content: space-between;
|
|
18
|
-
align-items: center;
|
|
19
|
-
|
|
20
|
-
.popover-header-title {
|
|
21
|
-
font-size: $normalFontSize;
|
|
22
|
-
font-weight: $ExtraFontWeight;
|
|
23
|
-
line-height: 21px;
|
|
24
|
-
color: $darkColor;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.popover-body {
|
|
29
|
-
overflow-y: auto;
|
|
30
|
-
height: calc(100% - 40px);
|
|
31
|
-
width: 100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.popover-footer {
|
|
35
|
-
.popover-footer-content {
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
gap: 8px;
|
|
39
|
-
.divider-line {
|
|
40
|
-
background: $disabledSecondaryBorder;
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 1px;
|
|
43
|
-
}
|
|
44
|
-
.popover-footer-buttons {
|
|
45
|
-
display: flex;
|
|
46
|
-
gap: 12px;
|
|
47
|
-
justify-content: flex-end;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Popover as PopoverComponent } from "@mui/material";
|
|
3
|
-
import "./Popover.styles.scss";
|
|
4
|
-
import CloseIcon from "@mui/icons-material/Close";
|
|
5
|
-
import { Button } from "../Button";
|
|
6
|
-
|
|
7
|
-
export function Popover({
|
|
8
|
-
children,
|
|
9
|
-
title,
|
|
10
|
-
onClose,
|
|
11
|
-
primaryButtonLabel,
|
|
12
|
-
secondaryButtonLabel,
|
|
13
|
-
onPrimaryButtonClick,
|
|
14
|
-
onSecondaryButtonClick,
|
|
15
|
-
primaryButtonProps,
|
|
16
|
-
secondaryButtonProps,
|
|
17
|
-
...props
|
|
18
|
-
}) {
|
|
19
|
-
return (
|
|
20
|
-
<PopoverComponent
|
|
21
|
-
{...props}
|
|
22
|
-
onClose={onClose}
|
|
23
|
-
slotProps={{
|
|
24
|
-
paper: {
|
|
25
|
-
className: "popover-container",
|
|
26
|
-
},
|
|
27
|
-
}}
|
|
28
|
-
>
|
|
29
|
-
<div className="popover-content">
|
|
30
|
-
<div className="popover-header">
|
|
31
|
-
<span className="popover-header-title">{title}</span>
|
|
32
|
-
{onClose && (
|
|
33
|
-
<CloseIcon
|
|
34
|
-
fontSize="small"
|
|
35
|
-
onClick={onClose}
|
|
36
|
-
sx={{ color: "#60697D", cursor: "pointer" }}
|
|
37
|
-
/>
|
|
38
|
-
)}
|
|
39
|
-
</div>
|
|
40
|
-
<div className="popover-body">{children}</div>
|
|
41
|
-
<div className="popover-footer">
|
|
42
|
-
<div className="popover-footer-content">
|
|
43
|
-
{primaryButtonLabel || secondaryButtonLabel ? (
|
|
44
|
-
<div className="divider-line" />
|
|
45
|
-
) : null}
|
|
46
|
-
<div className="popover-footer-buttons">
|
|
47
|
-
{secondaryButtonLabel && (
|
|
48
|
-
<Button
|
|
49
|
-
variant="tertiary"
|
|
50
|
-
onClick={onSecondaryButtonClick}
|
|
51
|
-
{...secondaryButtonProps}
|
|
52
|
-
>
|
|
53
|
-
{secondaryButtonLabel}
|
|
54
|
-
</Button>
|
|
55
|
-
)}
|
|
56
|
-
{primaryButtonLabel && (
|
|
57
|
-
<Button
|
|
58
|
-
variant="primary"
|
|
59
|
-
onClick={onPrimaryButtonClick}
|
|
60
|
-
{...primaryButtonProps}
|
|
61
|
-
>
|
|
62
|
-
{primaryButtonLabel}
|
|
63
|
-
</Button>
|
|
64
|
-
)}
|
|
65
|
-
</div>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
</PopoverComponent>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
|
2
|
-
import { renderPortal } from "../../renderReactRoot";
|
|
3
|
-
|
|
4
|
-
const Portal = ({ children, container }) => {
|
|
5
|
-
const [portalContent, setPortalContent] = useState(null);
|
|
6
|
-
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
let isMounted = true;
|
|
9
|
-
|
|
10
|
-
if (container) {
|
|
11
|
-
renderPortal(children, container).then((portal) => {
|
|
12
|
-
if (isMounted) {
|
|
13
|
-
setPortalContent(portal);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
} else {
|
|
17
|
-
setPortalContent(null);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return () => {
|
|
21
|
-
isMounted = false;
|
|
22
|
-
};
|
|
23
|
-
}, [children, container]);
|
|
24
|
-
|
|
25
|
-
// If no container, return null immediately
|
|
26
|
-
if (!container) return null;
|
|
27
|
-
|
|
28
|
-
return portalContent;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default Portal;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
@import "../../styles/index.scss";
|
|
2
|
-
|
|
3
|
-
.progressbar_layout {
|
|
4
|
-
min-width: 232px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.progress_container {
|
|
8
|
-
.progressbar_label_container {
|
|
9
|
-
font-size: 12px;
|
|
10
|
-
font-weight: $normalFontWeight;
|
|
11
|
-
margin-bottom: 4px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.progressbar_status {
|
|
15
|
-
.MuiLinearProgress-root {
|
|
16
|
-
height: 8px;
|
|
17
|
-
background-color: $progressBarBg;
|
|
18
|
-
border-radius: 10px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.MuiLinearProgress-bar {
|
|
22
|
-
background-color: $primaryColor;
|
|
23
|
-
border-radius: 8px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.progress_container_remaining {
|
|
29
|
-
.progressbar_label_container {
|
|
30
|
-
color: $inputInfoColor;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.progress_container_completed {
|
|
35
|
-
.progressbar_label_container {
|
|
36
|
-
color: $greenBadgeDark;
|
|
37
|
-
font-size: $smallFontSize;
|
|
38
|
-
}
|
|
39
|
-
.MuiLinearProgress-bar {
|
|
40
|
-
background-color: $greenBadge !important;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.progress_container_failed {
|
|
45
|
-
.progressbar_label_container {
|
|
46
|
-
color: $destructiveHoverBg;
|
|
47
|
-
font-size: $smallFontSize;
|
|
48
|
-
}
|
|
49
|
-
.MuiLinearProgress-bar {
|
|
50
|
-
background-color: $redBadge !important;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.progress_bar_remaining .MuiLinearProgress-bar {
|
|
55
|
-
background-color: $primaryColor;
|
|
56
|
-
}
|
|
57
|
-
.progress_bar_completed .MuiLinearProgress-bar {
|
|
58
|
-
background-color: $greenBadge;
|
|
59
|
-
}
|
|
60
|
-
.progress_bar_failed .MuiLinearProgress-bar {
|
|
61
|
-
background-color: $redBadge;
|
|
62
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import LinearProgress from "@mui/material/LinearProgress";
|
|
3
|
-
import "./ProgressBar.styles.scss";
|
|
4
|
-
|
|
5
|
-
export function ProgressBar(props) {
|
|
6
|
-
const {
|
|
7
|
-
value = 10,
|
|
8
|
-
showTime = true,
|
|
9
|
-
time = 30,
|
|
10
|
-
customLabel,
|
|
11
|
-
status = "remaining", // "completed", "failed", or "remaining"
|
|
12
|
-
} = props;
|
|
13
|
-
|
|
14
|
-
const getLabel = () => {
|
|
15
|
-
if (customLabel) return customLabel;
|
|
16
|
-
if (status === "completed") return "Completed";
|
|
17
|
-
if (status === "failed") return "Failed";
|
|
18
|
-
return `${Math.round(value)}%${
|
|
19
|
-
showTime ? ` • ${time} seconds remaining` : ""
|
|
20
|
-
}`;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<div className="progressbar_layout">
|
|
25
|
-
<div className={`progress_container progress_container_${status}`}>
|
|
26
|
-
<div className="progressbar_label_container">
|
|
27
|
-
<div className="label_name">{getLabel()}</div>
|
|
28
|
-
</div>
|
|
29
|
-
<div className="progressbar_status">
|
|
30
|
-
<LinearProgress
|
|
31
|
-
variant="determinate"
|
|
32
|
-
value={value}
|
|
33
|
-
className={`progress_bar progress_bar_${status}`}
|
|
34
|
-
{...props}
|
|
35
|
-
/>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
);
|
|
40
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
@import "../../styles/index.scss";
|
|
2
|
-
|
|
3
|
-
.ia-styles.ia-prompt {
|
|
4
|
-
.MuiDialogContent-root {
|
|
5
|
-
padding: 0px;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: 8px;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: flex-start;
|
|
11
|
-
padding-bottom: 12px;
|
|
12
|
-
|
|
13
|
-
.MuiDialogContentText-root {
|
|
14
|
-
color: $textButtonFontColor;
|
|
15
|
-
font-size: $normalFontSize;
|
|
16
|
-
font-weight: $normalFontWeight;
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
font-family: $fontFamily;
|
|
21
|
-
width: 400px;
|
|
22
|
-
padding: 0 24px;
|
|
23
|
-
text-align: center;
|
|
24
|
-
word-wrap: break-word;
|
|
25
|
-
overflow-wrap: break-word;
|
|
26
|
-
box-sizing: border-box;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
.MuiDialog-paper {
|
|
30
|
-
min-width: 400px;
|
|
31
|
-
min-height: 224px;
|
|
32
|
-
box-shadow: 0px 0px 4px 0px $boxShadowColor;
|
|
33
|
-
border-radius: 8px;
|
|
34
|
-
position: relative;
|
|
35
|
-
|
|
36
|
-
h2 {
|
|
37
|
-
padding: 0px 40px;
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
justify-content: center;
|
|
41
|
-
font-size: $mediumFontSize;
|
|
42
|
-
font-weight: 800;
|
|
43
|
-
color: #0d152c;
|
|
44
|
-
line-height: 24px;
|
|
45
|
-
text-align: center;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.ia-prompt-close-button {
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
display: flex;
|
|
52
|
-
justify-content: flex-end;
|
|
53
|
-
padding-right: 16px;
|
|
54
|
-
padding-top: 8px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.ia-prompt-close-icon {
|
|
58
|
-
color: #60697d;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.ia-prompt-info-icon-container {
|
|
62
|
-
display: flex;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
align-items: center;
|
|
65
|
-
width: 48px;
|
|
66
|
-
height: 48px;
|
|
67
|
-
background-color: #eceefd;
|
|
68
|
-
background-image: url("../../assets/prompt-info-icon.svg");
|
|
69
|
-
background-repeat: no-repeat;
|
|
70
|
-
background-position: center;
|
|
71
|
-
border-radius: 12px;
|
|
72
|
-
|
|
73
|
-
&.ia-prompt-warning {
|
|
74
|
-
background: url("../../assets/prompt-warning-icon.svg");
|
|
75
|
-
background-color: #f6ebbf;
|
|
76
|
-
background-repeat: no-repeat;
|
|
77
|
-
background-position: center;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&.ia-prompt-error {
|
|
81
|
-
background: url("../../assets/prompt-delete-icon.svg");
|
|
82
|
-
background-color: #fceeee;
|
|
83
|
-
background-repeat: no-repeat;
|
|
84
|
-
background-position: center;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&.ia-prompt-success {
|
|
88
|
-
background: url("../../assets/prompt-success-icon.svg");
|
|
89
|
-
background-color: #ebf7f1;
|
|
90
|
-
background-repeat: no-repeat;
|
|
91
|
-
background-position: center;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.MuiDialogActions-root {
|
|
96
|
-
gap: 12px;
|
|
97
|
-
padding: 16px;
|
|
98
|
-
justify-content: center;
|
|
99
|
-
}
|
|
100
|
-
.MuiDialogActions-root > :not(:first-of-type) {
|
|
101
|
-
margin-left: 0px;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.ia-styles.ia-btn.ia-btn-contained:focus {
|
|
105
|
-
outline: none;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import React, { useMemo } from "react";
|
|
2
|
-
import Dialog from "@mui/material/Dialog";
|
|
3
|
-
import DialogActions from "@mui/material/DialogActions";
|
|
4
|
-
import DialogContent from "@mui/material/DialogContent";
|
|
5
|
-
import DialogContentText from "@mui/material/DialogContentText";
|
|
6
|
-
import DialogTitle from "@mui/material/DialogTitle";
|
|
7
|
-
import PropTypes from "prop-types";
|
|
8
|
-
import { Close } from "@mui/icons-material";
|
|
9
|
-
|
|
10
|
-
import { Button } from "../Button";
|
|
11
|
-
|
|
12
|
-
import "./Prompt.styles.scss";
|
|
13
|
-
|
|
14
|
-
export const Prompt = ({
|
|
15
|
-
variant = "info",
|
|
16
|
-
title,
|
|
17
|
-
children,
|
|
18
|
-
primaryButtonLabel,
|
|
19
|
-
secondaryButtonLabel,
|
|
20
|
-
isOpen,
|
|
21
|
-
onPrimaryButtonClick,
|
|
22
|
-
onSecondaryButtonClick,
|
|
23
|
-
handleClose,
|
|
24
|
-
primaryButtonProps,
|
|
25
|
-
secondaryButtonProps,
|
|
26
|
-
...args
|
|
27
|
-
}) => {
|
|
28
|
-
const variantClassName = useMemo(() => {
|
|
29
|
-
let retVal = "";
|
|
30
|
-
switch (variant) {
|
|
31
|
-
case "error":
|
|
32
|
-
retVal = "ia-prompt-error";
|
|
33
|
-
break;
|
|
34
|
-
case "success":
|
|
35
|
-
retVal = "ia-prompt-success";
|
|
36
|
-
break;
|
|
37
|
-
case "warning":
|
|
38
|
-
retVal = "ia-prompt-warning";
|
|
39
|
-
break;
|
|
40
|
-
case "info":
|
|
41
|
-
default:
|
|
42
|
-
retVal = "ia-prompt-info";
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return retVal;
|
|
47
|
-
}, [variant]);
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<Dialog
|
|
51
|
-
className={`ia-styles ia-prompt ${variantClassName}`}
|
|
52
|
-
open={isOpen}
|
|
53
|
-
onClose={handleClose}
|
|
54
|
-
aria-labelledby="alert-dialog-title"
|
|
55
|
-
aria-describedby="alert-dialog-description"
|
|
56
|
-
{...args}
|
|
57
|
-
>
|
|
58
|
-
<div onClick={handleClose} className="ia-prompt-close-button">
|
|
59
|
-
{handleClose && <Close className="ia-prompt-close-icon" />}
|
|
60
|
-
</div>
|
|
61
|
-
<DialogContent>
|
|
62
|
-
<div className={`ia-prompt-info-icon-container ${variantClassName}`} />
|
|
63
|
-
<DialogTitle className={`ia-dialog-title ${variantClassName}`}>
|
|
64
|
-
{title}
|
|
65
|
-
</DialogTitle>
|
|
66
|
-
<DialogContentText className="ia-dialog-content">
|
|
67
|
-
{children}
|
|
68
|
-
</DialogContentText>
|
|
69
|
-
</DialogContent>
|
|
70
|
-
<DialogActions>
|
|
71
|
-
{secondaryButtonLabel ? (
|
|
72
|
-
<Button
|
|
73
|
-
onClick={onSecondaryButtonClick}
|
|
74
|
-
label={secondaryButtonLabel}
|
|
75
|
-
variant="text"
|
|
76
|
-
{...secondaryButtonProps}
|
|
77
|
-
>
|
|
78
|
-
{secondaryButtonLabel}
|
|
79
|
-
</Button>
|
|
80
|
-
) : null}
|
|
81
|
-
{primaryButtonLabel && variant !== "success" ? (
|
|
82
|
-
<Button
|
|
83
|
-
onClick={onPrimaryButtonClick}
|
|
84
|
-
label={primaryButtonLabel}
|
|
85
|
-
autoFocus
|
|
86
|
-
type={variant === "error" ? "destructive" : ""}
|
|
87
|
-
{...primaryButtonProps}
|
|
88
|
-
>
|
|
89
|
-
{primaryButtonLabel}
|
|
90
|
-
</Button>
|
|
91
|
-
) : null}
|
|
92
|
-
</DialogActions>
|
|
93
|
-
</Dialog>
|
|
94
|
-
);
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
Prompt.propTypes = {
|
|
98
|
-
variant: PropTypes.string,
|
|
99
|
-
title: PropTypes.string,
|
|
100
|
-
children: PropTypes.node,
|
|
101
|
-
primaryButtonLabel: PropTypes.string,
|
|
102
|
-
secondaryButtonLabel: PropTypes.string,
|
|
103
|
-
handleClose: PropTypes.func,
|
|
104
|
-
onPrimaryButtonClick: PropTypes.func,
|
|
105
|
-
onSecondaryButtonClick: PropTypes.func,
|
|
106
|
-
isOpen: PropTypes.bool,
|
|
107
|
-
};
|