@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
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
.neeto-molecules-app-switcher__backdrop {
|
|
2
|
-
position: fixed;
|
|
3
|
-
z-index: 99998;
|
|
4
|
-
left: 0;
|
|
5
|
-
top: 0;
|
|
6
|
-
width: 100vw;
|
|
7
|
-
height: 100vh;
|
|
8
|
-
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
justify-content: flex-start;
|
|
13
|
-
align-items: center;
|
|
14
|
-
|
|
15
|
-
transition: all 0.3s;
|
|
16
|
-
background-color: #1b1f23dd;
|
|
17
|
-
backdrop-filter: blur(2px);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.neeto-molecules-app-switcher__wrapper {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
justify-content: flex-start;
|
|
24
|
-
align-items: flex-start;
|
|
25
|
-
background-color: rgb(var(--neeto-ui-white));
|
|
26
|
-
width: 100vw;
|
|
27
|
-
height: 100vh;
|
|
28
|
-
overflow-y: auto;
|
|
29
|
-
max-width: 100%;
|
|
30
|
-
padding: 40px;
|
|
31
|
-
position: relative;
|
|
32
|
-
|
|
33
|
-
backdrop-filter: blur(2px);
|
|
34
|
-
animation: nuifadeIn 0.3s ease-in;
|
|
35
|
-
|
|
36
|
-
transition: all 0.3s;
|
|
37
|
-
|
|
38
|
-
&--collapsed {
|
|
39
|
-
width: 100vw;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.neeto-molecules-app-switcher__grid {
|
|
44
|
-
display: grid;
|
|
45
|
-
grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
|
|
46
|
-
gap: 24px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.neeto-molecules-app-switcher__header {
|
|
50
|
-
width: 100%;
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
position: relative;
|
|
55
|
-
gap: 16px;
|
|
56
|
-
margin-bottom: 32px;
|
|
57
|
-
|
|
58
|
-
h1 {
|
|
59
|
-
font-size: 40px;
|
|
60
|
-
line-height: var(--neeto-ui-leading-tight);
|
|
61
|
-
margin-top: -16px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.neeto-molecules-app-switcher__close-btn {
|
|
66
|
-
position: absolute;
|
|
67
|
-
right: 12px;
|
|
68
|
-
top: 12px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.neeto-molecules-app-switcher__search-wrapper {
|
|
72
|
-
width: 316px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.neeto-molecules-app-switcher__body {
|
|
76
|
-
display: flex;
|
|
77
|
-
flex-direction: column;
|
|
78
|
-
width: 100%;
|
|
79
|
-
font-size: var(--neeto-ui-text-sm);
|
|
80
|
-
margin-bottom: 24px;
|
|
81
|
-
gap: 12px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.neeto-molecules-app-switcher-link {
|
|
85
|
-
width: 100%;
|
|
86
|
-
max-width: 100%;
|
|
87
|
-
border-radius: var(--neeto-ui-rounded-lg);
|
|
88
|
-
background-color: rgb(var(--neeto-ui-gray-100));
|
|
89
|
-
border-width: 2px;
|
|
90
|
-
border-style: solid;
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
border-color: rgb(var(--neeto-ui-gray-100));
|
|
93
|
-
text-decoration: none;
|
|
94
|
-
transition: background-color 0.3s ease-in-out;
|
|
95
|
-
|
|
96
|
-
display: flex;
|
|
97
|
-
align-items: center;
|
|
98
|
-
padding: 12px 16px;
|
|
99
|
-
gap: 12px;
|
|
100
|
-
|
|
101
|
-
&:focus,
|
|
102
|
-
&:focus-visible {
|
|
103
|
-
outline: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&:focus-visible {
|
|
107
|
-
background-color: rgb(var(--neeto-ui-gray-200));
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&:not(.neeto-molecules-app-switcher-link--active):hover {
|
|
111
|
-
background-color: rgb(var(--neeto-ui-gray-200));
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.neeto-molecules-app-switcher-link--active {
|
|
116
|
-
background: rgb(var(--neeto-ui-primary-100));
|
|
117
|
-
border-color: rgb(var(--neeto-ui-primary-600));
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.neeto-molecules-app-switcher-link__icon-holder {
|
|
121
|
-
width: 42px;
|
|
122
|
-
height: 42px;
|
|
123
|
-
display: flex;
|
|
124
|
-
align-items: center;
|
|
125
|
-
justify-content: center;
|
|
126
|
-
border-radius: var(--neeto-ui-rounded-lg);
|
|
127
|
-
flex-shrink: 0;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.neeto-molecules-app-switcher-link__content {
|
|
131
|
-
flex-grow: 1;
|
|
132
|
-
|
|
133
|
-
span {
|
|
134
|
-
display: block;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// CSS transition group
|
|
139
|
-
|
|
140
|
-
.neeto-molecules-app-switcher-enter {
|
|
141
|
-
&.neeto-molecules-app-switcher__backdrop {
|
|
142
|
-
opacity: 0;
|
|
143
|
-
backdrop-filter: blur(2px);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
.neeto-molecules-app-switcher-enter-active,
|
|
147
|
-
.neeto-molecules-app-switcher-enter-done {
|
|
148
|
-
&.neeto-molecules-app-switcher__backdrop {
|
|
149
|
-
opacity: 1;
|
|
150
|
-
backdrop-filter: blur(2px);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
.neeto-molecules-app-switcher-exit {
|
|
154
|
-
&.neeto-molecules-app-switcher__backdrop {
|
|
155
|
-
opacity: 1;
|
|
156
|
-
backdrop-filter: blur(2px);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
.neeto-molecules-app-switcher-exit-active {
|
|
160
|
-
&.neeto-molecules-app-switcher__backdrop {
|
|
161
|
-
opacity: 0;
|
|
162
|
-
backdrop-filter: blur(2px);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React, { useRef } from "react";
|
|
2
|
-
import classnames from "classnames";
|
|
3
|
-
import { useHotKeys } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
4
|
-
import { CSSTransition } from "react-transition-group";
|
|
5
|
-
import "./appswitcher.scss";
|
|
6
|
-
import Backdrop from "./Backdrop";
|
|
7
|
-
import Body from "./Body";
|
|
8
|
-
import Portal from "./Portal";
|
|
9
|
-
import { useOnClickOutside } from "./utils";
|
|
10
|
-
var AppSwitcher = function AppSwitcher(_ref) {
|
|
11
|
-
var isOpen = _ref.isOpen,
|
|
12
|
-
onClose = _ref.onClose,
|
|
13
|
-
isSidebarCollapsed = _ref.isSidebarCollapsed;
|
|
14
|
-
var paneWrapper = useRef(null);
|
|
15
|
-
var backdropRef = useRef(null);
|
|
16
|
-
useOnClickOutside(paneWrapper, backdropRef, onClose);
|
|
17
|
-
useHotKeys("esc", onClose, {
|
|
18
|
-
enabled: isOpen,
|
|
19
|
-
mode: "global"
|
|
20
|
-
});
|
|
21
|
-
return /*#__PURE__*/React.createElement(Portal, {
|
|
22
|
-
rootId: "neeto-ui-portal"
|
|
23
|
-
}, /*#__PURE__*/React.createElement(CSSTransition, {
|
|
24
|
-
appear: true,
|
|
25
|
-
unmountOnExit: true,
|
|
26
|
-
classNames: "neeto-molecules-app-switcher",
|
|
27
|
-
"in": isOpen,
|
|
28
|
-
timeout: 300
|
|
29
|
-
}, /*#__PURE__*/React.createElement(Backdrop, {
|
|
30
|
-
key: "switcher-backdrop",
|
|
31
|
-
ref: backdropRef,
|
|
32
|
-
className: classnames("neeto-molecules-app-switcher__backdrop", {
|
|
33
|
-
"neeto-molecules-app-switcher__backdrop--collapsed": isSidebarCollapsed
|
|
34
|
-
})
|
|
35
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
"data-cy": "switcher-wrapper",
|
|
37
|
-
"data-testid": "switcher-wrapper",
|
|
38
|
-
key: "switcher-wrapper",
|
|
39
|
-
ref: paneWrapper,
|
|
40
|
-
className: classnames("neeto-molecules-app-switcher__wrapper", {
|
|
41
|
-
"neeto-molecules-app-switcher__wrapper--collapsed": isSidebarCollapsed
|
|
42
|
-
})
|
|
43
|
-
}, /*#__PURE__*/React.createElement(Body, {
|
|
44
|
-
onClose: onClose
|
|
45
|
-
})))));
|
|
46
|
-
};
|
|
47
|
-
export default AppSwitcher;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
2
|
-
export var useOnClickOutside = function useOnClickOutside(insideRef, outsideRef, handler) {
|
|
3
|
-
useEffect(function () {
|
|
4
|
-
var listener = function listener(event) {
|
|
5
|
-
// Do nothing if clicking ref's element or descendent elements
|
|
6
|
-
if (!insideRef.current || insideRef.current.contains(event.target)) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
if (outsideRef.current) {
|
|
10
|
-
// If Outside ref exists, trigger the handler if it contains the event target.
|
|
11
|
-
if (outsideRef.current.contains(event.target)) {
|
|
12
|
-
handler(event);
|
|
13
|
-
}
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
handler(event);
|
|
17
|
-
};
|
|
18
|
-
document.addEventListener("mousedown", listener);
|
|
19
|
-
document.addEventListener("touchstart", listener);
|
|
20
|
-
return function () {
|
|
21
|
-
document.removeEventListener("mousedown", listener);
|
|
22
|
-
document.removeEventListener("touchstart", listener);
|
|
23
|
-
};
|
|
24
|
-
}, [insideRef, outsideRef, handler]);
|
|
25
|
-
};
|
package/dist/Sidebar/Chevron.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
var Chevron = function Chevron(_ref) {
|
|
3
|
-
var style = _ref.style;
|
|
4
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
5
|
-
height: "16",
|
|
6
|
-
viewBox: "0 0 16 16",
|
|
7
|
-
width: "16",
|
|
8
|
-
style: style
|
|
9
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
10
|
-
d: "M7.07031 13.8887C7.2207 14.0391 7.40527 14.1211 7.62402 14.1211C8.06836 14.1211 8.41699 13.7725 8.41699 13.3281C8.41699 13.1094 8.32812 12.9043 8.17773 12.7539L3.37207 8.05762L8.17773 3.375C8.32812 3.21777 8.41699 3.0127 8.41699 2.80078C8.41699 2.35645 8.06836 2.00781 7.62402 2.00781C7.40527 2.00781 7.2207 2.08984 7.07031 2.24023L1.73828 7.44922C1.56055 7.62012 1.46484 7.8252 1.46484 8.06445C1.46484 8.29688 1.55371 8.49512 1.73828 8.67969L7.07031 13.8887ZM13.1748 13.8887C13.3252 14.0391 13.5098 14.1211 13.7354 14.1211C14.1797 14.1211 14.5283 13.7725 14.5283 13.3281C14.5283 13.1094 14.4395 12.9043 14.2891 12.7539L9.4834 8.05762L14.2891 3.375C14.4395 3.21777 14.5283 3.0127 14.5283 2.80078C14.5283 2.35645 14.1797 2.00781 13.7354 2.00781C13.5098 2.00781 13.3252 2.08984 13.1748 2.24023L7.84961 7.44922C7.66504 7.62012 7.57617 7.8252 7.56934 8.06445C7.56934 8.29688 7.66504 8.49512 7.84961 8.67969L13.1748 13.8887Z",
|
|
11
|
-
fill: "currentColor"
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
export default Chevron;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Typography } from "@bigbinary/neetoui";
|
|
3
|
-
var FeaturedTooltip = function FeaturedTooltip(_ref) {
|
|
4
|
-
var label = _ref.label,
|
|
5
|
-
description = _ref.description;
|
|
6
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
-
className: "neeto-ui-flex neeto-ui-flex-col sidebar-featured-tooltip"
|
|
8
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
9
|
-
className: "neeto-ui-text-center sidebar-featured-tooltip__title",
|
|
10
|
-
lineHeight: "tight",
|
|
11
|
-
style: "h5",
|
|
12
|
-
weight: "semibold"
|
|
13
|
-
}, label), description && /*#__PURE__*/React.createElement(Typography, {
|
|
14
|
-
className: "neeto-ui-text-center neeto-ui-text-gray-400 sidebar-featured-tooltip__description",
|
|
15
|
-
lineHeight: "normal",
|
|
16
|
-
style: "body3"
|
|
17
|
-
}, description));
|
|
18
|
-
};
|
|
19
|
-
export default /*#__PURE__*/React.memo(FeaturedTooltip);
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import React, { useState } from "react";
|
|
3
|
-
import { useFetchNeetoApps } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
4
|
-
import { AppSwitcher as NeetoUIAppSwitcherIcon } from "@bigbinary/neeto-icons";
|
|
5
|
-
import { Typography, Spinner } from "@bigbinary/neetoui";
|
|
6
|
-
import { useTranslation } from "react-i18next";
|
|
7
|
-
import "../sidebar.scss";
|
|
8
|
-
var AppSwitcherButton = function AppSwitcherButton(_ref) {
|
|
9
|
-
var onAppSwitcherToggle = _ref.onAppSwitcherToggle;
|
|
10
|
-
var _useTranslation = useTranslation(),
|
|
11
|
-
t = _useTranslation.t;
|
|
12
|
-
var _useState = useState(false),
|
|
13
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
-
hasHovered = _useState2[0],
|
|
15
|
-
setHasHovered = _useState2[1];
|
|
16
|
-
var _useFetchNeetoApps = useFetchNeetoApps(),
|
|
17
|
-
data = _useFetchNeetoApps.data,
|
|
18
|
-
refetchNeetoApps = _useFetchNeetoApps.refetch,
|
|
19
|
-
isStale = _useFetchNeetoApps.isStale,
|
|
20
|
-
isLoading = _useFetchNeetoApps.isLoading;
|
|
21
|
-
var handleAppSwitcherToggle = function handleAppSwitcherToggle(event) {
|
|
22
|
-
if (!data) event.stopPropagation();else onAppSwitcherToggle();
|
|
23
|
-
};
|
|
24
|
-
return /*#__PURE__*/React.createElement("button", {
|
|
25
|
-
className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--app-switcher neeto-molecules-sidebar__link--button neeto-ui-flex neeto-ui-w-full neeto-ui-select-none neeto-ui-items-center neeto-ui-justify-start neeto-ui-shadow-none",
|
|
26
|
-
"data-cy": "app-switcher-button",
|
|
27
|
-
"data-testid": "app-switcher-button",
|
|
28
|
-
onClick: handleAppSwitcherToggle,
|
|
29
|
-
onMouseEnter: function onMouseEnter() {
|
|
30
|
-
if (!hasHovered && isStale) {
|
|
31
|
-
refetchNeetoApps();
|
|
32
|
-
setHasHovered(true);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
36
|
-
className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center h-6 w-6"
|
|
37
|
-
}, hasHovered && isLoading ? /*#__PURE__*/React.createElement("span", {
|
|
38
|
-
"data-testid": "app-switcher-button-loader"
|
|
39
|
-
}, /*#__PURE__*/React.createElement(Spinner, null)) : /*#__PURE__*/React.createElement(NeetoUIAppSwitcherIcon, {
|
|
40
|
-
size: 24
|
|
41
|
-
})), /*#__PURE__*/React.createElement(Typography, {
|
|
42
|
-
className: "neeto-molecules-sidebar__link-label",
|
|
43
|
-
component: "span",
|
|
44
|
-
style: "body2",
|
|
45
|
-
weight: "normal"
|
|
46
|
-
}, t("neetoMolecules.sidebar.productSwitcher")));
|
|
47
|
-
};
|
|
48
|
-
export default AppSwitcherButton;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { useFetchNeetoApps } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
3
|
-
import { Tooltip } from "@bigbinary/neetoui";
|
|
4
|
-
import { getProfileInfo } from "./utils";
|
|
5
|
-
import ProfileSection from "../ProfileSection";
|
|
6
|
-
import ProfileMenu from "../ProfileSection/ProfileMenu";
|
|
7
|
-
var ProfileButton = function ProfileButton(_ref) {
|
|
8
|
-
var extraTopLinks = _ref.extraTopLinks,
|
|
9
|
-
profileInfoOverrides = _ref.profileInfoOverrides;
|
|
10
|
-
var _useFetchNeetoApps = useFetchNeetoApps(),
|
|
11
|
-
data = _useFetchNeetoApps.data;
|
|
12
|
-
var profileInfo = getProfileInfo(data === null || data === void 0 ? void 0 : data.isOwner, profileInfoOverrides);
|
|
13
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14
|
-
interactive: true,
|
|
15
|
-
className: "neeto-molecules-profile-popup-wrapper",
|
|
16
|
-
content: /*#__PURE__*/React.createElement(ProfileMenu, {
|
|
17
|
-
extraTopLinks: extraTopLinks,
|
|
18
|
-
profileInfo: profileInfo
|
|
19
|
-
}),
|
|
20
|
-
disabled: !data,
|
|
21
|
-
hideOnClick: false,
|
|
22
|
-
interactiveDebounce: 20,
|
|
23
|
-
offset: [0, -70],
|
|
24
|
-
position: "right",
|
|
25
|
-
theme: "light"
|
|
26
|
-
}, /*#__PURE__*/React.createElement(ProfileSection, {
|
|
27
|
-
profileInfo: profileInfo
|
|
28
|
-
}));
|
|
29
|
-
};
|
|
30
|
-
export default ProfileButton;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import React, { useEffect, useState } from "react";
|
|
3
|
-
import { Tooltip } from "@bigbinary/neetoui";
|
|
4
|
-
import AppSwitcherButton from "./AppSwitcherButton";
|
|
5
|
-
import ProfileButton from "./ProfileButton";
|
|
6
|
-
import HelpSection from "../HelpSection";
|
|
7
|
-
import HelpSectionMenu from "../HelpSection/HelpSectionMenu";
|
|
8
|
-
import "../sidebar.scss";
|
|
9
|
-
var Footer = function Footer(_ref) {
|
|
10
|
-
var extraTopLinks = _ref.extraTopLinks,
|
|
11
|
-
helpLinkOverrides = _ref.helpLinkOverrides,
|
|
12
|
-
profileInfoOverrides = _ref.profileInfoOverrides,
|
|
13
|
-
_ref$showAppSwitcher = _ref.showAppSwitcher,
|
|
14
|
-
showAppSwitcher = _ref$showAppSwitcher === void 0 ? false : _ref$showAppSwitcher,
|
|
15
|
-
onAppSwitcherToggle = _ref.onAppSwitcherToggle;
|
|
16
|
-
var _useState = useState(null),
|
|
17
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
18
|
-
changesCount = _useState2[0],
|
|
19
|
-
setChangesCount = _useState2[1];
|
|
20
|
-
useEffect(function () {
|
|
21
|
-
var Nv = {
|
|
22
|
-
onReceiveData: function onReceiveData(data) {
|
|
23
|
-
if (data.unreadCount) {
|
|
24
|
-
setChangesCount(data.unreadCount);
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
onShow: function onShow() {
|
|
28
|
-
setChangesCount(null);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
window.Nv = window.Nv ? Object.assign(window.Nv, Nv) : Nv;
|
|
32
|
-
}, []);
|
|
33
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
className: "neeto-molecules-sidebar__footer neeto-molecules-sidebar__no-shrinkable"
|
|
35
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
36
|
-
interactive: true,
|
|
37
|
-
className: "neeto-molecules-help-popup-wrapper",
|
|
38
|
-
content: /*#__PURE__*/React.createElement(HelpSectionMenu, {
|
|
39
|
-
changesCount: changesCount,
|
|
40
|
-
helpLinkOverrides: helpLinkOverrides
|
|
41
|
-
}),
|
|
42
|
-
hideOnClick: false,
|
|
43
|
-
interactiveDebounce: 20,
|
|
44
|
-
offset: [0, -70],
|
|
45
|
-
position: "right",
|
|
46
|
-
theme: "light"
|
|
47
|
-
}, /*#__PURE__*/React.createElement(HelpSection, {
|
|
48
|
-
changesCount: changesCount
|
|
49
|
-
})), showAppSwitcher && /*#__PURE__*/React.createElement(AppSwitcherButton, {
|
|
50
|
-
onAppSwitcherToggle: onAppSwitcherToggle
|
|
51
|
-
}), /*#__PURE__*/React.createElement(ProfileButton, {
|
|
52
|
-
extraTopLinks: extraTopLinks,
|
|
53
|
-
profileInfoOverrides: profileInfoOverrides
|
|
54
|
-
}));
|
|
55
|
-
};
|
|
56
|
-
export default Footer;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { t } from "i18next";
|
|
2
|
-
import { resetAuthTokens } from "@bigbinary/neeto-commons-frontend/utils";
|
|
3
|
-
import { User, Settings, LeftArrow } from "@bigbinary/neeto-icons";
|
|
4
|
-
import { mergeDeepLeft } from "ramda";
|
|
5
|
-
import { MY_PROFILE_URL, MY_ORGANIZATION_URL } from "../constants";
|
|
6
|
-
import { getSidebarStateLocalStorageKey } from "../utils";
|
|
7
|
-
export var getProfileInfo = function getProfileInfo(isOwner, profileInfoOverrides) {
|
|
8
|
-
var _globalProps$user, _globalProps$user2, _globalProps$user3, _globalProps$user4, _globalProps$user5;
|
|
9
|
-
return mergeDeepLeft(profileInfoOverrides, {
|
|
10
|
-
name: "".concat((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.firstName, " ").concat((_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.lastName),
|
|
11
|
-
imageUrl: (_globalProps$user3 = globalProps.user) === null || _globalProps$user3 === void 0 ? void 0 : _globalProps$user3.profileImageUrl,
|
|
12
|
-
email: ((_globalProps$user4 = globalProps.user) === null || _globalProps$user4 === void 0 ? void 0 : _globalProps$user4.email) || ((_globalProps$user5 = globalProps.user) === null || _globalProps$user5 === void 0 ? void 0 : _globalProps$user5.phoneNumber),
|
|
13
|
-
topLinks: [{
|
|
14
|
-
label: t("neetoMolecules.sidebar.myProfile"),
|
|
15
|
-
icon: User,
|
|
16
|
-
onClick: function onClick() {
|
|
17
|
-
return window.open(MY_PROFILE_URL, "_blank");
|
|
18
|
-
},
|
|
19
|
-
"data-cy": "my-profile-button"
|
|
20
|
-
}, isOwner && {
|
|
21
|
-
label: t("neetoMolecules.sidebar.myOrganization"),
|
|
22
|
-
icon: Settings,
|
|
23
|
-
onClick: function onClick() {
|
|
24
|
-
return window.open(MY_ORGANIZATION_URL, "_blank");
|
|
25
|
-
},
|
|
26
|
-
"data-cy": "profile-organization-settings-button"
|
|
27
|
-
}].filter(Boolean),
|
|
28
|
-
bottomLinks: [{
|
|
29
|
-
icon: LeftArrow,
|
|
30
|
-
label: t("neetoMolecules.sidebar.logout"),
|
|
31
|
-
onClick: function onClick() {
|
|
32
|
-
resetAuthTokens();
|
|
33
|
-
localStorage.removeItem(getSidebarStateLocalStorageKey());
|
|
34
|
-
window.location.href = "/logout";
|
|
35
|
-
},
|
|
36
|
-
"data-cy": "profile-logout-button"
|
|
37
|
-
}]
|
|
38
|
-
});
|
|
39
|
-
};
|
package/dist/Sidebar/Header.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { capitalize, findBy } from "@bigbinary/neeto-commons-frontend/pure";
|
|
3
|
-
import { useFetchNeetoApps } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
4
|
-
import { Neeto } from "@bigbinary/neeto-icons/typeface-logos";
|
|
5
|
-
import * as ProductTypefaceLogos from "@bigbinary/neeto-icons/typeface-logos";
|
|
6
|
-
import { Link } from "react-router-dom";
|
|
7
|
-
var Header = function Header(_ref) {
|
|
8
|
-
var _ProductTypefaceLogos;
|
|
9
|
-
var customLogo = _ref.customLogo;
|
|
10
|
-
var productName = globalProps.appName.substr(5);
|
|
11
|
-
var logoName = "Neeto".concat(capitalize(productName.toLowerCase()));
|
|
12
|
-
var ProductTypefaceLogo = (_ProductTypefaceLogos = ProductTypefaceLogos[logoName]) !== null && _ProductTypefaceLogos !== void 0 ? _ProductTypefaceLogos : Neeto;
|
|
13
|
-
var LogoComponent = customLogo !== null && customLogo !== void 0 ? customLogo : ProductTypefaceLogo;
|
|
14
|
-
var _useFetchNeetoApps = useFetchNeetoApps(),
|
|
15
|
-
data = _useFetchNeetoApps.data;
|
|
16
|
-
var homePath = "/";
|
|
17
|
-
if (data !== null && data !== void 0 && data.neetoApps) {
|
|
18
|
-
var thisApp = findBy({
|
|
19
|
-
name: productName
|
|
20
|
-
}, data.neetoApps);
|
|
21
|
-
if (thisApp !== null && thisApp !== void 0 && thisApp.url) {
|
|
22
|
-
homePath = new URL(thisApp === null || thisApp === void 0 ? void 0 : thisApp.url).pathname;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
-
className: "neeto-molecules-sidebar__header neeto-molecules-sidebar__no-shrinkable",
|
|
27
|
-
"data-cy": "sidebar-info"
|
|
28
|
-
}, /*#__PURE__*/React.createElement(Link, {
|
|
29
|
-
className: "neeto-molecules-sidebar__logo neeto-ui-w-full",
|
|
30
|
-
to: homePath
|
|
31
|
-
}, /*#__PURE__*/React.createElement(LogoComponent, null)));
|
|
32
|
-
};
|
|
33
|
-
export default /*#__PURE__*/React.memo(Header);
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
5
|
-
var _excluded = ["label"];
|
|
6
|
-
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; }
|
|
7
|
-
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; }
|
|
8
|
-
import React from "react";
|
|
9
|
-
import { isPresent } from "@bigbinary/neeto-commons-frontend/pure";
|
|
10
|
-
import { Button } from "@bigbinary/neetoui";
|
|
11
|
-
import KeyboardShortcuts from "../../KeyboardShortcuts";
|
|
12
|
-
import { DEFAULT_HELP_LINK_PROPS } from "../constants";
|
|
13
|
-
import "../sidebar.scss";
|
|
14
|
-
var HelpSectionMenu = function HelpSectionMenu(_ref) {
|
|
15
|
-
var helpLinkOverrides = _ref.helpLinkOverrides,
|
|
16
|
-
changesCount = _ref.changesCount;
|
|
17
|
-
var _KeyboardShortcuts$us = KeyboardShortcuts.usePaneState(),
|
|
18
|
-
_KeyboardShortcuts$us2 = _slicedToArray(_KeyboardShortcuts$us, 2),
|
|
19
|
-
setIsOpen = _KeyboardShortcuts$us2[1];
|
|
20
|
-
var helpLinks = Object.keys(DEFAULT_HELP_LINK_PROPS).map(function (key) {
|
|
21
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), key === "keyboardShortcutProps" && {
|
|
22
|
-
onClick: function onClick() {
|
|
23
|
-
return setIsOpen(true);
|
|
24
|
-
}
|
|
25
|
-
}), key === "changelogProps" && changesCount && {
|
|
26
|
-
changesCount: changesCount
|
|
27
|
-
});
|
|
28
|
-
}).filter(function (_ref2) {
|
|
29
|
-
var hide = _ref2.hide;
|
|
30
|
-
return !hide;
|
|
31
|
-
});
|
|
32
|
-
return /*#__PURE__*/React.createElement("ul", {
|
|
33
|
-
className: "neeto-molecules-help-sublist"
|
|
34
|
-
}, helpLinks.map(function (_ref3, idx) {
|
|
35
|
-
var label = _ref3.label,
|
|
36
|
-
buttonProps = _objectWithoutProperties(_ref3, _excluded);
|
|
37
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
38
|
-
className: "neeto-molecules-help-sublist__item",
|
|
39
|
-
key: idx
|
|
40
|
-
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
41
|
-
fullWidth: true,
|
|
42
|
-
className: "neeto-molecules-help-sublist__item-btn",
|
|
43
|
-
iconPosition: "left",
|
|
44
|
-
iconSize: 18,
|
|
45
|
-
style: "text"
|
|
46
|
-
}, buttonProps), label, isPresent(buttonProps.changesCount) && /*#__PURE__*/React.createElement("span", {
|
|
47
|
-
className: "neeto-molecules-help-sublist__item-btn-count",
|
|
48
|
-
"data-testid": "help-section-menu-changes-count"
|
|
49
|
-
}, buttonProps.changesCount)));
|
|
50
|
-
}));
|
|
51
|
-
};
|
|
52
|
-
export default HelpSectionMenu;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from "react";
|
|
2
|
-
import { isPresent } from "@bigbinary/neeto-commons-frontend/pure";
|
|
3
|
-
import { Help } from "@bigbinary/neeto-icons";
|
|
4
|
-
import { Typography } from "@bigbinary/neetoui";
|
|
5
|
-
import { useTranslation } from "react-i18next";
|
|
6
|
-
import "../sidebar.scss";
|
|
7
|
-
|
|
8
|
-
// Rule can be enabled once the ticket - https://github.com/bigbinary/neeto-commons-frontend/issues/905 is closed.
|
|
9
|
-
// eslint-disable-next-line @bigbinary/neeto/no-dumb-components-with-use-translation
|
|
10
|
-
var HelpSection = function HelpSection(_ref, ref) {
|
|
11
|
-
var changesCount = _ref.changesCount;
|
|
12
|
-
var _useTranslation = useTranslation(),
|
|
13
|
-
t = _useTranslation.t;
|
|
14
|
-
return /*#__PURE__*/React.createElement("button", {
|
|
15
|
-
className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none",
|
|
16
|
-
"data-cy": "help-button",
|
|
17
|
-
ref: ref
|
|
18
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
19
|
-
className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
|
|
20
|
-
}, /*#__PURE__*/React.createElement(Help, {
|
|
21
|
-
size: 24
|
|
22
|
-
}), isPresent(changesCount) && /*#__PURE__*/React.createElement("span", {
|
|
23
|
-
className: "neeto-molecules-sidebar__notif-count",
|
|
24
|
-
"data-testid": "help-icon-changes-count"
|
|
25
|
-
}, changesCount)), /*#__PURE__*/React.createElement(Typography, {
|
|
26
|
-
className: "neeto-molecules-sidebar__link-label",
|
|
27
|
-
component: "span",
|
|
28
|
-
style: "body2",
|
|
29
|
-
weight: "normal"
|
|
30
|
-
}, t("neetoMolecules.sidebar.helpLinks.helpCenter")));
|
|
31
|
-
};
|
|
32
|
-
export default /*#__PURE__*/forwardRef(HelpSection);
|