@bigbinary/neeto-molecules 1.1.16 → 1.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AutoSaveInput.js +658 -0
- package/dist/AutoSaveInput.js.map +1 -0
- package/dist/Breadcrumbs.js +38 -0
- package/dist/Breadcrumbs.js.map +1 -0
- package/dist/BrowserSupport.js +418 -0
- package/dist/BrowserSupport.js.map +1 -0
- package/dist/Builder.js +662 -0
- package/dist/Builder.js.map +1 -0
- package/dist/CalendarView.js +538 -0
- package/dist/CalendarView.js.map +1 -0
- package/dist/Codeblock.js +236 -0
- package/dist/Codeblock.js.map +1 -0
- package/dist/{Columns/index.js → Columns.js} +130 -13
- package/dist/Columns.js.map +1 -0
- package/dist/{ConfirmationModal/index.js → ConfirmationModal.js} +20 -8
- package/dist/ConfirmationModal.js.map +1 -0
- package/dist/Container.js +1211 -0
- package/dist/Container.js.map +1 -0
- package/dist/CopyToClipboardButton.js +209 -0
- package/dist/CopyToClipboardButton.js.map +1 -0
- package/dist/CustomDomain.js +688 -0
- package/dist/CustomDomain.js.map +1 -0
- package/dist/CustomDomainDashboard.js +2283 -0
- package/dist/CustomDomainDashboard.js.map +1 -0
- package/dist/{DateFormat/index.js → DateFormat.js} +25 -8
- package/dist/DateFormat.js.map +1 -0
- package/dist/DateRangeFilter.js +229 -0
- package/dist/DateRangeFilter.js.map +1 -0
- package/dist/DynamicVariables.js +183 -0
- package/dist/DynamicVariables.js.map +1 -0
- package/dist/EmailForm.js +2292 -0
- package/dist/EmailForm.js.map +1 -0
- package/dist/EmailPreview.js +1353 -0
- package/dist/EmailPreview.js.map +1 -0
- package/dist/{ErrorPage/constants.js → ErrorPage.js} +137 -36
- package/dist/ErrorPage.js.map +1 -0
- package/dist/Header.js +122 -0
- package/dist/Header.js.map +1 -0
- package/dist/IconPicker.js +313 -0
- package/dist/IconPicker.js.map +1 -0
- package/dist/ImageWithFallback.js +181 -0
- package/dist/ImageWithFallback.js.map +1 -0
- package/dist/IntegrationCard.js +343 -0
- package/dist/IntegrationCard.js.map +1 -0
- package/dist/IntegrationDisconnectAlert.js +80 -0
- package/dist/IntegrationDisconnectAlert.js.map +1 -0
- package/dist/{IntegrationWalkthroughModal/index.js → IntegrationWalkthroughModal.js} +8 -6
- package/dist/IntegrationWalkthroughModal.js.map +1 -0
- package/dist/IpRestriction.js +857 -0
- package/dist/IpRestriction.js.map +1 -0
- package/dist/KeyboardShortcuts.js +359 -0
- package/dist/KeyboardShortcuts.js.map +1 -0
- package/dist/LoginPage.js +593 -0
- package/dist/LoginPage.js.map +1 -0
- package/dist/MenuBar.js +1461 -0
- package/dist/MenuBar.js.map +1 -0
- package/dist/Metadata.js +206 -0
- package/dist/Metadata.js.map +1 -0
- package/dist/{MoreDropdown/index.js → MoreDropdown.js} +102 -9
- package/dist/MoreDropdown.js.map +1 -0
- package/dist/NavigationHeader.js +690 -0
- package/dist/NavigationHeader.js.map +1 -0
- package/dist/NeetoWidget.js +1333 -0
- package/dist/NeetoWidget.js.map +1 -0
- package/dist/PageLoader.js +134 -0
- package/dist/PageLoader.js.map +1 -0
- package/dist/PhoneNumber.js +365 -0
- package/dist/PhoneNumber.js.map +1 -0
- package/dist/PublishBlock.js +158 -0
- package/dist/PublishBlock.js.map +1 -0
- package/dist/Rename.js +450 -0
- package/dist/Rename.js.map +1 -0
- package/dist/ResponsiveDevicePicker.js +194 -0
- package/dist/ResponsiveDevicePicker.js.map +1 -0
- package/dist/Schedule.js +1046 -0
- package/dist/Schedule.js.map +1 -0
- package/dist/Scrollable.js +122 -0
- package/dist/Scrollable.js.map +1 -0
- package/dist/Search.js +151 -0
- package/dist/Search.js.map +1 -0
- package/dist/Security.js +1835 -0
- package/dist/Security.js.map +1 -0
- package/dist/SendToFields.js +601 -0
- package/dist/SendToFields.js.map +1 -0
- package/dist/Settings.js +435 -0
- package/dist/Settings.js.map +1 -0
- package/dist/ShareViaEmail.js +2277 -0
- package/dist/ShareViaEmail.js.map +1 -0
- package/dist/ShareViaLink.js +628 -0
- package/dist/ShareViaLink.js.map +1 -0
- package/dist/Sidebar.js +972 -0
- package/dist/Sidebar.js.map +1 -0
- package/dist/SubHeader.js +216 -0
- package/dist/SubHeader.js.map +1 -0
- package/dist/{TableWrapper/index.js → TableWrapper.js} +6 -3
- package/dist/TableWrapper.js.map +1 -0
- package/dist/ThemeSidebar.js +1984 -0
- package/dist/ThemeSidebar.js.map +1 -0
- package/dist/TimeFormat.js +47 -0
- package/dist/TimeFormat.js.map +1 -0
- package/dist/TimezoneMismatchModal.js +168 -0
- package/dist/TimezoneMismatchModal.js.map +1 -0
- package/dist/ToggleFeatureCard.js +323 -0
- package/dist/ToggleFeatureCard.js.map +1 -0
- package/package.json +22 -13
- package/dist/AutoSaveInput/autosaveinput.scss +0 -15
- package/dist/AutoSaveInput/constants.js +0 -13
- package/dist/AutoSaveInput/index.js +0 -124
- package/dist/AutoSaveInput/utils.js +0 -10
- package/dist/Breadcrumbs/breadcrumbs.scss +0 -33
- package/dist/Breadcrumbs/index.js +0 -31
- package/dist/BrowserSupport/Callout.js +0 -15
- package/dist/BrowserSupport/ContactUs.js +0 -21
- package/dist/BrowserSupport/DownloadLink.js +0 -17
- package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +0 -17
- package/dist/BrowserSupport/UnknownBrowser.js +0 -13
- package/dist/BrowserSupport/UnsupportedBrowser.js +0 -24
- package/dist/BrowserSupport/UnsupportedBrowserMessage.js +0 -22
- package/dist/BrowserSupport/UnsupportedBrowserVersion.js +0 -27
- package/dist/BrowserSupport/UnsupportedVersionMessage.js +0 -30
- package/dist/BrowserSupport/browsersupport.scss +0 -71
- package/dist/BrowserSupport/constants.js +0 -63
- package/dist/BrowserSupport/index.js +0 -58
- package/dist/BrowserSupport/utils.js +0 -32
- package/dist/Builder/Body.js +0 -9
- package/dist/Builder/ElementsPanel/ElementsList/Element.js +0 -27
- package/dist/Builder/ElementsPanel/ElementsList/Section.js +0 -28
- package/dist/Builder/ElementsPanel/ElementsList/TitleBar.js +0 -28
- package/dist/Builder/ElementsPanel/ElementsList/index.js +0 -63
- package/dist/Builder/ElementsPanel/SelectedElementsList/SelectedElement.js +0 -73
- package/dist/Builder/ElementsPanel/SelectedElementsList/TitleBar.js +0 -50
- package/dist/Builder/ElementsPanel/SelectedElementsList/index.js +0 -91
- package/dist/Builder/ElementsPanel/index.js +0 -70
- package/dist/Builder/PropertiesPanel/EmptyProperty.js +0 -21
- package/dist/Builder/PropertiesPanel/Skeleton.js +0 -24
- package/dist/Builder/PropertiesPanel/index.js +0 -12
- package/dist/Builder/index.js +0 -3
- package/dist/Builder/styles.scss +0 -84
- package/dist/CalendarView/CustomDatePicker.js +0 -87
- package/dist/CalendarView/Header.js +0 -53
- package/dist/CalendarView/constants.js +0 -19
- package/dist/CalendarView/index.js +0 -83
- package/dist/CalendarView/utils.js +0 -50
- package/dist/Codeblock/index.js +0 -30
- package/dist/Columns/utils.js +0 -20
- package/dist/ConfirmationModal/constants.js +0 -3
- package/dist/ConfirmationModal/utils.js +0 -6
- package/dist/Container/container.scss +0 -21
- package/dist/Container/index.js +0 -23
- package/dist/CopyToClipboardButton/constants.js +0 -13
- package/dist/CopyToClipboardButton/copyToClipboard.scss +0 -22
- package/dist/CopyToClipboardButton/index.js +0 -59
- package/dist/CustomDomain/index.js +0 -98
- package/dist/CustomDomainDashboard/DeleteAlert.js +0 -28
- package/dist/CustomDomainDashboard/Header.js +0 -32
- package/dist/CustomDomainDashboard/Manage/Record.js +0 -42
- package/dist/CustomDomainDashboard/Manage/StatusInfo.js +0 -21
- package/dist/CustomDomainDashboard/Manage/TagBlock.js +0 -36
- package/dist/CustomDomainDashboard/Manage/constants.js +0 -4
- package/dist/CustomDomainDashboard/Manage/index.js +0 -125
- package/dist/CustomDomainDashboard/Manage/utils.js +0 -8
- package/dist/CustomDomainDashboard/api.js +0 -35
- package/dist/CustomDomainDashboard/constants.js +0 -2
- package/dist/CustomDomainDashboard/index.js +0 -118
- package/dist/CustomDomainDashboard/useCustomDomainApi.js +0 -71
- package/dist/CustomDomainDashboard/utils.js +0 -84
- package/dist/DateRangeFilter/index.js +0 -60
- package/dist/DateRangeFilter/utils.js +0 -113
- package/dist/DynamicVariables/dynamic-variables.scss +0 -34
- package/dist/DynamicVariables/index.js +0 -59
- package/dist/DynamicVariables/utils.js +0 -37
- package/dist/EmailForm/EmailForm.js +0 -98
- package/dist/EmailForm/EmailFormProvider.js +0 -45
- package/dist/EmailForm/EmailPreview.js +0 -129
- package/dist/EmailForm/ReplyToField.js +0 -55
- package/dist/EmailForm/SendToField.js +0 -28
- package/dist/EmailForm/SubjectField.js +0 -64
- package/dist/EmailForm/constants.js +0 -33
- package/dist/EmailForm/contexts/EmailForm.js +0 -7
- package/dist/EmailForm/index.js +0 -4
- package/dist/EmailForm/utils.js +0 -10
- package/dist/EmailPreview/index.js +0 -2
- package/dist/ErrorPage/index.js +0 -78
- package/dist/Header/Breadcrumbs.js +0 -31
- package/dist/Header/Dropdown.js +0 -12
- package/dist/Header/constants.js +0 -6
- package/dist/Header/header.scss +0 -121
- package/dist/Header/index.js +0 -61
- package/dist/IconPicker/Icon.js +0 -34
- package/dist/IconPicker/NoResults.js +0 -12
- package/dist/IconPicker/constants.js +0 -8
- package/dist/IconPicker/icon-picker.scss +0 -1
- package/dist/IconPicker/index.js +0 -164
- package/dist/ImageWithFallback/ImagePlaceholder.js +0 -16
- package/dist/ImageWithFallback/index.js +0 -31
- package/dist/IntegrationCard/Dropdown.js +0 -45
- package/dist/IntegrationCard/Status.js +0 -25
- package/dist/IntegrationCard/index.js +0 -128
- package/dist/IntegrationDisconnectAlert/index.js +0 -36
- package/dist/IpRestriction/AllowedIpRanges.js +0 -75
- package/dist/IpRestriction/CurrentIp.js +0 -26
- package/dist/IpRestriction/FormRow.js +0 -84
- package/dist/IpRestriction/Row.js +0 -91
- package/dist/IpRestriction/apis/allowed_ip_ranges.js +0 -28
- package/dist/IpRestriction/apis/current_ip.js +0 -11
- package/dist/IpRestriction/apis/ip_restriction.js +0 -16
- package/dist/IpRestriction/constants.js +0 -20
- package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +0 -34
- package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +0 -10
- package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +0 -18
- package/dist/IpRestriction/index.js +0 -102
- package/dist/IpRestriction/utils.js +0 -85
- package/dist/KeyboardShortcuts/Pane/HotKey.js +0 -44
- package/dist/KeyboardShortcuts/Pane/HotKeyList.js +0 -42
- package/dist/KeyboardShortcuts/Pane/constants.js +0 -25
- package/dist/KeyboardShortcuts/Pane/index.js +0 -61
- package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +0 -5
- package/dist/KeyboardShortcuts/Pane/utils.js +0 -66
- package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +0 -31
- package/dist/KeyboardShortcuts/index.js +0 -9
- package/dist/LoginPage/Form.js +0 -57
- package/dist/LoginPage/constants.js +0 -12
- package/dist/LoginPage/index.js +0 -103
- package/dist/MenuBar/AddNew.js +0 -25
- package/dist/MenuBar/Block.js +0 -60
- package/dist/MenuBar/Item.js +0 -32
- package/dist/MenuBar/Search.js +0 -39
- package/dist/MenuBar/SubTitle.js +0 -23
- package/dist/MenuBar/index.js +0 -46
- package/dist/MenuBar/menubar.scss +0 -154
- package/dist/Metadata/Block.js +0 -30
- package/dist/Metadata/DetailsBlock.js +0 -86
- package/dist/Metadata/constants.js +0 -9
- package/dist/Metadata/index.js +0 -29
- package/dist/Metadata/metadata.scss +0 -15
- package/dist/MoreDropdown/constants.js +0 -25
- package/dist/NavigationHeader/LeftBlock.js +0 -32
- package/dist/NavigationHeader/Navigation.js +0 -24
- package/dist/NavigationHeader/RightBlock.js +0 -68
- package/dist/NavigationHeader/constants.js +0 -11
- package/dist/NavigationHeader/index.js +0 -19
- package/dist/NavigationHeader/navigation-header.scss +0 -3
- package/dist/NeetoWidget/CodeBlock.js +0 -57
- package/dist/NeetoWidget/CodeSnippet.js +0 -119
- package/dist/NeetoWidget/EmbedCode.js +0 -281
- package/dist/NeetoWidget/Main.js +0 -19
- package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +0 -25
- package/dist/NeetoWidget/SelectionSwitches/index.js +0 -44
- package/dist/NeetoWidget/SyntaxHighlighter.js +0 -17
- package/dist/NeetoWidget/api.js +0 -20
- package/dist/NeetoWidget/constants.js +0 -62
- package/dist/NeetoWidget/hooks/useForceUpdate.js +0 -14
- package/dist/NeetoWidget/index.js +0 -7
- package/dist/NeetoWidget/mutations.js +0 -9
- package/dist/NeetoWidget/queries.js +0 -32
- package/dist/NeetoWidget/utils.js +0 -83
- package/dist/PageLoader/index.js +0 -81
- package/dist/PageLoader/page-loader.scss +0 -95
- package/dist/PhoneNumber/CountryPicker/SingleValue.js +0 -21
- package/dist/PhoneNumber/CountryPicker/constants.js +0 -26
- package/dist/PhoneNumber/CountryPicker/index.js +0 -59
- package/dist/PhoneNumber/FormikPhoneNumberInput.js +0 -21
- package/dist/PhoneNumber/PhoneNumber.js +0 -30
- package/dist/PhoneNumber/PhoneNumberInput.js +0 -79
- package/dist/PhoneNumber/index.js +0 -5
- package/dist/PhoneNumber/utils.js +0 -55
- package/dist/PublishBlock/AlertBlock.js +0 -14
- package/dist/PublishBlock/index.js +0 -100
- package/dist/PublishBlock/publish-block.scss +0 -25
- package/dist/Rename/DummySpan.js +0 -21
- package/dist/Rename/constants.js +0 -1
- package/dist/Rename/index.js +0 -191
- package/dist/Rename/rename.scss +0 -69
- package/dist/Rename/utils.js +0 -10
- package/dist/ResponsiveDevicePicker/constants.js +0 -19
- package/dist/ResponsiveDevicePicker/index.js +0 -36
- package/dist/Schedule/DisplayAvailability.js +0 -58
- package/dist/Schedule/Fields.js +0 -43
- package/dist/Schedule/Form/ScheduleRow.js +0 -125
- package/dist/Schedule/Form/constants.js +0 -20
- package/dist/Schedule/Form/index.js +0 -144
- package/dist/Schedule/Form/utils.js +0 -63
- package/dist/Schedule/Header.js +0 -76
- package/dist/Schedule/ScheduleContext.js +0 -8
- package/dist/Schedule/constants.js +0 -8
- package/dist/Schedule/dayjsExtended/constants.js +0 -1
- package/dist/Schedule/dayjsExtended/index.js +0 -14
- package/dist/Schedule/dayjsExtended/range.js +0 -73
- package/dist/Schedule/index.js +0 -80
- package/dist/Schedule/utils.js +0 -152
- package/dist/Scrollable/constants.js +0 -8
- package/dist/Scrollable/index.js +0 -26
- package/dist/Scrollable/scrollable.scss +0 -32
- package/dist/Search/index.js +0 -52
- package/dist/Security/AllowedKeywords/Add.js +0 -38
- package/dist/Security/AllowedKeywords/index.js +0 -38
- package/dist/Security/PasswordBlock.js +0 -31
- package/dist/Security/RadioBlock.js +0 -38
- package/dist/Security/api.js +0 -12
- package/dist/Security/constants.js +0 -58
- package/dist/Security/index.js +0 -68
- package/dist/Security/useSecurityApi.js +0 -22
- package/dist/Security/utils.js +0 -31
- package/dist/SendToFields/FilePicker.js +0 -34
- package/dist/SendToFields/constants.js +0 -6
- package/dist/SendToFields/index.js +0 -102
- package/dist/SendToFields/utils.js +0 -54
- package/dist/Settings/Category.js +0 -30
- package/dist/Settings/Item.js +0 -38
- package/dist/Settings/index.js +0 -37
- package/dist/Settings/utils.js +0 -4
- package/dist/ShareViaEmail/EmailBodyEditor.js +0 -22
- package/dist/ShareViaEmail/FilePicker.js +0 -43
- package/dist/ShareViaEmail/Form.js +0 -105
- package/dist/ShareViaEmail/FormikDatePicker.js +0 -24
- package/dist/ShareViaEmail/constants.js +0 -14
- package/dist/ShareViaEmail/index.js +0 -92
- package/dist/ShareViaEmail/utils.js +0 -72
- package/dist/ShareViaLink/EditURL.js +0 -74
- package/dist/ShareViaLink/Link.js +0 -105
- package/dist/ShareViaLink/QRCode.js +0 -41
- package/dist/ShareViaLink/RegenerateURL.js +0 -47
- package/dist/ShareViaLink/SocialMedia.js +0 -52
- package/dist/ShareViaLink/constants.js +0 -25
- package/dist/ShareViaLink/edit-url.scss +0 -8
- package/dist/ShareViaLink/index.js +0 -46
- package/dist/ShareViaLink/utils.js +0 -47
- package/dist/Sidebar/AppSwitcher/AppLink.js +0 -45
- package/dist/Sidebar/AppSwitcher/Backdrop.js +0 -13
- package/dist/Sidebar/AppSwitcher/Body.js +0 -65
- package/dist/Sidebar/AppSwitcher/Portal.js +0 -27
- package/dist/Sidebar/AppSwitcher/appswitcher.scss +0 -164
- package/dist/Sidebar/AppSwitcher/index.js +0 -47
- package/dist/Sidebar/AppSwitcher/utils.js +0 -25
- package/dist/Sidebar/Chevron.js +0 -14
- package/dist/Sidebar/FeaturedTooltip.js +0 -19
- package/dist/Sidebar/Footer/AppSwitcherButton.js +0 -48
- package/dist/Sidebar/Footer/ProfileButton.js +0 -30
- package/dist/Sidebar/Footer/index.js +0 -56
- package/dist/Sidebar/Footer/utils.js +0 -39
- package/dist/Sidebar/Header.js +0 -33
- package/dist/Sidebar/HelpSection/HelpSectionMenu.js +0 -52
- package/dist/Sidebar/HelpSection/index.js +0 -32
- package/dist/Sidebar/Links.js +0 -112
- package/dist/Sidebar/NavIconWrapper.js +0 -20
- package/dist/Sidebar/ProfileSection/LinkSection.js +0 -36
- package/dist/Sidebar/ProfileSection/ProfileMenu.js +0 -48
- package/dist/Sidebar/ProfileSection/index.js +0 -42
- package/dist/Sidebar/constants.js +0 -40
- package/dist/Sidebar/index.js +0 -94
- package/dist/Sidebar/sidebar.scss +0 -379
- package/dist/Sidebar/utils.js +0 -18
- package/dist/SubHeader/RightBlock/Columns.js +0 -35
- package/dist/SubHeader/RightBlock/Download.js +0 -28
- package/dist/SubHeader/RightBlock/Filter.js +0 -31
- package/dist/SubHeader/RightBlock/index.js +0 -21
- package/dist/SubHeader/RightBlock/utils.js +0 -13
- package/dist/SubHeader/index.js +0 -28
- package/dist/SubHeader/subheader.scss +0 -78
- package/dist/ThemeSidebar/Customize/Logo.js +0 -39
- package/dist/ThemeSidebar/Customize/Properties.js +0 -170
- package/dist/ThemeSidebar/Customize/index.js +0 -66
- package/dist/ThemeSidebar/Themes/ThemeCard.js +0 -135
- package/dist/ThemeSidebar/Themes/index.js +0 -110
- package/dist/ThemeSidebar/TitleBar.js +0 -62
- package/dist/ThemeSidebar/constants.js +0 -127
- package/dist/ThemeSidebar/fields/AlignmentBlock.js +0 -50
- package/dist/ThemeSidebar/fields/Card.js +0 -19
- package/dist/ThemeSidebar/fields/ColorBlock.js +0 -19
- package/dist/ThemeSidebar/fields/FontPickerBlock.js +0 -35
- package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +0 -67
- package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +0 -22
- package/dist/ThemeSidebar/fields/ImageBlock/index.js +0 -55
- package/dist/ThemeSidebar/fields/SelectBlock.js +0 -24
- package/dist/ThemeSidebar/fields/SliderBlock.js +0 -30
- package/dist/ThemeSidebar/fields/SwitchBlock.js +0 -17
- package/dist/ThemeSidebar/fields/TextBlock.js +0 -13
- package/dist/ThemeSidebar/fields/slider.scss +0 -199
- package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +0 -149
- package/dist/ThemeSidebar/index.js +0 -118
- package/dist/ThemeSidebar/themeSidebar.scss +0 -45
- package/dist/ThemeSidebar/utils.js +0 -169
- package/dist/TimeFormat/index.js +0 -3
- package/dist/TimezoneMismatchModal/apis/time_zone.js +0 -9
- package/dist/TimezoneMismatchModal/index.js +0 -83
- package/dist/TimezoneMismatchModal/useTimeZoneApi.js +0 -10
- package/dist/TimezoneMismatchModal/utils.js +0 -12
- package/dist/ToggleFeatureCard/ToolTipSwitch.js +0 -31
- package/dist/ToggleFeatureCard/constants.js +0 -5
- package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +0 -11
- package/dist/ToggleFeatureCard/index.js +0 -148
- package/dist/ToggleFeatureCard/toggleFeatureCard.scss +0 -4
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { noop, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
|
|
4
|
+
import { joinHyphenCase } from '@bigbinary/neeto-commons-frontend/utils';
|
|
5
|
+
import { Dropdown as Dropdown$1, Tooltip, Button, Tag, Typography, Spinner } from '@bigbinary/neetoui';
|
|
6
|
+
import { mergeRight, isNotNil } from 'ramda';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
|
+
import { MenuVertical, MenuHorizontal, Warning, Check } from '@bigbinary/neeto-icons';
|
|
9
|
+
|
|
10
|
+
function _extends() {
|
|
11
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
12
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
13
|
+
var source = arguments[i];
|
|
14
|
+
for (var key in source) {
|
|
15
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
16
|
+
target[key] = source[key];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return target;
|
|
21
|
+
};
|
|
22
|
+
return _extends.apply(this, arguments);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
26
|
+
if (source == null) return {};
|
|
27
|
+
var target = {};
|
|
28
|
+
var sourceKeys = Object.keys(source);
|
|
29
|
+
var key, i;
|
|
30
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
31
|
+
key = sourceKeys[i];
|
|
32
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
33
|
+
target[key] = source[key];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function _objectWithoutProperties(source, excluded) {
|
|
39
|
+
if (source == null) return {};
|
|
40
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
41
|
+
var key, i;
|
|
42
|
+
if (Object.getOwnPropertySymbols) {
|
|
43
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
44
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
45
|
+
key = sourceSymbolKeys[i];
|
|
46
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
47
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
48
|
+
target[key] = source[key];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function _typeof(obj) {
|
|
55
|
+
"@babel/helpers - typeof";
|
|
56
|
+
|
|
57
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
58
|
+
return typeof obj;
|
|
59
|
+
} : function (obj) {
|
|
60
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
61
|
+
}, _typeof(obj);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function _toPrimitive(input, hint) {
|
|
65
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
66
|
+
var prim = input[Symbol.toPrimitive];
|
|
67
|
+
if (prim !== undefined) {
|
|
68
|
+
var res = prim.call(input, hint || "default");
|
|
69
|
+
if (_typeof(res) !== "object") return res;
|
|
70
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
71
|
+
}
|
|
72
|
+
return (hint === "string" ? String : Number)(input);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function _toPropertyKey(arg) {
|
|
76
|
+
var key = _toPrimitive(arg, "string");
|
|
77
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function _defineProperty(obj, key, value) {
|
|
81
|
+
key = _toPropertyKey(key);
|
|
82
|
+
if (key in obj) {
|
|
83
|
+
Object.defineProperty(obj, key, {
|
|
84
|
+
value: value,
|
|
85
|
+
enumerable: true,
|
|
86
|
+
configurable: true,
|
|
87
|
+
writable: true
|
|
88
|
+
});
|
|
89
|
+
} else {
|
|
90
|
+
obj[key] = value;
|
|
91
|
+
}
|
|
92
|
+
return obj;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
var MENU_ITEM_TYPES = {
|
|
96
|
+
menuItem: "menuItem",
|
|
97
|
+
divider: "divider"
|
|
98
|
+
};
|
|
99
|
+
var DEFAULT_TOOLTIP_PROPS = {
|
|
100
|
+
disabled: true,
|
|
101
|
+
position: "bottom"
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
var _excluded$1 = ["key", "onClick", "label", "type", "isVisible"];
|
|
105
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
106
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
107
|
+
var Menu = Dropdown$1.Menu,
|
|
108
|
+
MenuItem = Dropdown$1.MenuItem,
|
|
109
|
+
Divider = Dropdown$1.Divider;
|
|
110
|
+
var MoreDropdown = function MoreDropdown(_ref) {
|
|
111
|
+
var _ref$dropdownButtonPr = _ref.dropdownButtonProps,
|
|
112
|
+
dropdownButtonProps = _ref$dropdownButtonPr === void 0 ? {} : _ref$dropdownButtonPr,
|
|
113
|
+
_ref$isVertical = _ref.isVertical,
|
|
114
|
+
isVertical = _ref$isVertical === void 0 ? false : _ref$isVertical,
|
|
115
|
+
_ref$isDisabled = _ref.isDisabled,
|
|
116
|
+
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
117
|
+
_ref$dropdownProps = _ref.dropdownProps,
|
|
118
|
+
dropdownProps = _ref$dropdownProps === void 0 ? {} : _ref$dropdownProps,
|
|
119
|
+
menuTopChildren = _ref.menuTopChildren,
|
|
120
|
+
menuBottomChildren = _ref.menuBottomChildren,
|
|
121
|
+
_ref$menuItems = _ref.menuItems,
|
|
122
|
+
menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems;
|
|
123
|
+
var tooltipProps = mergeRight(DEFAULT_TOOLTIP_PROPS, dropdownButtonProps.tooltipProps);
|
|
124
|
+
var targetIcon = isVertical ? MenuVertical : MenuHorizontal;
|
|
125
|
+
var isDropdownDisabled = isDisabled || dropdownProps.disabled;
|
|
126
|
+
if (isDropdownDisabled && !tooltipProps.disabled) {
|
|
127
|
+
return /*#__PURE__*/React.createElement(Tooltip, tooltipProps, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Button, _extends({
|
|
128
|
+
disabled: true,
|
|
129
|
+
"data-testid": "nui-dropdown-button",
|
|
130
|
+
icon: targetIcon,
|
|
131
|
+
iconPosition: "right",
|
|
132
|
+
size: "medium",
|
|
133
|
+
style: "text"
|
|
134
|
+
}, dropdownButtonProps))));
|
|
135
|
+
}
|
|
136
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
137
|
+
autoWidth: true,
|
|
138
|
+
className: "flex",
|
|
139
|
+
disabled: isDisabled,
|
|
140
|
+
icon: targetIcon,
|
|
141
|
+
buttonProps: _objectSpread({
|
|
142
|
+
className: "min-h-0 flex-shrink-0",
|
|
143
|
+
style: "text"
|
|
144
|
+
}, dropdownButtonProps)
|
|
145
|
+
}, dropdownProps), /*#__PURE__*/React.createElement(Menu, null, menuTopChildren, menuItems.map(function (_ref2) {
|
|
146
|
+
var key = _ref2.key,
|
|
147
|
+
onClick = _ref2.onClick,
|
|
148
|
+
label = _ref2.label,
|
|
149
|
+
_ref2$type = _ref2.type,
|
|
150
|
+
type = _ref2$type === void 0 ? MENU_ITEM_TYPES.menuItem : _ref2$type,
|
|
151
|
+
_ref2$isVisible = _ref2.isVisible,
|
|
152
|
+
isVisible = _ref2$isVisible === void 0 ? true : _ref2$isVisible,
|
|
153
|
+
menuItemProps = _objectWithoutProperties(_ref2, _excluded$1);
|
|
154
|
+
if (!isVisible) return null;
|
|
155
|
+
return type === MENU_ITEM_TYPES.menuItem ? /*#__PURE__*/React.createElement(MenuItem.Button, _extends({
|
|
156
|
+
key: key
|
|
157
|
+
}, _objectSpread({
|
|
158
|
+
onClick: onClick
|
|
159
|
+
}, menuItemProps)), label) : /*#__PURE__*/React.createElement(Divider, {
|
|
160
|
+
key: key
|
|
161
|
+
});
|
|
162
|
+
}), menuBottomChildren));
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
var Dropdown = function Dropdown(_ref) {
|
|
166
|
+
var customDropdown = _ref.customDropdown,
|
|
167
|
+
_ref$handleManage = _ref.handleManage,
|
|
168
|
+
handleManage = _ref$handleManage === void 0 ? noop : _ref$handleManage,
|
|
169
|
+
_ref$hideDisconnect = _ref.hideDisconnect,
|
|
170
|
+
hideDisconnect = _ref$hideDisconnect === void 0 ? false : _ref$hideDisconnect,
|
|
171
|
+
_ref$onDisconnect = _ref.onDisconnect,
|
|
172
|
+
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect;
|
|
173
|
+
var _useTranslation = useTranslation(),
|
|
174
|
+
t = _useTranslation.t;
|
|
175
|
+
if (isNotNil(customDropdown)) {
|
|
176
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
177
|
+
onClick: function onClick(e) {
|
|
178
|
+
return e.stopPropagation();
|
|
179
|
+
}
|
|
180
|
+
}, customDropdown);
|
|
181
|
+
}
|
|
182
|
+
var isManageable = isNotNil(handleManage);
|
|
183
|
+
if (!isManageable && hideDisconnect) {
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
187
|
+
onClick: function onClick(e) {
|
|
188
|
+
return e.stopPropagation();
|
|
189
|
+
}
|
|
190
|
+
}, /*#__PURE__*/React.createElement(MoreDropdown, {
|
|
191
|
+
menuItems: [{
|
|
192
|
+
isVisible: isManageable,
|
|
193
|
+
onClick: handleManage,
|
|
194
|
+
label: t("neetoMolecules.integrationCard.manage"),
|
|
195
|
+
key: "integration-card-manage-integration"
|
|
196
|
+
}, {
|
|
197
|
+
isVisible: !hideDisconnect,
|
|
198
|
+
onClick: onDisconnect,
|
|
199
|
+
label: t("neetoMolecules.integrationCard.disconnect"),
|
|
200
|
+
key: "integration-card-manage-disconnection"
|
|
201
|
+
}]
|
|
202
|
+
}));
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
var Status = function Status(_ref) {
|
|
206
|
+
var isExpired = _ref.isExpired;
|
|
207
|
+
var _useTranslation = useTranslation(),
|
|
208
|
+
t = _useTranslation.t;
|
|
209
|
+
var tagProps = isExpired ? {
|
|
210
|
+
icon: Warning,
|
|
211
|
+
label: t("neetoMolecules.integrationCard.tags.expired"),
|
|
212
|
+
style: "warning"
|
|
213
|
+
} : {
|
|
214
|
+
icon: Check,
|
|
215
|
+
label: t("neetoMolecules.integrationCard.tags.connected"),
|
|
216
|
+
style: "success"
|
|
217
|
+
};
|
|
218
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
219
|
+
className: "flex-row-reverse"
|
|
220
|
+
}, tagProps, {
|
|
221
|
+
"data-testid": "integration-status"
|
|
222
|
+
}));
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
var _excluded = ["icon", "subIcons", "label", "description", "className", "onConnect", "onDisconnect", "onManage", "isLoading", "isConnected", "isFailed", "isExpired", "disabled", "hidden", "hideDisconnect", "onClick", "tooltipProps", "customDropdown", "dataCy", "children"];
|
|
226
|
+
var IntegrationCard = function IntegrationCard(_ref) {
|
|
227
|
+
var Icon = _ref.icon,
|
|
228
|
+
_ref$subIcons = _ref.subIcons,
|
|
229
|
+
subIcons = _ref$subIcons === void 0 ? [] : _ref$subIcons,
|
|
230
|
+
_ref$label = _ref.label,
|
|
231
|
+
label = _ref$label === void 0 ? "" : _ref$label,
|
|
232
|
+
_ref$description = _ref.description,
|
|
233
|
+
description = _ref$description === void 0 ? "" : _ref$description,
|
|
234
|
+
_ref$className = _ref.className,
|
|
235
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
236
|
+
_ref$onConnect = _ref.onConnect,
|
|
237
|
+
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
238
|
+
_ref$onDisconnect = _ref.onDisconnect,
|
|
239
|
+
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect,
|
|
240
|
+
_ref$onManage = _ref.onManage,
|
|
241
|
+
onManage = _ref$onManage === void 0 ? undefined : _ref$onManage,
|
|
242
|
+
_ref$isLoading = _ref.isLoading,
|
|
243
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
244
|
+
_ref$isConnected = _ref.isConnected,
|
|
245
|
+
isConnected = _ref$isConnected === void 0 ? false : _ref$isConnected,
|
|
246
|
+
_ref$isFailed = _ref.isFailed,
|
|
247
|
+
isFailed = _ref$isFailed === void 0 ? false : _ref$isFailed,
|
|
248
|
+
_ref$isExpired = _ref.isExpired,
|
|
249
|
+
isExpired = _ref$isExpired === void 0 ? false : _ref$isExpired,
|
|
250
|
+
_ref$disabled = _ref.disabled,
|
|
251
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
252
|
+
_ref$hidden = _ref.hidden,
|
|
253
|
+
hidden = _ref$hidden === void 0 ? false : _ref$hidden,
|
|
254
|
+
_ref$hideDisconnect = _ref.hideDisconnect,
|
|
255
|
+
hideDisconnect = _ref$hideDisconnect === void 0 ? false : _ref$hideDisconnect,
|
|
256
|
+
_ref$onClick = _ref.onClick,
|
|
257
|
+
onCardClick = _ref$onClick === void 0 ? undefined : _ref$onClick,
|
|
258
|
+
_ref$tooltipProps = _ref.tooltipProps,
|
|
259
|
+
tooltipProps = _ref$tooltipProps === void 0 ? {} : _ref$tooltipProps,
|
|
260
|
+
_ref$customDropdown = _ref.customDropdown,
|
|
261
|
+
customDropdown = _ref$customDropdown === void 0 ? null : _ref$customDropdown,
|
|
262
|
+
_ref$dataCy = _ref.dataCy,
|
|
263
|
+
dataCy = _ref$dataCy === void 0 ? "" : _ref$dataCy,
|
|
264
|
+
children = _ref.children,
|
|
265
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
266
|
+
var _useTranslation = useTranslation(),
|
|
267
|
+
t = _useTranslation.t;
|
|
268
|
+
if (hidden) return null;
|
|
269
|
+
var isCardClickable = isConnected && isNotNil(onCardClick);
|
|
270
|
+
var cardProps = isCardClickable ? {
|
|
271
|
+
onClick: onCardClick
|
|
272
|
+
} : {};
|
|
273
|
+
return /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
274
|
+
disabled: !disabled,
|
|
275
|
+
position: "top",
|
|
276
|
+
content: disabled && t("neetoMolecules.integrationCard.tooltip.integrationNotAvailable")
|
|
277
|
+
}, tooltipProps), /*#__PURE__*/React.createElement("div", _extends({
|
|
278
|
+
"data-cy": dataCy,
|
|
279
|
+
"data-testid": "integration-card",
|
|
280
|
+
className: classnames("outline-none neeto-ui-border-gray-300 neeto-ui-shadow-xs hover:neeto-ui-border-gray-500 focus:neeto-ui-border-gray-500 neeto-ui-rounded-lg flex flex-col border p-6 no-underline transition-colors", {
|
|
281
|
+
"hover:neeto-ui-bg-100 cursor-not-allowed opacity-50": disabled,
|
|
282
|
+
"cursor-pointer": isCardClickable
|
|
283
|
+
}, className)
|
|
284
|
+
}, cardProps, otherProps), /*#__PURE__*/React.createElement("div", {
|
|
285
|
+
className: "flex flex-grow justify-between",
|
|
286
|
+
"data-cy": "integration-tabs"
|
|
287
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
288
|
+
className: "flex min-w-0 flex-col justify-end"
|
|
289
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
290
|
+
className: "relative mb-4 flex h-8"
|
|
291
|
+
}, Icon && /*#__PURE__*/React.createElement(Icon, {
|
|
292
|
+
size: 32
|
|
293
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
294
|
+
className: "my-auto"
|
|
295
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
296
|
+
className: "mb-2",
|
|
297
|
+
"data-cy": "integration-card-label",
|
|
298
|
+
style: "h4",
|
|
299
|
+
weight: "semibold"
|
|
300
|
+
}, label), /*#__PURE__*/React.createElement(Typography, {
|
|
301
|
+
className: "break-words",
|
|
302
|
+
"data-cy": "".concat(joinHyphenCase(label), "-integration-description"),
|
|
303
|
+
style: "body2"
|
|
304
|
+
}, description), children)), isNotEmpty(subIcons) && /*#__PURE__*/React.createElement("div", {
|
|
305
|
+
className: "flex h-24 flex-col gap-2"
|
|
306
|
+
}, subIcons.map(function (Icon, index) {
|
|
307
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
308
|
+
className: "neeto-ui-text-gray-600",
|
|
309
|
+
key: index,
|
|
310
|
+
size: 24
|
|
311
|
+
});
|
|
312
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
313
|
+
className: "neeto-ui-border-gray-300 mt-4 w-full border-t pt-2"
|
|
314
|
+
}, isLoading ? /*#__PURE__*/React.createElement("div", {
|
|
315
|
+
className: "mt-3 flex items-center justify-start"
|
|
316
|
+
}, /*#__PURE__*/React.createElement(Spinner, null)) : /*#__PURE__*/React.createElement("div", {
|
|
317
|
+
className: "flex h-8 items-center justify-between"
|
|
318
|
+
}, isConnected && /*#__PURE__*/React.createElement(Status, {
|
|
319
|
+
isExpired: isExpired
|
|
320
|
+
}), isFailed && /*#__PURE__*/React.createElement(Button, {
|
|
321
|
+
className: "neeto-ui-text-warning-500",
|
|
322
|
+
"data-cy": "connect-button",
|
|
323
|
+
disabled: disabled || isLoading,
|
|
324
|
+
label: t("neetoMolecules.integrationCard.tryAgain"),
|
|
325
|
+
style: "link",
|
|
326
|
+
onClick: onConnect
|
|
327
|
+
}), !isConnected && !isFailed && /*#__PURE__*/React.createElement(Button, {
|
|
328
|
+
"data-cy": "connect-button",
|
|
329
|
+
"data-testid": "integraiton-card-connect-button",
|
|
330
|
+
disabled: disabled || isLoading,
|
|
331
|
+
label: t("neetoMolecules.integrationCard.connect"),
|
|
332
|
+
style: "link",
|
|
333
|
+
onClick: onConnect
|
|
334
|
+
}), (isConnected || isFailed) && /*#__PURE__*/React.createElement(Dropdown, {
|
|
335
|
+
customDropdown: customDropdown,
|
|
336
|
+
hideDisconnect: hideDisconnect,
|
|
337
|
+
onDisconnect: onDisconnect,
|
|
338
|
+
handleManage: onManage
|
|
339
|
+
})))));
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
export { IntegrationCard as default };
|
|
343
|
+
//# sourceMappingURL=IntegrationCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationCard.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../src/components/MoreDropdown/constants.js","../src/components/MoreDropdown/index.jsx","../src/components/IntegrationCard/Dropdown.jsx","../src/components/IntegrationCard/Status.jsx","../src/components/IntegrationCard/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export const BUTTON_STYLES = {\n primary: \"primary\",\n secondary: \"secondary\",\n danger: \"danger\",\n danger_text: \"danger-text\",\n text: \"text\",\n link: \"link\",\n};\n\nexport const SIZES = { small: \"small\", medium: \"medium\", large: \"large\" };\n\nexport const STRATEGY = { absolute: \"absolute\", fixed: \"fixed\" };\n\nexport const MENU_ITEM_TYPES = { menuItem: \"menuItem\", divider: \"divider\" };\n\nexport const DEFAULT_TOOLTIP_PROPS = {\n disabled: true,\n position: \"bottom\",\n};\n","import React from \"react\";\n\nimport { MenuHorizontal, MenuVertical } from \"neetoicons\";\nimport { Button, Dropdown, Tooltip } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { mergeRight } from \"ramda\";\n\nimport {\n BUTTON_STYLES,\n DEFAULT_TOOLTIP_PROPS,\n MENU_ITEM_TYPES,\n SIZES,\n STRATEGY,\n} from \"./constants\";\n\nconst { Menu, MenuItem, Divider } = Dropdown;\n\nconst MoreDropdown = ({\n dropdownButtonProps = {},\n isVertical = false,\n isDisabled = false,\n dropdownProps = {},\n menuTopChildren,\n menuBottomChildren,\n menuItems = [],\n}) => {\n const tooltipProps = mergeRight(\n DEFAULT_TOOLTIP_PROPS,\n dropdownButtonProps.tooltipProps\n );\n\n const targetIcon = isVertical ? MenuVertical : MenuHorizontal;\n\n const isDropdownDisabled = isDisabled || dropdownProps.disabled;\n if (isDropdownDisabled && !tooltipProps.disabled) {\n return (\n <Tooltip {...tooltipProps}>\n <span>\n <Button\n disabled\n data-testid=\"nui-dropdown-button\"\n icon={targetIcon}\n iconPosition=\"right\"\n size=\"medium\"\n style=\"text\"\n {...dropdownButtonProps}\n />\n </span>\n </Tooltip>\n );\n }\n\n return (\n <Dropdown\n autoWidth\n className=\"flex\"\n disabled={isDisabled}\n icon={targetIcon}\n buttonProps={{\n className: \"min-h-0 flex-shrink-0\",\n style: \"text\",\n ...dropdownButtonProps,\n }}\n {...dropdownProps}\n >\n <Menu>\n {menuTopChildren}\n {menuItems.map(\n ({\n key,\n onClick,\n label,\n type = MENU_ITEM_TYPES.menuItem,\n isVisible = true,\n ...menuItemProps\n }) => {\n if (!isVisible) return null;\n\n return type === MENU_ITEM_TYPES.menuItem ? (\n <MenuItem.Button key={key} {...{ onClick, ...menuItemProps }}>\n {label}\n </MenuItem.Button>\n ) : (\n <Divider key={key} />\n );\n }\n )}\n {menuBottomChildren}\n </Menu>\n </Dropdown>\n );\n};\n\nMoreDropdown.propTypes = {\n /*\n * This props will be passed to the target button of the dropdown.\n */\n dropdownButtonProps: PropTypes.shape({\n style: PropTypes.oneOf(Object.values(BUTTON_STYLES)),\n size: PropTypes.oneOf(Object.values(SIZES)),\n iconSize: PropTypes.number,\n disabled: PropTypes.bool,\n }),\n /*\n * Whether to show a MenuVertical icon. By default the icon will be MenuHorizontal.\n */\n isVertical: PropTypes.bool,\n /*\n * Whether the dropdown is disabled or not.\n */\n isDisabled: PropTypes.bool,\n /*\n * This props will be passed to the dropdown.\n */\n dropdownProps: PropTypes.shape({\n strategy: PropTypes.oneOf(Object.values(STRATEGY)),\n }),\n /*\n * This children will be rendered on top of the dropdown menu.\n */\n menuTopChildren: PropTypes.node,\n /*\n * This children will be rendered on bottom of the dropdown menu.\n */\n menuBottomChildren: PropTypes.node,\n /*\n * Menu items inside the dropdown. Each item needs to have a `label`, `onClick` and `key`.\n */\n menuItems: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func,\n key: PropTypes.string,\n type: PropTypes.oneOf(Object.values(MENU_ITEM_TYPES)),\n isVisible: PropTypes.bool,\n })\n ),\n};\n\nexport default MoreDropdown;\n","import React from \"react\";\n\nimport { noop } from \"neetocommons/pure\";\nimport { isNotNil } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport MoreDropdown from \"components/MoreDropdown\";\n\nconst Dropdown = ({\n customDropdown,\n handleManage = noop,\n hideDisconnect = false,\n onDisconnect = noop,\n}) => {\n const { t } = useTranslation();\n\n if (isNotNil(customDropdown)) {\n return <div onClick={e => e.stopPropagation()}>{customDropdown}</div>;\n }\n\n const isManageable = isNotNil(handleManage);\n\n if (!isManageable && hideDisconnect) {\n return null;\n }\n\n return (\n <div onClick={e => e.stopPropagation()}>\n <MoreDropdown\n menuItems={[\n {\n isVisible: isManageable,\n onClick: handleManage,\n label: t(\"neetoMolecules.integrationCard.manage\"),\n key: \"integration-card-manage-integration\",\n },\n {\n isVisible: !hideDisconnect,\n onClick: onDisconnect,\n label: t(\"neetoMolecules.integrationCard.disconnect\"),\n key: \"integration-card-manage-disconnection\",\n },\n ]}\n />\n </div>\n );\n};\n\nexport default Dropdown;\n","import React from \"react\";\n\nimport { Check, Warning } from \"neetoicons\";\nimport { Tag } from \"neetoui\";\nimport { useTranslation } from \"react-i18next\";\n\nconst Status = ({ isExpired }) => {\n const { t } = useTranslation();\n\n const tagProps = isExpired\n ? {\n icon: Warning,\n label: t(\"neetoMolecules.integrationCard.tags.expired\"),\n style: \"warning\",\n }\n : {\n icon: Check,\n label: t(\"neetoMolecules.integrationCard.tags.connected\"),\n style: \"success\",\n };\n\n return (\n <Tag\n className=\"flex-row-reverse\"\n {...tagProps}\n data-testid=\"integration-status\"\n />\n );\n};\n\nexport default Status;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport { isNotEmpty, noop } from \"neetocommons/pure\";\nimport { joinHyphenCase } from \"neetocommons/utils\";\nimport { Typography, Button, Spinner, Tooltip } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { isNotNil } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport Dropdown from \"./Dropdown\";\nimport Status from \"./Status\";\n\nconst IntegrationCard = ({\n icon: Icon,\n subIcons = [],\n label = \"\",\n description = \"\",\n className = \"\",\n onConnect = noop,\n onDisconnect = noop,\n onManage = undefined,\n isLoading = false,\n isConnected = false,\n isFailed = false,\n isExpired = false,\n disabled = false,\n hidden = false,\n hideDisconnect = false,\n onClick: onCardClick = undefined,\n tooltipProps = {},\n customDropdown = null,\n dataCy = \"\",\n children,\n ...otherProps\n}) => {\n const { t } = useTranslation();\n\n if (hidden) return null;\n\n const isCardClickable = isConnected && isNotNil(onCardClick);\n\n const cardProps = isCardClickable ? { onClick: onCardClick } : {};\n\n return (\n <Tooltip\n disabled={!disabled}\n position=\"top\"\n content={\n disabled &&\n t(\"neetoMolecules.integrationCard.tooltip.integrationNotAvailable\")\n }\n {...tooltipProps}\n >\n <div\n data-cy={dataCy}\n data-testid=\"integration-card\"\n className={classnames(\n \"outline-none neeto-ui-border-gray-300 neeto-ui-shadow-xs hover:neeto-ui-border-gray-500 focus:neeto-ui-border-gray-500 neeto-ui-rounded-lg flex flex-col border p-6 no-underline transition-colors\",\n {\n \"hover:neeto-ui-bg-100 cursor-not-allowed opacity-50\": disabled,\n \"cursor-pointer\": isCardClickable,\n },\n className\n )}\n {...cardProps}\n {...otherProps}\n >\n <div\n className=\"flex flex-grow justify-between\"\n data-cy=\"integration-tabs\"\n >\n <div className=\"flex min-w-0 flex-col justify-end\">\n <div className=\"relative mb-4 flex h-8\">\n {Icon && <Icon size={32} />}\n </div>\n <div className=\"my-auto\">\n <Typography\n className=\"mb-2\"\n data-cy=\"integration-card-label\"\n style=\"h4\"\n weight=\"semibold\"\n >\n {label}\n </Typography>\n <Typography\n className=\"break-words\"\n data-cy={`${joinHyphenCase(label)}-integration-description`}\n style=\"body2\"\n >\n {description}\n </Typography>\n {children}\n </div>\n </div>\n {isNotEmpty(subIcons) && (\n <div className=\"flex h-24 flex-col gap-2\">\n {subIcons.map((Icon, index) => (\n <Icon\n className=\"neeto-ui-text-gray-600\"\n key={index}\n size={24}\n />\n ))}\n </div>\n )}\n </div>\n <div className=\"neeto-ui-border-gray-300 mt-4 w-full border-t pt-2\">\n {isLoading ? (\n <div className=\"mt-3 flex items-center justify-start\">\n <Spinner />\n </div>\n ) : (\n <div className=\"flex h-8 items-center justify-between\">\n {isConnected && <Status {...{ isExpired }} />}\n {isFailed && (\n <Button\n className=\"neeto-ui-text-warning-500\"\n data-cy=\"connect-button\"\n disabled={disabled || isLoading}\n label={t(\"neetoMolecules.integrationCard.tryAgain\")}\n style=\"link\"\n onClick={onConnect}\n />\n )}\n {!isConnected && !isFailed && (\n <Button\n data-cy=\"connect-button\"\n data-testid=\"integraiton-card-connect-button\"\n disabled={disabled || isLoading}\n label={t(\"neetoMolecules.integrationCard.connect\")}\n style=\"link\"\n onClick={onConnect}\n />\n )}\n {(isConnected || isFailed) && (\n <Dropdown\n {...{ customDropdown, hideDisconnect, onDisconnect }}\n handleManage={onManage}\n />\n )}\n </div>\n )}\n </div>\n </div>\n </Tooltip>\n );\n};\n\nIntegrationCard.propTypes = {\n /**\n * The icon component to be displayed on the card.\n */\n icon: PropTypes.elementType,\n /**\n * Array of sub-icons to be displayed on the card.\n */\n subIcons: PropTypes.arrayOf(PropTypes.elementType),\n /**\n * The label to be displayed on the card.\n */\n label: PropTypes.string,\n /**\n * The description of the card.\n */\n description: PropTypes.string,\n /**\n * Additional class names for styling the card.\n */\n className: PropTypes.string,\n /**\n * Handler function called when the integration is connected.\n */\n onConnect: PropTypes.func,\n /**\n * Handler function called when the manage dropdown is clicked.\n */\n onManage: PropTypes.func,\n /**\n * Handler function called when clicked on integration card.\n */\n onClick: PropTypes.func,\n /**\n * Handler function called when the disconnect dropdown is clicked.\n */\n onDisconnect: PropTypes.func,\n /**\n * Flag indicating if the integration is currently loading.\n */\n isLoading: PropTypes.bool,\n /**\n * Flag indicating if the integration is connected.\n */\n isConnected: PropTypes.bool,\n /**\n * Flag indicating if the integration has failed.\n */\n isFailed: PropTypes.bool,\n /**\n * Flag indicating if the integration has expired.\n */\n isExpired: PropTypes.bool,\n /**\n * Flag indicating if the integration is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * Flag indicating if the card should be hidden.\n */\n hidden: PropTypes.bool,\n /**\n * Flag indicating if the disconnect button should be hidden.\n */\n hideDisconnect: PropTypes.bool,\n /**\n * Additional props for customizing the tooltip wrapper.\n */\n tooltipProps: PropTypes.object,\n /**\n * Custom dropdown component to be rendered.\n */\n customDropdown: PropTypes.element,\n /**\n * Additional children elements to be rendered within the card.\n */\n children: PropTypes.node,\n};\n\nexport default IntegrationCard;\n"],"names":["objectWithoutPropertiesLoose","toPrimitive","toPropertyKey","MENU_ITEM_TYPES","menuItem","divider","DEFAULT_TOOLTIP_PROPS","disabled","position","Menu","Dropdown","MenuItem","Divider","MoreDropdown","_ref","_ref$dropdownButtonPr","dropdownButtonProps","_ref$isVertical","isVertical","_ref$isDisabled","isDisabled","_ref$dropdownProps","dropdownProps","menuTopChildren","menuBottomChildren","_ref$menuItems","menuItems","tooltipProps","mergeRight","targetIcon","MenuVertical","MenuHorizontal","isDropdownDisabled","React","createElement","Tooltip","Button","_extends","icon","iconPosition","size","style","autoWidth","className","buttonProps","_objectSpread","map","_ref2","key","onClick","label","_ref2$type","type","_ref2$isVisible","isVisible","menuItemProps","_objectWithoutProperties","_excluded","customDropdown","_ref$handleManage","handleManage","noop","_ref$hideDisconnect","hideDisconnect","_ref$onDisconnect","onDisconnect","_useTranslation","useTranslation","t","isNotNil","e","stopPropagation","isManageable","Status","isExpired","tagProps","Warning","Check","Tag","IntegrationCard","Icon","_ref$subIcons","subIcons","_ref$label","_ref$description","description","_ref$className","_ref$onConnect","onConnect","_ref$onManage","onManage","undefined","_ref$isLoading","isLoading","_ref$isConnected","isConnected","_ref$isFailed","isFailed","_ref$isExpired","_ref$disabled","_ref$hidden","hidden","_ref$onClick","onCardClick","_ref$tooltipProps","_ref$customDropdown","_ref$dataCy","dataCy","children","otherProps","isCardClickable","cardProps","content","classnames","Typography","weight","concat","joinHyphenCase","isNotEmpty","index","Spinner"],"mappings":";;;;;;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GA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A,EAAQ,gBAAgB;AACxB,IAAA,aAAA,EAAY,iCAAiC;IAC7C7B,QAAQ,EAAEA,QAAQ,IAAIsF,SAAU;AAChC3C,IAAAA,KAAK,EAAEkB,CAAC,CAAC,wCAAwC,CAAE;AACnD3B,IAAAA,KAAK,EAAC,MAAM;AACZQ,IAAAA,OAAO,EAAEuC,SAAAA;GAEZ,CAAA,EACA,CAACO,WAAW,IAAIE,QAAQ,kBACvBhE,KAAA,CAAAC,aAAA,CAACxB,QAAQ,EAAA;AACDgD,IAAAA,cAAc,EAAdA,cAAc;AAAEK,IAAAA,cAAc,EAAdA,cAAc;AAAEE,IAAAA,YAAY,EAAZA,YAAY;AAClDL,IAAAA,YAAY,EAAE8B,QAAAA;GAEjB,CAAA,CAEJ,CACG,CACF,CACE,CAAA;AAEd;;;;"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { noop } from '@bigbinary/neeto-commons-frontend/pure';
|
|
3
|
+
import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
|
+
import { Alert } from '@bigbinary/neetoui';
|
|
5
|
+
|
|
6
|
+
function _extends() {
|
|
7
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
8
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9
|
+
var source = arguments[i];
|
|
10
|
+
for (var key in source) {
|
|
11
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12
|
+
target[key] = source[key];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
return _extends.apply(this, arguments);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
22
|
+
if (source == null) return {};
|
|
23
|
+
var target = {};
|
|
24
|
+
var sourceKeys = Object.keys(source);
|
|
25
|
+
var key, i;
|
|
26
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
27
|
+
key = sourceKeys[i];
|
|
28
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
29
|
+
target[key] = source[key];
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function _objectWithoutProperties(source, excluded) {
|
|
35
|
+
if (source == null) return {};
|
|
36
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
37
|
+
var key, i;
|
|
38
|
+
if (Object.getOwnPropertySymbols) {
|
|
39
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
40
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
41
|
+
key = sourceSymbolKeys[i];
|
|
42
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
43
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
44
|
+
target[key] = source[key];
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return target;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
var _excluded = ["t", "isOpen", "isDisconnecting", "title", "message", "onClose", "onDisconnect"];
|
|
51
|
+
var IntegrationDisconnectAlert = function IntegrationDisconnectAlert(_ref) {
|
|
52
|
+
var t = _ref.t,
|
|
53
|
+
_ref$isOpen = _ref.isOpen,
|
|
54
|
+
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen,
|
|
55
|
+
_ref$isDisconnecting = _ref.isDisconnecting,
|
|
56
|
+
isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
|
|
57
|
+
_ref$title = _ref.title,
|
|
58
|
+
title = _ref$title === void 0 ? "" : _ref$title,
|
|
59
|
+
_ref$message = _ref.message,
|
|
60
|
+
message = _ref$message === void 0 ? "" : _ref$message,
|
|
61
|
+
_ref$onClose = _ref.onClose,
|
|
62
|
+
onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
|
|
63
|
+
_ref$onDisconnect = _ref.onDisconnect,
|
|
64
|
+
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect,
|
|
65
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
66
|
+
return /*#__PURE__*/React.createElement(Alert, _extends({
|
|
67
|
+
isSubmitting: isDisconnecting,
|
|
68
|
+
isOpen: isOpen,
|
|
69
|
+
message: message,
|
|
70
|
+
onClose: onClose,
|
|
71
|
+
title: title,
|
|
72
|
+
submitButtonLabel: t("neetoMolecules.integrationDisconnectAlert.disconnect"),
|
|
73
|
+
onSubmit: onDisconnect
|
|
74
|
+
}, otherProps));
|
|
75
|
+
};
|
|
76
|
+
var WrappedIntegrationDisconnectAlert = withT(IntegrationDisconnectAlert);
|
|
77
|
+
WrappedIntegrationDisconnectAlert.displayName = "IntegrationDisconnectAlert";
|
|
78
|
+
|
|
79
|
+
export { IntegrationDisconnectAlert, WrappedIntegrationDisconnectAlert as default };
|
|
80
|
+
//# sourceMappingURL=IntegrationDisconnectAlert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationDisconnectAlert.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../src/components/IntegrationDisconnectAlert/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","import React from \"react\";\n\nimport { noop } from \"neetocommons/pure\";\nimport { withT } from \"neetocommons/react-utils\";\nimport { Alert } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nconst IntegrationDisconnectAlert = ({\n t,\n isOpen = false,\n isDisconnecting = false,\n title = \"\",\n message = \"\",\n onClose = noop,\n onDisconnect = noop,\n ...otherProps\n}) => (\n <Alert\n isSubmitting={isDisconnecting}\n {...{ isOpen, message, onClose, title }}\n submitButtonLabel={t(\n \"neetoMolecules.integrationDisconnectAlert.disconnect\"\n )}\n onSubmit={onDisconnect}\n {...otherProps}\n />\n);\n\nIntegrationDisconnectAlert.propTypes = {\n /**\n * To show loading state when the confirmation is given for disconnecting\n */\n isDisconnecting: PropTypes.bool,\n /**\n * To specify whether the integration modal should be opened or closed.\n */\n isOpen: PropTypes.bool,\n /**\n * To show the title of the alert modal\n */\n title: PropTypes.string,\n /**\n * To show the description of the alert modal\n */\n message: PropTypes.string,\n /**\n * Handler function that is triggered when the close button is clicked.\n */\n onClose: PropTypes.func,\n /**\n * Handler function that is triggered when the disconnect button is clicked\n */\n onDisconnect: PropTypes.func,\n};\n\nconst WrappedIntegrationDisconnectAlert = withT(IntegrationDisconnectAlert);\nWrappedIntegrationDisconnectAlert.displayName = \"IntegrationDisconnectAlert\";\n\nexport { IntegrationDisconnectAlert };\nexport default WrappedIntegrationDisconnectAlert;\n"],"names":["objectWithoutPropertiesLoose","IntegrationDisconnectAlert","_ref","t","_ref$isOpen","isOpen","_ref$isDisconnecting","isDisconnecting","_ref$title","title","_ref$message","message","_ref$onClose","onClose","noop","_ref$onDisconnect","onDisconnect","otherProps","_objectWithoutProperties","_excluded","React","createElement","Alert","_extends","isSubmitting","submitButtonLabel","onSubmit","WrappedIntegrationDisconnectAlert","withT","displayName"],"mappings":";;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC;;ACbe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,IAAI,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvC,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AACb,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC1C,IAAI,GAA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B;;;;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { noop } from
|
|
3
|
-
import { withT } from
|
|
4
|
-
import { Modal,
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { noop } from '@bigbinary/neeto-commons-frontend/pure';
|
|
3
|
+
import { withT } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
|
+
import { Modal, Typography, Button } from '@bigbinary/neetoui';
|
|
5
|
+
|
|
5
6
|
var IntegrationWalkthroughModal = function IntegrationWalkthroughModal(_ref) {
|
|
6
7
|
var t = _ref.t,
|
|
7
8
|
_ref$isOpen = _ref.isOpen,
|
|
@@ -35,5 +36,6 @@ var IntegrationWalkthroughModal = function IntegrationWalkthroughModal(_ref) {
|
|
|
35
36
|
};
|
|
36
37
|
var WrappedIntegrationWalkthroughModal = withT(IntegrationWalkthroughModal);
|
|
37
38
|
WrappedIntegrationWalkthroughModal.displayName = "IntegrationWalkthroughModal";
|
|
38
|
-
|
|
39
|
-
export default
|
|
39
|
+
|
|
40
|
+
export { IntegrationWalkthroughModal, WrappedIntegrationWalkthroughModal as default };
|
|
41
|
+
//# sourceMappingURL=IntegrationWalkthroughModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegrationWalkthroughModal.js","sources":["../src/components/IntegrationWalkthroughModal/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { noop } from \"neetocommons/pure\";\nimport { withT } from \"neetocommons/react-utils\";\nimport { Modal, Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\n\nconst IntegrationWalkthroughModal = ({\n t,\n isOpen = false,\n onClose = noop,\n videoUrl = \"\",\n children,\n}) => (\n <Modal {...{ isOpen, onClose }} size=\"large\">\n <Modal.Header>\n <Typography style=\"h2\" weight=\"semibold\">\n {t(\"neetoMolecules.integrationWalkthroughModal.header\")}\n </Typography>\n </Modal.Header>\n <Modal.Body>\n <div className=\"w-full py-10\">\n <video\n autoPlay\n controls\n muted\n className=\"cursor-pointer\"\n id=\"walkthrough-video\"\n >\n <source src={videoUrl} />\n </video>\n {children}\n </div>\n </Modal.Body>\n <Modal.Footer>\n <Button\n label={t(\"neetoMolecules.integrationWalkthroughModal.continue\")}\n onClick={onClose}\n />\n </Modal.Footer>\n </Modal>\n);\n\nIntegrationWalkthroughModal.propTypes = {\n /**\n * To specify video URL of integration walkthrough that will be embedded.\n */\n videoUrl: PropTypes.string,\n /**\n * To specify whether the integration modal should be opened or closed.\n */\n isOpen: PropTypes.bool,\n /**\n * Handler function that is triggered when the continue or close button is clicked.\n */\n onClose: PropTypes.func,\n};\n\nconst WrappedIntegrationWalkthroughModal = withT(IntegrationWalkthroughModal);\nWrappedIntegrationWalkthroughModal.displayName = \"IntegrationWalkthroughModal\";\n\nexport { IntegrationWalkthroughModal };\nexport default WrappedIntegrationWalkthroughModal;\n"],"names":["IntegrationWalkthroughModal","_ref","t","_ref$isOpen","isOpen","_ref$onClose","onClose","noop","_ref$videoUrl","videoUrl","children","React","createElement","Modal","size","Header","Typography","style","weight","Body","className","autoPlay","controls","muted","id","src","Footer","Button","label","onClick","WrappedIntegrationWalkthroughModal","withT","displayName"],"mappings":";;;;;AAOA,IAAMA,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAC/BC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAAC,WAAA,GAAAF,IAAA,CACDG,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,WAAA;IAAAE,YAAA,GAAAJ,IAAA,CACdK,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAGE,KAAAA,CAAAA,GAAAA,IAAI,GAAAF,YAAA;IAAAG,aAAA,GAAAP,IAAA,CACdQ,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,aAAA;IACbE,QAAQ,GA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