@bigbinary/neeto-molecules 1.1.9 → 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 +28 -35
- 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 -2244
- package/dist/KeyboardShortcuts.cjs.js.map +0 -1
- package/dist/KeyboardShortcuts.js +0 -2237
- 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,127 @@
|
|
|
1
|
+
import * as yup from "yup";
|
|
2
|
+
export var DIRECT_UPLOAD_URL = "/api/direct_uploads";
|
|
3
|
+
export var DESIGN_SCREENS = {
|
|
4
|
+
THEMES: "Themes",
|
|
5
|
+
CUSTOMIZE: "Customize",
|
|
6
|
+
LOADING: "Loading"
|
|
7
|
+
};
|
|
8
|
+
export var INITIAL_STATE = {
|
|
9
|
+
name: "",
|
|
10
|
+
backgroundColor: "#ffffff",
|
|
11
|
+
backgroundOverlayColor: "#000000",
|
|
12
|
+
backgroundOverlayOpacity: 0,
|
|
13
|
+
isDominantBackgroundColorEnabled: false,
|
|
14
|
+
questionColor: "#000000",
|
|
15
|
+
buttonBackgroundColor: "#2D36D4",
|
|
16
|
+
buttonTextColor: "#ffffff",
|
|
17
|
+
answerColor: "#2D36D4",
|
|
18
|
+
answerTextColor: "#ffffff",
|
|
19
|
+
logo: {},
|
|
20
|
+
buttonBorderRadius: 10,
|
|
21
|
+
isContentBackgroundEnabled: false,
|
|
22
|
+
welcomeTextAlignment: "left",
|
|
23
|
+
thankYouTextAlignment: "center",
|
|
24
|
+
questionsTextAlignment: "left",
|
|
25
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
26
|
+
};
|
|
27
|
+
export var THEME_VALIDATION_SCHEMA = yup.object().shape({
|
|
28
|
+
name: yup.string().required("Name is required")
|
|
29
|
+
});
|
|
30
|
+
export var ONE_MEGABYTE = 1048576;
|
|
31
|
+
export var FIVE_MEGABYTES = 5242880;
|
|
32
|
+
export var POSITION_OPTIONS = [{
|
|
33
|
+
label: "Left",
|
|
34
|
+
value: "left"
|
|
35
|
+
}, {
|
|
36
|
+
label: "Right",
|
|
37
|
+
value: "right"
|
|
38
|
+
}];
|
|
39
|
+
export var BACKGROUND_POSITION_OPTIONS = [{
|
|
40
|
+
label: "Center",
|
|
41
|
+
value: "center"
|
|
42
|
+
}, {
|
|
43
|
+
label: "Top left",
|
|
44
|
+
value: "top left"
|
|
45
|
+
}, {
|
|
46
|
+
label: "Top center",
|
|
47
|
+
value: "top center"
|
|
48
|
+
}, {
|
|
49
|
+
label: "Top right",
|
|
50
|
+
value: "top right"
|
|
51
|
+
}, {
|
|
52
|
+
label: "Center left",
|
|
53
|
+
value: "center left"
|
|
54
|
+
}, {
|
|
55
|
+
label: "Center right",
|
|
56
|
+
value: "center right"
|
|
57
|
+
}, {
|
|
58
|
+
label: "Bottom left",
|
|
59
|
+
value: "bottom left"
|
|
60
|
+
}, {
|
|
61
|
+
label: "Bottom right",
|
|
62
|
+
value: "bottom right"
|
|
63
|
+
}, {
|
|
64
|
+
label: "Bottom center",
|
|
65
|
+
value: "bottom center"
|
|
66
|
+
}];
|
|
67
|
+
export var FONT_OPTIONS = [{
|
|
68
|
+
label: "System UI",
|
|
69
|
+
value: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
|
|
70
|
+
}, {
|
|
71
|
+
label: "Cedarville Cursive",
|
|
72
|
+
value: "'Cedarville Cursive', cursive"
|
|
73
|
+
}, {
|
|
74
|
+
label: "Poppins",
|
|
75
|
+
value: "Poppins, sans-serif"
|
|
76
|
+
}, {
|
|
77
|
+
label: "Roboto",
|
|
78
|
+
value: "Roboto, sans-serif"
|
|
79
|
+
}, {
|
|
80
|
+
label: "Open Sans",
|
|
81
|
+
value: "Open Sans, sans-serif"
|
|
82
|
+
}, {
|
|
83
|
+
label: "Montserrat",
|
|
84
|
+
value: "Montserrat, sans-serif"
|
|
85
|
+
}, {
|
|
86
|
+
label: "Raleway",
|
|
87
|
+
value: "Raleway, sans-serif"
|
|
88
|
+
}, {
|
|
89
|
+
label: "Quicksand",
|
|
90
|
+
value: "Quicksand, sans-serif"
|
|
91
|
+
}, {
|
|
92
|
+
label: "Inter",
|
|
93
|
+
value: "Inter, sans-serif"
|
|
94
|
+
}, {
|
|
95
|
+
label: "Satoshi",
|
|
96
|
+
value: "Satoshi, sans-serif"
|
|
97
|
+
}, {
|
|
98
|
+
label: "Chillax",
|
|
99
|
+
value: "Chillax, sans-serif"
|
|
100
|
+
}, {
|
|
101
|
+
label: "Clash Display",
|
|
102
|
+
value: "Clash Display, sans-serif"
|
|
103
|
+
}, {
|
|
104
|
+
label: "General Sans",
|
|
105
|
+
value: "General Sans, sans-serif"
|
|
106
|
+
}, {
|
|
107
|
+
label: "Cabinet Grotesk",
|
|
108
|
+
value: "Cabinet Grotesk, sans-serif"
|
|
109
|
+
}, {
|
|
110
|
+
label: "Lora",
|
|
111
|
+
value: "Lora, serif"
|
|
112
|
+
}, {
|
|
113
|
+
label: "Merriweather",
|
|
114
|
+
value: "Merriweather, serif"
|
|
115
|
+
}, {
|
|
116
|
+
label: "Boska",
|
|
117
|
+
value: "Boska, serif"
|
|
118
|
+
}, {
|
|
119
|
+
label: "Playfair Display",
|
|
120
|
+
value: "Playfair Display, serif"
|
|
121
|
+
}, {
|
|
122
|
+
label: "Roboto Slab",
|
|
123
|
+
value: "Roboto Slab, serif"
|
|
124
|
+
}, {
|
|
125
|
+
label: "Dancing Script",
|
|
126
|
+
value: "Dancing Script, cursive"
|
|
127
|
+
}];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Field } from "formik";
|
|
3
|
+
import { CenterAlign, LeftAlign } from "@bigbinary/neeto-icons";
|
|
4
|
+
import { Button, Typography } from "@bigbinary/neetoui";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
var AlignmentBlock = function AlignmentBlock(_ref) {
|
|
7
|
+
var label = _ref.label,
|
|
8
|
+
name = _ref.name;
|
|
9
|
+
var _useTranslation = useTranslation(),
|
|
10
|
+
t = _useTranslation.t;
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
className: "flex items-center justify-between gap-2 py-3 first:pt-0 last:pb-0"
|
|
13
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
14
|
+
"data-cy": "style-fields-labels",
|
|
15
|
+
style: "body2"
|
|
16
|
+
}, label), /*#__PURE__*/React.createElement(Field, {
|
|
17
|
+
name: name
|
|
18
|
+
}, function (_ref2) {
|
|
19
|
+
var value = _ref2.field.value,
|
|
20
|
+
setFieldValue = _ref2.form.setFieldValue;
|
|
21
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: "flex items-center gap-3"
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
24
|
+
"data-cy": "alignment-left",
|
|
25
|
+
icon: LeftAlign,
|
|
26
|
+
size: "large",
|
|
27
|
+
style: value === "left" ? "primary" : "text",
|
|
28
|
+
tooltipProps: {
|
|
29
|
+
content: t("neetoMolecules.themeSidebar.alignmentOptions.left"),
|
|
30
|
+
position: "bottom"
|
|
31
|
+
},
|
|
32
|
+
onClick: function onClick() {
|
|
33
|
+
return setFieldValue(name, "left");
|
|
34
|
+
}
|
|
35
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
36
|
+
"data-cy": "alignment-center",
|
|
37
|
+
icon: CenterAlign,
|
|
38
|
+
size: "large",
|
|
39
|
+
style: value === "center" ? "primary" : "text",
|
|
40
|
+
tooltipProps: {
|
|
41
|
+
content: t("neetoMolecules.themeSidebar.alignmentOptions.center"),
|
|
42
|
+
position: "bottom"
|
|
43
|
+
},
|
|
44
|
+
onClick: function onClick() {
|
|
45
|
+
return setFieldValue(name, "center");
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
}));
|
|
49
|
+
};
|
|
50
|
+
export default AlignmentBlock;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
3
|
+
var Card = function Card(_ref) {
|
|
4
|
+
var title = _ref.title,
|
|
5
|
+
children = _ref.children;
|
|
6
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
+
className: "neeto-ui-border-gray-300 neeto-ui-rounded-lg neeto-ui-bg-white space-y-3 border p-4"
|
|
8
|
+
}, title && /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
className: "flex items-center justify-between"
|
|
10
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
11
|
+
"data-cy": "edit-theme-properties",
|
|
12
|
+
lineHeight: "normal",
|
|
13
|
+
style: "h4",
|
|
14
|
+
weight: "semibold"
|
|
15
|
+
}, title)), children && /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: "space-y-4"
|
|
17
|
+
}, children));
|
|
18
|
+
};
|
|
19
|
+
export default Card;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ColorPicker, Typography } from "@bigbinary/neetoui";
|
|
3
|
+
var ColorBlock = function ColorBlock(_ref) {
|
|
4
|
+
var label = _ref.label,
|
|
5
|
+
_ref$color = _ref.color,
|
|
6
|
+
color = _ref$color === void 0 ? "#FFFFFF" : _ref$color,
|
|
7
|
+
onChange = _ref.onChange;
|
|
8
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
className: "flex items-center justify-between py-3 first:pt-0 last:pb-0"
|
|
10
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
11
|
+
"data-cy": "style-fields-labels",
|
|
12
|
+
style: "body2"
|
|
13
|
+
}, label), /*#__PURE__*/React.createElement(ColorPicker, {
|
|
14
|
+
showEyeDropper: true,
|
|
15
|
+
color: color,
|
|
16
|
+
onChange: onChange
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
export default ColorBlock;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
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; }
|
|
3
|
+
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; }
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Typography, Select } from "@bigbinary/neetoui";
|
|
6
|
+
var FontPickerBlock = function FontPickerBlock(_ref) {
|
|
7
|
+
var label = _ref.label,
|
|
8
|
+
_ref$placeholder = _ref.placeholder,
|
|
9
|
+
placeholder = _ref$placeholder === void 0 ? "" : _ref$placeholder,
|
|
10
|
+
value = _ref.value,
|
|
11
|
+
options = _ref.options,
|
|
12
|
+
onChange = _ref.onChange;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
className: "flex items-center justify-between py-3 first:pt-0 last:pb-0"
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
16
|
+
"data-cy": "style-fields-labels",
|
|
17
|
+
style: "body2"
|
|
18
|
+
}, label), /*#__PURE__*/React.createElement("div", {
|
|
19
|
+
className: "w-40"
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
21
|
+
options: options,
|
|
22
|
+
placeholder: placeholder,
|
|
23
|
+
value: value,
|
|
24
|
+
styles: {
|
|
25
|
+
option: function option(styles, _ref2) {
|
|
26
|
+
var data = _ref2.data;
|
|
27
|
+
return _objectSpread(_objectSpread({}, styles), {}, {
|
|
28
|
+
fontFamily: data.value
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
onChange: onChange
|
|
33
|
+
})));
|
|
34
|
+
};
|
|
35
|
+
export default FontPickerBlock;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
import { ImageUpload } from "@bigbinary/neeto-icons";
|
|
5
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
6
|
+
import { Trans, useTranslation } from "react-i18next";
|
|
7
|
+
import ProgressBar from "./ProgressBar";
|
|
8
|
+
import { FIVE_MEGABYTES } from "../../constants";
|
|
9
|
+
import useDropzoneWithValidation from "../../hooks/useDirectUploadDropzone";
|
|
10
|
+
var ImageUploader = function ImageUploader(_ref) {
|
|
11
|
+
var onChange = _ref.onChange,
|
|
12
|
+
name = _ref.name,
|
|
13
|
+
_ref$isDominantColorE = _ref.isDominantColorEnabled,
|
|
14
|
+
isDominantColorEnabled = _ref$isDominantColorE === void 0 ? false : _ref$isDominantColorE;
|
|
15
|
+
var _useTranslation = useTranslation(),
|
|
16
|
+
t = _useTranslation.t;
|
|
17
|
+
var _useDropzoneWithValid = useDropzoneWithValidation({
|
|
18
|
+
maxSize: FIVE_MEGABYTES,
|
|
19
|
+
acceptedTypes: "image/*",
|
|
20
|
+
handleAcceptedFile: onChange,
|
|
21
|
+
isDominantColorEnabled: isDominantColorEnabled
|
|
22
|
+
}),
|
|
23
|
+
getInputProps = _useDropzoneWithValid.getInputProps,
|
|
24
|
+
getRootProps = _useDropzoneWithValid.getRootProps,
|
|
25
|
+
isDragActive = _useDropzoneWithValid.isDragActive,
|
|
26
|
+
uploadProgress = _useDropzoneWithValid.uploadProgress;
|
|
27
|
+
var shouldShowProgress = !!(uploadProgress && uploadProgress !== 1);
|
|
28
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
29
|
+
className: "space-y-2"
|
|
30
|
+
}, /*#__PURE__*/React.createElement("div", _extends({}, getRootProps(), {
|
|
31
|
+
"data-cy": "image-browse-button",
|
|
32
|
+
className: classnames("neeto-ui-border-primary-600 hover:neeto-ui-bg-gray-100 neeto-ui-rounded-lg flex cursor-pointer flex-col items-center justify-center gap-3 border border-dashed p-5 px-4 transition-all duration-300 ease-in-out", {
|
|
33
|
+
"neeto-ui-border-gray-300": !isDragActive,
|
|
34
|
+
"neeto-ui-border-gray-700": isDragActive
|
|
35
|
+
})
|
|
36
|
+
}), shouldShowProgress ? /*#__PURE__*/React.createElement("div", {
|
|
37
|
+
className: "flex h-24 w-full items-center"
|
|
38
|
+
}, /*#__PURE__*/React.createElement(ProgressBar, {
|
|
39
|
+
progressPercentage: uploadProgress * 100,
|
|
40
|
+
progressValue: "".concat(uploadProgress, "%")
|
|
41
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ImageUpload, {
|
|
42
|
+
className: "neeto-ui-text-primary-500",
|
|
43
|
+
size: 24
|
|
44
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: "flex flex-col space-y-1"
|
|
46
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
47
|
+
className: "neeto-ui-text-gray-800 text-center leading-4",
|
|
48
|
+
style: "body2"
|
|
49
|
+
}, /*#__PURE__*/React.createElement(Trans, {
|
|
50
|
+
i18nKey: "neetoMolecules.themeSidebar.editTheme.imageUpload",
|
|
51
|
+
components: {
|
|
52
|
+
span: /*#__PURE__*/React.createElement("span", {
|
|
53
|
+
className: "neeto-ui-text-primary-500"
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
})), /*#__PURE__*/React.createElement("input", _extends({}, getInputProps(), {
|
|
57
|
+
name: name
|
|
58
|
+
})), /*#__PURE__*/React.createElement(Typography, {
|
|
59
|
+
className: "neeto-ui-text-gray-700 text-center",
|
|
60
|
+
"data-cy": "supported-files-text",
|
|
61
|
+
lineHeight: "snug",
|
|
62
|
+
style: "nano"
|
|
63
|
+
}, t("neetoMolecules.themeSidebar.fileRequirements", {
|
|
64
|
+
maxSize: FIVE_MEGABYTES
|
|
65
|
+
}))))));
|
|
66
|
+
};
|
|
67
|
+
export default ImageUploader;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { motion } from "framer-motion";
|
|
3
|
+
var ProgressBar = function ProgressBar(_ref) {
|
|
4
|
+
var progressPercentage = _ref.progressPercentage,
|
|
5
|
+
progressValue = _ref.progressValue;
|
|
6
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
+
className: "neeto-ui-bg-gray-200 neeto-ui-rounded-full w-full overflow-hidden"
|
|
8
|
+
}, /*#__PURE__*/React.createElement(motion.div, {
|
|
9
|
+
animate: {
|
|
10
|
+
width: "".concat(progressPercentage, "%")
|
|
11
|
+
},
|
|
12
|
+
className: "neeto-ui-bg-primary-600 neeto-ui-text-primary-100 text-2xs neeto-ui-rounded-full flex h-3 animate-pulse items-center justify-center font-medium leading-none",
|
|
13
|
+
initial: {
|
|
14
|
+
width: 0
|
|
15
|
+
},
|
|
16
|
+
transition: {
|
|
17
|
+
duration: 0.5,
|
|
18
|
+
ease: "easeInOut"
|
|
19
|
+
}
|
|
20
|
+
}, progressValue));
|
|
21
|
+
};
|
|
22
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button, Typography } from "@bigbinary/neetoui";
|
|
3
|
+
import ImageUploader from "./ImageUploader";
|
|
4
|
+
var ImageBlock = function ImageBlock(_ref) {
|
|
5
|
+
var label = _ref.label,
|
|
6
|
+
name = _ref.name,
|
|
7
|
+
_ref$imageData = _ref.imageData,
|
|
8
|
+
imageData = _ref$imageData === void 0 ? {} : _ref$imageData,
|
|
9
|
+
_onChange = _ref.onChange;
|
|
10
|
+
var url = imageData.url,
|
|
11
|
+
size = imageData.size;
|
|
12
|
+
var fileName = imageData.name;
|
|
13
|
+
if (url && !fileName) {
|
|
14
|
+
var urlParts = url.split("/");
|
|
15
|
+
fileName = urlParts[urlParts.length - 1];
|
|
16
|
+
}
|
|
17
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
className: "space-y-3 py-3 first:pt-0 last:pb-0"
|
|
19
|
+
}, label && /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: "flex items-center justify-between"
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
22
|
+
"data-cy": "style-fields-labels",
|
|
23
|
+
style: "body2"
|
|
24
|
+
}, label)), url ? /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: "flex items-center justify-between gap-2"
|
|
26
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
className: "flex min-w-0 flex-grow items-center gap-2"
|
|
28
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
29
|
+
className: "h-10 w-10 object-cover",
|
|
30
|
+
src: url
|
|
31
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
32
|
+
className: "flex min-w-0 flex-grow flex-col gap-1"
|
|
33
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
34
|
+
className: "neeto-ui-text-gray-700 break-words",
|
|
35
|
+
style: "nano"
|
|
36
|
+
}, fileName), size ? /*#__PURE__*/React.createElement(Typography, {
|
|
37
|
+
className: "neeto-ui-text-gray-500",
|
|
38
|
+
style: "nano"
|
|
39
|
+
}, size / 1000, "KB") : null)), /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
className: "flex items-center gap-1"
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
42
|
+
label: "Remove",
|
|
43
|
+
size: "small",
|
|
44
|
+
style: "danger-text",
|
|
45
|
+
onClick: function onClick() {
|
|
46
|
+
return _onChange(name, {}, "");
|
|
47
|
+
}
|
|
48
|
+
}))) : /*#__PURE__*/React.createElement(ImageUploader, {
|
|
49
|
+
isDominantColorEnabled: true,
|
|
50
|
+
onChange: function onChange(value) {
|
|
51
|
+
return _onChange(name, value, "url(".concat(value.url, ")"));
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
};
|
|
55
|
+
export default ImageBlock;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Typography, Select } from "@bigbinary/neetoui";
|
|
3
|
+
var SelectBlock = function SelectBlock(_ref) {
|
|
4
|
+
var label = _ref.label,
|
|
5
|
+
_ref$placeholder = _ref.placeholder,
|
|
6
|
+
placeholder = _ref$placeholder === void 0 ? "" : _ref$placeholder,
|
|
7
|
+
value = _ref.value,
|
|
8
|
+
options = _ref.options,
|
|
9
|
+
onChange = _ref.onChange;
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
className: "flex items-center justify-between py-3 first:pt-0 last:pb-0"
|
|
12
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
13
|
+
"data-cy": "logo-field-labels",
|
|
14
|
+
style: "body2"
|
|
15
|
+
}, label), /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: "w-40"
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
18
|
+
options: options,
|
|
19
|
+
placeholder: placeholder,
|
|
20
|
+
value: value,
|
|
21
|
+
onChange: onChange
|
|
22
|
+
})));
|
|
23
|
+
};
|
|
24
|
+
export default SelectBlock;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Slider } from "antd";
|
|
3
|
+
import { noop } from "@bigbinary/neeto-commons-frontend/pure";
|
|
4
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
5
|
+
import "./slider.scss";
|
|
6
|
+
var SliderBlock = function SliderBlock(_ref) {
|
|
7
|
+
var label = _ref.label,
|
|
8
|
+
onChange = _ref.onChange,
|
|
9
|
+
defaultValue = _ref.defaultValue,
|
|
10
|
+
min = _ref.min,
|
|
11
|
+
max = _ref.max,
|
|
12
|
+
marks = _ref.marks;
|
|
13
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
|
+
className: "flex items-center justify-between gap-3 py-3 first:pt-0 last:pb-0"
|
|
15
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
16
|
+
"data-cy": "style-fields-labels",
|
|
17
|
+
style: "body2"
|
|
18
|
+
}, label), /*#__PURE__*/React.createElement(Slider, {
|
|
19
|
+
className: "my-2 w-20",
|
|
20
|
+
defaultValue: defaultValue,
|
|
21
|
+
marks: marks,
|
|
22
|
+
max: max,
|
|
23
|
+
min: min,
|
|
24
|
+
onChange: onChange,
|
|
25
|
+
tooltip: {
|
|
26
|
+
formatter: noop
|
|
27
|
+
}
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
export default SliderBlock;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Typography } from "@bigbinary/neetoui";
|
|
3
|
+
import { Switch } from "@bigbinary/neetoui/formik";
|
|
4
|
+
var SwitchBlock = function SwitchBlock(_ref) {
|
|
5
|
+
var label = _ref.label,
|
|
6
|
+
name = _ref.name;
|
|
7
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
+
className: "flex items-center justify-between py-3 first:pt-0 last:pb-0"
|
|
9
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
|
10
|
+
"data-cy": "style-fields-labels",
|
|
11
|
+
style: "body2"
|
|
12
|
+
}, label), /*#__PURE__*/React.createElement(Switch, {
|
|
13
|
+
"data-cy": "enable-background-color-toggle",
|
|
14
|
+
name: name
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
17
|
+
export default SwitchBlock;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Input } from "@bigbinary/neetoui/formik";
|
|
3
|
+
var TextBlock = function TextBlock(_ref) {
|
|
4
|
+
var name = _ref.name,
|
|
5
|
+
_ref$autoFocus = _ref.autoFocus,
|
|
6
|
+
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus;
|
|
7
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
8
|
+
autoFocus: autoFocus,
|
|
9
|
+
"data-cy": "text-block-input",
|
|
10
|
+
name: name
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export default TextBlock;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
.ant-slider {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
color: rgba(0, 0, 0, 0.85);
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
font-variant: tabular-nums;
|
|
8
|
+
line-height: 1.5715;
|
|
9
|
+
list-style: none;
|
|
10
|
+
font-feature-settings: "tnum";
|
|
11
|
+
position: relative;
|
|
12
|
+
height: 12px;
|
|
13
|
+
margin: 10px 6px 10px;
|
|
14
|
+
padding: 4px 0;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
touch-action: none;
|
|
17
|
+
}
|
|
18
|
+
.ant-slider-vertical {
|
|
19
|
+
width: 12px;
|
|
20
|
+
height: 100%;
|
|
21
|
+
margin: 6px 10px;
|
|
22
|
+
padding: 0 4px;
|
|
23
|
+
}
|
|
24
|
+
.ant-slider-vertical .ant-slider-rail {
|
|
25
|
+
width: 4px;
|
|
26
|
+
height: 100%;
|
|
27
|
+
}
|
|
28
|
+
.ant-slider-vertical .ant-slider-track {
|
|
29
|
+
width: 4px;
|
|
30
|
+
}
|
|
31
|
+
.ant-slider-vertical .ant-slider-handle {
|
|
32
|
+
margin-top: -6px;
|
|
33
|
+
margin-left: -5px;
|
|
34
|
+
}
|
|
35
|
+
.ant-slider-vertical .ant-slider-mark {
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 12px;
|
|
38
|
+
width: 18px;
|
|
39
|
+
height: 100%;
|
|
40
|
+
}
|
|
41
|
+
.ant-slider-vertical .ant-slider-mark-text {
|
|
42
|
+
left: 4px;
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
}
|
|
45
|
+
.ant-slider-vertical .ant-slider-step {
|
|
46
|
+
width: 4px;
|
|
47
|
+
height: 100%;
|
|
48
|
+
}
|
|
49
|
+
.ant-slider-vertical .ant-slider-dot {
|
|
50
|
+
top: auto;
|
|
51
|
+
margin-left: -2px;
|
|
52
|
+
}
|
|
53
|
+
.ant-slider-tooltip .ant-tooltip-inner {
|
|
54
|
+
min-width: unset;
|
|
55
|
+
}
|
|
56
|
+
.ant-slider-rtl.ant-slider-vertical .ant-slider-handle {
|
|
57
|
+
margin-right: -5px;
|
|
58
|
+
margin-left: 0;
|
|
59
|
+
}
|
|
60
|
+
.ant-slider-rtl.ant-slider-vertical .ant-slider-mark {
|
|
61
|
+
right: 12px;
|
|
62
|
+
left: auto;
|
|
63
|
+
}
|
|
64
|
+
.ant-slider-rtl.ant-slider-vertical .ant-slider-mark-text {
|
|
65
|
+
right: 4px;
|
|
66
|
+
left: auto;
|
|
67
|
+
}
|
|
68
|
+
.ant-slider-rtl.ant-slider-vertical .ant-slider-dot {
|
|
69
|
+
right: 2px;
|
|
70
|
+
left: auto;
|
|
71
|
+
}
|
|
72
|
+
.ant-slider-with-marks {
|
|
73
|
+
margin-bottom: 28px;
|
|
74
|
+
}
|
|
75
|
+
.ant-slider-rail {
|
|
76
|
+
position: absolute;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 4px;
|
|
79
|
+
background-color: #f5f5f5;
|
|
80
|
+
border-radius: 2px;
|
|
81
|
+
transition: background-color 0.3s;
|
|
82
|
+
}
|
|
83
|
+
.ant-slider-track {
|
|
84
|
+
position: absolute;
|
|
85
|
+
height: 4px;
|
|
86
|
+
background-color: #91d5ff;
|
|
87
|
+
border-radius: 2px;
|
|
88
|
+
transition: background-color 0.3s;
|
|
89
|
+
}
|
|
90
|
+
.ant-slider-handle {
|
|
91
|
+
position: absolute;
|
|
92
|
+
width: 14px;
|
|
93
|
+
height: 14px;
|
|
94
|
+
margin-top: -5px;
|
|
95
|
+
background-color: #fff;
|
|
96
|
+
border: solid 2px #91d5ff;
|
|
97
|
+
border-radius: 50%;
|
|
98
|
+
box-shadow: 0;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
transition: border-color 0.3s, box-shadow 0.6s,
|
|
101
|
+
transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
|
102
|
+
}
|
|
103
|
+
.ant-slider-handle-dragging {
|
|
104
|
+
z-index: 1;
|
|
105
|
+
}
|
|
106
|
+
.ant-slider-handle:focus {
|
|
107
|
+
border-color: #46a6ff;
|
|
108
|
+
outline: none;
|
|
109
|
+
box-shadow: 0 0 0 5px rgba(24, 144, 255, 0.12);
|
|
110
|
+
}
|
|
111
|
+
.ant-slider-handle.ant-tooltip-open {
|
|
112
|
+
border-color: #1890ff;
|
|
113
|
+
}
|
|
114
|
+
.ant-slider-handle::after {
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: -6px;
|
|
117
|
+
right: -6px;
|
|
118
|
+
bottom: -6px;
|
|
119
|
+
left: -6px;
|
|
120
|
+
content: "";
|
|
121
|
+
}
|
|
122
|
+
.ant-slider:hover .ant-slider-rail {
|
|
123
|
+
background-color: #e1e1e1;
|
|
124
|
+
}
|
|
125
|
+
.ant-slider:hover .ant-slider-track {
|
|
126
|
+
background-color: #69c0ff;
|
|
127
|
+
}
|
|
128
|
+
.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open) {
|
|
129
|
+
border-color: #69c0ff;
|
|
130
|
+
}
|
|
131
|
+
.ant-slider-mark {
|
|
132
|
+
position: absolute;
|
|
133
|
+
top: 14px;
|
|
134
|
+
left: 0;
|
|
135
|
+
width: 100%;
|
|
136
|
+
font-size: 14px;
|
|
137
|
+
}
|
|
138
|
+
.ant-slider-mark-text {
|
|
139
|
+
position: absolute;
|
|
140
|
+
display: inline-block;
|
|
141
|
+
color: rgba(0, 0, 0, 0.45);
|
|
142
|
+
text-align: center;
|
|
143
|
+
word-break: keep-all;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
-webkit-user-select: none;
|
|
146
|
+
-moz-user-select: none;
|
|
147
|
+
-ms-user-select: none;
|
|
148
|
+
user-select: none;
|
|
149
|
+
}
|
|
150
|
+
.ant-slider-mark-text-active {
|
|
151
|
+
color: rgba(0, 0, 0, 0.85);
|
|
152
|
+
}
|
|
153
|
+
.ant-slider-step {
|
|
154
|
+
position: absolute;
|
|
155
|
+
width: 100%;
|
|
156
|
+
height: 4px;
|
|
157
|
+
background: transparent;
|
|
158
|
+
pointer-events: none;
|
|
159
|
+
}
|
|
160
|
+
.ant-slider-dot {
|
|
161
|
+
position: absolute;
|
|
162
|
+
top: -2px;
|
|
163
|
+
width: 8px;
|
|
164
|
+
height: 8px;
|
|
165
|
+
background-color: #fff;
|
|
166
|
+
border: 2px solid #f0f0f0;
|
|
167
|
+
border-radius: 50%;
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
}
|
|
170
|
+
.ant-slider-dot-active {
|
|
171
|
+
border-color: #8cc8ff;
|
|
172
|
+
}
|
|
173
|
+
.ant-slider-disabled {
|
|
174
|
+
cursor: not-allowed;
|
|
175
|
+
}
|
|
176
|
+
.ant-slider-disabled .ant-slider-rail {
|
|
177
|
+
background-color: #f5f5f5 !important;
|
|
178
|
+
}
|
|
179
|
+
.ant-slider-disabled .ant-slider-track {
|
|
180
|
+
background-color: rgba(0, 0, 0, 0.25) !important;
|
|
181
|
+
}
|
|
182
|
+
.ant-slider-disabled .ant-slider-handle,
|
|
183
|
+
.ant-slider-disabled .ant-slider-dot {
|
|
184
|
+
background-color: #fff;
|
|
185
|
+
border-color: rgba(0, 0, 0, 0.25) !important;
|
|
186
|
+
box-shadow: none;
|
|
187
|
+
cursor: not-allowed;
|
|
188
|
+
}
|
|
189
|
+
.ant-slider-disabled .ant-slider-mark-text,
|
|
190
|
+
.ant-slider-disabled .ant-slider-dot {
|
|
191
|
+
cursor: not-allowed !important;
|
|
192
|
+
}
|
|
193
|
+
.ant-slider-rtl {
|
|
194
|
+
direction: rtl;
|
|
195
|
+
}
|
|
196
|
+
.ant-slider-rtl .ant-slider-mark {
|
|
197
|
+
right: 0;
|
|
198
|
+
left: auto;
|
|
199
|
+
}
|