@bigbinary/neeto-molecules 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AutoSaveInput/autosaveinput.scss +15 -0
- package/dist/AutoSaveInput/constants.js +13 -0
- package/dist/AutoSaveInput/index.js +124 -0
- package/dist/AutoSaveInput/utils.js +10 -0
- package/dist/Breadcrumbs/breadcrumbs.scss +33 -0
- package/dist/Breadcrumbs/index.js +31 -0
- package/dist/BrowserSupport/Callout.js +15 -0
- package/dist/BrowserSupport/ContactUs.js +21 -0
- package/dist/BrowserSupport/DownloadLink.js +17 -0
- package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +17 -0
- package/dist/BrowserSupport/UnknownBrowser.js +13 -0
- package/dist/BrowserSupport/UnsupportedBrowser.js +24 -0
- package/dist/BrowserSupport/UnsupportedBrowserMessage.js +22 -0
- package/dist/BrowserSupport/UnsupportedBrowserVersion.js +27 -0
- package/dist/BrowserSupport/UnsupportedVersionMessage.js +30 -0
- package/dist/BrowserSupport/browsersupport.scss +71 -0
- package/dist/BrowserSupport/constants.js +63 -0
- package/dist/BrowserSupport/index.js +58 -0
- package/dist/BrowserSupport/utils.js +32 -0
- package/dist/CalendarView/CustomDatePicker.js +87 -0
- package/dist/CalendarView/Header.js +53 -0
- package/dist/CalendarView/constants.js +19 -0
- package/dist/CalendarView/index.js +83 -0
- package/dist/CalendarView/utils.js +50 -0
- package/dist/Codeblock/index.js +30 -0
- package/dist/{Columns.js → Columns/index.js} +13 -130
- package/dist/Columns/utils.js +20 -0
- package/dist/ConfirmationModal/constants.js +3 -0
- package/dist/{ConfirmationModal.js → ConfirmationModal/index.js} +7 -23
- package/dist/ConfirmationModal/utils.js +10 -0
- package/dist/Container/container.scss +21 -0
- package/dist/Container/index.js +23 -0
- package/dist/CopyToClipboardButton/constants.js +13 -0
- package/dist/CopyToClipboardButton/copyToClipboard.scss +22 -0
- package/dist/CopyToClipboardButton/index.js +59 -0
- package/dist/CustomDomain/index.js +98 -0
- package/dist/CustomDomainDashboard/DeleteAlert.js +28 -0
- package/dist/CustomDomainDashboard/Header.js +32 -0
- package/dist/CustomDomainDashboard/Manage/Record.js +42 -0
- package/dist/CustomDomainDashboard/Manage/StatusInfo.js +21 -0
- package/dist/CustomDomainDashboard/Manage/TagBlock.js +36 -0
- package/dist/CustomDomainDashboard/Manage/constants.js +4 -0
- package/dist/CustomDomainDashboard/Manage/index.js +124 -0
- package/dist/CustomDomainDashboard/Manage/utils.js +8 -0
- package/dist/CustomDomainDashboard/api.js +35 -0
- package/dist/CustomDomainDashboard/constants.js +2 -0
- package/dist/CustomDomainDashboard/index.js +118 -0
- package/dist/CustomDomainDashboard/useCustomDomainApi.js +71 -0
- package/dist/CustomDomainDashboard/utils.js +84 -0
- package/dist/{DateFormat.js → DateFormat/index.js} +8 -25
- package/dist/DateRangeFilter/index.js +60 -0
- package/dist/DateRangeFilter/utils.js +113 -0
- package/dist/DynamicVariables/dynamic-variables.scss +34 -0
- package/dist/DynamicVariables/index.js +59 -0
- package/dist/DynamicVariables/utils.js +37 -0
- package/dist/EmailForm/EmailForm.js +97 -0
- package/dist/EmailForm/EmailFormProvider.js +45 -0
- package/dist/EmailForm/EmailPreview.js +129 -0
- package/dist/EmailForm/ReplyToField.js +55 -0
- package/dist/EmailForm/SendToField.js +27 -0
- package/dist/EmailForm/SubjectField.js +64 -0
- package/dist/EmailForm/constants.js +33 -0
- package/dist/EmailForm/contexts/EmailForm.js +7 -0
- package/dist/EmailForm/index.js +4 -0
- package/dist/EmailForm/utils.js +10 -0
- package/dist/EmailPreview/index.js +2 -0
- package/dist/{ErrorPage.js → ErrorPage/constants.js} +36 -175
- package/dist/ErrorPage/index.js +78 -0
- package/dist/Header/Breadcrumbs.js +31 -0
- package/dist/Header/Dropdown.js +12 -0
- package/dist/Header/constants.js +6 -0
- package/dist/Header/header.scss +121 -0
- package/dist/Header/index.js +61 -0
- package/dist/IconPicker/Icon.js +34 -0
- package/dist/IconPicker/NoResults.js +12 -0
- package/dist/IconPicker/constants.js +8 -0
- package/dist/IconPicker/icon-picker.scss +1 -0
- package/dist/IconPicker/index.js +164 -0
- package/dist/ImageWithFallback/ImagePlaceholder.js +16 -0
- package/dist/ImageWithFallback/index.js +31 -0
- package/dist/IntegrationCard/Dropdown.js +45 -0
- package/dist/IntegrationCard/Status.js +25 -0
- package/dist/IntegrationCard/index.js +128 -0
- package/dist/IntegrationDisconnectAlert/index.js +36 -0
- package/dist/{IntegrationWalkthroughModal.js → IntegrationWalkthroughModal/index.js} +6 -8
- package/dist/IpRestriction/AllowedIpRanges.js +72 -0
- package/dist/IpRestriction/CurrentIp.js +26 -0
- package/dist/IpRestriction/FormRow.js +77 -0
- package/dist/IpRestriction/Row.js +86 -0
- package/dist/IpRestriction/apis/allowed_ip_ranges.js +28 -0
- package/dist/IpRestriction/apis/current_ip.js +11 -0
- package/dist/IpRestriction/apis/ip_restriction.js +16 -0
- package/dist/IpRestriction/constants.js +11 -0
- package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +34 -0
- package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +10 -0
- package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +18 -0
- package/dist/IpRestriction/index.js +102 -0
- package/dist/IpRestriction/utils.js +67 -0
- package/dist/KeyboardShortcuts/Pane/HotKey.js +44 -0
- package/dist/KeyboardShortcuts/Pane/HotKeyList.js +42 -0
- package/dist/KeyboardShortcuts/Pane/constants.js +25 -0
- package/dist/KeyboardShortcuts/Pane/index.js +61 -0
- package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +5 -0
- package/dist/KeyboardShortcuts/Pane/utils.js +66 -0
- package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +31 -0
- package/dist/KeyboardShortcuts/index.js +9 -0
- package/dist/LoginPage/Form.js +57 -0
- package/dist/LoginPage/constants.js +12 -0
- package/dist/LoginPage/index.js +103 -0
- package/dist/MenuBar/AddNew.js +25 -0
- package/dist/MenuBar/Block.js +60 -0
- package/dist/MenuBar/Item.js +32 -0
- package/dist/MenuBar/Search.js +39 -0
- package/dist/MenuBar/SubTitle.js +23 -0
- package/dist/MenuBar/index.js +46 -0
- package/dist/MenuBar/menubar.scss +154 -0
- package/dist/Metadata/Block.js +30 -0
- package/dist/Metadata/DetailsBlock.js +86 -0
- package/dist/Metadata/constants.js +9 -0
- package/dist/Metadata/index.js +29 -0
- package/dist/Metadata/metadata.scss +15 -0
- package/dist/MoreDropdown/constants.js +25 -0
- package/dist/{MoreDropdown.js → MoreDropdown/index.js} +9 -102
- package/dist/NavigationHeader/LeftBlock.js +32 -0
- package/dist/NavigationHeader/Navigation.js +24 -0
- package/dist/NavigationHeader/RightBlock.js +68 -0
- package/dist/NavigationHeader/constants.js +11 -0
- package/dist/NavigationHeader/index.js +19 -0
- package/dist/NavigationHeader/navigation-header.scss +3 -0
- package/dist/NeetoWidget/CodeBlock.js +57 -0
- package/dist/NeetoWidget/CodeSnippet.js +119 -0
- package/dist/NeetoWidget/EmbedCode.js +281 -0
- package/dist/NeetoWidget/Main.js +19 -0
- package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +25 -0
- package/dist/NeetoWidget/SelectionSwitches/index.js +44 -0
- package/dist/NeetoWidget/SyntaxHighlighter.js +17 -0
- package/dist/NeetoWidget/api.js +20 -0
- package/dist/NeetoWidget/constants.js +62 -0
- package/dist/NeetoWidget/hooks/useForceUpdate.js +14 -0
- package/dist/NeetoWidget/index.js +7 -0
- package/dist/NeetoWidget/mutations.js +9 -0
- package/dist/NeetoWidget/queries.js +32 -0
- package/dist/NeetoWidget/utils.js +83 -0
- package/dist/PageLoader/index.js +81 -0
- package/dist/PageLoader/page-loader.scss +95 -0
- package/dist/PhoneNumber/CountryPicker/SingleValue.js +21 -0
- package/dist/PhoneNumber/CountryPicker/constants.js +26 -0
- package/dist/PhoneNumber/CountryPicker/index.js +59 -0
- package/dist/PhoneNumber/FormikPhoneNumberInput.js +21 -0
- package/dist/PhoneNumber/PhoneNumber.js +30 -0
- package/dist/PhoneNumber/PhoneNumberInput.js +79 -0
- package/dist/PhoneNumber/index.js +5 -0
- package/dist/PhoneNumber/utils.js +55 -0
- package/dist/PublishBlock/AlertBlock.js +14 -0
- package/dist/PublishBlock/index.js +100 -0
- package/dist/PublishBlock/publish-block.scss +25 -0
- package/dist/Rename/DummySpan.js +21 -0
- package/dist/Rename/constants.js +1 -0
- package/dist/Rename/index.js +191 -0
- package/dist/Rename/rename.scss +69 -0
- package/dist/Rename/utils.js +10 -0
- package/dist/ResponsiveDevicePicker/constants.js +19 -0
- package/dist/ResponsiveDevicePicker/index.js +36 -0
- package/dist/Schedule/DisplayAvailability.js +58 -0
- package/dist/Schedule/Fields.js +43 -0
- package/dist/Schedule/Form/ScheduleRow.js +125 -0
- package/dist/Schedule/Form/constants.js +20 -0
- package/dist/Schedule/Form/index.js +144 -0
- package/dist/Schedule/Form/utils.js +63 -0
- package/dist/Schedule/Header.js +76 -0
- package/dist/Schedule/ScheduleContext.js +8 -0
- package/dist/Schedule/constants.js +8 -0
- package/dist/Schedule/dayjsExtended/constants.js +1 -0
- package/dist/Schedule/dayjsExtended/index.js +14 -0
- package/dist/Schedule/dayjsExtended/range.js +73 -0
- package/dist/Schedule/index.js +80 -0
- package/dist/Schedule/utils.js +152 -0
- package/dist/Scrollable/constants.js +8 -0
- package/dist/Scrollable/index.js +26 -0
- package/dist/Scrollable/scrollable.scss +32 -0
- package/dist/Security/AllowedKeywords/Add.js +38 -0
- package/dist/Security/AllowedKeywords/index.js +38 -0
- package/dist/Security/PasswordBlock.js +31 -0
- package/dist/Security/RadioBlock.js +38 -0
- package/dist/Security/api.js +12 -0
- package/dist/Security/constants.js +58 -0
- package/dist/Security/index.js +68 -0
- package/dist/Security/useSecurityApi.js +22 -0
- package/dist/Security/utils.js +31 -0
- package/dist/SendToFields/FilePicker.js +34 -0
- package/dist/SendToFields/constants.js +6 -0
- package/dist/SendToFields/index.js +102 -0
- package/dist/SendToFields/utils.js +54 -0
- package/dist/Settings/Category.js +30 -0
- package/dist/Settings/Item.js +38 -0
- package/dist/Settings/index.js +37 -0
- package/dist/Settings/utils.js +4 -0
- package/dist/ShareViaEmail/EmailBodyEditor.js +22 -0
- package/dist/ShareViaEmail/FilePicker.js +43 -0
- package/dist/ShareViaEmail/Form.js +101 -0
- package/dist/ShareViaEmail/FormikDatePicker.js +24 -0
- package/dist/ShareViaEmail/constants.js +14 -0
- package/dist/ShareViaEmail/index.js +89 -0
- package/dist/ShareViaEmail/utils.js +72 -0
- package/dist/ShareViaLink/EditURL.js +74 -0
- package/dist/ShareViaLink/Link.js +105 -0
- package/dist/ShareViaLink/QRCode.js +41 -0
- package/dist/ShareViaLink/RegenerateURL.js +47 -0
- package/dist/ShareViaLink/SocialMedia.js +52 -0
- package/dist/ShareViaLink/constants.js +25 -0
- package/dist/ShareViaLink/edit-url.scss +8 -0
- package/dist/ShareViaLink/index.js +46 -0
- package/dist/ShareViaLink/utils.js +47 -0
- package/dist/Sidebar/AppSwitcher/AppLink.js +45 -0
- package/dist/Sidebar/AppSwitcher/Backdrop.js +13 -0
- package/dist/Sidebar/AppSwitcher/Body.js +65 -0
- package/dist/Sidebar/AppSwitcher/Portal.js +27 -0
- package/dist/Sidebar/AppSwitcher/appswitcher.scss +164 -0
- package/dist/Sidebar/AppSwitcher/index.js +47 -0
- package/dist/Sidebar/AppSwitcher/utils.js +25 -0
- package/dist/Sidebar/Chevron.js +14 -0
- package/dist/Sidebar/FeaturedTooltip.js +19 -0
- package/dist/Sidebar/Footer/AppSwitcherButton.js +48 -0
- package/dist/Sidebar/Footer/ProfileButton.js +30 -0
- package/dist/Sidebar/Footer/index.js +56 -0
- package/dist/Sidebar/Footer/utils.js +39 -0
- package/dist/Sidebar/Header.js +33 -0
- package/dist/Sidebar/HelpSection/HelpSectionMenu.js +52 -0
- package/dist/Sidebar/HelpSection/index.js +32 -0
- package/dist/Sidebar/Links.js +112 -0
- package/dist/Sidebar/NavIconWrapper.js +20 -0
- package/dist/Sidebar/ProfileSection/LinkSection.js +36 -0
- package/dist/Sidebar/ProfileSection/ProfileMenu.js +48 -0
- package/dist/Sidebar/ProfileSection/index.js +42 -0
- package/dist/Sidebar/constants.js +40 -0
- package/dist/Sidebar/index.js +94 -0
- package/dist/Sidebar/sidebar.scss +379 -0
- package/dist/Sidebar/utils.js +18 -0
- package/dist/SubHeader/RightBlock/Columns.js +35 -0
- package/dist/SubHeader/RightBlock/Download.js +28 -0
- package/dist/SubHeader/RightBlock/Filter.js +31 -0
- package/dist/SubHeader/RightBlock/index.js +21 -0
- package/dist/SubHeader/RightBlock/utils.js +13 -0
- package/dist/SubHeader/index.js +28 -0
- package/dist/SubHeader/subheader.scss +78 -0
- package/dist/TableWrapper/index.js +18 -0
- package/dist/ThemeSidebar/Customize/Logo.js +39 -0
- package/dist/ThemeSidebar/Customize/Properties.js +170 -0
- package/dist/ThemeSidebar/Customize/index.js +66 -0
- package/dist/ThemeSidebar/Themes/ThemeCard.js +135 -0
- package/dist/ThemeSidebar/Themes/index.js +110 -0
- package/dist/ThemeSidebar/TitleBar.js +62 -0
- package/dist/ThemeSidebar/constants.js +127 -0
- package/dist/ThemeSidebar/fields/AlignmentBlock.js +50 -0
- package/dist/ThemeSidebar/fields/Card.js +19 -0
- package/dist/ThemeSidebar/fields/ColorBlock.js +19 -0
- package/dist/ThemeSidebar/fields/FontPickerBlock.js +35 -0
- package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +67 -0
- package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +22 -0
- package/dist/ThemeSidebar/fields/ImageBlock/index.js +55 -0
- package/dist/ThemeSidebar/fields/SelectBlock.js +24 -0
- package/dist/ThemeSidebar/fields/SliderBlock.js +30 -0
- package/dist/ThemeSidebar/fields/SwitchBlock.js +17 -0
- package/dist/ThemeSidebar/fields/TextBlock.js +13 -0
- package/dist/ThemeSidebar/fields/slider.scss +199 -0
- package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +149 -0
- package/dist/ThemeSidebar/index.js +118 -0
- package/dist/ThemeSidebar/themeSidebar.scss +45 -0
- package/dist/ThemeSidebar/utils.js +169 -0
- package/dist/TimeFormat/index.js +3 -0
- package/dist/TimezoneMismatchModal/apis/time_zone.js +9 -0
- package/dist/TimezoneMismatchModal/index.js +83 -0
- package/dist/TimezoneMismatchModal/useTimeZoneApi.js +10 -0
- package/dist/TimezoneMismatchModal/utils.js +12 -0
- package/dist/ToggleFeatureCard/ToolTipSwitch.js +31 -0
- package/dist/ToggleFeatureCard/constants.js +5 -0
- package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +11 -0
- package/dist/ToggleFeatureCard/index.js +148 -0
- package/dist/ToggleFeatureCard/toggleFeatureCard.scss +4 -0
- package/package.json +27 -34
- package/dist/AutoSaveInput.cjs.js +0 -724
- package/dist/AutoSaveInput.cjs.js.map +0 -1
- package/dist/AutoSaveInput.js +0 -718
- package/dist/AutoSaveInput.js.map +0 -1
- package/dist/Breadcrumbs.cjs.js +0 -44
- package/dist/Breadcrumbs.cjs.js.map +0 -1
- package/dist/Breadcrumbs.js +0 -38
- package/dist/Breadcrumbs.js.map +0 -1
- package/dist/BrowserSupport.cjs.js +0 -1731
- package/dist/BrowserSupport.cjs.js.map +0 -1
- package/dist/BrowserSupport.js +0 -1725
- package/dist/BrowserSupport.js.map +0 -1
- package/dist/CalendarView.cjs.js +0 -610
- package/dist/CalendarView.cjs.js.map +0 -1
- package/dist/CalendarView.js +0 -598
- package/dist/CalendarView.js.map +0 -1
- package/dist/Codeblock.cjs.js +0 -302
- package/dist/Codeblock.cjs.js.map +0 -1
- package/dist/Codeblock.js +0 -296
- package/dist/Codeblock.js.map +0 -1
- package/dist/Columns.cjs.js +0 -248
- package/dist/Columns.cjs.js.map +0 -1
- package/dist/Columns.js.map +0 -1
- package/dist/ConfirmationModal.cjs.js +0 -87
- package/dist/ConfirmationModal.cjs.js.map +0 -1
- package/dist/ConfirmationModal.js.map +0 -1
- package/dist/Container.cjs.js +0 -1277
- package/dist/Container.cjs.js.map +0 -1
- package/dist/Container.js +0 -1271
- package/dist/Container.js.map +0 -1
- package/dist/CopyToClipboardButton.cjs.js +0 -275
- package/dist/CopyToClipboardButton.cjs.js.map +0 -1
- package/dist/CopyToClipboardButton.js +0 -269
- package/dist/CopyToClipboardButton.js.map +0 -1
- package/dist/CustomDomain.cjs.js +0 -774
- package/dist/CustomDomain.cjs.js.map +0 -1
- package/dist/CustomDomain.js +0 -747
- package/dist/CustomDomain.js.map +0 -1
- package/dist/CustomDomainDashboard.cjs.js +0 -2370
- package/dist/CustomDomainDashboard.cjs.js.map +0 -1
- package/dist/CustomDomainDashboard.js +0 -2342
- package/dist/CustomDomainDashboard.js.map +0 -1
- package/dist/DateFormat.cjs.js +0 -51
- package/dist/DateFormat.cjs.js.map +0 -1
- package/dist/DateFormat.js.map +0 -1
- package/dist/DateRangeFilter.cjs.js +0 -236
- package/dist/DateRangeFilter.cjs.js.map +0 -1
- package/dist/DateRangeFilter.js +0 -229
- package/dist/DateRangeFilter.js.map +0 -1
- package/dist/DynamicVariables.cjs.js +0 -189
- package/dist/DynamicVariables.cjs.js.map +0 -1
- package/dist/DynamicVariables.js +0 -183
- package/dist/DynamicVariables.js.map +0 -1
- package/dist/EmailForm.cjs.js +0 -4295
- package/dist/EmailForm.cjs.js.map +0 -1
- package/dist/EmailForm.js +0 -4265
- package/dist/EmailForm.js.map +0 -1
- package/dist/EmailPreview.cjs.js +0 -1419
- package/dist/EmailPreview.cjs.js.map +0 -1
- package/dist/EmailPreview.js +0 -1413
- package/dist/EmailPreview.js.map +0 -1
- package/dist/ErrorPage.cjs.js +0 -226
- package/dist/ErrorPage.cjs.js.map +0 -1
- package/dist/ErrorPage.js.map +0 -1
- package/dist/Header.cjs.js +0 -188
- package/dist/Header.cjs.js.map +0 -1
- package/dist/Header.js +0 -182
- package/dist/Header.js.map +0 -1
- package/dist/IconPicker.cjs.js +0 -1308
- package/dist/IconPicker.cjs.js.map +0 -1
- package/dist/IconPicker.js +0 -1302
- package/dist/IconPicker.js.map +0 -1
- package/dist/ImageWithFallback.cjs.js +0 -247
- package/dist/ImageWithFallback.cjs.js.map +0 -1
- package/dist/ImageWithFallback.js +0 -241
- package/dist/ImageWithFallback.js.map +0 -1
- package/dist/IntegrationCard.cjs.js +0 -409
- package/dist/IntegrationCard.cjs.js.map +0 -1
- package/dist/IntegrationCard.js +0 -403
- package/dist/IntegrationCard.js.map +0 -1
- package/dist/IntegrationDisconnectAlert.cjs.js +0 -89
- package/dist/IntegrationDisconnectAlert.cjs.js.map +0 -1
- package/dist/IntegrationDisconnectAlert.js +0 -80
- package/dist/IntegrationDisconnectAlert.js.map +0 -1
- package/dist/IntegrationWalkthroughModal.cjs.js +0 -50
- package/dist/IntegrationWalkthroughModal.cjs.js.map +0 -1
- package/dist/IntegrationWalkthroughModal.js.map +0 -1
- package/dist/IpRestriction.cjs.js +0 -3931
- package/dist/IpRestriction.cjs.js.map +0 -1
- package/dist/IpRestriction.js +0 -3905
- package/dist/IpRestriction.js.map +0 -1
- package/dist/KeyboardShortcuts.cjs.js +0 -2263
- package/dist/KeyboardShortcuts.cjs.js.map +0 -1
- package/dist/KeyboardShortcuts.js +0 -2256
- package/dist/KeyboardShortcuts.js.map +0 -1
- package/dist/LoginPage.cjs.js +0 -618
- package/dist/LoginPage.cjs.js.map +0 -1
- package/dist/LoginPage.js +0 -593
- package/dist/LoginPage.js.map +0 -1
- package/dist/MenuBar.cjs.js +0 -34273
- package/dist/MenuBar.cjs.js.map +0 -1
- package/dist/MenuBar.js +0 -34267
- package/dist/MenuBar.js.map +0 -1
- package/dist/Metadata.cjs.js +0 -272
- package/dist/Metadata.cjs.js.map +0 -1
- package/dist/Metadata.js +0 -266
- package/dist/Metadata.js.map +0 -1
- package/dist/MoreDropdown.cjs.js +0 -168
- package/dist/MoreDropdown.cjs.js.map +0 -1
- package/dist/MoreDropdown.js.map +0 -1
- package/dist/NavigationHeader.cjs.js +0 -756
- package/dist/NavigationHeader.cjs.js.map +0 -1
- package/dist/NavigationHeader.js +0 -750
- package/dist/NavigationHeader.js.map +0 -1
- package/dist/NeetoWidget.cjs.js +0 -3375
- package/dist/NeetoWidget.cjs.js.map +0 -1
- package/dist/NeetoWidget.js +0 -3348
- package/dist/NeetoWidget.js.map +0 -1
- package/dist/PageLoader.cjs.js +0 -158
- package/dist/PageLoader.cjs.js.map +0 -1
- package/dist/PageLoader.js +0 -134
- package/dist/PageLoader.js.map +0 -1
- package/dist/PhoneNumber.cjs.js +0 -7021
- package/dist/PhoneNumber.cjs.js.map +0 -1
- package/dist/PhoneNumber.js +0 -6989
- package/dist/PhoneNumber.js.map +0 -1
- package/dist/PublishBlock.cjs.js +0 -224
- package/dist/PublishBlock.cjs.js.map +0 -1
- package/dist/PublishBlock.js +0 -218
- package/dist/PublishBlock.js.map +0 -1
- package/dist/Rename.cjs.js +0 -516
- package/dist/Rename.cjs.js.map +0 -1
- package/dist/Rename.js +0 -510
- package/dist/Rename.js.map +0 -1
- package/dist/ResponsiveDevicePicker.cjs.js +0 -260
- package/dist/ResponsiveDevicePicker.cjs.js.map +0 -1
- package/dist/ResponsiveDevicePicker.js +0 -254
- package/dist/ResponsiveDevicePicker.js.map +0 -1
- package/dist/Schedule.cjs.js +0 -1077
- package/dist/Schedule.cjs.js.map +0 -1
- package/dist/Schedule.js +0 -1046
- package/dist/Schedule.js.map +0 -1
- package/dist/Scrollable.cjs.js +0 -188
- package/dist/Scrollable.cjs.js.map +0 -1
- package/dist/Scrollable.js +0 -182
- package/dist/Scrollable.js.map +0 -1
- package/dist/Security.cjs.js +0 -1921
- package/dist/Security.cjs.js.map +0 -1
- package/dist/Security.js +0 -1895
- package/dist/Security.js.map +0 -1
- package/dist/SendToFields.cjs.js +0 -2524
- package/dist/SendToFields.cjs.js.map +0 -1
- package/dist/SendToFields.js +0 -2517
- package/dist/SendToFields.js.map +0 -1
- package/dist/Settings.cjs.js +0 -501
- package/dist/Settings.cjs.js.map +0 -1
- package/dist/Settings.js +0 -495
- package/dist/Settings.js.map +0 -1
- package/dist/ShareViaEmail.cjs.js +0 -4272
- package/dist/ShareViaEmail.cjs.js.map +0 -1
- package/dist/ShareViaEmail.js +0 -4246
- package/dist/ShareViaEmail.js.map +0 -1
- package/dist/ShareViaLink.cjs.js +0 -1512
- package/dist/ShareViaLink.cjs.js.map +0 -1
- package/dist/ShareViaLink.js +0 -1486
- package/dist/ShareViaLink.js.map +0 -1
- package/dist/Sidebar.cjs.js +0 -34985
- package/dist/Sidebar.cjs.js.map +0 -1
- package/dist/Sidebar.js +0 -34959
- package/dist/Sidebar.js.map +0 -1
- package/dist/SubHeader.cjs.js +0 -283
- package/dist/SubHeader.cjs.js.map +0 -1
- package/dist/SubHeader.js +0 -276
- package/dist/SubHeader.js.map +0 -1
- package/dist/TableWrapper.cjs.js +0 -87
- package/dist/TableWrapper.cjs.js.map +0 -1
- package/dist/TableWrapper.js +0 -81
- package/dist/TableWrapper.js.map +0 -1
- package/dist/ThemeSidebar.cjs.js +0 -13705
- package/dist/ThemeSidebar.cjs.js.map +0 -1
- package/dist/ThemeSidebar.js +0 -13680
- package/dist/ThemeSidebar.js.map +0 -1
- package/dist/TimeFormat.cjs.js +0 -53
- package/dist/TimeFormat.cjs.js.map +0 -1
- package/dist/TimeFormat.js +0 -47
- package/dist/TimeFormat.js.map +0 -1
- package/dist/TimezoneMismatchModal.cjs.js +0 -176
- package/dist/TimezoneMismatchModal.cjs.js.map +0 -1
- package/dist/TimezoneMismatchModal.js +0 -168
- package/dist/TimezoneMismatchModal.js.map +0 -1
- package/dist/ToggleFeatureCard.cjs.js +0 -389
- package/dist/ToggleFeatureCard.cjs.js.map +0 -1
- package/dist/ToggleFeatureCard.js +0 -383
- package/dist/ToggleFeatureCard.js.map +0 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["text"];
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
6
|
+
var Neeto = function Neeto(props) {
|
|
7
|
+
return /*#__PURE__*/React.createElement("svg", props, /*#__PURE__*/React.createElement("path", {
|
|
8
|
+
d: "M414.989 207.495C414.989 92.899 322.091 0 207.495 0H0v414.989h414.989V207.495Z",
|
|
9
|
+
fill: "#0043AC"
|
|
10
|
+
}), /*#__PURE__*/React.createElement("mask", {
|
|
11
|
+
id: "a",
|
|
12
|
+
style: {
|
|
13
|
+
maskType: "alpha"
|
|
14
|
+
},
|
|
15
|
+
maskUnits: "userSpaceOnUse",
|
|
16
|
+
x: "0",
|
|
17
|
+
y: "0",
|
|
18
|
+
width: "415",
|
|
19
|
+
height: "415"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
d: "M414.989 207.495C414.989 92.899 322.091 0 207.495 0H0v414.989h414.989V207.495Z",
|
|
22
|
+
fill: "#0043AC"
|
|
23
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
24
|
+
mask: "url(#a)"
|
|
25
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
26
|
+
d: "M233.747 348.74c88.579 101.145 172.015 116.411 202.661 111.401v32.491H-8.032V230.487c43.685-2.726 153.2 17.108 241.779 118.253Z",
|
|
27
|
+
fill: "url(#b)"
|
|
28
|
+
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("radialGradient", {
|
|
29
|
+
id: "b",
|
|
30
|
+
cx: "0",
|
|
31
|
+
cy: "0",
|
|
32
|
+
r: "1",
|
|
33
|
+
gradientUnits: "userSpaceOnUse",
|
|
34
|
+
gradientTransform: "rotate(47.118 -220.556 214.818) scale(427.964 725.049)"
|
|
35
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
36
|
+
stopColor: "#0043AC"
|
|
37
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
38
|
+
offset: "1",
|
|
39
|
+
stopColor: "#3DB1CA",
|
|
40
|
+
stopOpacity: ".8"
|
|
41
|
+
}))));
|
|
42
|
+
};
|
|
43
|
+
Neeto.defaultProps = {
|
|
44
|
+
width: "50",
|
|
45
|
+
height: "50",
|
|
46
|
+
viewBox: "0 0 415 415",
|
|
47
|
+
fill: "none",
|
|
48
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
49
|
+
};
|
|
50
|
+
import "./page-loader.scss";
|
|
51
|
+
var PageLoader = function PageLoader(_ref) {
|
|
52
|
+
var _ref$text = _ref.text,
|
|
53
|
+
text = _ref$text === void 0 ? "" : _ref$text,
|
|
54
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
55
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
56
|
+
className: "neeto-molecules-pageloader__wrapper"
|
|
57
|
+
}, otherProps), /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
className: "neeto-molecules-pageloader neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-justify-center"
|
|
59
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: "neeto-molecules-pageloader__content neeto-ui-flex neeto-ui-flex-shrink-0 neeto-ui-items-center neeto-ui-justify-center"
|
|
61
|
+
}, /*#__PURE__*/React.createElement(Neeto, {
|
|
62
|
+
className: "neeto-molecules-pageloader__logo",
|
|
63
|
+
size: 50
|
|
64
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
65
|
+
className: "neeto-molecules-pageloader__spinner"
|
|
66
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
className: "neeto-molecules-pageloader__rect1"
|
|
68
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: "neeto-molecules-pageloader__rect2"
|
|
70
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
className: "neeto-molecules-pageloader__rect3"
|
|
72
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: "neeto-molecules-pageloader__rect4"
|
|
74
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
className: "neeto-molecules-pageloader__rect5"
|
|
76
|
+
}))), text && /*#__PURE__*/React.createElement(Typography, {
|
|
77
|
+
style: "h5",
|
|
78
|
+
weight: "semibold"
|
|
79
|
+
}, text)));
|
|
80
|
+
};
|
|
81
|
+
export default /*#__PURE__*/React.memo(PageLoader);
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.neeto-molecules-pageloader__wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
|
|
6
|
+
.neeto-molecules-pageloader {
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.neeto-molecules-pageloader__content {
|
|
15
|
+
position: relative;
|
|
16
|
+
padding: 8px;
|
|
17
|
+
margin-bottom: 16px;
|
|
18
|
+
width: 66px;
|
|
19
|
+
height: 66px;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.neeto-molecules-pageloader__text {
|
|
24
|
+
margin-bottom: 4rem;
|
|
25
|
+
text-align: center;
|
|
26
|
+
font-size: 1.25rem;
|
|
27
|
+
line-height: 1.75rem;
|
|
28
|
+
color: rgb(var(--neeto-ui-gray-800));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.neeto-molecules-pageloader__spinner {
|
|
33
|
+
height: 25px;
|
|
34
|
+
display: flex;
|
|
35
|
+
gap: 2px;
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 50%;
|
|
38
|
+
top: 50%;
|
|
39
|
+
transform: translate(-50%, -50%);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.neeto-molecules-pageloader__spinner > div {
|
|
43
|
+
background-color: #fff;
|
|
44
|
+
height: 100%;
|
|
45
|
+
width: 2px;
|
|
46
|
+
border-radius: 2px;
|
|
47
|
+
display: inline-flex;
|
|
48
|
+
|
|
49
|
+
-webkit-animation: neeto-ui-stretch-delay 1.2s infinite ease-in-out;
|
|
50
|
+
animation: neeto-ui-stretch-delay 1.2s infinite ease-in-out;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect2 {
|
|
54
|
+
-webkit-animation-delay: -1.1s;
|
|
55
|
+
animation-delay: -1.1s;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect3 {
|
|
59
|
+
-webkit-animation-delay: -1s;
|
|
60
|
+
animation-delay: -1s;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect4 {
|
|
64
|
+
-webkit-animation-delay: -0.9s;
|
|
65
|
+
animation-delay: -0.9s;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect5 {
|
|
69
|
+
-webkit-animation-delay: -0.8s;
|
|
70
|
+
animation-delay: -0.8s;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@-webkit-keyframes neeto-ui-stretch-delay {
|
|
74
|
+
0%,
|
|
75
|
+
40%,
|
|
76
|
+
100% {
|
|
77
|
+
-webkit-transform: scaleY(0.4);
|
|
78
|
+
}
|
|
79
|
+
20% {
|
|
80
|
+
-webkit-transform: scaleY(1);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@keyframes neeto-ui-stretch-delay {
|
|
85
|
+
0%,
|
|
86
|
+
40%,
|
|
87
|
+
100% {
|
|
88
|
+
transform: scaleY(0.4);
|
|
89
|
+
-webkit-transform: scaleY(0.4);
|
|
90
|
+
}
|
|
91
|
+
20% {
|
|
92
|
+
transform: scaleY(1);
|
|
93
|
+
-webkit-transform: scaleY(1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["country", "showEmoji"];
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { countries } from "countries-list";
|
|
6
|
+
import { Tooltip, Typography } from "@bigbinary/neetoui";
|
|
7
|
+
var SingleValue = function SingleValue(_ref) {
|
|
8
|
+
var country = _ref.country,
|
|
9
|
+
_ref$showEmoji = _ref.showEmoji,
|
|
10
|
+
showEmoji = _ref$showEmoji === void 0 ? false : _ref$showEmoji,
|
|
11
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
12
|
+
if (!showEmoji) return null;
|
|
13
|
+
var countryData = countries[country];
|
|
14
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
15
|
+
content: countryData.name
|
|
16
|
+
}, /*#__PURE__*/React.createElement(Typography, _extends({
|
|
17
|
+
className: "cursor-pointer text-center text-xl",
|
|
18
|
+
style: "body2"
|
|
19
|
+
}, otherProps), countryData.emoji));
|
|
20
|
+
};
|
|
21
|
+
export default /*#__PURE__*/React.memo(SingleValue);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import { countries } from "countries-list";
|
|
3
|
+
import { mergeLeft, assoc } from "ramda";
|
|
4
|
+
export var COUNTRY_PICKER_OPTIONS = Object.entries(countries).map(function (_ref) {
|
|
5
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
6
|
+
code = _ref2[0],
|
|
7
|
+
country = _ref2[1];
|
|
8
|
+
return {
|
|
9
|
+
label: country.name,
|
|
10
|
+
value: code
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
export var COUNTRY_PICKER_STYLES = {
|
|
14
|
+
menuPortal: mergeLeft({
|
|
15
|
+
width: 196,
|
|
16
|
+
zIndex: 99999
|
|
17
|
+
}),
|
|
18
|
+
control: mergeLeft({
|
|
19
|
+
border: "none !important",
|
|
20
|
+
cursor: "pointer",
|
|
21
|
+
gap: 4
|
|
22
|
+
}),
|
|
23
|
+
input: assoc("position", "absolute !important"),
|
|
24
|
+
valueContainer: assoc("padding", "0 !important"),
|
|
25
|
+
indicatorsContainer: assoc("paddingRight", "0 !important")
|
|
26
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["country", "setCountry", "onInputChange", "prefix", "phoneNumber"];
|
|
5
|
+
import React, { useState } from "react";
|
|
6
|
+
import classnames from "classnames";
|
|
7
|
+
import { getCountryCallingCode } from "libphonenumber-js/min";
|
|
8
|
+
import { Select } from "@bigbinary/neetoui";
|
|
9
|
+
import { COUNTRY_PICKER_OPTIONS, COUNTRY_PICKER_STYLES } from "./constants";
|
|
10
|
+
import _SingleValue from "./SingleValue";
|
|
11
|
+
var CountryPicker = function CountryPicker(_ref) {
|
|
12
|
+
var country = _ref.country,
|
|
13
|
+
setCountry = _ref.setCountry,
|
|
14
|
+
onInputChange = _ref.onInputChange,
|
|
15
|
+
prefix = _ref.prefix,
|
|
16
|
+
phoneNumber = _ref.phoneNumber,
|
|
17
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
var _useState = useState(""),
|
|
19
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
20
|
+
searchTerm = _useState2[0],
|
|
21
|
+
setSearchTerm = _useState2[1];
|
|
22
|
+
var handleCountryChange = function handleCountryChange(_ref2) {
|
|
23
|
+
var value = _ref2.value;
|
|
24
|
+
setCountry(value);
|
|
25
|
+
onInputChange(phoneNumber.replace(prefix, "+".concat(getCountryCallingCode(value))));
|
|
26
|
+
};
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
className: classnames("flex-shrink-0", {
|
|
29
|
+
"w-10": !searchTerm,
|
|
30
|
+
"w-24": searchTerm
|
|
31
|
+
})
|
|
32
|
+
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
33
|
+
isSearchable: true,
|
|
34
|
+
"data-testid": "phonenumber-country-picker",
|
|
35
|
+
options: COUNTRY_PICKER_OPTIONS,
|
|
36
|
+
strategy: "fixed",
|
|
37
|
+
styles: COUNTRY_PICKER_STYLES,
|
|
38
|
+
value: {
|
|
39
|
+
value: country
|
|
40
|
+
},
|
|
41
|
+
components: {
|
|
42
|
+
SingleValue: function SingleValue() {
|
|
43
|
+
return /*#__PURE__*/React.createElement(_SingleValue, {
|
|
44
|
+
showEmoji: true,
|
|
45
|
+
country: country
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
isOptionSelected: function isOptionSelected(_ref3, _ref4) {
|
|
50
|
+
var value = _ref3.value;
|
|
51
|
+
var _ref5 = _slicedToArray(_ref4, 1),
|
|
52
|
+
selectedOption = _ref5[0];
|
|
53
|
+
return (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.name) === value;
|
|
54
|
+
},
|
|
55
|
+
onChange: handleCountryChange,
|
|
56
|
+
onInputChange: setSearchTerm
|
|
57
|
+
}, otherProps)));
|
|
58
|
+
};
|
|
59
|
+
export default /*#__PURE__*/React.memo(CountryPicker);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["name"];
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { useField } from "formik";
|
|
7
|
+
import PhoneNumberInput from "./PhoneNumberInput";
|
|
8
|
+
var FormikPhoneNumberInput = function FormikPhoneNumberInput(_ref) {
|
|
9
|
+
var name = _ref.name,
|
|
10
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
+
var _useField = useField(name),
|
|
12
|
+
_useField2 = _slicedToArray(_useField, 3),
|
|
13
|
+
field = _useField2[0],
|
|
14
|
+
meta = _useField2[1],
|
|
15
|
+
setValue = _useField2[2].setValue;
|
|
16
|
+
return /*#__PURE__*/React.createElement(PhoneNumberInput, _extends({}, field, {
|
|
17
|
+
error: meta.touched ? meta.error : "",
|
|
18
|
+
onChange: setValue
|
|
19
|
+
}, props));
|
|
20
|
+
};
|
|
21
|
+
export default FormikPhoneNumberInput;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["className", "defaultCountry", "value", "showEmoji", "children"];
|
|
4
|
+
import React from "react";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
7
|
+
import SingleValue from "./CountryPicker/SingleValue";
|
|
8
|
+
import { getPhoneData } from "./utils";
|
|
9
|
+
var PhoneNumber = function PhoneNumber(_ref) {
|
|
10
|
+
var className = _ref.className,
|
|
11
|
+
_ref$defaultCountry = _ref.defaultCountry,
|
|
12
|
+
defaultCountry = _ref$defaultCountry === void 0 ? "IN" : _ref$defaultCountry,
|
|
13
|
+
value = _ref.value,
|
|
14
|
+
_ref$showEmoji = _ref.showEmoji,
|
|
15
|
+
showEmoji = _ref$showEmoji === void 0 ? false : _ref$showEmoji,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
var _getPhoneData = getPhoneData(value || children, defaultCountry),
|
|
19
|
+
international = _getPhoneData.international,
|
|
20
|
+
country = _getPhoneData.country;
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: classnames(["flex items-center space-x-2", className])
|
|
23
|
+
}, /*#__PURE__*/React.createElement(SingleValue, _extends({
|
|
24
|
+
country: country,
|
|
25
|
+
showEmoji: showEmoji
|
|
26
|
+
}, otherProps)), /*#__PURE__*/React.createElement(Typography, _extends({
|
|
27
|
+
style: "body2"
|
|
28
|
+
}, otherProps), international));
|
|
29
|
+
};
|
|
30
|
+
export default /*#__PURE__*/React.memo(PhoneNumber);
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["value", "onChange", "className", "error", "defaultCountry", "selectProps"];
|
|
5
|
+
import React, { forwardRef, useCallback, useEffect, useRef, useState } from "react";
|
|
6
|
+
import classnames from "classnames";
|
|
7
|
+
import { formatIncompletePhoneNumber, getCountryCallingCode } from "libphonenumber-js/min";
|
|
8
|
+
import { noop } from "@bigbinary/neeto-commons-frontend/pure";
|
|
9
|
+
import { Input } from "@bigbinary/neetoui";
|
|
10
|
+
import { useTranslation } from "react-i18next";
|
|
11
|
+
import CountryPicker from "./CountryPicker";
|
|
12
|
+
import { getCursorPosition, getPhoneData } from "./utils";
|
|
13
|
+
var PhoneNumberInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
14
|
+
var _ref$value = _ref.value,
|
|
15
|
+
value = _ref$value === void 0 ? "" : _ref$value,
|
|
16
|
+
_ref$onChange = _ref.onChange,
|
|
17
|
+
onChange = _ref$onChange === void 0 ? noop : _ref$onChange,
|
|
18
|
+
className = _ref.className,
|
|
19
|
+
error = _ref.error,
|
|
20
|
+
_ref$defaultCountry = _ref.defaultCountry,
|
|
21
|
+
defaultCountry = _ref$defaultCountry === void 0 ? "IN" : _ref$defaultCountry,
|
|
22
|
+
selectProps = _ref.selectProps,
|
|
23
|
+
inputProps = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
+
var _useTranslation = useTranslation(),
|
|
25
|
+
t = _useTranslation.t;
|
|
26
|
+
var internalValue = useRef(value);
|
|
27
|
+
var _useState = useState(defaultCountry),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
+
country = _useState2[0],
|
|
30
|
+
setCountry = _useState2[1];
|
|
31
|
+
var prefix = country ? "+".concat(getCountryCallingCode(country)) : "";
|
|
32
|
+
var formattedValue = formatIncompletePhoneNumber(value, country);
|
|
33
|
+
var handleInputChange = useCallback(function (value) {
|
|
34
|
+
onChange(value);
|
|
35
|
+
internalValue.current = value;
|
|
36
|
+
}, []);
|
|
37
|
+
var handleChange = function handleChange(event) {
|
|
38
|
+
var _getPhoneData = getPhoneData(event.target.value, country),
|
|
39
|
+
phoneNumber = _getPhoneData.phoneNumber,
|
|
40
|
+
newCountry = _getPhoneData.country;
|
|
41
|
+
handleInputChange(phoneNumber);
|
|
42
|
+
setCountry(newCountry);
|
|
43
|
+
var cursor = getCursorPosition({
|
|
44
|
+
event: event,
|
|
45
|
+
prevFormattedValue: formattedValue,
|
|
46
|
+
newFormattedValue: formatIncompletePhoneNumber(phoneNumber, newCountry)
|
|
47
|
+
});
|
|
48
|
+
window.requestAnimationFrame(function () {
|
|
49
|
+
return event.target.setSelectionRange(cursor, cursor);
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
useEffect(function () {
|
|
53
|
+
if (internalValue.current !== value) {
|
|
54
|
+
setCountry(getPhoneData(value, defaultCountry).country);
|
|
55
|
+
}
|
|
56
|
+
}, [value]);
|
|
57
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
58
|
+
className: classnames([className])
|
|
59
|
+
}, /*#__PURE__*/React.createElement(Input, _extends({
|
|
60
|
+
"data-testid": "phonenumber-input",
|
|
61
|
+
error: error,
|
|
62
|
+
ref: ref,
|
|
63
|
+
type: "tel",
|
|
64
|
+
value: formattedValue,
|
|
65
|
+
placeholder: t("neetoMolecules.phoneNumberInput.placeholder", {
|
|
66
|
+
prefix: prefix
|
|
67
|
+
}),
|
|
68
|
+
prefix: /*#__PURE__*/React.createElement(CountryPicker, _extends({
|
|
69
|
+
country: country,
|
|
70
|
+
phoneNumber: value,
|
|
71
|
+
prefix: prefix,
|
|
72
|
+
setCountry: setCountry,
|
|
73
|
+
onInputChange: handleInputChange
|
|
74
|
+
}, selectProps)),
|
|
75
|
+
onChange: handleChange
|
|
76
|
+
}, inputProps)));
|
|
77
|
+
});
|
|
78
|
+
PhoneNumberInput.displayName = "PhoneNumberInput";
|
|
79
|
+
export default PhoneNumberInput;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import FormikPhoneNumberInput from "./FormikPhoneNumberInput";
|
|
2
|
+
import PhoneNumber from "./PhoneNumber";
|
|
3
|
+
import PhoneNumberInput from "./PhoneNumberInput";
|
|
4
|
+
import { isPhoneNumberValid, validation } from "./utils";
|
|
5
|
+
export { PhoneNumber, PhoneNumberInput, FormikPhoneNumberInput, isPhoneNumberValid, validation };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import i18next from "i18next";
|
|
2
|
+
import { formatIncompletePhoneNumber, isValidPhoneNumber, parsePhoneNumber } from "libphonenumber-js/min";
|
|
3
|
+
import * as yup from "yup";
|
|
4
|
+
export var isPhoneNumberValid = function isPhoneNumberValid() {
|
|
5
|
+
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
6
|
+
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
7
|
+
rest[_key - 1] = arguments[_key];
|
|
8
|
+
}
|
|
9
|
+
return isValidPhoneNumber.apply(void 0, [value].concat(rest));
|
|
10
|
+
};
|
|
11
|
+
export var validation = function validation() {
|
|
12
|
+
var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : i18next.t("neetoMolecules.phoneNumberInput.validations.invalid");
|
|
13
|
+
return yup.string().test("phoneNumber", message, function (phoneNumber) {
|
|
14
|
+
return phoneNumber ? isValidPhoneNumber(phoneNumber) : true;
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export var getPhoneData = function getPhoneData(value, defaultCountry) {
|
|
18
|
+
try {
|
|
19
|
+
var parsedValue = parsePhoneNumber(value, defaultCountry);
|
|
20
|
+
return {
|
|
21
|
+
phoneNumber: parsedValue.number,
|
|
22
|
+
international: parsedValue.formatInternational(),
|
|
23
|
+
country: parsedValue.country || defaultCountry
|
|
24
|
+
};
|
|
25
|
+
} catch (_unused) {
|
|
26
|
+
return {
|
|
27
|
+
phoneNumber: value,
|
|
28
|
+
international: formatIncompletePhoneNumber(value, defaultCountry),
|
|
29
|
+
country: defaultCountry
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export var getCursorPosition = function getCursorPosition(_ref) {
|
|
34
|
+
var event = _ref.event,
|
|
35
|
+
prevFormattedValue = _ref.prevFormattedValue,
|
|
36
|
+
newFormattedValue = _ref.newFormattedValue;
|
|
37
|
+
var inputType = event.nativeEvent.inputType,
|
|
38
|
+
_event$target = event.target,
|
|
39
|
+
newValue = _event$target.value,
|
|
40
|
+
selectionStart = _event$target.selectionStart;
|
|
41
|
+
if (selectionStart === newValue.length) return newFormattedValue.length;
|
|
42
|
+
var n = prevFormattedValue.substring(0, selectionStart).replace(/\s/g, "").length;
|
|
43
|
+
var cursor = 0;
|
|
44
|
+
for (var i = 0; i < n; ++i, ++cursor) {
|
|
45
|
+
if (newFormattedValue[cursor] === " ") ++cursor;
|
|
46
|
+
}
|
|
47
|
+
if (inputType !== "deleteContentBackward") {
|
|
48
|
+
if (newFormattedValue[selectionStart - 1] === " " && prevFormattedValue[selectionStart - 1] === " ") {
|
|
49
|
+
return cursor + 2;
|
|
50
|
+
} else if (prevFormattedValue[selectionStart - 1] === " ") {
|
|
51
|
+
return cursor + 1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return cursor;
|
|
55
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Alert } from "@bigbinary/neetoui";
|
|
4
|
+
import { useTranslation } from "react-i18next";
|
|
5
|
+
var AlertBlock = function AlertBlock(props) {
|
|
6
|
+
var _useTranslation = useTranslation(),
|
|
7
|
+
t = _useTranslation.t;
|
|
8
|
+
return /*#__PURE__*/React.createElement(Alert, _extends({
|
|
9
|
+
"data-cy": "reset-alert",
|
|
10
|
+
"data-testid": "reset-alert",
|
|
11
|
+
submitButtonLabel: t("neetoMolecules.common.actions.reset")
|
|
12
|
+
}, props));
|
|
13
|
+
};
|
|
14
|
+
export default AlertBlock;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["t"],
|
|
4
|
+
_excluded2 = ["t"],
|
|
5
|
+
_excluded3 = ["t"],
|
|
6
|
+
_excluded4 = ["t"];
|
|
7
|
+
import React from "react";
|
|
8
|
+
import classnames from "classnames";
|
|
9
|
+
import { withT } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
10
|
+
import { ExternalLink, Undo } from "@bigbinary/neeto-icons";
|
|
11
|
+
import { Button, Typography } from "@bigbinary/neetoui";
|
|
12
|
+
import { useTranslation } from "react-i18next";
|
|
13
|
+
import AlertBlock from "./AlertBlock";
|
|
14
|
+
import "./publish-block.scss";
|
|
15
|
+
var ViewDraftButton = withT(function (_ref) {
|
|
16
|
+
var t = _ref.t,
|
|
17
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
19
|
+
"data-cy": "view-draft-button",
|
|
20
|
+
"data-testid": "view-draft-button",
|
|
21
|
+
icon: ExternalLink,
|
|
22
|
+
style: "secondary",
|
|
23
|
+
target: "_blank",
|
|
24
|
+
tooltipProps: {
|
|
25
|
+
content: t("neetoMolecules.publishBlock.viewDraftVersion"),
|
|
26
|
+
position: "top"
|
|
27
|
+
}
|
|
28
|
+
}, props));
|
|
29
|
+
});
|
|
30
|
+
var ResetDraftButton = withT(function (_ref2) {
|
|
31
|
+
var t = _ref2.t,
|
|
32
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
33
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
34
|
+
"data-cy": "draft-button",
|
|
35
|
+
"data-testid": "draft-button",
|
|
36
|
+
icon: Undo,
|
|
37
|
+
style: "secondary",
|
|
38
|
+
tooltipProps: {
|
|
39
|
+
content: t("neetoMolecules.publishBlock.deleteDraftVersion"),
|
|
40
|
+
position: "top"
|
|
41
|
+
}
|
|
42
|
+
}, props));
|
|
43
|
+
});
|
|
44
|
+
var PublishButton = withT(function (_ref3) {
|
|
45
|
+
var t = _ref3.t,
|
|
46
|
+
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
47
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
48
|
+
"data-cy": "publish-button",
|
|
49
|
+
"data-testid": "publish-button",
|
|
50
|
+
label: t("neetoMolecules.common.actions.publish")
|
|
51
|
+
}, props));
|
|
52
|
+
});
|
|
53
|
+
var PublishPreviewButton = withT(function (_ref4) {
|
|
54
|
+
var t = _ref4.t,
|
|
55
|
+
props = _objectWithoutProperties(_ref4, _excluded4);
|
|
56
|
+
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
57
|
+
"data-cy": "publish-preview-button",
|
|
58
|
+
"data-testid": "publish-preview-button",
|
|
59
|
+
icon: ExternalLink,
|
|
60
|
+
target: "_blank",
|
|
61
|
+
className: classnames({
|
|
62
|
+
"pointer-events-none": props.disabled
|
|
63
|
+
}, props.className),
|
|
64
|
+
tooltipProps: {
|
|
65
|
+
content: t("neetoMolecules.publishBlock.viewPublishedVersion"),
|
|
66
|
+
position: "top"
|
|
67
|
+
}
|
|
68
|
+
}, props));
|
|
69
|
+
});
|
|
70
|
+
var PublishBlock = function PublishBlock(_ref5) {
|
|
71
|
+
var renderDraftButtons = _ref5.renderDraftButtons,
|
|
72
|
+
renderPublishButtons = _ref5.renderPublishButtons;
|
|
73
|
+
var _useTranslation = useTranslation(),
|
|
74
|
+
t = _useTranslation.t;
|
|
75
|
+
var draftBlockButtons = renderDraftButtons({
|
|
76
|
+
ViewDraftButton: ViewDraftButton,
|
|
77
|
+
ResetDraftButton: ResetDraftButton
|
|
78
|
+
});
|
|
79
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
className: "neeto-molecules-publish-block",
|
|
81
|
+
"data-testid": "neeto-molecules-publish-block"
|
|
82
|
+
}, draftBlockButtons && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
83
|
+
className: "flex items-center gap-2"
|
|
84
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
85
|
+
className: "neeto-ui-text-gray-700",
|
|
86
|
+
lineHeight: "normal",
|
|
87
|
+
style: "body2"
|
|
88
|
+
}, t("neetoMolecules.common.actions.draft")), /*#__PURE__*/React.createElement("div", {
|
|
89
|
+
className: "space-x-1"
|
|
90
|
+
}, draftBlockButtons)), /*#__PURE__*/React.createElement("div", {
|
|
91
|
+
className: "neeto-ui-bg-gray-300 h-full w-px"
|
|
92
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: "neeto-molecules-publish-block__action-btn"
|
|
94
|
+
}, renderPublishButtons({
|
|
95
|
+
PublishButton: PublishButton,
|
|
96
|
+
PublishPreviewButton: PublishPreviewButton
|
|
97
|
+
})));
|
|
98
|
+
};
|
|
99
|
+
PublishBlock.Alert = AlertBlock;
|
|
100
|
+
export default PublishBlock;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.neeto-molecules-publish-block {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: flex-end;
|
|
5
|
+
gap: 12px;
|
|
6
|
+
|
|
7
|
+
&__action-btn {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
flex-direction: row;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
gap: 1px;
|
|
13
|
+
|
|
14
|
+
> .neeto-ui-btn {
|
|
15
|
+
&:first-child {
|
|
16
|
+
border-top-right-radius: 0;
|
|
17
|
+
border-bottom-right-radius: 0;
|
|
18
|
+
}
|
|
19
|
+
&:last-child {
|
|
20
|
+
border-top-left-radius: 0;
|
|
21
|
+
border-bottom-left-radius: 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { useEffect } from "react";
|
|
2
|
+
var DummySpan = function DummySpan(_ref) {
|
|
3
|
+
var name = _ref.name,
|
|
4
|
+
placeholderRef = _ref.placeholderRef,
|
|
5
|
+
setInputWidth = _ref.setInputWidth;
|
|
6
|
+
useEffect(function () {
|
|
7
|
+
var _placeholderRef$curre;
|
|
8
|
+
//To handle the input width on initial render.
|
|
9
|
+
var placeholderSpanWidth = (_placeholderRef$curre = placeholderRef.current) === null || _placeholderRef$curre === void 0 ? void 0 : _placeholderRef$curre.offsetWidth;
|
|
10
|
+
setInputWidth(placeholderSpanWidth);
|
|
11
|
+
}, [name]);
|
|
12
|
+
return (
|
|
13
|
+
/*#__PURE__*/
|
|
14
|
+
// Dummy element to calculate the width to be set for the input. Do not remove.
|
|
15
|
+
React.createElement("div", {
|
|
16
|
+
className: "dummy-span pointer-events-none invisible absolute",
|
|
17
|
+
ref: placeholderRef
|
|
18
|
+
}, name.split(" ").join("."))
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
export default DummySpan;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MIN_WIDTH = 150;
|