@bigbinary/neeto-molecules 1.1.10 → 1.1.11
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/autosaveinput.scss +15 -0
- package/dist/AutoSaveInput/constants.js +13 -0
- package/dist/AutoSaveInput/index.js +124 -0
- package/dist/AutoSaveInput/utils.js +10 -0
- package/dist/Breadcrumbs/breadcrumbs.scss +33 -0
- package/dist/Breadcrumbs/index.js +31 -0
- package/dist/BrowserSupport/Callout.js +15 -0
- package/dist/BrowserSupport/ContactUs.js +21 -0
- package/dist/BrowserSupport/DownloadLink.js +17 -0
- package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +17 -0
- package/dist/BrowserSupport/UnknownBrowser.js +13 -0
- package/dist/BrowserSupport/UnsupportedBrowser.js +24 -0
- package/dist/BrowserSupport/UnsupportedBrowserMessage.js +22 -0
- package/dist/BrowserSupport/UnsupportedBrowserVersion.js +27 -0
- package/dist/BrowserSupport/UnsupportedVersionMessage.js +30 -0
- package/dist/BrowserSupport/browsersupport.scss +71 -0
- package/dist/BrowserSupport/constants.js +63 -0
- package/dist/BrowserSupport/index.js +58 -0
- package/dist/BrowserSupport/utils.js +32 -0
- package/dist/CalendarView/CustomDatePicker.js +87 -0
- package/dist/CalendarView/Header.js +53 -0
- package/dist/CalendarView/constants.js +19 -0
- package/dist/CalendarView/index.js +83 -0
- package/dist/CalendarView/utils.js +50 -0
- package/dist/Codeblock/index.js +30 -0
- package/dist/{Columns.js → Columns/index.js} +13 -130
- package/dist/Columns/utils.js +20 -0
- package/dist/ConfirmationModal/constants.js +3 -0
- package/dist/{ConfirmationModal.js → ConfirmationModal/index.js} +7 -23
- package/dist/ConfirmationModal/utils.js +10 -0
- package/dist/Container/container.scss +21 -0
- package/dist/Container/index.js +23 -0
- package/dist/CopyToClipboardButton/constants.js +13 -0
- package/dist/CopyToClipboardButton/copyToClipboard.scss +22 -0
- package/dist/CopyToClipboardButton/index.js +59 -0
- package/dist/CustomDomain/index.js +98 -0
- package/dist/CustomDomainDashboard/DeleteAlert.js +28 -0
- package/dist/CustomDomainDashboard/Header.js +32 -0
- package/dist/CustomDomainDashboard/Manage/Record.js +42 -0
- package/dist/CustomDomainDashboard/Manage/StatusInfo.js +21 -0
- package/dist/CustomDomainDashboard/Manage/TagBlock.js +36 -0
- package/dist/CustomDomainDashboard/Manage/constants.js +4 -0
- package/dist/CustomDomainDashboard/Manage/index.js +124 -0
- package/dist/CustomDomainDashboard/Manage/utils.js +8 -0
- package/dist/CustomDomainDashboard/api.js +35 -0
- package/dist/CustomDomainDashboard/constants.js +2 -0
- package/dist/CustomDomainDashboard/index.js +118 -0
- package/dist/CustomDomainDashboard/useCustomDomainApi.js +71 -0
- package/dist/CustomDomainDashboard/utils.js +84 -0
- package/dist/{DateFormat.js → DateFormat/index.js} +8 -25
- package/dist/DateRangeFilter/index.js +60 -0
- package/dist/DateRangeFilter/utils.js +113 -0
- package/dist/DynamicVariables/dynamic-variables.scss +34 -0
- package/dist/DynamicVariables/index.js +59 -0
- package/dist/DynamicVariables/utils.js +37 -0
- package/dist/EmailForm/EmailForm.js +97 -0
- package/dist/EmailForm/EmailFormProvider.js +45 -0
- package/dist/EmailForm/EmailPreview.js +129 -0
- package/dist/EmailForm/ReplyToField.js +55 -0
- package/dist/EmailForm/SendToField.js +27 -0
- package/dist/EmailForm/SubjectField.js +64 -0
- package/dist/EmailForm/constants.js +33 -0
- package/dist/EmailForm/contexts/EmailForm.js +7 -0
- package/dist/EmailForm/index.js +4 -0
- package/dist/EmailForm/utils.js +10 -0
- package/dist/EmailPreview/index.js +2 -0
- package/dist/{ErrorPage.js → ErrorPage/constants.js} +36 -175
- package/dist/ErrorPage/index.js +78 -0
- package/dist/Header/Breadcrumbs.js +31 -0
- package/dist/Header/Dropdown.js +12 -0
- package/dist/Header/constants.js +6 -0
- package/dist/Header/header.scss +121 -0
- package/dist/Header/index.js +61 -0
- package/dist/IconPicker/Icon.js +34 -0
- package/dist/IconPicker/NoResults.js +12 -0
- package/dist/IconPicker/constants.js +8 -0
- package/dist/IconPicker/icon-picker.scss +1 -0
- package/dist/IconPicker/index.js +164 -0
- package/dist/ImageWithFallback/ImagePlaceholder.js +16 -0
- package/dist/ImageWithFallback/index.js +31 -0
- package/dist/IntegrationCard/Dropdown.js +45 -0
- package/dist/IntegrationCard/Status.js +25 -0
- package/dist/IntegrationCard/index.js +128 -0
- package/dist/IntegrationDisconnectAlert/index.js +36 -0
- package/dist/{IntegrationWalkthroughModal.js → IntegrationWalkthroughModal/index.js} +6 -8
- package/dist/IpRestriction/AllowedIpRanges.js +72 -0
- package/dist/IpRestriction/CurrentIp.js +26 -0
- package/dist/IpRestriction/FormRow.js +77 -0
- package/dist/IpRestriction/Row.js +86 -0
- package/dist/IpRestriction/apis/allowed_ip_ranges.js +28 -0
- package/dist/IpRestriction/apis/current_ip.js +11 -0
- package/dist/IpRestriction/apis/ip_restriction.js +16 -0
- package/dist/IpRestriction/constants.js +11 -0
- package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +34 -0
- package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +10 -0
- package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +18 -0
- package/dist/IpRestriction/index.js +102 -0
- package/dist/IpRestriction/utils.js +67 -0
- package/dist/KeyboardShortcuts/Pane/HotKey.js +44 -0
- package/dist/KeyboardShortcuts/Pane/HotKeyList.js +42 -0
- package/dist/KeyboardShortcuts/Pane/constants.js +25 -0
- package/dist/KeyboardShortcuts/Pane/index.js +61 -0
- package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +5 -0
- package/dist/KeyboardShortcuts/Pane/utils.js +66 -0
- package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +31 -0
- package/dist/KeyboardShortcuts/index.js +9 -0
- package/dist/LoginPage/Form.js +57 -0
- package/dist/LoginPage/constants.js +12 -0
- package/dist/LoginPage/index.js +103 -0
- package/dist/MenuBar/AddNew.js +25 -0
- package/dist/MenuBar/Block.js +60 -0
- package/dist/MenuBar/Item.js +32 -0
- package/dist/MenuBar/Search.js +39 -0
- package/dist/MenuBar/SubTitle.js +23 -0
- package/dist/MenuBar/index.js +46 -0
- package/dist/MenuBar/menubar.scss +154 -0
- package/dist/Metadata/Block.js +30 -0
- package/dist/Metadata/DetailsBlock.js +86 -0
- package/dist/Metadata/constants.js +9 -0
- package/dist/Metadata/index.js +29 -0
- package/dist/Metadata/metadata.scss +15 -0
- package/dist/MoreDropdown/constants.js +25 -0
- package/dist/{MoreDropdown.js → MoreDropdown/index.js} +9 -102
- package/dist/NavigationHeader/LeftBlock.js +32 -0
- package/dist/NavigationHeader/Navigation.js +24 -0
- package/dist/NavigationHeader/RightBlock.js +68 -0
- package/dist/NavigationHeader/constants.js +11 -0
- package/dist/NavigationHeader/index.js +19 -0
- package/dist/NavigationHeader/navigation-header.scss +3 -0
- package/dist/NeetoWidget/CodeBlock.js +57 -0
- package/dist/NeetoWidget/CodeSnippet.js +119 -0
- package/dist/NeetoWidget/EmbedCode.js +281 -0
- package/dist/NeetoWidget/Main.js +19 -0
- package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +25 -0
- package/dist/NeetoWidget/SelectionSwitches/index.js +44 -0
- package/dist/NeetoWidget/SyntaxHighlighter.js +17 -0
- package/dist/NeetoWidget/api.js +20 -0
- package/dist/NeetoWidget/constants.js +62 -0
- package/dist/NeetoWidget/hooks/useForceUpdate.js +14 -0
- package/dist/NeetoWidget/index.js +7 -0
- package/dist/NeetoWidget/mutations.js +9 -0
- package/dist/NeetoWidget/queries.js +32 -0
- package/dist/NeetoWidget/utils.js +83 -0
- package/dist/PageLoader/index.js +81 -0
- package/dist/PageLoader/page-loader.scss +95 -0
- package/dist/PhoneNumber/CountryPicker/SingleValue.js +21 -0
- package/dist/PhoneNumber/CountryPicker/constants.js +26 -0
- package/dist/PhoneNumber/CountryPicker/index.js +59 -0
- package/dist/PhoneNumber/FormikPhoneNumberInput.js +21 -0
- package/dist/PhoneNumber/PhoneNumber.js +30 -0
- package/dist/PhoneNumber/PhoneNumberInput.js +79 -0
- package/dist/PhoneNumber/index.js +5 -0
- package/dist/PhoneNumber/utils.js +55 -0
- package/dist/PublishBlock/AlertBlock.js +14 -0
- package/dist/PublishBlock/index.js +100 -0
- package/dist/PublishBlock/publish-block.scss +25 -0
- package/dist/Rename/DummySpan.js +21 -0
- package/dist/Rename/constants.js +1 -0
- package/dist/Rename/index.js +191 -0
- package/dist/Rename/rename.scss +69 -0
- package/dist/Rename/utils.js +10 -0
- package/dist/ResponsiveDevicePicker/constants.js +19 -0
- package/dist/ResponsiveDevicePicker/index.js +36 -0
- package/dist/Schedule/DisplayAvailability.js +58 -0
- package/dist/Schedule/Fields.js +43 -0
- package/dist/Schedule/Form/ScheduleRow.js +125 -0
- package/dist/Schedule/Form/constants.js +20 -0
- package/dist/Schedule/Form/index.js +144 -0
- package/dist/Schedule/Form/utils.js +63 -0
- package/dist/Schedule/Header.js +76 -0
- package/dist/Schedule/ScheduleContext.js +8 -0
- package/dist/Schedule/constants.js +8 -0
- package/dist/Schedule/dayjsExtended/constants.js +1 -0
- package/dist/Schedule/dayjsExtended/index.js +14 -0
- package/dist/Schedule/dayjsExtended/range.js +73 -0
- package/dist/Schedule/index.js +80 -0
- package/dist/Schedule/utils.js +152 -0
- package/dist/Scrollable/constants.js +8 -0
- package/dist/Scrollable/index.js +26 -0
- package/dist/Scrollable/scrollable.scss +32 -0
- package/dist/Security/AllowedKeywords/Add.js +38 -0
- package/dist/Security/AllowedKeywords/index.js +38 -0
- package/dist/Security/PasswordBlock.js +31 -0
- package/dist/Security/RadioBlock.js +38 -0
- package/dist/Security/api.js +12 -0
- package/dist/Security/constants.js +58 -0
- package/dist/Security/index.js +68 -0
- package/dist/Security/useSecurityApi.js +22 -0
- package/dist/Security/utils.js +31 -0
- package/dist/SendToFields/FilePicker.js +34 -0
- package/dist/SendToFields/constants.js +6 -0
- package/dist/SendToFields/index.js +102 -0
- package/dist/SendToFields/utils.js +54 -0
- package/dist/Settings/Category.js +30 -0
- package/dist/Settings/Item.js +38 -0
- package/dist/Settings/index.js +37 -0
- package/dist/Settings/utils.js +4 -0
- package/dist/ShareViaEmail/EmailBodyEditor.js +22 -0
- package/dist/ShareViaEmail/FilePicker.js +43 -0
- package/dist/ShareViaEmail/Form.js +101 -0
- package/dist/ShareViaEmail/FormikDatePicker.js +24 -0
- package/dist/ShareViaEmail/constants.js +14 -0
- package/dist/ShareViaEmail/index.js +89 -0
- package/dist/ShareViaEmail/utils.js +72 -0
- package/dist/ShareViaLink/EditURL.js +74 -0
- package/dist/ShareViaLink/Link.js +105 -0
- package/dist/ShareViaLink/QRCode.js +41 -0
- package/dist/ShareViaLink/RegenerateURL.js +47 -0
- package/dist/ShareViaLink/SocialMedia.js +52 -0
- package/dist/ShareViaLink/constants.js +25 -0
- package/dist/ShareViaLink/edit-url.scss +8 -0
- package/dist/ShareViaLink/index.js +46 -0
- package/dist/ShareViaLink/utils.js +47 -0
- package/dist/Sidebar/AppSwitcher/AppLink.js +45 -0
- package/dist/Sidebar/AppSwitcher/Backdrop.js +13 -0
- package/dist/Sidebar/AppSwitcher/Body.js +65 -0
- package/dist/Sidebar/AppSwitcher/Portal.js +27 -0
- package/dist/Sidebar/AppSwitcher/appswitcher.scss +164 -0
- package/dist/Sidebar/AppSwitcher/index.js +47 -0
- package/dist/Sidebar/AppSwitcher/utils.js +25 -0
- package/dist/Sidebar/Chevron.js +14 -0
- package/dist/Sidebar/FeaturedTooltip.js +19 -0
- package/dist/Sidebar/Footer/AppSwitcherButton.js +48 -0
- package/dist/Sidebar/Footer/ProfileButton.js +30 -0
- package/dist/Sidebar/Footer/index.js +56 -0
- package/dist/Sidebar/Footer/utils.js +39 -0
- package/dist/Sidebar/Header.js +33 -0
- package/dist/Sidebar/HelpSection/HelpSectionMenu.js +52 -0
- package/dist/Sidebar/HelpSection/index.js +32 -0
- package/dist/Sidebar/Links.js +112 -0
- package/dist/Sidebar/NavIconWrapper.js +20 -0
- package/dist/Sidebar/ProfileSection/LinkSection.js +36 -0
- package/dist/Sidebar/ProfileSection/ProfileMenu.js +48 -0
- package/dist/Sidebar/ProfileSection/index.js +42 -0
- package/dist/Sidebar/constants.js +40 -0
- package/dist/Sidebar/index.js +94 -0
- package/dist/Sidebar/sidebar.scss +379 -0
- package/dist/Sidebar/utils.js +18 -0
- package/dist/SubHeader/RightBlock/Columns.js +35 -0
- package/dist/SubHeader/RightBlock/Download.js +28 -0
- package/dist/SubHeader/RightBlock/Filter.js +31 -0
- package/dist/SubHeader/RightBlock/index.js +21 -0
- package/dist/SubHeader/RightBlock/utils.js +13 -0
- package/dist/SubHeader/index.js +28 -0
- package/dist/SubHeader/subheader.scss +78 -0
- package/dist/TableWrapper/index.js +18 -0
- package/dist/ThemeSidebar/Customize/Logo.js +39 -0
- package/dist/ThemeSidebar/Customize/Properties.js +170 -0
- package/dist/ThemeSidebar/Customize/index.js +66 -0
- package/dist/ThemeSidebar/Themes/ThemeCard.js +135 -0
- package/dist/ThemeSidebar/Themes/index.js +110 -0
- package/dist/ThemeSidebar/TitleBar.js +62 -0
- package/dist/ThemeSidebar/constants.js +127 -0
- package/dist/ThemeSidebar/fields/AlignmentBlock.js +50 -0
- package/dist/ThemeSidebar/fields/Card.js +19 -0
- package/dist/ThemeSidebar/fields/ColorBlock.js +19 -0
- package/dist/ThemeSidebar/fields/FontPickerBlock.js +35 -0
- package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +67 -0
- package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +22 -0
- package/dist/ThemeSidebar/fields/ImageBlock/index.js +55 -0
- package/dist/ThemeSidebar/fields/SelectBlock.js +24 -0
- package/dist/ThemeSidebar/fields/SliderBlock.js +30 -0
- package/dist/ThemeSidebar/fields/SwitchBlock.js +17 -0
- package/dist/ThemeSidebar/fields/TextBlock.js +13 -0
- package/dist/ThemeSidebar/fields/slider.scss +199 -0
- package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +149 -0
- package/dist/ThemeSidebar/index.js +118 -0
- package/dist/ThemeSidebar/themeSidebar.scss +45 -0
- package/dist/ThemeSidebar/utils.js +169 -0
- package/dist/TimeFormat/index.js +3 -0
- package/dist/TimezoneMismatchModal/apis/time_zone.js +9 -0
- package/dist/TimezoneMismatchModal/index.js +83 -0
- package/dist/TimezoneMismatchModal/useTimeZoneApi.js +10 -0
- package/dist/TimezoneMismatchModal/utils.js +12 -0
- package/dist/ToggleFeatureCard/ToolTipSwitch.js +31 -0
- package/dist/ToggleFeatureCard/constants.js +5 -0
- package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +11 -0
- package/dist/ToggleFeatureCard/index.js +148 -0
- package/dist/ToggleFeatureCard/toggleFeatureCard.scss +4 -0
- package/package.json +27 -34
- package/dist/AutoSaveInput.cjs.js +0 -724
- package/dist/AutoSaveInput.cjs.js.map +0 -1
- package/dist/AutoSaveInput.js +0 -718
- package/dist/AutoSaveInput.js.map +0 -1
- package/dist/Breadcrumbs.cjs.js +0 -44
- package/dist/Breadcrumbs.cjs.js.map +0 -1
- package/dist/Breadcrumbs.js +0 -38
- package/dist/Breadcrumbs.js.map +0 -1
- package/dist/BrowserSupport.cjs.js +0 -1731
- package/dist/BrowserSupport.cjs.js.map +0 -1
- package/dist/BrowserSupport.js +0 -1725
- package/dist/BrowserSupport.js.map +0 -1
- package/dist/CalendarView.cjs.js +0 -610
- package/dist/CalendarView.cjs.js.map +0 -1
- package/dist/CalendarView.js +0 -598
- package/dist/CalendarView.js.map +0 -1
- package/dist/Codeblock.cjs.js +0 -302
- package/dist/Codeblock.cjs.js.map +0 -1
- package/dist/Codeblock.js +0 -296
- package/dist/Codeblock.js.map +0 -1
- package/dist/Columns.cjs.js +0 -248
- package/dist/Columns.cjs.js.map +0 -1
- package/dist/Columns.js.map +0 -1
- package/dist/ConfirmationModal.cjs.js +0 -87
- package/dist/ConfirmationModal.cjs.js.map +0 -1
- package/dist/ConfirmationModal.js.map +0 -1
- package/dist/Container.cjs.js +0 -1277
- package/dist/Container.cjs.js.map +0 -1
- package/dist/Container.js +0 -1271
- package/dist/Container.js.map +0 -1
- package/dist/CopyToClipboardButton.cjs.js +0 -275
- package/dist/CopyToClipboardButton.cjs.js.map +0 -1
- package/dist/CopyToClipboardButton.js +0 -269
- package/dist/CopyToClipboardButton.js.map +0 -1
- package/dist/CustomDomain.cjs.js +0 -774
- package/dist/CustomDomain.cjs.js.map +0 -1
- package/dist/CustomDomain.js +0 -747
- package/dist/CustomDomain.js.map +0 -1
- package/dist/CustomDomainDashboard.cjs.js +0 -2370
- package/dist/CustomDomainDashboard.cjs.js.map +0 -1
- package/dist/CustomDomainDashboard.js +0 -2342
- package/dist/CustomDomainDashboard.js.map +0 -1
- package/dist/DateFormat.cjs.js +0 -51
- package/dist/DateFormat.cjs.js.map +0 -1
- package/dist/DateFormat.js.map +0 -1
- package/dist/DateRangeFilter.cjs.js +0 -236
- package/dist/DateRangeFilter.cjs.js.map +0 -1
- package/dist/DateRangeFilter.js +0 -229
- package/dist/DateRangeFilter.js.map +0 -1
- package/dist/DynamicVariables.cjs.js +0 -189
- package/dist/DynamicVariables.cjs.js.map +0 -1
- package/dist/DynamicVariables.js +0 -183
- package/dist/DynamicVariables.js.map +0 -1
- package/dist/EmailForm.cjs.js +0 -4295
- package/dist/EmailForm.cjs.js.map +0 -1
- package/dist/EmailForm.js +0 -4265
- package/dist/EmailForm.js.map +0 -1
- package/dist/EmailPreview.cjs.js +0 -1419
- package/dist/EmailPreview.cjs.js.map +0 -1
- package/dist/EmailPreview.js +0 -1413
- package/dist/EmailPreview.js.map +0 -1
- package/dist/ErrorPage.cjs.js +0 -226
- package/dist/ErrorPage.cjs.js.map +0 -1
- package/dist/ErrorPage.js.map +0 -1
- package/dist/Header.cjs.js +0 -188
- package/dist/Header.cjs.js.map +0 -1
- package/dist/Header.js +0 -182
- package/dist/Header.js.map +0 -1
- package/dist/IconPicker.cjs.js +0 -1308
- package/dist/IconPicker.cjs.js.map +0 -1
- package/dist/IconPicker.js +0 -1302
- package/dist/IconPicker.js.map +0 -1
- package/dist/ImageWithFallback.cjs.js +0 -247
- package/dist/ImageWithFallback.cjs.js.map +0 -1
- package/dist/ImageWithFallback.js +0 -241
- package/dist/ImageWithFallback.js.map +0 -1
- package/dist/IntegrationCard.cjs.js +0 -409
- package/dist/IntegrationCard.cjs.js.map +0 -1
- package/dist/IntegrationCard.js +0 -403
- package/dist/IntegrationCard.js.map +0 -1
- package/dist/IntegrationDisconnectAlert.cjs.js +0 -89
- package/dist/IntegrationDisconnectAlert.cjs.js.map +0 -1
- package/dist/IntegrationDisconnectAlert.js +0 -80
- package/dist/IntegrationDisconnectAlert.js.map +0 -1
- package/dist/IntegrationWalkthroughModal.cjs.js +0 -50
- package/dist/IntegrationWalkthroughModal.cjs.js.map +0 -1
- package/dist/IntegrationWalkthroughModal.js.map +0 -1
- package/dist/IpRestriction.cjs.js +0 -3931
- package/dist/IpRestriction.cjs.js.map +0 -1
- package/dist/IpRestriction.js +0 -3905
- package/dist/IpRestriction.js.map +0 -1
- package/dist/KeyboardShortcuts.cjs.js +0 -2263
- package/dist/KeyboardShortcuts.cjs.js.map +0 -1
- package/dist/KeyboardShortcuts.js +0 -2256
- package/dist/KeyboardShortcuts.js.map +0 -1
- package/dist/LoginPage.cjs.js +0 -618
- package/dist/LoginPage.cjs.js.map +0 -1
- package/dist/LoginPage.js +0 -593
- package/dist/LoginPage.js.map +0 -1
- package/dist/MenuBar.cjs.js +0 -34273
- package/dist/MenuBar.cjs.js.map +0 -1
- package/dist/MenuBar.js +0 -34267
- package/dist/MenuBar.js.map +0 -1
- package/dist/Metadata.cjs.js +0 -272
- package/dist/Metadata.cjs.js.map +0 -1
- package/dist/Metadata.js +0 -266
- package/dist/Metadata.js.map +0 -1
- package/dist/MoreDropdown.cjs.js +0 -168
- package/dist/MoreDropdown.cjs.js.map +0 -1
- package/dist/MoreDropdown.js.map +0 -1
- package/dist/NavigationHeader.cjs.js +0 -756
- package/dist/NavigationHeader.cjs.js.map +0 -1
- package/dist/NavigationHeader.js +0 -750
- package/dist/NavigationHeader.js.map +0 -1
- package/dist/NeetoWidget.cjs.js +0 -3375
- package/dist/NeetoWidget.cjs.js.map +0 -1
- package/dist/NeetoWidget.js +0 -3348
- package/dist/NeetoWidget.js.map +0 -1
- package/dist/PageLoader.cjs.js +0 -158
- package/dist/PageLoader.cjs.js.map +0 -1
- package/dist/PageLoader.js +0 -134
- package/dist/PageLoader.js.map +0 -1
- package/dist/PhoneNumber.cjs.js +0 -7021
- package/dist/PhoneNumber.cjs.js.map +0 -1
- package/dist/PhoneNumber.js +0 -6989
- package/dist/PhoneNumber.js.map +0 -1
- package/dist/PublishBlock.cjs.js +0 -224
- package/dist/PublishBlock.cjs.js.map +0 -1
- package/dist/PublishBlock.js +0 -218
- package/dist/PublishBlock.js.map +0 -1
- package/dist/Rename.cjs.js +0 -516
- package/dist/Rename.cjs.js.map +0 -1
- package/dist/Rename.js +0 -510
- package/dist/Rename.js.map +0 -1
- package/dist/ResponsiveDevicePicker.cjs.js +0 -260
- package/dist/ResponsiveDevicePicker.cjs.js.map +0 -1
- package/dist/ResponsiveDevicePicker.js +0 -254
- package/dist/ResponsiveDevicePicker.js.map +0 -1
- package/dist/Schedule.cjs.js +0 -1077
- package/dist/Schedule.cjs.js.map +0 -1
- package/dist/Schedule.js +0 -1046
- package/dist/Schedule.js.map +0 -1
- package/dist/Scrollable.cjs.js +0 -188
- package/dist/Scrollable.cjs.js.map +0 -1
- package/dist/Scrollable.js +0 -182
- package/dist/Scrollable.js.map +0 -1
- package/dist/Security.cjs.js +0 -1921
- package/dist/Security.cjs.js.map +0 -1
- package/dist/Security.js +0 -1895
- package/dist/Security.js.map +0 -1
- package/dist/SendToFields.cjs.js +0 -2524
- package/dist/SendToFields.cjs.js.map +0 -1
- package/dist/SendToFields.js +0 -2517
- package/dist/SendToFields.js.map +0 -1
- package/dist/Settings.cjs.js +0 -501
- package/dist/Settings.cjs.js.map +0 -1
- package/dist/Settings.js +0 -495
- package/dist/Settings.js.map +0 -1
- package/dist/ShareViaEmail.cjs.js +0 -4272
- package/dist/ShareViaEmail.cjs.js.map +0 -1
- package/dist/ShareViaEmail.js +0 -4246
- package/dist/ShareViaEmail.js.map +0 -1
- package/dist/ShareViaLink.cjs.js +0 -1512
- package/dist/ShareViaLink.cjs.js.map +0 -1
- package/dist/ShareViaLink.js +0 -1486
- package/dist/ShareViaLink.js.map +0 -1
- package/dist/Sidebar.cjs.js +0 -34985
- package/dist/Sidebar.cjs.js.map +0 -1
- package/dist/Sidebar.js +0 -34959
- package/dist/Sidebar.js.map +0 -1
- package/dist/SubHeader.cjs.js +0 -283
- package/dist/SubHeader.cjs.js.map +0 -1
- package/dist/SubHeader.js +0 -276
- package/dist/SubHeader.js.map +0 -1
- package/dist/TableWrapper.cjs.js +0 -87
- package/dist/TableWrapper.cjs.js.map +0 -1
- package/dist/TableWrapper.js +0 -81
- package/dist/TableWrapper.js.map +0 -1
- package/dist/ThemeSidebar.cjs.js +0 -13705
- package/dist/ThemeSidebar.cjs.js.map +0 -1
- package/dist/ThemeSidebar.js +0 -13680
- package/dist/ThemeSidebar.js.map +0 -1
- package/dist/TimeFormat.cjs.js +0 -53
- package/dist/TimeFormat.cjs.js.map +0 -1
- package/dist/TimeFormat.js +0 -47
- package/dist/TimeFormat.js.map +0 -1
- package/dist/TimezoneMismatchModal.cjs.js +0 -176
- package/dist/TimezoneMismatchModal.cjs.js.map +0 -1
- package/dist/TimezoneMismatchModal.js +0 -168
- package/dist/TimezoneMismatchModal.js.map +0 -1
- package/dist/ToggleFeatureCard.cjs.js +0 -389
- package/dist/ToggleFeatureCard.cjs.js.map +0 -1
- package/dist/ToggleFeatureCard.js +0 -383
- package/dist/ToggleFeatureCard.js.map +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Typography, Modal, Button, Input } from "@bigbinary/neetoui";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
var RegenerateURL = function RegenerateURL(_ref) {
|
|
5
|
+
var isOpen = _ref.isOpen,
|
|
6
|
+
onClose = _ref.onClose,
|
|
7
|
+
url = _ref.url,
|
|
8
|
+
isLoading = _ref.isLoading,
|
|
9
|
+
handleRegenerate = _ref.handleRegenerate;
|
|
10
|
+
var _useTranslation = useTranslation(),
|
|
11
|
+
t = _useTranslation.t;
|
|
12
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
13
|
+
"data-testid": "regenerate-url-modal",
|
|
14
|
+
isOpen: isOpen,
|
|
15
|
+
onClose: onClose
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Modal.Header, null, /*#__PURE__*/React.createElement(Typography, {
|
|
17
|
+
lineHeight: "normal",
|
|
18
|
+
style: "h2",
|
|
19
|
+
weight: "semibold"
|
|
20
|
+
}, t("neetoMolecules.shareViaLink.regenerateUrl.title"))), /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
className: "w-full space-y-6"
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
23
|
+
disabled: true,
|
|
24
|
+
label: t("neetoMolecules.shareViaLink.regenerateUrl.inputLabel"),
|
|
25
|
+
value: url
|
|
26
|
+
}), /*#__PURE__*/React.createElement(Typography, {
|
|
27
|
+
className: "neeto-ui-text-gray-700",
|
|
28
|
+
lineHeight: "normal",
|
|
29
|
+
style: "body2"
|
|
30
|
+
}, t("neetoMolecules.shareViaLink.regenerateUrl.description")))), /*#__PURE__*/React.createElement(Modal.Footer, {
|
|
31
|
+
className: "space-x-2"
|
|
32
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
33
|
+
"data-testid": "regenerate-url-confirm-button",
|
|
34
|
+
loading: isLoading,
|
|
35
|
+
label: t("neetoMolecules.shareViaLink.regenerateUrl.submitButtonLabel"),
|
|
36
|
+
onClick: function onClick() {
|
|
37
|
+
handleRegenerate();
|
|
38
|
+
onClose();
|
|
39
|
+
}
|
|
40
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
41
|
+
"data-testid": "regenerate-url-cancel-button",
|
|
42
|
+
style: "text",
|
|
43
|
+
label: t("neetoMolecules.shareViaLink.regenerateUrl.cancelButtonLabel"),
|
|
44
|
+
onClick: onClose
|
|
45
|
+
})));
|
|
46
|
+
};
|
|
47
|
+
export default RegenerateURL;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
import { SOCIAL_MEDIA_OPTIONS } from "./constants";
|
|
6
|
+
import QRCode from "./QRCode";
|
|
7
|
+
var SocialMedia = function SocialMedia(_ref) {
|
|
8
|
+
var entity = _ref.entity,
|
|
9
|
+
postTitle = _ref.postTitle,
|
|
10
|
+
url = _ref.url;
|
|
11
|
+
var _useTranslation = useTranslation(),
|
|
12
|
+
t = _useTranslation.t;
|
|
13
|
+
var socialMediaButtonClasses = "neeto-ui-bg-gray-200 hover:neeto-ui-bg-gray-300 flex h-12 w-12 cursor-pointer items-center justify-center neeto-ui-rounded-md transition-colors duration-300 ease-in-out";
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "flex space-x-4 divide-x"
|
|
16
|
+
}, /*#__PURE__*/React.createElement(QRCode, {
|
|
17
|
+
entity: entity,
|
|
18
|
+
url: url
|
|
19
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: "space-y-4 pl-4",
|
|
21
|
+
"data-testid": "social-media-block"
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
23
|
+
className: "neeto-ui-text-gray-800",
|
|
24
|
+
lineHeight: "normal",
|
|
25
|
+
style: "body2",
|
|
26
|
+
weight: "medium"
|
|
27
|
+
}, t("neetoMolecules.shareViaLink.socialMediaShare.title")), /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
className: "flex gap-4"
|
|
29
|
+
}, Object.entries(SOCIAL_MEDIA_OPTIONS).map(function (_ref2) {
|
|
30
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
31
|
+
key = _ref3[0],
|
|
32
|
+
_ref3$ = _ref3[1],
|
|
33
|
+
label = _ref3$.label,
|
|
34
|
+
Icon = _ref3$.icon,
|
|
35
|
+
generateShareUrl = _ref3$.generateShareUrl;
|
|
36
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
37
|
+
className: socialMediaButtonClasses,
|
|
38
|
+
"data-testid": "social-media-button-".concat(key),
|
|
39
|
+
href: generateShareUrl({
|
|
40
|
+
id: entity.id,
|
|
41
|
+
title: postTitle
|
|
42
|
+
}),
|
|
43
|
+
key: key,
|
|
44
|
+
rel: "noopener noreferrer",
|
|
45
|
+
target: "_blank",
|
|
46
|
+
title: label
|
|
47
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
48
|
+
size: 24
|
|
49
|
+
}));
|
|
50
|
+
}))));
|
|
51
|
+
};
|
|
52
|
+
export default SocialMedia;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { t } from "i18next";
|
|
2
|
+
import { Facebook, Linkedin, Twitter } from "@bigbinary/neeto-icons";
|
|
3
|
+
import * as yup from "yup";
|
|
4
|
+
import { facebookShareLink, twitterShareLink, linkedInShareLink } from "./utils";
|
|
5
|
+
export var SOCIAL_MEDIA_OPTIONS = {
|
|
6
|
+
FACEBOOK: {
|
|
7
|
+
label: t("neetoMolecules.shareViaLink.socialMediaShare.facebook"),
|
|
8
|
+
icon: Facebook,
|
|
9
|
+
generateShareUrl: facebookShareLink
|
|
10
|
+
},
|
|
11
|
+
LINKEDIN: {
|
|
12
|
+
label: t("neetoMolecules.shareViaLink.socialMediaShare.linkedIn"),
|
|
13
|
+
icon: Linkedin,
|
|
14
|
+
generateShareUrl: linkedInShareLink
|
|
15
|
+
},
|
|
16
|
+
TWITTER: {
|
|
17
|
+
label: t("neetoMolecules.shareViaLink.socialMediaShare.twitter"),
|
|
18
|
+
icon: Twitter,
|
|
19
|
+
generateShareUrl: twitterShareLink
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export var PATH_VALIDATION_SCHEMA = yup.object().shape({
|
|
23
|
+
path: yup.string().required(t("neetoMolecules.shareViaLink.editUrl.validationError")).matches(/^[A-Za-z0-9]([\w/-])*$/, t("neetoMolecules.shareViaLink.editUrl.validationError"))
|
|
24
|
+
});
|
|
25
|
+
export var MAX_PREFIX_SIZE = 30;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { noop } from "@bigbinary/neeto-commons-frontend/pure";
|
|
3
|
+
import LinkBlock from "./Link";
|
|
4
|
+
import SocialMedia from "./SocialMedia";
|
|
5
|
+
var ShareViaLink = function ShareViaLink(_ref) {
|
|
6
|
+
var _ref$isLoading = _ref.isLoading,
|
|
7
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
8
|
+
_ref$enabledOptions = _ref.enabledOptions,
|
|
9
|
+
enabledOptions = _ref$enabledOptions === void 0 ? {
|
|
10
|
+
regenerate: false,
|
|
11
|
+
edit: false
|
|
12
|
+
} : _ref$enabledOptions,
|
|
13
|
+
_ref$editUrlProps = _ref.editUrlProps,
|
|
14
|
+
editUrlProps = _ref$editUrlProps === void 0 ? {
|
|
15
|
+
prefix: "",
|
|
16
|
+
editablePath: ""
|
|
17
|
+
} : _ref$editUrlProps,
|
|
18
|
+
entity = _ref.entity,
|
|
19
|
+
entityName = _ref.entityName,
|
|
20
|
+
_ref$handleEdit = _ref.handleEdit,
|
|
21
|
+
handleEdit = _ref$handleEdit === void 0 ? noop : _ref$handleEdit,
|
|
22
|
+
_ref$handleRegenerate = _ref.handleRegenerate,
|
|
23
|
+
handleRegenerate = _ref$handleRegenerate === void 0 ? noop : _ref$handleRegenerate,
|
|
24
|
+
_ref$previewUrl = _ref.previewUrl,
|
|
25
|
+
previewUrl = _ref$previewUrl === void 0 ? "" : _ref$previewUrl,
|
|
26
|
+
socialMediaPostTitle = _ref.socialMediaPostTitle,
|
|
27
|
+
url = _ref.url;
|
|
28
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: "neeto-ui-border-gray-400 neeto-ui-shadow-xs neeto-ui-rounded-lg neeto-ui-bg-white col-span-2 space-y-4 border p-8",
|
|
30
|
+
"data-testid": "share-via-link"
|
|
31
|
+
}, /*#__PURE__*/React.createElement(LinkBlock, {
|
|
32
|
+
editUrlProps: editUrlProps,
|
|
33
|
+
enabledOptions: enabledOptions,
|
|
34
|
+
entityName: entityName,
|
|
35
|
+
handleEdit: handleEdit,
|
|
36
|
+
handleRegenerate: handleRegenerate,
|
|
37
|
+
isLoading: isLoading,
|
|
38
|
+
previewUrl: previewUrl,
|
|
39
|
+
url: url
|
|
40
|
+
}), /*#__PURE__*/React.createElement(SocialMedia, {
|
|
41
|
+
entity: entity,
|
|
42
|
+
url: url,
|
|
43
|
+
postTitle: socialMediaPostTitle
|
|
44
|
+
}));
|
|
45
|
+
};
|
|
46
|
+
export default ShareViaLink;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { buildUrl } from "@bigbinary/neeto-commons-frontend/utils";
|
|
2
|
+
import { MAX_PREFIX_SIZE } from "./constants";
|
|
3
|
+
export var facebookShareLink = function facebookShareLink(_ref) {
|
|
4
|
+
var id = _ref.id;
|
|
5
|
+
return buildUrl("https://www.facebook.com/sharer/sharer.php", {
|
|
6
|
+
u: "https://".concat(window.location.host, "/").concat(id)
|
|
7
|
+
});
|
|
8
|
+
};
|
|
9
|
+
export var linkedInShareLink = function linkedInShareLink(_ref2) {
|
|
10
|
+
var id = _ref2.id,
|
|
11
|
+
title = _ref2.title;
|
|
12
|
+
return buildUrl("https://www.linkedin.com/shareArticle", {
|
|
13
|
+
mini: true,
|
|
14
|
+
url: "https://".concat(window.location.host, "/").concat(id),
|
|
15
|
+
title: title
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
export var twitterShareLink = function twitterShareLink(_ref3) {
|
|
19
|
+
var id = _ref3.id,
|
|
20
|
+
title = _ref3.title;
|
|
21
|
+
return buildUrl("http://twitter.com/share", {
|
|
22
|
+
text: title,
|
|
23
|
+
url: "https://".concat(window.location.host, "/").concat(id)
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export var downloadCanvas = function downloadCanvas(canvas) {
|
|
27
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
28
|
+
var _options$name = options.name,
|
|
29
|
+
name = _options$name === void 0 ? "image" : _options$name,
|
|
30
|
+
_options$extension = options.extension,
|
|
31
|
+
extension = _options$extension === void 0 ? "png" : _options$extension;
|
|
32
|
+
var canvasUrl = canvas.toDataURL("image/".concat(extension));
|
|
33
|
+
var element = document.createElement("a");
|
|
34
|
+
element.href = canvasUrl;
|
|
35
|
+
element.download = "".concat(name, ".").concat(extension);
|
|
36
|
+
element.click();
|
|
37
|
+
element.remove();
|
|
38
|
+
};
|
|
39
|
+
export var getPathname = function getPathname(url) {
|
|
40
|
+
return new URL(url).pathname.slice(1);
|
|
41
|
+
};
|
|
42
|
+
export var getPrefixFromUrl = function getPrefixFromUrl(url) {
|
|
43
|
+
return "".concat(new URL(url).origin, "/");
|
|
44
|
+
};
|
|
45
|
+
export var truncatePrefix = function truncatePrefix(url) {
|
|
46
|
+
return url.length > MAX_PREFIX_SIZE ? "...".concat(url.slice(-MAX_PREFIX_SIZE)) : url;
|
|
47
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
import { capitalize } from "@bigbinary/neeto-commons-frontend/pure";
|
|
4
|
+
import { NeetoIcon } from "@bigbinary/neeto-icons";
|
|
5
|
+
import * as AppIcons from "@bigbinary/neeto-icons/app-icons";
|
|
6
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
7
|
+
import "./appswitcher.scss";
|
|
8
|
+
var AppLink = function AppLink(_ref) {
|
|
9
|
+
var name = _ref.name,
|
|
10
|
+
description = _ref.description,
|
|
11
|
+
url = _ref.url;
|
|
12
|
+
var appName = "Neeto".concat(name.charAt(0)).concat(name.slice(1).toLowerCase());
|
|
13
|
+
var AppIcon = AppIcons[appName];
|
|
14
|
+
return /*#__PURE__*/React.createElement("a", {
|
|
15
|
+
"data-cy": "".concat(name, "-app-link"),
|
|
16
|
+
"data-test-id": "neetoapp-link-".concat(name),
|
|
17
|
+
href: url,
|
|
18
|
+
rel: "noreferrer",
|
|
19
|
+
target: "_blank",
|
|
20
|
+
className: classnames("neeto-molecules-app-switcher-link", {
|
|
21
|
+
"neeto-molecules-app-switcher-link--active": capitalize(globalProps.appName) === appName
|
|
22
|
+
})
|
|
23
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
className: classnames("neeto-molecules-app-switcher-link__icon-holder", {
|
|
25
|
+
"neeto-ui-bg-primary-500": !AppIcon
|
|
26
|
+
})
|
|
27
|
+
}, AppIcon ? /*#__PURE__*/React.createElement(AppIcon, {
|
|
28
|
+
size: 42
|
|
29
|
+
}) : /*#__PURE__*/React.createElement(NeetoIcon, {
|
|
30
|
+
color: "white",
|
|
31
|
+
size: 42
|
|
32
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: "neeto-molecules-app-switcher-link__content"
|
|
34
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
35
|
+
component: "span",
|
|
36
|
+
lineHeight: "relaxed",
|
|
37
|
+
style: "h4",
|
|
38
|
+
weight: "medium"
|
|
39
|
+
}, name), /*#__PURE__*/React.createElement(Typography, {
|
|
40
|
+
component: "span",
|
|
41
|
+
style: "body3",
|
|
42
|
+
weight: "normal"
|
|
43
|
+
}, description)));
|
|
44
|
+
};
|
|
45
|
+
export default /*#__PURE__*/React.memo(AppLink);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["children"];
|
|
4
|
+
import React, { forwardRef } from "react";
|
|
5
|
+
var Backdrop = function Backdrop(_ref, ref) {
|
|
6
|
+
var children = _ref.children,
|
|
7
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
8
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9
|
+
"data-testid": "neeto-backdrop",
|
|
10
|
+
ref: ref
|
|
11
|
+
}, otherProps), children);
|
|
12
|
+
};
|
|
13
|
+
export default /*#__PURE__*/forwardRef(Backdrop);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import React, { useState } from "react";
|
|
4
|
+
import { useFetchNeetoApps } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
5
|
+
import { Close, Search } from "@bigbinary/neeto-icons";
|
|
6
|
+
import { Button, Input, Typography } from "@bigbinary/neetoui";
|
|
7
|
+
import { useTranslation } from "react-i18next";
|
|
8
|
+
import AppLink from "./AppLink";
|
|
9
|
+
import "./appswitcher.scss";
|
|
10
|
+
var Body = function Body(_ref) {
|
|
11
|
+
var onClose = _ref.onClose;
|
|
12
|
+
var _useTranslation = useTranslation(),
|
|
13
|
+
t = _useTranslation.t;
|
|
14
|
+
var _useState = useState(""),
|
|
15
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16
|
+
searchTerm = _useState2[0],
|
|
17
|
+
setSearchTerm = _useState2[1];
|
|
18
|
+
var _useFetchNeetoApps = useFetchNeetoApps(),
|
|
19
|
+
data = _useFetchNeetoApps.data;
|
|
20
|
+
var substring = searchTerm.replace(/ /g, "").toLowerCase();
|
|
21
|
+
var filteredApps = data === null || data === void 0 ? void 0 : data.neetoApps.filter(function (_ref2) {
|
|
22
|
+
var name = _ref2.name;
|
|
23
|
+
return name.toLowerCase().includes(substring);
|
|
24
|
+
});
|
|
25
|
+
var handleSearch = function handleSearch(e) {
|
|
26
|
+
return setSearchTerm(e.target.value);
|
|
27
|
+
};
|
|
28
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
29
|
+
className: "neeto-molecules-app-switcher__close-btn",
|
|
30
|
+
"data-cy": "app-switcher-back-button",
|
|
31
|
+
"data-testid": "app-switcher-back-button",
|
|
32
|
+
icon: Close,
|
|
33
|
+
iconPosition: "left",
|
|
34
|
+
size: "small",
|
|
35
|
+
style: "text",
|
|
36
|
+
onClick: onClose
|
|
37
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: "neeto-molecules-app-switcher__header",
|
|
39
|
+
"data-cy": "app-switcher-body-wrapper"
|
|
40
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
41
|
+
style: "h1"
|
|
42
|
+
}, t("neetoMolecules.appSwitcher.chooseNeetoProduct")), /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: "neeto-molecules-app-switcher__search-wrapper"
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
45
|
+
autoFocus: true,
|
|
46
|
+
"data-cy": "app-switcher-search-input",
|
|
47
|
+
placeholder: t("neetoMolecules.appSwitcher.searchProducts"),
|
|
48
|
+
prefix: /*#__PURE__*/React.createElement(Search, null),
|
|
49
|
+
type: "search",
|
|
50
|
+
value: searchTerm,
|
|
51
|
+
onChange: handleSearch
|
|
52
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: "neeto-molecules-app-switcher__body"
|
|
54
|
+
}, (filteredApps === null || filteredApps === void 0 ? void 0 : filteredApps.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
className: "neeto-molecules-app-switcher__grid"
|
|
56
|
+
}, filteredApps.map(function (app) {
|
|
57
|
+
return /*#__PURE__*/React.createElement(AppLink, _extends({
|
|
58
|
+
key: app.name
|
|
59
|
+
}, app));
|
|
60
|
+
})) : /*#__PURE__*/React.createElement(Typography, {
|
|
61
|
+
className: "neeto-ui-text-center",
|
|
62
|
+
style: "body1"
|
|
63
|
+
}, t("neetoMolecules.appSwitcher.noApps"))));
|
|
64
|
+
};
|
|
65
|
+
export default Body;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
|
+
import { createPortal } from "react-dom";
|
|
3
|
+
var Portal = function Portal(_ref) {
|
|
4
|
+
var rootId = _ref.rootId,
|
|
5
|
+
children = _ref.children;
|
|
6
|
+
var target = useRef(null);
|
|
7
|
+
useEffect(function () {
|
|
8
|
+
var container = document.getElementById(rootId);
|
|
9
|
+
if (!container) {
|
|
10
|
+
container = document.createElement("div");
|
|
11
|
+
container.setAttribute("id", rootId);
|
|
12
|
+
document.body.appendChild(container);
|
|
13
|
+
}
|
|
14
|
+
container.appendChild(target.current);
|
|
15
|
+
return function () {
|
|
16
|
+
target.current.remove();
|
|
17
|
+
if (container.childNodes.length === 0) {
|
|
18
|
+
container.remove();
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}, [rootId]);
|
|
22
|
+
if (!target.current) {
|
|
23
|
+
target.current = document.createElement("div");
|
|
24
|
+
}
|
|
25
|
+
return /*#__PURE__*/createPortal(children, target.current);
|
|
26
|
+
};
|
|
27
|
+
export default Portal;
|
|
@@ -0,0 +1,164 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,19 @@
|
|
|
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);
|