@bigbinary/neeto-molecules 1.1.16 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AutoSaveInput.js +658 -0
- package/dist/AutoSaveInput.js.map +1 -0
- package/dist/Breadcrumbs.js +38 -0
- package/dist/Breadcrumbs.js.map +1 -0
- package/dist/BrowserSupport.js +418 -0
- package/dist/BrowserSupport.js.map +1 -0
- package/dist/Builder.js +662 -0
- package/dist/Builder.js.map +1 -0
- package/dist/CalendarView.js +538 -0
- package/dist/CalendarView.js.map +1 -0
- package/dist/Codeblock.js +236 -0
- package/dist/Codeblock.js.map +1 -0
- package/dist/{Columns/index.js → Columns.js} +130 -13
- package/dist/Columns.js.map +1 -0
- package/dist/{ConfirmationModal/index.js → ConfirmationModal.js} +20 -8
- package/dist/ConfirmationModal.js.map +1 -0
- package/dist/Container.js +1211 -0
- package/dist/Container.js.map +1 -0
- package/dist/CopyToClipboardButton.js +209 -0
- package/dist/CopyToClipboardButton.js.map +1 -0
- package/dist/CustomDomain.js +688 -0
- package/dist/CustomDomain.js.map +1 -0
- package/dist/CustomDomainDashboard.js +2283 -0
- package/dist/CustomDomainDashboard.js.map +1 -0
- package/dist/{DateFormat/index.js → DateFormat.js} +25 -8
- package/dist/DateFormat.js.map +1 -0
- package/dist/DateRangeFilter.js +229 -0
- package/dist/DateRangeFilter.js.map +1 -0
- package/dist/DynamicVariables.js +183 -0
- package/dist/DynamicVariables.js.map +1 -0
- package/dist/EmailForm.js +2291 -0
- package/dist/EmailForm.js.map +1 -0
- package/dist/EmailPreview.js +1353 -0
- package/dist/EmailPreview.js.map +1 -0
- package/dist/{ErrorPage/constants.js → ErrorPage.js} +137 -36
- package/dist/ErrorPage.js.map +1 -0
- package/dist/Header.js +122 -0
- package/dist/Header.js.map +1 -0
- package/dist/IconPicker.js +313 -0
- package/dist/IconPicker.js.map +1 -0
- package/dist/ImageWithFallback.js +181 -0
- package/dist/ImageWithFallback.js.map +1 -0
- package/dist/IntegrationCard.js +343 -0
- package/dist/IntegrationCard.js.map +1 -0
- package/dist/IntegrationDisconnectAlert.js +80 -0
- package/dist/IntegrationDisconnectAlert.js.map +1 -0
- package/dist/{IntegrationWalkthroughModal/index.js → IntegrationWalkthroughModal.js} +8 -6
- package/dist/IntegrationWalkthroughModal.js.map +1 -0
- package/dist/IpRestriction.js +857 -0
- package/dist/IpRestriction.js.map +1 -0
- package/dist/KeyboardShortcuts.js +359 -0
- package/dist/KeyboardShortcuts.js.map +1 -0
- package/dist/LoginPage.js +593 -0
- package/dist/LoginPage.js.map +1 -0
- package/dist/MenuBar.js +1461 -0
- package/dist/MenuBar.js.map +1 -0
- package/dist/Metadata.js +206 -0
- package/dist/Metadata.js.map +1 -0
- package/dist/{MoreDropdown/index.js → MoreDropdown.js} +102 -9
- package/dist/MoreDropdown.js.map +1 -0
- package/dist/NavigationHeader.js +690 -0
- package/dist/NavigationHeader.js.map +1 -0
- package/dist/NeetoWidget.js +1333 -0
- package/dist/NeetoWidget.js.map +1 -0
- package/dist/PageLoader.js +134 -0
- package/dist/PageLoader.js.map +1 -0
- package/dist/PhoneNumber.js +365 -0
- package/dist/PhoneNumber.js.map +1 -0
- package/dist/PublishBlock.js +158 -0
- package/dist/PublishBlock.js.map +1 -0
- package/dist/Rename.js +450 -0
- package/dist/Rename.js.map +1 -0
- package/dist/ResponsiveDevicePicker.js +194 -0
- package/dist/ResponsiveDevicePicker.js.map +1 -0
- package/dist/Schedule.js +1046 -0
- package/dist/Schedule.js.map +1 -0
- package/dist/Scrollable.js +122 -0
- package/dist/Scrollable.js.map +1 -0
- package/dist/Search.js +151 -0
- package/dist/Search.js.map +1 -0
- package/dist/Security.js +1835 -0
- package/dist/Security.js.map +1 -0
- package/dist/SendToFields.js +601 -0
- package/dist/SendToFields.js.map +1 -0
- package/dist/Settings.js +435 -0
- package/dist/Settings.js.map +1 -0
- package/dist/ShareViaEmail.js +2277 -0
- package/dist/ShareViaEmail.js.map +1 -0
- package/dist/ShareViaLink.js +628 -0
- package/dist/ShareViaLink.js.map +1 -0
- package/dist/Sidebar.js +972 -0
- package/dist/Sidebar.js.map +1 -0
- package/dist/SubHeader.js +216 -0
- package/dist/SubHeader.js.map +1 -0
- package/dist/{TableWrapper/index.js → TableWrapper.js} +6 -3
- package/dist/TableWrapper.js.map +1 -0
- package/dist/ThemeSidebar.js +1984 -0
- package/dist/ThemeSidebar.js.map +1 -0
- package/dist/TimeFormat.js +47 -0
- package/dist/TimeFormat.js.map +1 -0
- package/dist/TimezoneMismatchModal.js +168 -0
- package/dist/TimezoneMismatchModal.js.map +1 -0
- package/dist/ToggleFeatureCard.js +323 -0
- package/dist/ToggleFeatureCard.js.map +1 -0
- package/package.json +22 -13
- package/dist/AutoSaveInput/autosaveinput.scss +0 -15
- package/dist/AutoSaveInput/constants.js +0 -13
- package/dist/AutoSaveInput/index.js +0 -124
- package/dist/AutoSaveInput/utils.js +0 -10
- package/dist/Breadcrumbs/breadcrumbs.scss +0 -33
- package/dist/Breadcrumbs/index.js +0 -31
- package/dist/BrowserSupport/Callout.js +0 -15
- package/dist/BrowserSupport/ContactUs.js +0 -21
- package/dist/BrowserSupport/DownloadLink.js +0 -17
- package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +0 -17
- package/dist/BrowserSupport/UnknownBrowser.js +0 -13
- package/dist/BrowserSupport/UnsupportedBrowser.js +0 -24
- package/dist/BrowserSupport/UnsupportedBrowserMessage.js +0 -22
- package/dist/BrowserSupport/UnsupportedBrowserVersion.js +0 -27
- package/dist/BrowserSupport/UnsupportedVersionMessage.js +0 -30
- package/dist/BrowserSupport/browsersupport.scss +0 -71
- package/dist/BrowserSupport/constants.js +0 -63
- package/dist/BrowserSupport/index.js +0 -58
- package/dist/BrowserSupport/utils.js +0 -32
- package/dist/Builder/Body.js +0 -9
- package/dist/Builder/ElementsPanel/ElementsList/Element.js +0 -27
- package/dist/Builder/ElementsPanel/ElementsList/Section.js +0 -28
- package/dist/Builder/ElementsPanel/ElementsList/TitleBar.js +0 -28
- package/dist/Builder/ElementsPanel/ElementsList/index.js +0 -63
- package/dist/Builder/ElementsPanel/SelectedElementsList/SelectedElement.js +0 -73
- package/dist/Builder/ElementsPanel/SelectedElementsList/TitleBar.js +0 -50
- package/dist/Builder/ElementsPanel/SelectedElementsList/index.js +0 -91
- package/dist/Builder/ElementsPanel/index.js +0 -70
- package/dist/Builder/PropertiesPanel/EmptyProperty.js +0 -21
- package/dist/Builder/PropertiesPanel/Skeleton.js +0 -24
- package/dist/Builder/PropertiesPanel/index.js +0 -12
- package/dist/Builder/index.js +0 -3
- package/dist/Builder/styles.scss +0 -84
- package/dist/CalendarView/CustomDatePicker.js +0 -87
- package/dist/CalendarView/Header.js +0 -53
- package/dist/CalendarView/constants.js +0 -19
- package/dist/CalendarView/index.js +0 -83
- package/dist/CalendarView/utils.js +0 -50
- package/dist/Codeblock/index.js +0 -30
- package/dist/Columns/utils.js +0 -20
- package/dist/ConfirmationModal/constants.js +0 -3
- package/dist/ConfirmationModal/utils.js +0 -6
- package/dist/Container/container.scss +0 -21
- package/dist/Container/index.js +0 -23
- package/dist/CopyToClipboardButton/constants.js +0 -13
- package/dist/CopyToClipboardButton/copyToClipboard.scss +0 -22
- package/dist/CopyToClipboardButton/index.js +0 -59
- package/dist/CustomDomain/index.js +0 -98
- package/dist/CustomDomainDashboard/DeleteAlert.js +0 -28
- package/dist/CustomDomainDashboard/Header.js +0 -32
- package/dist/CustomDomainDashboard/Manage/Record.js +0 -42
- package/dist/CustomDomainDashboard/Manage/StatusInfo.js +0 -21
- package/dist/CustomDomainDashboard/Manage/TagBlock.js +0 -36
- package/dist/CustomDomainDashboard/Manage/constants.js +0 -4
- package/dist/CustomDomainDashboard/Manage/index.js +0 -125
- package/dist/CustomDomainDashboard/Manage/utils.js +0 -8
- package/dist/CustomDomainDashboard/api.js +0 -35
- package/dist/CustomDomainDashboard/constants.js +0 -2
- package/dist/CustomDomainDashboard/index.js +0 -118
- package/dist/CustomDomainDashboard/useCustomDomainApi.js +0 -71
- package/dist/CustomDomainDashboard/utils.js +0 -84
- package/dist/DateRangeFilter/index.js +0 -60
- package/dist/DateRangeFilter/utils.js +0 -113
- package/dist/DynamicVariables/dynamic-variables.scss +0 -34
- package/dist/DynamicVariables/index.js +0 -59
- package/dist/DynamicVariables/utils.js +0 -37
- package/dist/EmailForm/EmailForm.js +0 -98
- package/dist/EmailForm/EmailFormProvider.js +0 -45
- package/dist/EmailForm/EmailPreview.js +0 -129
- package/dist/EmailForm/ReplyToField.js +0 -55
- package/dist/EmailForm/SendToField.js +0 -28
- package/dist/EmailForm/SubjectField.js +0 -64
- package/dist/EmailForm/constants.js +0 -33
- package/dist/EmailForm/contexts/EmailForm.js +0 -7
- package/dist/EmailForm/index.js +0 -4
- package/dist/EmailForm/utils.js +0 -10
- package/dist/EmailPreview/index.js +0 -2
- package/dist/ErrorPage/index.js +0 -78
- package/dist/Header/Breadcrumbs.js +0 -31
- package/dist/Header/Dropdown.js +0 -12
- package/dist/Header/constants.js +0 -6
- package/dist/Header/header.scss +0 -121
- package/dist/Header/index.js +0 -61
- package/dist/IconPicker/Icon.js +0 -34
- package/dist/IconPicker/NoResults.js +0 -12
- package/dist/IconPicker/constants.js +0 -8
- package/dist/IconPicker/icon-picker.scss +0 -1
- package/dist/IconPicker/index.js +0 -164
- package/dist/ImageWithFallback/ImagePlaceholder.js +0 -16
- package/dist/ImageWithFallback/index.js +0 -31
- package/dist/IntegrationCard/Dropdown.js +0 -45
- package/dist/IntegrationCard/Status.js +0 -25
- package/dist/IntegrationCard/index.js +0 -128
- package/dist/IntegrationDisconnectAlert/index.js +0 -36
- package/dist/IpRestriction/AllowedIpRanges.js +0 -75
- package/dist/IpRestriction/CurrentIp.js +0 -26
- package/dist/IpRestriction/FormRow.js +0 -84
- package/dist/IpRestriction/Row.js +0 -91
- package/dist/IpRestriction/apis/allowed_ip_ranges.js +0 -28
- package/dist/IpRestriction/apis/current_ip.js +0 -11
- package/dist/IpRestriction/apis/ip_restriction.js +0 -16
- package/dist/IpRestriction/constants.js +0 -20
- package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +0 -34
- package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +0 -10
- package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +0 -18
- package/dist/IpRestriction/index.js +0 -102
- package/dist/IpRestriction/utils.js +0 -85
- package/dist/KeyboardShortcuts/Pane/HotKey.js +0 -44
- package/dist/KeyboardShortcuts/Pane/HotKeyList.js +0 -42
- package/dist/KeyboardShortcuts/Pane/constants.js +0 -25
- package/dist/KeyboardShortcuts/Pane/index.js +0 -61
- package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +0 -5
- package/dist/KeyboardShortcuts/Pane/utils.js +0 -66
- package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +0 -31
- package/dist/KeyboardShortcuts/index.js +0 -9
- package/dist/LoginPage/Form.js +0 -57
- package/dist/LoginPage/constants.js +0 -12
- package/dist/LoginPage/index.js +0 -103
- package/dist/MenuBar/AddNew.js +0 -25
- package/dist/MenuBar/Block.js +0 -60
- package/dist/MenuBar/Item.js +0 -32
- package/dist/MenuBar/Search.js +0 -39
- package/dist/MenuBar/SubTitle.js +0 -23
- package/dist/MenuBar/index.js +0 -46
- package/dist/MenuBar/menubar.scss +0 -154
- package/dist/Metadata/Block.js +0 -30
- package/dist/Metadata/DetailsBlock.js +0 -86
- package/dist/Metadata/constants.js +0 -9
- package/dist/Metadata/index.js +0 -29
- package/dist/Metadata/metadata.scss +0 -15
- package/dist/MoreDropdown/constants.js +0 -25
- package/dist/NavigationHeader/LeftBlock.js +0 -32
- package/dist/NavigationHeader/Navigation.js +0 -24
- package/dist/NavigationHeader/RightBlock.js +0 -68
- package/dist/NavigationHeader/constants.js +0 -11
- package/dist/NavigationHeader/index.js +0 -19
- package/dist/NavigationHeader/navigation-header.scss +0 -3
- package/dist/NeetoWidget/CodeBlock.js +0 -57
- package/dist/NeetoWidget/CodeSnippet.js +0 -119
- package/dist/NeetoWidget/EmbedCode.js +0 -281
- package/dist/NeetoWidget/Main.js +0 -19
- package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +0 -25
- package/dist/NeetoWidget/SelectionSwitches/index.js +0 -44
- package/dist/NeetoWidget/SyntaxHighlighter.js +0 -17
- package/dist/NeetoWidget/api.js +0 -20
- package/dist/NeetoWidget/constants.js +0 -62
- package/dist/NeetoWidget/hooks/useForceUpdate.js +0 -14
- package/dist/NeetoWidget/index.js +0 -7
- package/dist/NeetoWidget/mutations.js +0 -9
- package/dist/NeetoWidget/queries.js +0 -32
- package/dist/NeetoWidget/utils.js +0 -83
- package/dist/PageLoader/index.js +0 -81
- package/dist/PageLoader/page-loader.scss +0 -95
- package/dist/PhoneNumber/CountryPicker/SingleValue.js +0 -21
- package/dist/PhoneNumber/CountryPicker/constants.js +0 -26
- package/dist/PhoneNumber/CountryPicker/index.js +0 -59
- package/dist/PhoneNumber/FormikPhoneNumberInput.js +0 -21
- package/dist/PhoneNumber/PhoneNumber.js +0 -30
- package/dist/PhoneNumber/PhoneNumberInput.js +0 -79
- package/dist/PhoneNumber/index.js +0 -5
- package/dist/PhoneNumber/utils.js +0 -55
- package/dist/PublishBlock/AlertBlock.js +0 -14
- package/dist/PublishBlock/index.js +0 -100
- package/dist/PublishBlock/publish-block.scss +0 -25
- package/dist/Rename/DummySpan.js +0 -21
- package/dist/Rename/constants.js +0 -1
- package/dist/Rename/index.js +0 -191
- package/dist/Rename/rename.scss +0 -69
- package/dist/Rename/utils.js +0 -10
- package/dist/ResponsiveDevicePicker/constants.js +0 -19
- package/dist/ResponsiveDevicePicker/index.js +0 -36
- package/dist/Schedule/DisplayAvailability.js +0 -58
- package/dist/Schedule/Fields.js +0 -43
- package/dist/Schedule/Form/ScheduleRow.js +0 -125
- package/dist/Schedule/Form/constants.js +0 -20
- package/dist/Schedule/Form/index.js +0 -144
- package/dist/Schedule/Form/utils.js +0 -63
- package/dist/Schedule/Header.js +0 -76
- package/dist/Schedule/ScheduleContext.js +0 -8
- package/dist/Schedule/constants.js +0 -8
- package/dist/Schedule/dayjsExtended/constants.js +0 -1
- package/dist/Schedule/dayjsExtended/index.js +0 -14
- package/dist/Schedule/dayjsExtended/range.js +0 -73
- package/dist/Schedule/index.js +0 -80
- package/dist/Schedule/utils.js +0 -152
- package/dist/Scrollable/constants.js +0 -8
- package/dist/Scrollable/index.js +0 -26
- package/dist/Scrollable/scrollable.scss +0 -32
- package/dist/Search/index.js +0 -52
- package/dist/Security/AllowedKeywords/Add.js +0 -38
- package/dist/Security/AllowedKeywords/index.js +0 -38
- package/dist/Security/PasswordBlock.js +0 -31
- package/dist/Security/RadioBlock.js +0 -38
- package/dist/Security/api.js +0 -12
- package/dist/Security/constants.js +0 -58
- package/dist/Security/index.js +0 -68
- package/dist/Security/useSecurityApi.js +0 -22
- package/dist/Security/utils.js +0 -31
- package/dist/SendToFields/FilePicker.js +0 -34
- package/dist/SendToFields/constants.js +0 -6
- package/dist/SendToFields/index.js +0 -102
- package/dist/SendToFields/utils.js +0 -54
- package/dist/Settings/Category.js +0 -30
- package/dist/Settings/Item.js +0 -38
- package/dist/Settings/index.js +0 -37
- package/dist/Settings/utils.js +0 -4
- package/dist/ShareViaEmail/EmailBodyEditor.js +0 -22
- package/dist/ShareViaEmail/FilePicker.js +0 -43
- package/dist/ShareViaEmail/Form.js +0 -105
- package/dist/ShareViaEmail/FormikDatePicker.js +0 -24
- package/dist/ShareViaEmail/constants.js +0 -14
- package/dist/ShareViaEmail/index.js +0 -92
- package/dist/ShareViaEmail/utils.js +0 -72
- package/dist/ShareViaLink/EditURL.js +0 -74
- package/dist/ShareViaLink/Link.js +0 -105
- package/dist/ShareViaLink/QRCode.js +0 -41
- package/dist/ShareViaLink/RegenerateURL.js +0 -47
- package/dist/ShareViaLink/SocialMedia.js +0 -52
- package/dist/ShareViaLink/constants.js +0 -25
- package/dist/ShareViaLink/edit-url.scss +0 -8
- package/dist/ShareViaLink/index.js +0 -46
- package/dist/ShareViaLink/utils.js +0 -47
- package/dist/Sidebar/AppSwitcher/AppLink.js +0 -45
- package/dist/Sidebar/AppSwitcher/Backdrop.js +0 -13
- package/dist/Sidebar/AppSwitcher/Body.js +0 -65
- package/dist/Sidebar/AppSwitcher/Portal.js +0 -27
- package/dist/Sidebar/AppSwitcher/appswitcher.scss +0 -164
- package/dist/Sidebar/AppSwitcher/index.js +0 -47
- package/dist/Sidebar/AppSwitcher/utils.js +0 -25
- package/dist/Sidebar/Chevron.js +0 -14
- package/dist/Sidebar/FeaturedTooltip.js +0 -19
- package/dist/Sidebar/Footer/AppSwitcherButton.js +0 -48
- package/dist/Sidebar/Footer/ProfileButton.js +0 -30
- package/dist/Sidebar/Footer/index.js +0 -56
- package/dist/Sidebar/Footer/utils.js +0 -39
- package/dist/Sidebar/Header.js +0 -33
- package/dist/Sidebar/HelpSection/HelpSectionMenu.js +0 -52
- package/dist/Sidebar/HelpSection/index.js +0 -32
- package/dist/Sidebar/Links.js +0 -112
- package/dist/Sidebar/NavIconWrapper.js +0 -20
- package/dist/Sidebar/ProfileSection/LinkSection.js +0 -36
- package/dist/Sidebar/ProfileSection/ProfileMenu.js +0 -48
- package/dist/Sidebar/ProfileSection/index.js +0 -42
- package/dist/Sidebar/constants.js +0 -40
- package/dist/Sidebar/index.js +0 -94
- package/dist/Sidebar/sidebar.scss +0 -379
- package/dist/Sidebar/utils.js +0 -18
- package/dist/SubHeader/RightBlock/Columns.js +0 -35
- package/dist/SubHeader/RightBlock/Download.js +0 -28
- package/dist/SubHeader/RightBlock/Filter.js +0 -31
- package/dist/SubHeader/RightBlock/index.js +0 -21
- package/dist/SubHeader/RightBlock/utils.js +0 -13
- package/dist/SubHeader/index.js +0 -28
- package/dist/SubHeader/subheader.scss +0 -78
- package/dist/ThemeSidebar/Customize/Logo.js +0 -39
- package/dist/ThemeSidebar/Customize/Properties.js +0 -170
- package/dist/ThemeSidebar/Customize/index.js +0 -66
- package/dist/ThemeSidebar/Themes/ThemeCard.js +0 -135
- package/dist/ThemeSidebar/Themes/index.js +0 -110
- package/dist/ThemeSidebar/TitleBar.js +0 -62
- package/dist/ThemeSidebar/constants.js +0 -127
- package/dist/ThemeSidebar/fields/AlignmentBlock.js +0 -50
- package/dist/ThemeSidebar/fields/Card.js +0 -19
- package/dist/ThemeSidebar/fields/ColorBlock.js +0 -19
- package/dist/ThemeSidebar/fields/FontPickerBlock.js +0 -35
- package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +0 -67
- package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +0 -22
- package/dist/ThemeSidebar/fields/ImageBlock/index.js +0 -55
- package/dist/ThemeSidebar/fields/SelectBlock.js +0 -24
- package/dist/ThemeSidebar/fields/SliderBlock.js +0 -30
- package/dist/ThemeSidebar/fields/SwitchBlock.js +0 -17
- package/dist/ThemeSidebar/fields/TextBlock.js +0 -13
- package/dist/ThemeSidebar/fields/slider.scss +0 -199
- package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +0 -149
- package/dist/ThemeSidebar/index.js +0 -118
- package/dist/ThemeSidebar/themeSidebar.scss +0 -45
- package/dist/ThemeSidebar/utils.js +0 -169
- package/dist/TimeFormat/index.js +0 -3
- package/dist/TimezoneMismatchModal/apis/time_zone.js +0 -9
- package/dist/TimezoneMismatchModal/index.js +0 -83
- package/dist/TimezoneMismatchModal/useTimeZoneApi.js +0 -10
- package/dist/TimezoneMismatchModal/utils.js +0 -12
- package/dist/ToggleFeatureCard/ToolTipSwitch.js +0 -31
- package/dist/ToggleFeatureCard/constants.js +0 -5
- package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +0 -11
- package/dist/ToggleFeatureCard/index.js +0 -148
- package/dist/ToggleFeatureCard/toggleFeatureCard.scss +0 -4
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
// eslint-disable-next-line @bigbinary/neeto/use-webpack-alias
|
|
5
|
-
import { Button, Typography } from "@bigbinary/neetoui";
|
|
6
|
-
import { useTranslation } from "react-i18next";
|
|
7
|
-
import { FULL_SHORTCUTS_LINK_PROP_NAME } from "./constants";
|
|
8
|
-
import HotKey from "./HotKey";
|
|
9
|
-
var HotKeyList = function HotKeyList(_ref) {
|
|
10
|
-
var hotkeys = _ref.hotkeys;
|
|
11
|
-
var _useTranslation = useTranslation(),
|
|
12
|
-
t = _useTranslation.t;
|
|
13
|
-
return Object.keys(hotkeys).map(function (categoryName) {
|
|
14
|
-
var categoryValues = hotkeys[categoryName];
|
|
15
|
-
var fullShortcutsLink = categoryValues[FULL_SHORTCUTS_LINK_PROP_NAME];
|
|
16
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: "mt-4 px-4",
|
|
18
|
-
key: categoryName
|
|
19
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
20
|
-
style: "h6",
|
|
21
|
-
textTransform: "uppercase",
|
|
22
|
-
weight: "bold"
|
|
23
|
-
}, categoryName), Object.entries(categoryValues).map(function (_ref2) {
|
|
24
|
-
var _ref3 = _slicedToArray(_ref2, 2),
|
|
25
|
-
_ref3$ = _ref3[1],
|
|
26
|
-
sequence = _ref3$.sequence,
|
|
27
|
-
description = _ref3$.description;
|
|
28
|
-
return sequence && /*#__PURE__*/React.createElement(HotKey, {
|
|
29
|
-
description: description,
|
|
30
|
-
key: sequence,
|
|
31
|
-
sequence: sequence
|
|
32
|
-
});
|
|
33
|
-
}), fullShortcutsLink && /*#__PURE__*/React.createElement(Button, {
|
|
34
|
-
className: "mb-3",
|
|
35
|
-
href: fullShortcutsLink,
|
|
36
|
-
style: "link",
|
|
37
|
-
target: "_blank",
|
|
38
|
-
label: t("neetoMolecules.keyboardShortcuts.viewFullListOfShortcuts")
|
|
39
|
-
}));
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
export default /*#__PURE__*/React.memo(HotKeyList);
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export var KEY_SHORTFORM_MAP = {
|
|
2
|
-
command: "⌘",
|
|
3
|
-
escape: "esc",
|
|
4
|
-
control: "ctrl",
|
|
5
|
-
option: "opt",
|
|
6
|
-
"return": "enter"
|
|
7
|
-
};
|
|
8
|
-
export var MAC_TO_WINDOWS_KEYS_MAP = {
|
|
9
|
-
option: "alt",
|
|
10
|
-
command: "ctrl",
|
|
11
|
-
"return": "enter",
|
|
12
|
-
"delete": "backspace"
|
|
13
|
-
};
|
|
14
|
-
export var OS = {
|
|
15
|
-
mac: "OS X",
|
|
16
|
-
windows: "Windows"
|
|
17
|
-
};
|
|
18
|
-
export var FULL_SHORTCUTS_LINK_PROP_NAME = "fullShortcutsLink";
|
|
19
|
-
export var TOOLTIP_CONTENT = {
|
|
20
|
-
"⌘": "command",
|
|
21
|
-
esc: "escape",
|
|
22
|
-
ctrl: "control",
|
|
23
|
-
opt: "option",
|
|
24
|
-
backspace: "delete"
|
|
25
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
/* eslint-disable @bigbinary/neeto/use-webpack-alias */
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { useHotKeys } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
5
|
-
import { Close } from "@bigbinary/neeto-icons";
|
|
6
|
-
import { Typography, Button } from "@bigbinary/neetoui";
|
|
7
|
-
import { manager } from "@bigbinary/neetoui/managers";
|
|
8
|
-
import classnames from "classnames";
|
|
9
|
-
import { useTranslation } from "react-i18next";
|
|
10
|
-
import HotKeyList from "./HotKeyList";
|
|
11
|
-
import "./keyboard-shortcuts.scss";
|
|
12
|
-
import { getGlobalShortcuts } from "./utils";
|
|
13
|
-
import useKeyboardShortcutsPaneState from "../hooks/useKeyboardShortcutsPaneState";
|
|
14
|
-
var KeyboardShortcutsPane = function KeyboardShortcutsPane(_ref) {
|
|
15
|
-
var _ref$productShortcuts = _ref.productShortcuts,
|
|
16
|
-
productShortcuts = _ref$productShortcuts === void 0 ? {} : _ref$productShortcuts;
|
|
17
|
-
var _useKeyboardShortcuts = useKeyboardShortcutsPaneState(),
|
|
18
|
-
_useKeyboardShortcuts2 = _slicedToArray(_useKeyboardShortcuts, 2),
|
|
19
|
-
isOpen = _useKeyboardShortcuts2[0],
|
|
20
|
-
setIsOpen = _useKeyboardShortcuts2[1];
|
|
21
|
-
var hasOverlays = manager.hasOverlays();
|
|
22
|
-
// eslint-disable-next-line @bigbinary/neeto/no-dangling-constants
|
|
23
|
-
var GLOBAL_SHORTCUTS = getGlobalShortcuts();
|
|
24
|
-
var _useTranslation = useTranslation(),
|
|
25
|
-
t = _useTranslation.t;
|
|
26
|
-
var shortcuts = GLOBAL_SHORTCUTS[t("neetoMolecules.keyboardShortcuts.global.categoryName")];
|
|
27
|
-
useHotKeys(shortcuts.openKeyboardShortcutsPane.sequence, function () {
|
|
28
|
-
return setIsOpen(function (prevIsOpen) {
|
|
29
|
-
return !prevIsOpen;
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
useHotKeys(shortcuts.close.sequence, function () {
|
|
33
|
-
return setIsOpen(false);
|
|
34
|
-
});
|
|
35
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
"data-cy": "keyboard-shortcuts-pane",
|
|
37
|
-
className: classnames("neeto-molecules-keyboard-shortcuts-pane neeto-ui-border-gray-300 transition-width neeto-ui-bg-white ml-auto h-screen overflow-hidden border-l duration-300 ease-in-out", {
|
|
38
|
-
"w-80": isOpen,
|
|
39
|
-
"w-0": !isOpen,
|
|
40
|
-
absolute: hasOverlays,
|
|
41
|
-
"right-0": hasOverlays
|
|
42
|
-
})
|
|
43
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
className: "h-full w-80 overflow-y-auto"
|
|
45
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: "neeto-ui-border-gray-300 my-2 flex items-center justify-between border-b px-4 pb-2"
|
|
47
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
48
|
-
style: "h4"
|
|
49
|
-
}, t("neetoMolecules.keyboardShortcuts.title")), /*#__PURE__*/React.createElement(Button, {
|
|
50
|
-
icon: Close,
|
|
51
|
-
style: "text",
|
|
52
|
-
onClick: function onClick() {
|
|
53
|
-
return setIsOpen(false);
|
|
54
|
-
}
|
|
55
|
-
})), /*#__PURE__*/React.createElement(HotKeyList, {
|
|
56
|
-
hotkeys: GLOBAL_SHORTCUTS
|
|
57
|
-
}), /*#__PURE__*/React.createElement(HotKeyList, {
|
|
58
|
-
hotkeys: productShortcuts
|
|
59
|
-
})));
|
|
60
|
-
};
|
|
61
|
-
export default KeyboardShortcutsPane;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
-
import i18next from "i18next";
|
|
4
|
-
import platform from "platform";
|
|
5
|
-
import { toPairs } from "ramda";
|
|
6
|
-
import { KEY_SHORTFORM_MAP, MAC_TO_WINDOWS_KEYS_MAP, OS, TOOLTIP_CONTENT } from "./constants";
|
|
7
|
-
var isMultipleHotkey = function isMultipleHotkey(hotkey) {
|
|
8
|
-
return Array.isArray(hotkey);
|
|
9
|
-
};
|
|
10
|
-
var replaceKeys = function replaceKeys(hotkey, keyName, replaceWith) {
|
|
11
|
-
return isMultipleHotkey(hotkey) ? hotkey.map(function (item) {
|
|
12
|
-
return item.replaceAll(keyName, replaceWith);
|
|
13
|
-
}) : hotkey.replaceAll(keyName, replaceWith);
|
|
14
|
-
};
|
|
15
|
-
var convertHotKeyToWindows = function convertHotKeyToWindows(hotkey) {
|
|
16
|
-
toPairs(MAC_TO_WINDOWS_KEYS_MAP).forEach(function (_ref) {
|
|
17
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
18
|
-
macKey = _ref2[0],
|
|
19
|
-
windowsKey = _ref2[1];
|
|
20
|
-
hotkey = replaceKeys(hotkey, macKey, windowsKey);
|
|
21
|
-
});
|
|
22
|
-
return hotkey;
|
|
23
|
-
};
|
|
24
|
-
export var convertHotkeyToUsersPlatform = function convertHotkeyToUsersPlatform(hotkey) {
|
|
25
|
-
var _platformInfo$os, _platformInfo$os$fami;
|
|
26
|
-
var platformInfo = platform.parse(navigator.userAgent);
|
|
27
|
-
var isOSX = (_platformInfo$os = platformInfo.os) === null || _platformInfo$os === void 0 ? void 0 : (_platformInfo$os$fami = _platformInfo$os.family) === null || _platformInfo$os$fami === void 0 ? void 0 : _platformInfo$os$fami.includes(OS.mac);
|
|
28
|
-
if (isOSX) return hotkey;
|
|
29
|
-
return convertHotKeyToWindows(hotkey);
|
|
30
|
-
};
|
|
31
|
-
export var shortenHotKey = function shortenHotKey(hotkey) {
|
|
32
|
-
var result = hotkey;
|
|
33
|
-
Object.entries(KEY_SHORTFORM_MAP).forEach(function (_ref3) {
|
|
34
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
35
|
-
longform = _ref4[0],
|
|
36
|
-
shortform = _ref4[1];
|
|
37
|
-
result = result.replaceAll(longform, shortform);
|
|
38
|
-
});
|
|
39
|
-
return result;
|
|
40
|
-
};
|
|
41
|
-
export var getGlobalShortcuts = function getGlobalShortcuts() {
|
|
42
|
-
return _defineProperty({}, i18next.t("neetoMolecules.keyboardShortcuts.global.categoryName"), {
|
|
43
|
-
openKeyboardShortcutsPane: {
|
|
44
|
-
sequence: "shift+/",
|
|
45
|
-
description: i18next.t("neetoMolecules.keyboardShortcuts.global.openKeyboardShortcutsPane")
|
|
46
|
-
},
|
|
47
|
-
close: {
|
|
48
|
-
sequence: "esc",
|
|
49
|
-
description: i18next.t("neetoMolecules.keyboardShortcuts.global.close")
|
|
50
|
-
},
|
|
51
|
-
submitForm: {
|
|
52
|
-
sequence: "command+return",
|
|
53
|
-
description: i18next.t("neetoMolecules.keyboardShortcuts.global.submitForm")
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
export var getTooltipProps = function getTooltipProps(key) {
|
|
58
|
-
if (TOOLTIP_CONTENT[key]) {
|
|
59
|
-
return {
|
|
60
|
-
position: "top",
|
|
61
|
-
content: TOOLTIP_CONTENT[key],
|
|
62
|
-
followCursor: "horizontal"
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
return null;
|
|
66
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
package/dist/LoginPage/Form.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
});
|
package/dist/LoginPage/index.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
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;
|
package/dist/MenuBar/AddNew.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
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;
|
package/dist/MenuBar/Block.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
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;
|
package/dist/MenuBar/Item.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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;
|
package/dist/MenuBar/Search.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
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;
|
package/dist/MenuBar/SubTitle.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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;
|
package/dist/MenuBar/index.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
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;
|