@bigbinary/neeto-molecules 1.1.10 → 1.1.12
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 +75 -0
- package/dist/IpRestriction/CurrentIp.js +26 -0
- package/dist/IpRestriction/FormRow.js +84 -0
- package/dist/IpRestriction/Row.js +91 -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 +20 -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 +85 -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/Search/index.js +52 -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 +28 -34
- package/src/translations/en.json +5 -1
- package/types/Search.d.ts +19 -0
- 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,31 @@
|
|
|
1
|
+
import { withImmutableActions } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
2
|
+
import { create } from "zustand";
|
|
3
|
+
import { shallow } from "zustand/shallow";
|
|
4
|
+
|
|
5
|
+
/** @type {import("neetocommons/react-utils").ZustandStoreHook} */
|
|
6
|
+
var useKeyboardShortcutsStore = create(withImmutableActions(function (set) {
|
|
7
|
+
return {
|
|
8
|
+
isOpen: false,
|
|
9
|
+
setIsOpen: function setIsOpen(arg) {
|
|
10
|
+
if (typeof arg === "function") {
|
|
11
|
+
set(function (state) {
|
|
12
|
+
return {
|
|
13
|
+
isOpen: arg(state.isOpen)
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
} else {
|
|
17
|
+
set({
|
|
18
|
+
isOpen: arg
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}));
|
|
24
|
+
var useKeyboardShortcutsPaneState = function useKeyboardShortcutsPaneState() {
|
|
25
|
+
return useKeyboardShortcutsStore(function (_ref) {
|
|
26
|
+
var isOpen = _ref.isOpen,
|
|
27
|
+
setIsOpen = _ref.setIsOpen;
|
|
28
|
+
return [isOpen, setIsOpen];
|
|
29
|
+
}, shallow);
|
|
30
|
+
};
|
|
31
|
+
export default useKeyboardShortcutsPaneState;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import useKeyboardShortcutsPaneState from "./hooks/useKeyboardShortcutsPaneState";
|
|
2
|
+
import KeyboardShortcutsPane from "./Pane";
|
|
3
|
+
import { getGlobalShortcuts } from "./Pane/utils";
|
|
4
|
+
var KeyboardShortcuts = {
|
|
5
|
+
Pane: KeyboardShortcutsPane,
|
|
6
|
+
usePaneState: useKeyboardShortcutsPaneState,
|
|
7
|
+
GLOBAL_SHORTCUTS: getGlobalShortcuts()
|
|
8
|
+
};
|
|
9
|
+
export default KeyboardShortcuts;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Form, Formik } from "formik";
|
|
3
|
+
import { Button, Input } from "@bigbinary/neetoui/formik";
|
|
4
|
+
import { assoc } from "ramda";
|
|
5
|
+
import { useTranslation, Trans } from "react-i18next";
|
|
6
|
+
import { INITIAL_FORM_VALUES, LOGIN_FORM_VALIDATION_SCHEMA } from "./constants";
|
|
7
|
+
var SignInForm = function SignInForm(_ref) {
|
|
8
|
+
var handleFormSubmit = _ref.handleFormSubmit;
|
|
9
|
+
var _useTranslation = useTranslation(),
|
|
10
|
+
t = _useTranslation.t;
|
|
11
|
+
var emailFromSearchParams = function emailFromSearchParams() {
|
|
12
|
+
return new URLSearchParams(window.location.search).get("email") || "";
|
|
13
|
+
};
|
|
14
|
+
var emailPrefilledInitialValues = function emailPrefilledInitialValues() {
|
|
15
|
+
return assoc("email", emailFromSearchParams(), INITIAL_FORM_VALUES);
|
|
16
|
+
};
|
|
17
|
+
if (Button === undefined) {
|
|
18
|
+
return /*#__PURE__*/React.createElement(Trans, {
|
|
19
|
+
components: {
|
|
20
|
+
code: /*#__PURE__*/React.createElement("code", null)
|
|
21
|
+
},
|
|
22
|
+
i18nKey: "neetoMolecules.login.installNeetoUI"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return /*#__PURE__*/React.createElement(Formik, {
|
|
26
|
+
initialValues: emailPrefilledInitialValues(),
|
|
27
|
+
validationSchema: LOGIN_FORM_VALIDATION_SCHEMA,
|
|
28
|
+
onSubmit: handleFormSubmit
|
|
29
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
30
|
+
className: "w-full"
|
|
31
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: "mb-6"
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
34
|
+
required: true,
|
|
35
|
+
"data-cy": "login-email-text-field",
|
|
36
|
+
"data-test-id": "login-email",
|
|
37
|
+
label: t("neetoMolecules.login.email"),
|
|
38
|
+
name: "email"
|
|
39
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: "mb-6"
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
42
|
+
required: true,
|
|
43
|
+
"data-cy": "login-password-text-field",
|
|
44
|
+
"data-test-id": "login-password",
|
|
45
|
+
label: t("neetoMolecules.login.password"),
|
|
46
|
+
name: "password",
|
|
47
|
+
type: "password"
|
|
48
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
49
|
+
fullWidth: true,
|
|
50
|
+
"data-cy": "login-submit-button",
|
|
51
|
+
"data-test-id": "login-submit-button",
|
|
52
|
+
label: t("neetoMolecules.login.login"),
|
|
53
|
+
style: "secondary",
|
|
54
|
+
type: "submit"
|
|
55
|
+
})));
|
|
56
|
+
};
|
|
57
|
+
export default SignInForm;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { t } from "i18next";
|
|
2
|
+
import * as Yup from "yup";
|
|
3
|
+
export var INITIAL_FORM_VALUES = {
|
|
4
|
+
email: "",
|
|
5
|
+
password: ""
|
|
6
|
+
};
|
|
7
|
+
export var DEFAULT_EMAIL = "oliver@example.com";
|
|
8
|
+
export var DEFAULT_PASSWORD = "welcome";
|
|
9
|
+
export var LOGIN_FORM_VALIDATION_SCHEMA = Yup.object().shape({
|
|
10
|
+
email: Yup.string().email(t("neetoMolecules.login.invalidEmail")).required(t("neetoMolecules.login.emailRequired")),
|
|
11
|
+
password: Yup.string().required(t("neetoMolecules.login.passwordRequired"))
|
|
12
|
+
});
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
|
+
import React, { useState } from "react";
|
|
5
|
+
import { Button, Toastr } from "@bigbinary/neetoui";
|
|
6
|
+
import { useTranslation, Trans } from "react-i18next";
|
|
7
|
+
import { DEFAULT_EMAIL, DEFAULT_PASSWORD } from "./constants";
|
|
8
|
+
import SignInForm from "./Form";
|
|
9
|
+
var SignIn = function SignIn(_ref) {
|
|
10
|
+
var handleSubmit = _ref.handleSubmit;
|
|
11
|
+
var _useState = useState(null),
|
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
+
isSubmitting = _useState2[0],
|
|
14
|
+
setIsSubmitting = _useState2[1];
|
|
15
|
+
var _useTranslation = useTranslation(),
|
|
16
|
+
t = _useTranslation.t;
|
|
17
|
+
var redirectAfterSuccessfulLogin = function redirectAfterSuccessfulLogin(redirectTo) {
|
|
18
|
+
window.location.pathname = redirectTo || "/";
|
|
19
|
+
};
|
|
20
|
+
var handleFormSubmit = /*#__PURE__*/function () {
|
|
21
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(formValues) {
|
|
22
|
+
var response;
|
|
23
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
24
|
+
while (1) switch (_context.prev = _context.next) {
|
|
25
|
+
case 0:
|
|
26
|
+
_context.prev = 0;
|
|
27
|
+
_context.next = 3;
|
|
28
|
+
return handleSubmit({
|
|
29
|
+
user: formValues
|
|
30
|
+
});
|
|
31
|
+
case 3:
|
|
32
|
+
response = _context.sent;
|
|
33
|
+
Toastr.success(t("neetoMolecules.login.success"));
|
|
34
|
+
redirectAfterSuccessfulLogin(response.redirectTo);
|
|
35
|
+
_context.next = 10;
|
|
36
|
+
break;
|
|
37
|
+
case 8:
|
|
38
|
+
_context.prev = 8;
|
|
39
|
+
_context.t0 = _context["catch"](0);
|
|
40
|
+
case 10:
|
|
41
|
+
case "end":
|
|
42
|
+
return _context.stop();
|
|
43
|
+
}
|
|
44
|
+
}, _callee, null, [[0, 8]]);
|
|
45
|
+
}));
|
|
46
|
+
return function handleFormSubmit(_x) {
|
|
47
|
+
return _ref2.apply(this, arguments);
|
|
48
|
+
};
|
|
49
|
+
}();
|
|
50
|
+
var loginAsOliver = /*#__PURE__*/function () {
|
|
51
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
|
52
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
53
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
54
|
+
case 0:
|
|
55
|
+
setIsSubmitting(true);
|
|
56
|
+
_context2.next = 3;
|
|
57
|
+
return handleFormSubmit({
|
|
58
|
+
email: DEFAULT_EMAIL,
|
|
59
|
+
password: DEFAULT_PASSWORD
|
|
60
|
+
});
|
|
61
|
+
case 3:
|
|
62
|
+
setIsSubmitting(false);
|
|
63
|
+
case 4:
|
|
64
|
+
case "end":
|
|
65
|
+
return _context2.stop();
|
|
66
|
+
}
|
|
67
|
+
}, _callee2);
|
|
68
|
+
}));
|
|
69
|
+
return function loginAsOliver() {
|
|
70
|
+
return _ref3.apply(this, arguments);
|
|
71
|
+
};
|
|
72
|
+
}();
|
|
73
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
74
|
+
className: "flex h-screen w-full justify-center"
|
|
75
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
className: "neeto-ui-bg-white neeto-ui-rounded-lg neeto-ui-shadow-sm w-2/3 min-w-max max-w-lg self-center p-10"
|
|
77
|
+
}, /*#__PURE__*/React.createElement("h1", {
|
|
78
|
+
className: "mb-6 text-xl font-medium"
|
|
79
|
+
}, /*#__PURE__*/React.createElement(Trans, {
|
|
80
|
+
components: {
|
|
81
|
+
bold: /*#__PURE__*/React.createElement("b", {
|
|
82
|
+
"data-test-id": "organization-name"
|
|
83
|
+
})
|
|
84
|
+
},
|
|
85
|
+
i18nKey: "neetoMolecules.login.toOrganizationAccount",
|
|
86
|
+
values: {
|
|
87
|
+
organizationName: globalProps.organization.name
|
|
88
|
+
}
|
|
89
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
90
|
+
fullWidth: true,
|
|
91
|
+
disabled: isSubmitting,
|
|
92
|
+
label: t("neetoMolecules.login.loginAsOliver"),
|
|
93
|
+
loading: isSubmitting,
|
|
94
|
+
size: "large",
|
|
95
|
+
style: "primary",
|
|
96
|
+
onClick: loginAsOliver
|
|
97
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
className: "my-6 text-center text-lg font-semibold"
|
|
99
|
+
}, t("neetoMolecules.common.or").toLocaleUpperCase()), /*#__PURE__*/React.createElement(SignInForm, {
|
|
100
|
+
handleFormSubmit: handleFormSubmit
|
|
101
|
+
})));
|
|
102
|
+
};
|
|
103
|
+
export default SignIn;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["label", "onClick"];
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Plus } from "@bigbinary/neeto-icons";
|
|
6
|
+
import { Button } from "@bigbinary/neetoui";
|
|
7
|
+
import "./menubar.scss";
|
|
8
|
+
var AddNew = function AddNew(_ref) {
|
|
9
|
+
var _ref$label = _ref.label,
|
|
10
|
+
label = _ref$label === void 0 ? "" : _ref$label,
|
|
11
|
+
onClick = _ref.onClick,
|
|
12
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
14
|
+
className: "neeto-molecules-menubar__add-new-wrap"
|
|
15
|
+
}, otherProps), /*#__PURE__*/React.createElement(Button, {
|
|
16
|
+
icon: Plus,
|
|
17
|
+
iconPosition: "left",
|
|
18
|
+
iconSize: 16,
|
|
19
|
+
label: label,
|
|
20
|
+
size: "small",
|
|
21
|
+
style: "link",
|
|
22
|
+
onClick: onClick
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
25
|
+
export default AddNew;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["url", "icon", "label", "count", "active", "onEdit", "onClick", "className"];
|
|
5
|
+
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; }
|
|
6
|
+
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; }
|
|
7
|
+
import React from "react";
|
|
8
|
+
import classnames from "classnames";
|
|
9
|
+
import { noop } from "@bigbinary/neeto-commons-frontend/pure";
|
|
10
|
+
import { joinHyphenCase } from "@bigbinary/neeto-commons-frontend/utils";
|
|
11
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
12
|
+
import { Link } from "react-router-dom";
|
|
13
|
+
import "./menubar.scss";
|
|
14
|
+
var Block = function Block(_ref) {
|
|
15
|
+
var url = _ref.url,
|
|
16
|
+
icon = _ref.icon,
|
|
17
|
+
label = _ref.label,
|
|
18
|
+
count = _ref.count,
|
|
19
|
+
_ref$active = _ref.active,
|
|
20
|
+
active = _ref$active === void 0 ? false : _ref$active,
|
|
21
|
+
onEdit = _ref.onEdit,
|
|
22
|
+
_ref$onClick = _ref.onClick,
|
|
23
|
+
onClick = _ref$onClick === void 0 ? noop : _ref$onClick,
|
|
24
|
+
className = _ref.className,
|
|
25
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
+
var handleEdit = function handleEdit(e) {
|
|
27
|
+
e.stopPropagation();
|
|
28
|
+
onEdit && onEdit();
|
|
29
|
+
};
|
|
30
|
+
var Parent = url ? Link : function (props) {
|
|
31
|
+
return /*#__PURE__*/React.createElement("button", props);
|
|
32
|
+
};
|
|
33
|
+
return /*#__PURE__*/React.createElement(Parent, _extends({
|
|
34
|
+
"data-cy": otherProps["data-cy"] || "menubar-block",
|
|
35
|
+
to: url,
|
|
36
|
+
className: classnames("neeto-molecules-menubar__block", _defineProperty({
|
|
37
|
+
"neeto-molecules-menubar__block--editable": !!onEdit,
|
|
38
|
+
"neeto-molecules-menubar__block--active": active
|
|
39
|
+
}, className, className))
|
|
40
|
+
}, _objectSpread({
|
|
41
|
+
onClick: onClick
|
|
42
|
+
}, otherProps)), /*#__PURE__*/React.createElement("div", {
|
|
43
|
+
className: "neeto-molecules-menubar__block-label",
|
|
44
|
+
"data-cy": joinHyphenCase("menubar-block-label", label)
|
|
45
|
+
}, icon && /*#__PURE__*/React.createElement("i", {
|
|
46
|
+
className: "neeto-molecules-menubar__block-icon"
|
|
47
|
+
}, icon), /*#__PURE__*/React.createElement(Typography, {
|
|
48
|
+
component: "span",
|
|
49
|
+
style: "h5",
|
|
50
|
+
title: label,
|
|
51
|
+
weight: "medium"
|
|
52
|
+
}, label)), Number.isInteger(count) && /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
onClick: handleEdit
|
|
54
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
55
|
+
component: "span",
|
|
56
|
+
style: "h5",
|
|
57
|
+
weight: "medium"
|
|
58
|
+
}, count)));
|
|
59
|
+
};
|
|
60
|
+
export default Block;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["label", "description", "active", "className"];
|
|
5
|
+
import React from "react";
|
|
6
|
+
import classnames from "classnames";
|
|
7
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
8
|
+
import "./menubar.scss";
|
|
9
|
+
var Item = function Item(_ref) {
|
|
10
|
+
var _ref$label = _ref.label,
|
|
11
|
+
label = _ref$label === void 0 ? "" : _ref$label,
|
|
12
|
+
_ref$description = _ref.description,
|
|
13
|
+
description = _ref$description === void 0 ? "" : _ref$description,
|
|
14
|
+
_ref$active = _ref.active,
|
|
15
|
+
active = _ref$active === void 0 ? false : _ref$active,
|
|
16
|
+
_ref$className = _ref.className,
|
|
17
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
18
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
20
|
+
className: classnames("neeto-molecules-menubar__item", _defineProperty({
|
|
21
|
+
"neeto-molecules-menubar__item--active": active
|
|
22
|
+
}, className, className))
|
|
23
|
+
}, otherProps), /*#__PURE__*/React.createElement(Typography, {
|
|
24
|
+
className: "neeto-molecules-menubar__item-header",
|
|
25
|
+
component: "h5",
|
|
26
|
+
style: "h4"
|
|
27
|
+
}, label), /*#__PURE__*/React.createElement(Typography, {
|
|
28
|
+
className: "neeto-molecules-menubar__item-desc",
|
|
29
|
+
style: "body3"
|
|
30
|
+
}, description));
|
|
31
|
+
};
|
|
32
|
+
export default Item;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["t", "isCollapsed", "onCollapse"];
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { withT } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
6
|
+
import { Search as NeetoUISearchIcon, Close } from "@bigbinary/neeto-icons";
|
|
7
|
+
import { Button, Input } from "@bigbinary/neetoui";
|
|
8
|
+
import PropTypes from "prop-types";
|
|
9
|
+
import "./menubar.scss";
|
|
10
|
+
var Search = withT(function (_ref) {
|
|
11
|
+
var t = _ref.t,
|
|
12
|
+
_ref$isCollapsed = _ref.isCollapsed,
|
|
13
|
+
isCollapsed = _ref$isCollapsed === void 0 ? true : _ref$isCollapsed,
|
|
14
|
+
onCollapse = _ref.onCollapse,
|
|
15
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !isCollapsed && /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: "neeto-molecules-menubar__search"
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Input, _extends({
|
|
19
|
+
placeholder: t("neetoMolecules.common.actions.search"),
|
|
20
|
+
prefix: /*#__PURE__*/React.createElement(NeetoUISearchIcon, null),
|
|
21
|
+
type: "search"
|
|
22
|
+
}, props)), /*#__PURE__*/React.createElement(Button, {
|
|
23
|
+
"data-cy": "menubar-search-close-icon",
|
|
24
|
+
icon: Close,
|
|
25
|
+
style: "text",
|
|
26
|
+
onClick: onCollapse
|
|
27
|
+
})));
|
|
28
|
+
});
|
|
29
|
+
Search.propTypes = {
|
|
30
|
+
/**
|
|
31
|
+
* To specify whether the search field is collapsed.
|
|
32
|
+
*/
|
|
33
|
+
isCollapsed: PropTypes.bool,
|
|
34
|
+
/**
|
|
35
|
+
* To provide a callback function on collapse of the search field.
|
|
36
|
+
*/
|
|
37
|
+
onCollapse: PropTypes.func
|
|
38
|
+
};
|
|
39
|
+
export default Search;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["children", "iconProps"];
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Button } from "@bigbinary/neetoui";
|
|
6
|
+
import "./menubar.scss";
|
|
7
|
+
var SubTitle = function SubTitle(_ref) {
|
|
8
|
+
var children = _ref.children,
|
|
9
|
+
iconProps = _ref.iconProps,
|
|
10
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
12
|
+
className: "neeto-molecules-menubar__subtitle",
|
|
13
|
+
"data-cy": otherProps["data-cy"] || "menubar-subtitle-heading"
|
|
14
|
+
}, otherProps), children, /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "neeto-molecules-menubar__subtitle-actions"
|
|
16
|
+
}, iconProps === null || iconProps === void 0 ? void 0 : iconProps.map(function (iconProp, index) {
|
|
17
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
18
|
+
key: index,
|
|
19
|
+
style: "text"
|
|
20
|
+
}, iconProp));
|
|
21
|
+
})));
|
|
22
|
+
};
|
|
23
|
+
export default SubTitle;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["title", "children", "showMenu", "className"];
|
|
4
|
+
import React from "react";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
7
|
+
import { CSSTransition } from "react-transition-group";
|
|
8
|
+
import AddNew from "./AddNew";
|
|
9
|
+
import Block from "./Block";
|
|
10
|
+
import Item from "./Item";
|
|
11
|
+
import "./menubar.scss";
|
|
12
|
+
import Search from "./Search";
|
|
13
|
+
import SubTitle from "./SubTitle";
|
|
14
|
+
var MenuBar = function MenuBar(_ref) {
|
|
15
|
+
var _ref$title = _ref.title,
|
|
16
|
+
title = _ref$title === void 0 ? "" : _ref$title,
|
|
17
|
+
children = _ref.children,
|
|
18
|
+
_ref$showMenu = _ref.showMenu,
|
|
19
|
+
showMenu = _ref$showMenu === void 0 ? false : _ref$showMenu,
|
|
20
|
+
_ref$className = _ref.className,
|
|
21
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
22
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
+
return /*#__PURE__*/React.createElement(CSSTransition, {
|
|
24
|
+
unmountOnExit: true,
|
|
25
|
+
classNames: "neeto-molecules-menubar",
|
|
26
|
+
"in": showMenu,
|
|
27
|
+
timeout: 300
|
|
28
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: classnames("neeto-molecules-menubar__wrapper", _defineProperty({}, className, className))
|
|
30
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
31
|
+
className: "neeto-molecules-menubar__container",
|
|
32
|
+
"data-cy": "menubar-container"
|
|
33
|
+
}, title && /*#__PURE__*/React.createElement(Typography, {
|
|
34
|
+
className: "neeto-molecules-menubar__title",
|
|
35
|
+
"data-cy": otherProps["data-cy"] || "menubar-heading",
|
|
36
|
+
lineHeight: "tight",
|
|
37
|
+
style: "h2",
|
|
38
|
+
weight: "semibold"
|
|
39
|
+
}, title), children)));
|
|
40
|
+
};
|
|
41
|
+
MenuBar.Block = Block;
|
|
42
|
+
MenuBar.Item = Item;
|
|
43
|
+
MenuBar.SubTitle = SubTitle;
|
|
44
|
+
MenuBar.Search = Search;
|
|
45
|
+
MenuBar.AddNew = AddNew;
|
|
46
|
+
export default MenuBar;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
.neeto-molecules-menubar__wrapper {
|
|
2
|
+
background-color: rgb(var(--neeto-ui-white)) !important;
|
|
3
|
+
border-right: 1px solid rgb(var(--neeto-ui-gray-300));
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
|
|
7
|
+
transition: all 0.3s;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.neeto-molecules-menubar__container {
|
|
11
|
+
width: 324px;
|
|
12
|
+
padding: 32px !important;
|
|
13
|
+
height: 100vh;
|
|
14
|
+
overflow-y: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.neeto-molecules-menubar__title {
|
|
18
|
+
margin-bottom: 16px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// search
|
|
22
|
+
|
|
23
|
+
.neeto-molecules-menubar__search {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
margin-bottom: 20px;
|
|
27
|
+
gap: 4px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// subtitle
|
|
31
|
+
|
|
32
|
+
.neeto-molecules-menubar__subtitle {
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
align-items: center;
|
|
36
|
+
margin-bottom: 20px;
|
|
37
|
+
margin-top: 20px;
|
|
38
|
+
|
|
39
|
+
&-actions {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 4px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// block
|
|
47
|
+
|
|
48
|
+
.neeto-molecules-menubar__add-new-wrap {
|
|
49
|
+
padding: 7px 8px;
|
|
50
|
+
margin-bottom: 8px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.neeto-molecules-menubar__block {
|
|
54
|
+
width: 100%;
|
|
55
|
+
text-align: left;
|
|
56
|
+
display: flex;
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
align-items: center;
|
|
59
|
+
padding: 7px 8px;
|
|
60
|
+
margin-bottom: 8px;
|
|
61
|
+
transition: all 0.3s;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
border-radius: var(--neeto-ui-rounded);
|
|
64
|
+
border: thin solid transparent;
|
|
65
|
+
|
|
66
|
+
&:hover,
|
|
67
|
+
&:focus,
|
|
68
|
+
&:focus-visible,
|
|
69
|
+
&:active {
|
|
70
|
+
background-color: rgb(var(--neeto-ui-gray-200));
|
|
71
|
+
text-decoration: none;
|
|
72
|
+
outline: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&--active {
|
|
76
|
+
background-color: rgb(var(--neeto-ui-white));
|
|
77
|
+
box-shadow: var(--neeto-ui-shadow-xs);
|
|
78
|
+
border-color: rgb(var(--neeto-ui-gray-300));
|
|
79
|
+
|
|
80
|
+
&:hover,
|
|
81
|
+
&:focus,
|
|
82
|
+
&:focus-visible,
|
|
83
|
+
&:active {
|
|
84
|
+
background-color: rgb(var(--neeto-ui-white));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.neeto-molecules-menubar__block-label {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
}
|
|
92
|
+
.neeto-molecules-menubar__block-icon {
|
|
93
|
+
margin-right: 4px;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// item
|
|
98
|
+
|
|
99
|
+
.neeto-molecules-menubar__item {
|
|
100
|
+
padding: 12px;
|
|
101
|
+
width: 100%;
|
|
102
|
+
margin-bottom: 8px;
|
|
103
|
+
transition: all 0.3s;
|
|
104
|
+
text-align: left;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
border-radius: var(--neeto-ui-rounded);
|
|
107
|
+
border: thin solid transparent;
|
|
108
|
+
|
|
109
|
+
&:hover,
|
|
110
|
+
&:focus,
|
|
111
|
+
&:focus-visible,
|
|
112
|
+
&:active {
|
|
113
|
+
background-color: rgb(var(--neeto-ui-gray-200));
|
|
114
|
+
outline: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&--active {
|
|
118
|
+
background-color: rgb(var(--neeto-ui-white));
|
|
119
|
+
color: rgb(var(--neeto-ui-gray-800));
|
|
120
|
+
box-shadow: var(--neeto-ui-shadow-xs);
|
|
121
|
+
border-color: rgb(var(--neeto-ui-gray-300));
|
|
122
|
+
|
|
123
|
+
&:hover,
|
|
124
|
+
&:focus,
|
|
125
|
+
&:focus-visible,
|
|
126
|
+
&:active {
|
|
127
|
+
background-color: rgb(var(--neeto-ui-white));
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// CSS transition group
|
|
133
|
+
|
|
134
|
+
.neeto-molecules-menubar-enter {
|
|
135
|
+
&.neeto-molecules-menubar__wrapper {
|
|
136
|
+
width: 0;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
.neeto-molecules-menubar-enter-active,
|
|
140
|
+
.neeto-molecules-menubar-enter-done {
|
|
141
|
+
&.neeto-molecules-menubar__wrapper {
|
|
142
|
+
width: 324px;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.neeto-molecules-menubar-exit {
|
|
146
|
+
&.neeto-molecules-menubar__wrapper {
|
|
147
|
+
width: 324px;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
.neeto-molecules-menubar-exit-active {
|
|
151
|
+
&.neeto-molecules-menubar__wrapper {
|
|
152
|
+
width: 0;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
4
|
+
var Block = function Block(_ref) {
|
|
5
|
+
var title = _ref.title,
|
|
6
|
+
actionBlock = _ref.actionBlock,
|
|
7
|
+
children = _ref.children,
|
|
8
|
+
_ref$className = _ref.className,
|
|
9
|
+
className = _ref$className === void 0 ? "" : _ref$className;
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
className: "neeto-molecules-metadata__block mb-5 w-full",
|
|
12
|
+
"data-cy": "neeto-molecules-metadata-block",
|
|
13
|
+
"data-testid": "metadata-block"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "mb-2 flex w-full items-center justify-between gap-2"
|
|
16
|
+
}, title && /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: "flexitems-center w-60 gap-2 break-all"
|
|
18
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
19
|
+
className: "neeto-ui-text-gray-700",
|
|
20
|
+
"data-testid": "metadata-block-title",
|
|
21
|
+
style: "h5",
|
|
22
|
+
textTransform: "uppercase",
|
|
23
|
+
weight: "bold"
|
|
24
|
+
}, title)), actionBlock && /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: "ml-auto"
|
|
26
|
+
}, actionBlock)), /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: classnames("neeto-ui-bg-white neeto-ui-border-gray-300 neeto-ui-rounded-lg neeto-molecules-metadata__card overflow-y-hidden border p-4", className)
|
|
28
|
+
}, children));
|
|
29
|
+
};
|
|
30
|
+
export default Block;
|