@bigbinary/neeto-molecules 1.1.16 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AutoSaveInput.js +658 -0
- package/dist/AutoSaveInput.js.map +1 -0
- package/dist/Breadcrumbs.js +38 -0
- package/dist/Breadcrumbs.js.map +1 -0
- package/dist/BrowserSupport.js +418 -0
- package/dist/BrowserSupport.js.map +1 -0
- package/dist/Builder.js +662 -0
- package/dist/Builder.js.map +1 -0
- package/dist/CalendarView.js +538 -0
- package/dist/CalendarView.js.map +1 -0
- package/dist/Codeblock.js +236 -0
- package/dist/Codeblock.js.map +1 -0
- package/dist/{Columns/index.js → Columns.js} +130 -13
- package/dist/Columns.js.map +1 -0
- package/dist/{ConfirmationModal/index.js → ConfirmationModal.js} +20 -8
- package/dist/ConfirmationModal.js.map +1 -0
- package/dist/Container.js +1211 -0
- package/dist/Container.js.map +1 -0
- package/dist/CopyToClipboardButton.js +209 -0
- package/dist/CopyToClipboardButton.js.map +1 -0
- package/dist/CustomDomain.js +688 -0
- package/dist/CustomDomain.js.map +1 -0
- package/dist/CustomDomainDashboard.js +2283 -0
- package/dist/CustomDomainDashboard.js.map +1 -0
- package/dist/{DateFormat/index.js → DateFormat.js} +25 -8
- package/dist/DateFormat.js.map +1 -0
- package/dist/DateRangeFilter.js +229 -0
- package/dist/DateRangeFilter.js.map +1 -0
- package/dist/DynamicVariables.js +183 -0
- package/dist/DynamicVariables.js.map +1 -0
- package/dist/EmailForm.js +2291 -0
- package/dist/EmailForm.js.map +1 -0
- package/dist/EmailPreview.js +1353 -0
- package/dist/EmailPreview.js.map +1 -0
- package/dist/{ErrorPage/constants.js → ErrorPage.js} +137 -36
- package/dist/ErrorPage.js.map +1 -0
- package/dist/Header.js +122 -0
- package/dist/Header.js.map +1 -0
- package/dist/IconPicker.js +313 -0
- package/dist/IconPicker.js.map +1 -0
- package/dist/ImageWithFallback.js +181 -0
- package/dist/ImageWithFallback.js.map +1 -0
- package/dist/IntegrationCard.js +343 -0
- package/dist/IntegrationCard.js.map +1 -0
- package/dist/IntegrationDisconnectAlert.js +80 -0
- package/dist/IntegrationDisconnectAlert.js.map +1 -0
- package/dist/{IntegrationWalkthroughModal/index.js → IntegrationWalkthroughModal.js} +8 -6
- package/dist/IntegrationWalkthroughModal.js.map +1 -0
- package/dist/IpRestriction.js +857 -0
- package/dist/IpRestriction.js.map +1 -0
- package/dist/KeyboardShortcuts.js +359 -0
- package/dist/KeyboardShortcuts.js.map +1 -0
- package/dist/LoginPage.js +593 -0
- package/dist/LoginPage.js.map +1 -0
- package/dist/MenuBar.js +1461 -0
- package/dist/MenuBar.js.map +1 -0
- package/dist/Metadata.js +206 -0
- package/dist/Metadata.js.map +1 -0
- package/dist/{MoreDropdown/index.js → MoreDropdown.js} +102 -9
- package/dist/MoreDropdown.js.map +1 -0
- package/dist/NavigationHeader.js +690 -0
- package/dist/NavigationHeader.js.map +1 -0
- package/dist/NeetoWidget.js +1333 -0
- package/dist/NeetoWidget.js.map +1 -0
- package/dist/PageLoader.js +134 -0
- package/dist/PageLoader.js.map +1 -0
- package/dist/PhoneNumber.js +365 -0
- package/dist/PhoneNumber.js.map +1 -0
- package/dist/PublishBlock.js +158 -0
- package/dist/PublishBlock.js.map +1 -0
- package/dist/Rename.js +450 -0
- package/dist/Rename.js.map +1 -0
- package/dist/ResponsiveDevicePicker.js +194 -0
- package/dist/ResponsiveDevicePicker.js.map +1 -0
- package/dist/Schedule.js +1046 -0
- package/dist/Schedule.js.map +1 -0
- package/dist/Scrollable.js +122 -0
- package/dist/Scrollable.js.map +1 -0
- package/dist/Search.js +151 -0
- package/dist/Search.js.map +1 -0
- package/dist/Security.js +1835 -0
- package/dist/Security.js.map +1 -0
- package/dist/SendToFields.js +601 -0
- package/dist/SendToFields.js.map +1 -0
- package/dist/Settings.js +435 -0
- package/dist/Settings.js.map +1 -0
- package/dist/ShareViaEmail.js +2277 -0
- package/dist/ShareViaEmail.js.map +1 -0
- package/dist/ShareViaLink.js +628 -0
- package/dist/ShareViaLink.js.map +1 -0
- package/dist/Sidebar.js +972 -0
- package/dist/Sidebar.js.map +1 -0
- package/dist/SubHeader.js +216 -0
- package/dist/SubHeader.js.map +1 -0
- package/dist/{TableWrapper/index.js → TableWrapper.js} +6 -3
- package/dist/TableWrapper.js.map +1 -0
- package/dist/ThemeSidebar.js +1984 -0
- package/dist/ThemeSidebar.js.map +1 -0
- package/dist/TimeFormat.js +47 -0
- package/dist/TimeFormat.js.map +1 -0
- package/dist/TimezoneMismatchModal.js +168 -0
- package/dist/TimezoneMismatchModal.js.map +1 -0
- package/dist/ToggleFeatureCard.js +323 -0
- package/dist/ToggleFeatureCard.js.map +1 -0
- package/package.json +22 -13
- package/dist/AutoSaveInput/autosaveinput.scss +0 -15
- package/dist/AutoSaveInput/constants.js +0 -13
- package/dist/AutoSaveInput/index.js +0 -124
- package/dist/AutoSaveInput/utils.js +0 -10
- package/dist/Breadcrumbs/breadcrumbs.scss +0 -33
- package/dist/Breadcrumbs/index.js +0 -31
- package/dist/BrowserSupport/Callout.js +0 -15
- package/dist/BrowserSupport/ContactUs.js +0 -21
- package/dist/BrowserSupport/DownloadLink.js +0 -17
- package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +0 -17
- package/dist/BrowserSupport/UnknownBrowser.js +0 -13
- package/dist/BrowserSupport/UnsupportedBrowser.js +0 -24
- package/dist/BrowserSupport/UnsupportedBrowserMessage.js +0 -22
- package/dist/BrowserSupport/UnsupportedBrowserVersion.js +0 -27
- package/dist/BrowserSupport/UnsupportedVersionMessage.js +0 -30
- package/dist/BrowserSupport/browsersupport.scss +0 -71
- package/dist/BrowserSupport/constants.js +0 -63
- package/dist/BrowserSupport/index.js +0 -58
- package/dist/BrowserSupport/utils.js +0 -32
- package/dist/Builder/Body.js +0 -9
- package/dist/Builder/ElementsPanel/ElementsList/Element.js +0 -27
- package/dist/Builder/ElementsPanel/ElementsList/Section.js +0 -28
- package/dist/Builder/ElementsPanel/ElementsList/TitleBar.js +0 -28
- package/dist/Builder/ElementsPanel/ElementsList/index.js +0 -63
- package/dist/Builder/ElementsPanel/SelectedElementsList/SelectedElement.js +0 -73
- package/dist/Builder/ElementsPanel/SelectedElementsList/TitleBar.js +0 -50
- package/dist/Builder/ElementsPanel/SelectedElementsList/index.js +0 -91
- package/dist/Builder/ElementsPanel/index.js +0 -70
- package/dist/Builder/PropertiesPanel/EmptyProperty.js +0 -21
- package/dist/Builder/PropertiesPanel/Skeleton.js +0 -24
- package/dist/Builder/PropertiesPanel/index.js +0 -12
- package/dist/Builder/index.js +0 -3
- package/dist/Builder/styles.scss +0 -84
- package/dist/CalendarView/CustomDatePicker.js +0 -87
- package/dist/CalendarView/Header.js +0 -53
- package/dist/CalendarView/constants.js +0 -19
- package/dist/CalendarView/index.js +0 -83
- package/dist/CalendarView/utils.js +0 -50
- package/dist/Codeblock/index.js +0 -30
- package/dist/Columns/utils.js +0 -20
- package/dist/ConfirmationModal/constants.js +0 -3
- package/dist/ConfirmationModal/utils.js +0 -6
- package/dist/Container/container.scss +0 -21
- package/dist/Container/index.js +0 -23
- package/dist/CopyToClipboardButton/constants.js +0 -13
- package/dist/CopyToClipboardButton/copyToClipboard.scss +0 -22
- package/dist/CopyToClipboardButton/index.js +0 -59
- package/dist/CustomDomain/index.js +0 -98
- package/dist/CustomDomainDashboard/DeleteAlert.js +0 -28
- package/dist/CustomDomainDashboard/Header.js +0 -32
- package/dist/CustomDomainDashboard/Manage/Record.js +0 -42
- package/dist/CustomDomainDashboard/Manage/StatusInfo.js +0 -21
- package/dist/CustomDomainDashboard/Manage/TagBlock.js +0 -36
- package/dist/CustomDomainDashboard/Manage/constants.js +0 -4
- package/dist/CustomDomainDashboard/Manage/index.js +0 -125
- package/dist/CustomDomainDashboard/Manage/utils.js +0 -8
- package/dist/CustomDomainDashboard/api.js +0 -35
- package/dist/CustomDomainDashboard/constants.js +0 -2
- package/dist/CustomDomainDashboard/index.js +0 -118
- package/dist/CustomDomainDashboard/useCustomDomainApi.js +0 -71
- package/dist/CustomDomainDashboard/utils.js +0 -84
- package/dist/DateRangeFilter/index.js +0 -60
- package/dist/DateRangeFilter/utils.js +0 -113
- package/dist/DynamicVariables/dynamic-variables.scss +0 -34
- package/dist/DynamicVariables/index.js +0 -59
- package/dist/DynamicVariables/utils.js +0 -37
- package/dist/EmailForm/EmailForm.js +0 -98
- package/dist/EmailForm/EmailFormProvider.js +0 -45
- package/dist/EmailForm/EmailPreview.js +0 -129
- package/dist/EmailForm/ReplyToField.js +0 -55
- package/dist/EmailForm/SendToField.js +0 -28
- package/dist/EmailForm/SubjectField.js +0 -64
- package/dist/EmailForm/constants.js +0 -33
- package/dist/EmailForm/contexts/EmailForm.js +0 -7
- package/dist/EmailForm/index.js +0 -4
- package/dist/EmailForm/utils.js +0 -10
- package/dist/EmailPreview/index.js +0 -2
- package/dist/ErrorPage/index.js +0 -78
- package/dist/Header/Breadcrumbs.js +0 -31
- package/dist/Header/Dropdown.js +0 -12
- package/dist/Header/constants.js +0 -6
- package/dist/Header/header.scss +0 -121
- package/dist/Header/index.js +0 -61
- package/dist/IconPicker/Icon.js +0 -34
- package/dist/IconPicker/NoResults.js +0 -12
- package/dist/IconPicker/constants.js +0 -8
- package/dist/IconPicker/icon-picker.scss +0 -1
- package/dist/IconPicker/index.js +0 -164
- package/dist/ImageWithFallback/ImagePlaceholder.js +0 -16
- package/dist/ImageWithFallback/index.js +0 -31
- package/dist/IntegrationCard/Dropdown.js +0 -45
- package/dist/IntegrationCard/Status.js +0 -25
- package/dist/IntegrationCard/index.js +0 -128
- package/dist/IntegrationDisconnectAlert/index.js +0 -36
- package/dist/IpRestriction/AllowedIpRanges.js +0 -75
- package/dist/IpRestriction/CurrentIp.js +0 -26
- package/dist/IpRestriction/FormRow.js +0 -84
- package/dist/IpRestriction/Row.js +0 -91
- package/dist/IpRestriction/apis/allowed_ip_ranges.js +0 -28
- package/dist/IpRestriction/apis/current_ip.js +0 -11
- package/dist/IpRestriction/apis/ip_restriction.js +0 -16
- package/dist/IpRestriction/constants.js +0 -20
- package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +0 -34
- package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +0 -10
- package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +0 -18
- package/dist/IpRestriction/index.js +0 -102
- package/dist/IpRestriction/utils.js +0 -85
- package/dist/KeyboardShortcuts/Pane/HotKey.js +0 -44
- package/dist/KeyboardShortcuts/Pane/HotKeyList.js +0 -42
- package/dist/KeyboardShortcuts/Pane/constants.js +0 -25
- package/dist/KeyboardShortcuts/Pane/index.js +0 -61
- package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +0 -5
- package/dist/KeyboardShortcuts/Pane/utils.js +0 -66
- package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +0 -31
- package/dist/KeyboardShortcuts/index.js +0 -9
- package/dist/LoginPage/Form.js +0 -57
- package/dist/LoginPage/constants.js +0 -12
- package/dist/LoginPage/index.js +0 -103
- package/dist/MenuBar/AddNew.js +0 -25
- package/dist/MenuBar/Block.js +0 -60
- package/dist/MenuBar/Item.js +0 -32
- package/dist/MenuBar/Search.js +0 -39
- package/dist/MenuBar/SubTitle.js +0 -23
- package/dist/MenuBar/index.js +0 -46
- package/dist/MenuBar/menubar.scss +0 -154
- package/dist/Metadata/Block.js +0 -30
- package/dist/Metadata/DetailsBlock.js +0 -86
- package/dist/Metadata/constants.js +0 -9
- package/dist/Metadata/index.js +0 -29
- package/dist/Metadata/metadata.scss +0 -15
- package/dist/MoreDropdown/constants.js +0 -25
- package/dist/NavigationHeader/LeftBlock.js +0 -32
- package/dist/NavigationHeader/Navigation.js +0 -24
- package/dist/NavigationHeader/RightBlock.js +0 -68
- package/dist/NavigationHeader/constants.js +0 -11
- package/dist/NavigationHeader/index.js +0 -19
- package/dist/NavigationHeader/navigation-header.scss +0 -3
- package/dist/NeetoWidget/CodeBlock.js +0 -57
- package/dist/NeetoWidget/CodeSnippet.js +0 -119
- package/dist/NeetoWidget/EmbedCode.js +0 -281
- package/dist/NeetoWidget/Main.js +0 -19
- package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +0 -25
- package/dist/NeetoWidget/SelectionSwitches/index.js +0 -44
- package/dist/NeetoWidget/SyntaxHighlighter.js +0 -17
- package/dist/NeetoWidget/api.js +0 -20
- package/dist/NeetoWidget/constants.js +0 -62
- package/dist/NeetoWidget/hooks/useForceUpdate.js +0 -14
- package/dist/NeetoWidget/index.js +0 -7
- package/dist/NeetoWidget/mutations.js +0 -9
- package/dist/NeetoWidget/queries.js +0 -32
- package/dist/NeetoWidget/utils.js +0 -83
- package/dist/PageLoader/index.js +0 -81
- package/dist/PageLoader/page-loader.scss +0 -95
- package/dist/PhoneNumber/CountryPicker/SingleValue.js +0 -21
- package/dist/PhoneNumber/CountryPicker/constants.js +0 -26
- package/dist/PhoneNumber/CountryPicker/index.js +0 -59
- package/dist/PhoneNumber/FormikPhoneNumberInput.js +0 -21
- package/dist/PhoneNumber/PhoneNumber.js +0 -30
- package/dist/PhoneNumber/PhoneNumberInput.js +0 -79
- package/dist/PhoneNumber/index.js +0 -5
- package/dist/PhoneNumber/utils.js +0 -55
- package/dist/PublishBlock/AlertBlock.js +0 -14
- package/dist/PublishBlock/index.js +0 -100
- package/dist/PublishBlock/publish-block.scss +0 -25
- package/dist/Rename/DummySpan.js +0 -21
- package/dist/Rename/constants.js +0 -1
- package/dist/Rename/index.js +0 -191
- package/dist/Rename/rename.scss +0 -69
- package/dist/Rename/utils.js +0 -10
- package/dist/ResponsiveDevicePicker/constants.js +0 -19
- package/dist/ResponsiveDevicePicker/index.js +0 -36
- package/dist/Schedule/DisplayAvailability.js +0 -58
- package/dist/Schedule/Fields.js +0 -43
- package/dist/Schedule/Form/ScheduleRow.js +0 -125
- package/dist/Schedule/Form/constants.js +0 -20
- package/dist/Schedule/Form/index.js +0 -144
- package/dist/Schedule/Form/utils.js +0 -63
- package/dist/Schedule/Header.js +0 -76
- package/dist/Schedule/ScheduleContext.js +0 -8
- package/dist/Schedule/constants.js +0 -8
- package/dist/Schedule/dayjsExtended/constants.js +0 -1
- package/dist/Schedule/dayjsExtended/index.js +0 -14
- package/dist/Schedule/dayjsExtended/range.js +0 -73
- package/dist/Schedule/index.js +0 -80
- package/dist/Schedule/utils.js +0 -152
- package/dist/Scrollable/constants.js +0 -8
- package/dist/Scrollable/index.js +0 -26
- package/dist/Scrollable/scrollable.scss +0 -32
- package/dist/Search/index.js +0 -52
- package/dist/Security/AllowedKeywords/Add.js +0 -38
- package/dist/Security/AllowedKeywords/index.js +0 -38
- package/dist/Security/PasswordBlock.js +0 -31
- package/dist/Security/RadioBlock.js +0 -38
- package/dist/Security/api.js +0 -12
- package/dist/Security/constants.js +0 -58
- package/dist/Security/index.js +0 -68
- package/dist/Security/useSecurityApi.js +0 -22
- package/dist/Security/utils.js +0 -31
- package/dist/SendToFields/FilePicker.js +0 -34
- package/dist/SendToFields/constants.js +0 -6
- package/dist/SendToFields/index.js +0 -102
- package/dist/SendToFields/utils.js +0 -54
- package/dist/Settings/Category.js +0 -30
- package/dist/Settings/Item.js +0 -38
- package/dist/Settings/index.js +0 -37
- package/dist/Settings/utils.js +0 -4
- package/dist/ShareViaEmail/EmailBodyEditor.js +0 -22
- package/dist/ShareViaEmail/FilePicker.js +0 -43
- package/dist/ShareViaEmail/Form.js +0 -105
- package/dist/ShareViaEmail/FormikDatePicker.js +0 -24
- package/dist/ShareViaEmail/constants.js +0 -14
- package/dist/ShareViaEmail/index.js +0 -92
- package/dist/ShareViaEmail/utils.js +0 -72
- package/dist/ShareViaLink/EditURL.js +0 -74
- package/dist/ShareViaLink/Link.js +0 -105
- package/dist/ShareViaLink/QRCode.js +0 -41
- package/dist/ShareViaLink/RegenerateURL.js +0 -47
- package/dist/ShareViaLink/SocialMedia.js +0 -52
- package/dist/ShareViaLink/constants.js +0 -25
- package/dist/ShareViaLink/edit-url.scss +0 -8
- package/dist/ShareViaLink/index.js +0 -46
- package/dist/ShareViaLink/utils.js +0 -47
- package/dist/Sidebar/AppSwitcher/AppLink.js +0 -45
- package/dist/Sidebar/AppSwitcher/Backdrop.js +0 -13
- package/dist/Sidebar/AppSwitcher/Body.js +0 -65
- package/dist/Sidebar/AppSwitcher/Portal.js +0 -27
- package/dist/Sidebar/AppSwitcher/appswitcher.scss +0 -164
- package/dist/Sidebar/AppSwitcher/index.js +0 -47
- package/dist/Sidebar/AppSwitcher/utils.js +0 -25
- package/dist/Sidebar/Chevron.js +0 -14
- package/dist/Sidebar/FeaturedTooltip.js +0 -19
- package/dist/Sidebar/Footer/AppSwitcherButton.js +0 -48
- package/dist/Sidebar/Footer/ProfileButton.js +0 -30
- package/dist/Sidebar/Footer/index.js +0 -56
- package/dist/Sidebar/Footer/utils.js +0 -39
- package/dist/Sidebar/Header.js +0 -33
- package/dist/Sidebar/HelpSection/HelpSectionMenu.js +0 -52
- package/dist/Sidebar/HelpSection/index.js +0 -32
- package/dist/Sidebar/Links.js +0 -112
- package/dist/Sidebar/NavIconWrapper.js +0 -20
- package/dist/Sidebar/ProfileSection/LinkSection.js +0 -36
- package/dist/Sidebar/ProfileSection/ProfileMenu.js +0 -48
- package/dist/Sidebar/ProfileSection/index.js +0 -42
- package/dist/Sidebar/constants.js +0 -40
- package/dist/Sidebar/index.js +0 -94
- package/dist/Sidebar/sidebar.scss +0 -379
- package/dist/Sidebar/utils.js +0 -18
- package/dist/SubHeader/RightBlock/Columns.js +0 -35
- package/dist/SubHeader/RightBlock/Download.js +0 -28
- package/dist/SubHeader/RightBlock/Filter.js +0 -31
- package/dist/SubHeader/RightBlock/index.js +0 -21
- package/dist/SubHeader/RightBlock/utils.js +0 -13
- package/dist/SubHeader/index.js +0 -28
- package/dist/SubHeader/subheader.scss +0 -78
- package/dist/ThemeSidebar/Customize/Logo.js +0 -39
- package/dist/ThemeSidebar/Customize/Properties.js +0 -170
- package/dist/ThemeSidebar/Customize/index.js +0 -66
- package/dist/ThemeSidebar/Themes/ThemeCard.js +0 -135
- package/dist/ThemeSidebar/Themes/index.js +0 -110
- package/dist/ThemeSidebar/TitleBar.js +0 -62
- package/dist/ThemeSidebar/constants.js +0 -127
- package/dist/ThemeSidebar/fields/AlignmentBlock.js +0 -50
- package/dist/ThemeSidebar/fields/Card.js +0 -19
- package/dist/ThemeSidebar/fields/ColorBlock.js +0 -19
- package/dist/ThemeSidebar/fields/FontPickerBlock.js +0 -35
- package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +0 -67
- package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +0 -22
- package/dist/ThemeSidebar/fields/ImageBlock/index.js +0 -55
- package/dist/ThemeSidebar/fields/SelectBlock.js +0 -24
- package/dist/ThemeSidebar/fields/SliderBlock.js +0 -30
- package/dist/ThemeSidebar/fields/SwitchBlock.js +0 -17
- package/dist/ThemeSidebar/fields/TextBlock.js +0 -13
- package/dist/ThemeSidebar/fields/slider.scss +0 -199
- package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +0 -149
- package/dist/ThemeSidebar/index.js +0 -118
- package/dist/ThemeSidebar/themeSidebar.scss +0 -45
- package/dist/ThemeSidebar/utils.js +0 -169
- package/dist/TimeFormat/index.js +0 -3
- package/dist/TimezoneMismatchModal/apis/time_zone.js +0 -9
- package/dist/TimezoneMismatchModal/index.js +0 -83
- package/dist/TimezoneMismatchModal/useTimeZoneApi.js +0 -10
- package/dist/TimezoneMismatchModal/utils.js +0 -12
- package/dist/ToggleFeatureCard/ToolTipSwitch.js +0 -31
- package/dist/ToggleFeatureCard/constants.js +0 -5
- package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +0 -11
- package/dist/ToggleFeatureCard/index.js +0 -148
- package/dist/ToggleFeatureCard/toggleFeatureCard.scss +0 -4
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import EmptyProperty from "./EmptyProperty";
|
|
3
|
-
import Skeleton from "./Skeleton";
|
|
4
|
-
import "../styles.scss";
|
|
5
|
-
var PropertiesPanel = function PropertiesPanel(_ref) {
|
|
6
|
-
var children = _ref.children;
|
|
7
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
8
|
-
className: "neeto-molecules-builder-element-properties-panel neeto-ui-bg-gray-100"
|
|
9
|
-
}, children !== null && children !== void 0 ? children : /*#__PURE__*/React.createElement(Skeleton, null));
|
|
10
|
-
};
|
|
11
|
-
PropertiesPanel.EmptyProperty = EmptyProperty;
|
|
12
|
-
export default PropertiesPanel;
|
package/dist/Builder/index.js
DELETED
package/dist/Builder/styles.scss
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--neeto-molecule-builder-left-sidebar-width: 360px;
|
|
3
|
-
--neeto-molecule-builder-left-sidebar-header-height: 70px;
|
|
4
|
-
--neeto-molecule-builder-left-sidebar-search-height: 40px;
|
|
5
|
-
--neeto-molecule-builder-right-sidebar-width: 420px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.neeto-molecules-builder-elements-list-panel {
|
|
9
|
-
width: var(--neeto-molecule-builder-left-sidebar-width);
|
|
10
|
-
min-width: var(--neeto-molecule-builder-left-sidebar-width);
|
|
11
|
-
height: 100%;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.neeto-molecules-builder-questions-list-panel__scroll {
|
|
15
|
-
height: calc(100% - var(--neeto-molecule-builder-left-sidebar-header-height));
|
|
16
|
-
padding: 8px 24px;
|
|
17
|
-
overflow-y: auto;
|
|
18
|
-
|
|
19
|
-
&.neeto-molecules-builder-questions-list-panel__scroll--small {
|
|
20
|
-
height: calc(
|
|
21
|
-
100% - var(--neeto-molecule-builder-left-sidebar-header-height) -
|
|
22
|
-
var(--neeto-molecule-builder-left-sidebar-search-height)
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.neeto-molecules-builder-elements-list {
|
|
28
|
-
margin-bottom: 24px;
|
|
29
|
-
|
|
30
|
-
.neeto-ui-accordion__wrapper {
|
|
31
|
-
border-bottom: none;
|
|
32
|
-
|
|
33
|
-
.neeto-ui-accordion__item {
|
|
34
|
-
padding: 12px 0;
|
|
35
|
-
|
|
36
|
-
.neeto-ui-accordion__item-handle {
|
|
37
|
-
font-size: var(--neeto-ui-text-xs);
|
|
38
|
-
font-weight: var(--neeto-ui-font-semibold);
|
|
39
|
-
text-transform: uppercase;
|
|
40
|
-
color: rgb(var(--neeto-ui-gray-600));
|
|
41
|
-
transition: var(--neeto-ui-transition);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.neeto-ui-accordion__item-toggle-icon {
|
|
45
|
-
transform: rotate(90deg) !important;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&:hover {
|
|
49
|
-
background-color: transparent;
|
|
50
|
-
|
|
51
|
-
.neeto-ui-accordion__item-handle {
|
|
52
|
-
color: rgb(var(--neeto-ui-gray-800));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.neeto-ui-accordion__item--open {
|
|
57
|
-
.neeto-ui-accordion__item-handle {
|
|
58
|
-
color: rgb(var(--neeto-ui-gray-800));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.neeto-ui-accordion__item-toggle-icon {
|
|
62
|
-
transform: rotate(270deg) !important;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.neeto-ui-accordion__drop {
|
|
68
|
-
padding: 0;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.neeto-molecules-builder-element-properties-panel {
|
|
74
|
-
width: var(--neeto-molecule-builder-right-sidebar-width);
|
|
75
|
-
min-width: var(--neeto-molecule-builder-right-sidebar-width);
|
|
76
|
-
height: 100%;
|
|
77
|
-
padding-top: 24px;
|
|
78
|
-
padding-left: 24px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.neeto-molecules-builder-element--active {
|
|
82
|
-
border-color: rgb(var(--neeto-ui-primary-500)) !important;
|
|
83
|
-
box-shadow: 0px 0px 0px 1px rgb(var(--neeto-ui-primary-500)) !important;
|
|
84
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["selectedDate", "setSelectedDate", "picker"];
|
|
6
|
-
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; }
|
|
7
|
-
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; }
|
|
8
|
-
import React, { useRef, useState } from "react";
|
|
9
|
-
import dayjs from "dayjs";
|
|
10
|
-
import { Down, Left, Right } from "@bigbinary/neeto-icons";
|
|
11
|
-
import { Typography, Button, DatePicker } from "@bigbinary/neetoui";
|
|
12
|
-
import { getFormattedRangeStr } from "./utils";
|
|
13
|
-
var CustomDatePicker = function CustomDatePicker(_ref) {
|
|
14
|
-
var selectedDate = _ref.selectedDate,
|
|
15
|
-
setSelectedDate = _ref.setSelectedDate,
|
|
16
|
-
picker = _ref.picker,
|
|
17
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
-
var _useState = useState(false),
|
|
19
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
20
|
-
isOpen = _useState2[0],
|
|
21
|
-
setIsOpen = _useState2[1];
|
|
22
|
-
var datePickerRef = useRef(null);
|
|
23
|
-
var buttonRef = useRef(null);
|
|
24
|
-
var selectedRangeStr = getFormattedRangeStr(selectedDate, picker);
|
|
25
|
-
var onPrevious = function onPrevious() {
|
|
26
|
-
return setSelectedDate(function (selectedDate) {
|
|
27
|
-
return selectedDate.subtract(1, picker);
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
var onNext = function onNext() {
|
|
31
|
-
return setSelectedDate(function (selectedDate) {
|
|
32
|
-
return selectedDate.add(1, picker);
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
var onToday = function onToday() {
|
|
36
|
-
return setSelectedDate(dayjs());
|
|
37
|
-
};
|
|
38
|
-
var handleButtonMouseDown = function handleButtonMouseDown(e) {
|
|
39
|
-
if (buttonRef.current && buttonRef.current.contains(e.target)) {
|
|
40
|
-
e.stopPropagation();
|
|
41
|
-
if (isOpen) datePickerRef.current.focus();
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
45
|
-
className: "flex items-center justify-start space-x-4"
|
|
46
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
47
|
-
label: "Today",
|
|
48
|
-
style: "secondary",
|
|
49
|
-
onClick: onToday
|
|
50
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
51
|
-
className: "flex"
|
|
52
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
53
|
-
className: "mr-1",
|
|
54
|
-
icon: Left,
|
|
55
|
-
style: "text",
|
|
56
|
-
onClick: onPrevious
|
|
57
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
58
|
-
icon: Down,
|
|
59
|
-
ref: buttonRef,
|
|
60
|
-
style: "text",
|
|
61
|
-
onClick: function onClick() {
|
|
62
|
-
return setIsOpen(function (isOpen) {
|
|
63
|
-
return !isOpen;
|
|
64
|
-
});
|
|
65
|
-
},
|
|
66
|
-
onMouseDown: handleButtonMouseDown
|
|
67
|
-
}, /*#__PURE__*/React.createElement(Typography, {
|
|
68
|
-
style: "h5"
|
|
69
|
-
}, selectedRangeStr)), /*#__PURE__*/React.createElement(DatePicker, _extends({
|
|
70
|
-
className: "invisible w-0 px-0",
|
|
71
|
-
defaultValue: selectedDate,
|
|
72
|
-
open: isOpen,
|
|
73
|
-
placement: "topRight",
|
|
74
|
-
ref: datePickerRef,
|
|
75
|
-
value: selectedDate,
|
|
76
|
-
onChange: setSelectedDate,
|
|
77
|
-
onOpenChange: setIsOpen
|
|
78
|
-
}, _objectSpread({
|
|
79
|
-
picker: picker
|
|
80
|
-
}, otherProps))), /*#__PURE__*/React.createElement(Button, {
|
|
81
|
-
className: "ml-1",
|
|
82
|
-
icon: Right,
|
|
83
|
-
style: "text",
|
|
84
|
-
onClick: onNext
|
|
85
|
-
})));
|
|
86
|
-
};
|
|
87
|
-
export default CustomDatePicker;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from "react";
|
|
2
|
-
import { capitalize } from "@bigbinary/neeto-commons-frontend/pure";
|
|
3
|
-
import { Button, Dropdown } from "@bigbinary/neetoui";
|
|
4
|
-
import { prop, values } from "ramda";
|
|
5
|
-
import CustomDatePicker from "./CustomDatePicker";
|
|
6
|
-
var Header = function Header(_ref) {
|
|
7
|
-
var calendarRef = _ref.calendarRef,
|
|
8
|
-
selectedView = _ref.selectedView,
|
|
9
|
-
setSelectedView = _ref.setSelectedView,
|
|
10
|
-
setSelectedDate = _ref.setSelectedDate,
|
|
11
|
-
selectedDate = _ref.selectedDate,
|
|
12
|
-
calenderViewOptions = _ref.calenderViewOptions;
|
|
13
|
-
var Menu = Dropdown.Menu,
|
|
14
|
-
MenuItem = Dropdown.MenuItem;
|
|
15
|
-
var handleViewSelection = function handleViewSelection(option) {
|
|
16
|
-
setSelectedView(option);
|
|
17
|
-
calendarRef.current.calendar.changeView(option.fullCalendarView);
|
|
18
|
-
};
|
|
19
|
-
var navigateToSelectedDate = function navigateToSelectedDate() {
|
|
20
|
-
var _calendarRef$current, _calendarRef$current$;
|
|
21
|
-
return calendarRef === null || calendarRef === void 0 ? void 0 : (_calendarRef$current = calendarRef.current) === null || _calendarRef$current === void 0 ? void 0 : (_calendarRef$current$ = _calendarRef$current.calendar) === null || _calendarRef$current$ === void 0 ? void 0 : _calendarRef$current$.gotoDate(selectedDate.format("YYYY-MM-DD"));
|
|
22
|
-
};
|
|
23
|
-
useEffect(function () {
|
|
24
|
-
setTimeout(navigateToSelectedDate);
|
|
25
|
-
}, [selectedDate]);
|
|
26
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
-
className: "flex space-x-4"
|
|
28
|
-
}, /*#__PURE__*/React.createElement(CustomDatePicker, {
|
|
29
|
-
getPopupContainer: prop("parentNode"),
|
|
30
|
-
picker: selectedView.picker,
|
|
31
|
-
selectedDate: selectedDate,
|
|
32
|
-
setSelectedDate: setSelectedDate
|
|
33
|
-
}), Object.keys(calenderViewOptions).length === 1 ? /*#__PURE__*/React.createElement(Button, {
|
|
34
|
-
className: "pointer-events-none",
|
|
35
|
-
label: calenderViewOptions[Object.keys(calenderViewOptions)[0]].label,
|
|
36
|
-
style: "secondary"
|
|
37
|
-
}) : /*#__PURE__*/React.createElement(Dropdown, {
|
|
38
|
-
buttonProps: {
|
|
39
|
-
"data-testid": "calendar-view-dropdown"
|
|
40
|
-
},
|
|
41
|
-
buttonStyle: "secondary",
|
|
42
|
-
label: capitalize(selectedView.label)
|
|
43
|
-
}, /*#__PURE__*/React.createElement(Menu, null, values(calenderViewOptions).map(function (option, idx) {
|
|
44
|
-
return /*#__PURE__*/React.createElement(MenuItem.Button, {
|
|
45
|
-
isActive: selectedView === option,
|
|
46
|
-
key: idx,
|
|
47
|
-
onClick: function onClick() {
|
|
48
|
-
return handleViewSelection(option);
|
|
49
|
-
}
|
|
50
|
-
}, capitalize(option.label));
|
|
51
|
-
}))));
|
|
52
|
-
};
|
|
53
|
-
export default Header;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
var _VIEW_OPTIONS;
|
|
3
|
-
import { t } from "i18next";
|
|
4
|
-
var WEEKLY_VIEW = t("neetoMolecules.calendarView.weekly");
|
|
5
|
-
var MONTHLY_VIEW = t("neetoMolecules.calendarView.monthly");
|
|
6
|
-
var DAILY_VIEW = t("neetoMolecules.calendarView.daily");
|
|
7
|
-
export var VIEW_OPTIONS = (_VIEW_OPTIONS = {}, _defineProperty(_VIEW_OPTIONS, DAILY_VIEW, {
|
|
8
|
-
label: DAILY_VIEW,
|
|
9
|
-
fullCalendarView: "timeGridDay",
|
|
10
|
-
picker: "day"
|
|
11
|
-
}), _defineProperty(_VIEW_OPTIONS, WEEKLY_VIEW, {
|
|
12
|
-
label: WEEKLY_VIEW,
|
|
13
|
-
fullCalendarView: "timeGridWeek",
|
|
14
|
-
picker: "week"
|
|
15
|
-
}), _defineProperty(_VIEW_OPTIONS, MONTHLY_VIEW, {
|
|
16
|
-
label: MONTHLY_VIEW,
|
|
17
|
-
fullCalendarView: "dayGridMonth",
|
|
18
|
-
picker: "month"
|
|
19
|
-
}), _VIEW_OPTIONS);
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["viewOptions", "events", "handleDateClick", "handleEventClick", "eventClassNames", "dayCellClassNames", "dayMaxEvents", "eventMaxStack"];
|
|
6
|
-
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; }
|
|
7
|
-
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; }
|
|
8
|
-
import React, { useRef, useState } from "react";
|
|
9
|
-
import dayGridPlugin from "@fullcalendar/daygrid";
|
|
10
|
-
import interactionPlugin from "@fullcalendar/interaction";
|
|
11
|
-
import FullCalendar from "@fullcalendar/react";
|
|
12
|
-
import timeGridPlugin from "@fullcalendar/timegrid";
|
|
13
|
-
import dayjs from "dayjs";
|
|
14
|
-
import { noop } from "@bigbinary/neeto-commons-frontend/pure";
|
|
15
|
-
import { Typography } from "@bigbinary/neetoui";
|
|
16
|
-
import { useTranslation } from "react-i18next";
|
|
17
|
-
import SubHeader from "../SubHeader";
|
|
18
|
-
import { VIEW_OPTIONS } from "./constants";
|
|
19
|
-
import Header from "./Header";
|
|
20
|
-
var CalendarView = function CalendarView(_ref) {
|
|
21
|
-
var _ref$viewOptions = _ref.viewOptions,
|
|
22
|
-
viewOptions = _ref$viewOptions === void 0 ? VIEW_OPTIONS : _ref$viewOptions,
|
|
23
|
-
_ref$events = _ref.events,
|
|
24
|
-
events = _ref$events === void 0 ? [] : _ref$events,
|
|
25
|
-
_ref$handleDateClick = _ref.handleDateClick,
|
|
26
|
-
handleDateClick = _ref$handleDateClick === void 0 ? noop : _ref$handleDateClick,
|
|
27
|
-
_ref$handleEventClick = _ref.handleEventClick,
|
|
28
|
-
handleEventClick = _ref$handleEventClick === void 0 ? noop : _ref$handleEventClick,
|
|
29
|
-
_ref$eventClassNames = _ref.eventClassNames,
|
|
30
|
-
eventClassNames = _ref$eventClassNames === void 0 ? "" : _ref$eventClassNames,
|
|
31
|
-
_ref$dayCellClassName = _ref.dayCellClassNames,
|
|
32
|
-
dayCellClassNames = _ref$dayCellClassName === void 0 ? "" : _ref$dayCellClassName,
|
|
33
|
-
dayMaxEvents = _ref.dayMaxEvents,
|
|
34
|
-
eventMaxStack = _ref.eventMaxStack,
|
|
35
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
36
|
-
var calenderViewOptions = viewOptions || VIEW_OPTIONS;
|
|
37
|
-
var _useState = useState(calenderViewOptions[Object.keys(calenderViewOptions)[0]]),
|
|
38
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
39
|
-
selectedView = _useState2[0],
|
|
40
|
-
setSelectedView = _useState2[1];
|
|
41
|
-
var _useState3 = useState(dayjs()),
|
|
42
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
|
-
selectedDate = _useState4[0],
|
|
44
|
-
setSelectedDate = _useState4[1];
|
|
45
|
-
var _useTranslation = useTranslation(),
|
|
46
|
-
t = _useTranslation.t;
|
|
47
|
-
var calendarRef = useRef();
|
|
48
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
-
className: "flex-col",
|
|
50
|
-
"data-testid": "calendar-view"
|
|
51
|
-
}, /*#__PURE__*/React.createElement(SubHeader, {
|
|
52
|
-
leftActionBlock: /*#__PURE__*/React.createElement(Typography, {
|
|
53
|
-
style: "h2"
|
|
54
|
-
}, selectedDate.format("MMMM, YYYY")),
|
|
55
|
-
rightActionBlock: /*#__PURE__*/React.createElement(Header, {
|
|
56
|
-
calendarRef: calendarRef,
|
|
57
|
-
calenderViewOptions: calenderViewOptions,
|
|
58
|
-
selectedDate: selectedDate,
|
|
59
|
-
selectedView: selectedView,
|
|
60
|
-
setSelectedDate: setSelectedDate,
|
|
61
|
-
setSelectedView: setSelectedView
|
|
62
|
-
})
|
|
63
|
-
}), /*#__PURE__*/React.createElement(FullCalendar, _extends({
|
|
64
|
-
expandRows: true,
|
|
65
|
-
allDayText: t("neetoMolecules.calendarView.allDay"),
|
|
66
|
-
dateClick: handleDateClick,
|
|
67
|
-
dayHeaderClassNames: "p-2",
|
|
68
|
-
displayEventTime: false,
|
|
69
|
-
eventClick: handleEventClick,
|
|
70
|
-
headerToolbar: false,
|
|
71
|
-
height: "auto",
|
|
72
|
-
initialView: selectedView.fullCalendarView,
|
|
73
|
-
plugins: [dayGridPlugin, timeGridPlugin, interactionPlugin],
|
|
74
|
-
ref: calendarRef
|
|
75
|
-
}, _objectSpread({
|
|
76
|
-
dayCellClassNames: dayCellClassNames,
|
|
77
|
-
dayMaxEvents: dayMaxEvents,
|
|
78
|
-
eventClassNames: eventClassNames,
|
|
79
|
-
eventMaxStack: eventMaxStack,
|
|
80
|
-
events: events
|
|
81
|
-
}, otherProps))));
|
|
82
|
-
};
|
|
83
|
-
export default CalendarView;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import dayjs from "dayjs";
|
|
2
|
-
var getWeekString = function getWeekString(_ref) {
|
|
3
|
-
var date = _ref.date,
|
|
4
|
-
_ref$isStartOfWeek = _ref.isStartOfWeek,
|
|
5
|
-
isStartOfWeek = _ref$isStartOfWeek === void 0 ? true : _ref$isStartOfWeek,
|
|
6
|
-
_ref$showMonth = _ref.showMonth,
|
|
7
|
-
showMonth = _ref$showMonth === void 0 ? false : _ref$showMonth,
|
|
8
|
-
_ref$showYear = _ref.showYear,
|
|
9
|
-
showYear = _ref$showYear === void 0 ? false : _ref$showYear;
|
|
10
|
-
return "".concat(showMonth || isStartOfWeek ? date.format("MMM") : "", " ").concat(date.date(), " ").concat(showYear || !isStartOfWeek ? date.format("YYYY") : "");
|
|
11
|
-
};
|
|
12
|
-
export var getStartOfWeek = function getStartOfWeek(date) {
|
|
13
|
-
return dayjs(date).startOf("week");
|
|
14
|
-
};
|
|
15
|
-
export var getEndOfWeek = function getEndOfWeek(date) {
|
|
16
|
-
return dayjs(date).endOf("week");
|
|
17
|
-
};
|
|
18
|
-
export var getFormattedMonthStr = function getFormattedMonthStr(date) {
|
|
19
|
-
return date.format("MMM YYYY");
|
|
20
|
-
};
|
|
21
|
-
export var getFormattedWeekRangeStr = function getFormattedWeekRangeStr(date) {
|
|
22
|
-
var startOfWeek = getStartOfWeek(date);
|
|
23
|
-
var endOfWeek = getEndOfWeek(date);
|
|
24
|
-
var shouldShowMonthsSeparately = startOfWeek.month() !== endOfWeek.month();
|
|
25
|
-
var shouldShowYearsSeparately = startOfWeek.year() !== endOfWeek.year();
|
|
26
|
-
var startOfWeekStr = getWeekString({
|
|
27
|
-
date: startOfWeek,
|
|
28
|
-
showMonth: shouldShowMonthsSeparately,
|
|
29
|
-
showYear: shouldShowYearsSeparately
|
|
30
|
-
});
|
|
31
|
-
var endOfWeekStr = getWeekString({
|
|
32
|
-
date: endOfWeek,
|
|
33
|
-
isStartOfWeek: false,
|
|
34
|
-
showMonth: shouldShowMonthsSeparately,
|
|
35
|
-
showYear: shouldShowYearsSeparately
|
|
36
|
-
});
|
|
37
|
-
return "".concat(startOfWeekStr, " - ").concat(endOfWeekStr);
|
|
38
|
-
};
|
|
39
|
-
export var getFormattedDayStr = function getFormattedDayStr(date) {
|
|
40
|
-
return date.format("DD MMM YYYY");
|
|
41
|
-
};
|
|
42
|
-
export var getFormattedRangeStr = function getFormattedRangeStr(date, picker) {
|
|
43
|
-
var formatFunctions = {
|
|
44
|
-
month: getFormattedMonthStr,
|
|
45
|
-
week: getFormattedWeekRangeStr,
|
|
46
|
-
day: getFormattedDayStr
|
|
47
|
-
};
|
|
48
|
-
var selectedFormatter = formatFunctions[picker];
|
|
49
|
-
return selectedFormatter(date);
|
|
50
|
-
};
|
package/dist/Codeblock/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { PrismLight as CodeBlock } from "react-syntax-highlighter";
|
|
4
|
-
import { dracula } from "react-syntax-highlighter/dist/esm/styles/prism";
|
|
5
|
-
import CopyCode from "../CopyToClipboardButton";
|
|
6
|
-
var Codeblock = function Codeblock(_ref) {
|
|
7
|
-
var code = _ref.code,
|
|
8
|
-
_ref$showCopyButton = _ref.showCopyButton,
|
|
9
|
-
showCopyButton = _ref$showCopyButton === void 0 ? true : _ref$showCopyButton,
|
|
10
|
-
codeblockProps = _ref.codeblockProps,
|
|
11
|
-
_ref$copyButtonProps = _ref.copyButtonProps,
|
|
12
|
-
copyButtonProps = _ref$copyButtonProps === void 0 ? {
|
|
13
|
-
label: "Copy"
|
|
14
|
-
} : _ref$copyButtonProps;
|
|
15
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CodeBlock, _extends({
|
|
16
|
-
wrapLines: true,
|
|
17
|
-
"data-cy": "code-block",
|
|
18
|
-
"data-testid": "codeblock-react-highlighter",
|
|
19
|
-
language: "javascript",
|
|
20
|
-
style: dracula
|
|
21
|
-
}, codeblockProps), code), showCopyButton && /*#__PURE__*/React.createElement(CopyCode, _extends({
|
|
22
|
-
className: "absolute top-3 right-3",
|
|
23
|
-
"data-cy": "copy-button",
|
|
24
|
-
"data-testid": "codeblock-copy-button",
|
|
25
|
-
size: "small",
|
|
26
|
-
style: "secondary",
|
|
27
|
-
value: code
|
|
28
|
-
}, copyButtonProps)));
|
|
29
|
-
};
|
|
30
|
-
export default Codeblock;
|
package/dist/Columns/utils.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { existsBy, removeBy } from "@bigbinary/neeto-commons-frontend/pure";
|
|
2
|
-
import { __, filter, includes, toLower, trim } from "ramda";
|
|
3
|
-
export var removeFixedColumns = function removeFixedColumns(fixedColumns, columnData) {
|
|
4
|
-
return removeBy({
|
|
5
|
-
dataIndex: includes(__, fixedColumns)
|
|
6
|
-
}, columnData);
|
|
7
|
-
};
|
|
8
|
-
export var filterBySearchTerm = function filterBySearchTerm(searchTerm, columns) {
|
|
9
|
-
return filter(function (_ref) {
|
|
10
|
-
var title = _ref.title;
|
|
11
|
-
return includes(trim(toLower(searchTerm)), trim(toLower(title)));
|
|
12
|
-
}, columns);
|
|
13
|
-
};
|
|
14
|
-
export var removeDeletedColumns = function removeDeletedColumns(hiddenColumns, columnData) {
|
|
15
|
-
return hiddenColumns.filter(function (hiddenColumn) {
|
|
16
|
-
return existsBy({
|
|
17
|
-
dataIndex: hiddenColumn
|
|
18
|
-
}, columnData);
|
|
19
|
-
});
|
|
20
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
.neeto-molecules-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
justify-content: flex-start;
|
|
5
|
-
align-items: flex-start;
|
|
6
|
-
flex-grow: 1;
|
|
7
|
-
height: 100vh;
|
|
8
|
-
overflow-y: auto;
|
|
9
|
-
padding: 0 40px !important;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.neeto-molecules-container--header-fixed {
|
|
13
|
-
padding: 0 !important;
|
|
14
|
-
|
|
15
|
-
& > .neeto-molecules-header,
|
|
16
|
-
& > .neeto-molecules-subheader,
|
|
17
|
-
& > .neeto-molecules-scrollable {
|
|
18
|
-
padding-left: 40px !important;
|
|
19
|
-
padding-right: 40px !important;
|
|
20
|
-
}
|
|
21
|
-
}
|
package/dist/Container/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from "react";
|
|
2
|
-
import classnames from "classnames";
|
|
3
|
-
import PropTypes from "prop-types";
|
|
4
|
-
import "./container.scss";
|
|
5
|
-
var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6
|
-
var _ref$isHeaderFixed = _ref.isHeaderFixed,
|
|
7
|
-
isHeaderFixed = _ref$isHeaderFixed === void 0 ? false : _ref$isHeaderFixed,
|
|
8
|
-
children = _ref.children;
|
|
9
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
ref: ref,
|
|
11
|
-
className: classnames("neeto-molecules-container", {
|
|
12
|
-
"neeto-molecules-container--header-fixed": isHeaderFixed
|
|
13
|
-
})
|
|
14
|
-
}, children);
|
|
15
|
-
});
|
|
16
|
-
Container.displayName = "Container";
|
|
17
|
-
Container.propTypes = {
|
|
18
|
-
/**
|
|
19
|
-
* Decides whether the `Header` component should be stickied at the top on scroll.
|
|
20
|
-
*/
|
|
21
|
-
isHeaderFixed: PropTypes.bool
|
|
22
|
-
};
|
|
23
|
-
export default Container;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var TIME_OUT = 2000;
|
|
2
|
-
var TOOLTIP_CONFIG = {
|
|
3
|
-
content: "Copied",
|
|
4
|
-
trigger: "click",
|
|
5
|
-
hideAfter: TIME_OUT,
|
|
6
|
-
position: "top"
|
|
7
|
-
};
|
|
8
|
-
var BUTTON_STYLES = {
|
|
9
|
-
primary: "primary",
|
|
10
|
-
secondary: "secondary",
|
|
11
|
-
text: "text"
|
|
12
|
-
};
|
|
13
|
-
export { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.neeto-molecules-copy-button {
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: space-between;
|
|
5
|
-
.neeto-ui-btn {
|
|
6
|
-
&:hover, &:focus, &:active {
|
|
7
|
-
box-shadow: none;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.neeto-molecules-copy-button--active {
|
|
13
|
-
background: rgba(var(--neeto-ui-success-500));
|
|
14
|
-
color: white;
|
|
15
|
-
&.neeto-ui-btn {
|
|
16
|
-
&:hover, &:focus, &:active {
|
|
17
|
-
background: rgba(var(--neeto-ui-success-600));
|
|
18
|
-
color: white;
|
|
19
|
-
box-shadow: none;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["className", "icon", "label", "value", "style"];
|
|
6
|
-
import React, { useState, useEffect, useRef } from "react";
|
|
7
|
-
import classnames from "classnames";
|
|
8
|
-
import { copyToClipboard } from "@bigbinary/neeto-commons-frontend/utils";
|
|
9
|
-
import { Copy, Check } from "@bigbinary/neeto-icons";
|
|
10
|
-
import { Button } from "@bigbinary/neetoui";
|
|
11
|
-
import { TOOLTIP_CONFIG, TIME_OUT, BUTTON_STYLES } from "./constants";
|
|
12
|
-
import "./copyToClipboard.scss";
|
|
13
|
-
var CopyToClipboardButton = function CopyToClipboardButton(_ref) {
|
|
14
|
-
var _classnames;
|
|
15
|
-
var className = _ref.className,
|
|
16
|
-
_ref$icon = _ref.icon,
|
|
17
|
-
icon = _ref$icon === void 0 ? Copy : _ref$icon,
|
|
18
|
-
_ref$label = _ref.label,
|
|
19
|
-
label = _ref$label === void 0 ? "" : _ref$label,
|
|
20
|
-
value = _ref.value,
|
|
21
|
-
style = _ref.style,
|
|
22
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
-
var _useState = useState(false),
|
|
24
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
-
isChecked = _useState2[0],
|
|
26
|
-
setIsChecked = _useState2[1];
|
|
27
|
-
var ref = useRef();
|
|
28
|
-
var onHandleClick = function onHandleClick(event) {
|
|
29
|
-
event.preventDefault();
|
|
30
|
-
copyToClipboard(value, {
|
|
31
|
-
showToastr: false
|
|
32
|
-
});
|
|
33
|
-
setIsChecked(true);
|
|
34
|
-
setTimeout(function () {
|
|
35
|
-
setIsChecked(false);
|
|
36
|
-
}, TIME_OUT); // Reset copied state after 2 seconds
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
useEffect(function () {
|
|
40
|
-
if (ref.current) {
|
|
41
|
-
var buttonWidth = ref.current.clientWidth;
|
|
42
|
-
ref.current.style.minWidth = "".concat(buttonWidth, "px");
|
|
43
|
-
}
|
|
44
|
-
}, []);
|
|
45
|
-
var tooltipProps = label ? null : TOOLTIP_CONFIG;
|
|
46
|
-
var buttonLabel = isChecked && label ? "Copied" : label;
|
|
47
|
-
var buttonIcon = isChecked ? Check : icon;
|
|
48
|
-
return /*#__PURE__*/React.createElement(Button, _extends({
|
|
49
|
-
ref: ref,
|
|
50
|
-
style: style,
|
|
51
|
-
tooltipProps: tooltipProps,
|
|
52
|
-
"data-testid": "copy-button",
|
|
53
|
-
icon: buttonIcon,
|
|
54
|
-
label: buttonLabel,
|
|
55
|
-
className: classnames("neeto-molecules-copy-button", (_classnames = {}, _defineProperty(_classnames, className, className), _defineProperty(_classnames, "neeto-molecules-copy-button--active", isChecked), _classnames)),
|
|
56
|
-
onClick: onHandleClick
|
|
57
|
-
}, otherProps));
|
|
58
|
-
};
|
|
59
|
-
export default CopyToClipboardButton;
|