@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.
Files changed (474) hide show
  1. package/dist/AutoSaveInput/autosaveinput.scss +15 -0
  2. package/dist/AutoSaveInput/constants.js +13 -0
  3. package/dist/AutoSaveInput/index.js +124 -0
  4. package/dist/AutoSaveInput/utils.js +10 -0
  5. package/dist/Breadcrumbs/breadcrumbs.scss +33 -0
  6. package/dist/Breadcrumbs/index.js +31 -0
  7. package/dist/BrowserSupport/Callout.js +15 -0
  8. package/dist/BrowserSupport/ContactUs.js +21 -0
  9. package/dist/BrowserSupport/DownloadLink.js +17 -0
  10. package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +17 -0
  11. package/dist/BrowserSupport/UnknownBrowser.js +13 -0
  12. package/dist/BrowserSupport/UnsupportedBrowser.js +24 -0
  13. package/dist/BrowserSupport/UnsupportedBrowserMessage.js +22 -0
  14. package/dist/BrowserSupport/UnsupportedBrowserVersion.js +27 -0
  15. package/dist/BrowserSupport/UnsupportedVersionMessage.js +30 -0
  16. package/dist/BrowserSupport/browsersupport.scss +71 -0
  17. package/dist/BrowserSupport/constants.js +63 -0
  18. package/dist/BrowserSupport/index.js +58 -0
  19. package/dist/BrowserSupport/utils.js +32 -0
  20. package/dist/CalendarView/CustomDatePicker.js +87 -0
  21. package/dist/CalendarView/Header.js +53 -0
  22. package/dist/CalendarView/constants.js +19 -0
  23. package/dist/CalendarView/index.js +83 -0
  24. package/dist/CalendarView/utils.js +50 -0
  25. package/dist/Codeblock/index.js +30 -0
  26. package/dist/{Columns.js → Columns/index.js} +13 -130
  27. package/dist/Columns/utils.js +20 -0
  28. package/dist/ConfirmationModal/constants.js +3 -0
  29. package/dist/{ConfirmationModal.js → ConfirmationModal/index.js} +7 -23
  30. package/dist/ConfirmationModal/utils.js +10 -0
  31. package/dist/Container/container.scss +21 -0
  32. package/dist/Container/index.js +23 -0
  33. package/dist/CopyToClipboardButton/constants.js +13 -0
  34. package/dist/CopyToClipboardButton/copyToClipboard.scss +22 -0
  35. package/dist/CopyToClipboardButton/index.js +59 -0
  36. package/dist/CustomDomain/index.js +98 -0
  37. package/dist/CustomDomainDashboard/DeleteAlert.js +28 -0
  38. package/dist/CustomDomainDashboard/Header.js +32 -0
  39. package/dist/CustomDomainDashboard/Manage/Record.js +42 -0
  40. package/dist/CustomDomainDashboard/Manage/StatusInfo.js +21 -0
  41. package/dist/CustomDomainDashboard/Manage/TagBlock.js +36 -0
  42. package/dist/CustomDomainDashboard/Manage/constants.js +4 -0
  43. package/dist/CustomDomainDashboard/Manage/index.js +124 -0
  44. package/dist/CustomDomainDashboard/Manage/utils.js +8 -0
  45. package/dist/CustomDomainDashboard/api.js +35 -0
  46. package/dist/CustomDomainDashboard/constants.js +2 -0
  47. package/dist/CustomDomainDashboard/index.js +118 -0
  48. package/dist/CustomDomainDashboard/useCustomDomainApi.js +71 -0
  49. package/dist/CustomDomainDashboard/utils.js +84 -0
  50. package/dist/{DateFormat.js → DateFormat/index.js} +8 -25
  51. package/dist/DateRangeFilter/index.js +60 -0
  52. package/dist/DateRangeFilter/utils.js +113 -0
  53. package/dist/DynamicVariables/dynamic-variables.scss +34 -0
  54. package/dist/DynamicVariables/index.js +59 -0
  55. package/dist/DynamicVariables/utils.js +37 -0
  56. package/dist/EmailForm/EmailForm.js +97 -0
  57. package/dist/EmailForm/EmailFormProvider.js +45 -0
  58. package/dist/EmailForm/EmailPreview.js +129 -0
  59. package/dist/EmailForm/ReplyToField.js +55 -0
  60. package/dist/EmailForm/SendToField.js +27 -0
  61. package/dist/EmailForm/SubjectField.js +64 -0
  62. package/dist/EmailForm/constants.js +33 -0
  63. package/dist/EmailForm/contexts/EmailForm.js +7 -0
  64. package/dist/EmailForm/index.js +4 -0
  65. package/dist/EmailForm/utils.js +10 -0
  66. package/dist/EmailPreview/index.js +2 -0
  67. package/dist/{ErrorPage.js → ErrorPage/constants.js} +36 -175
  68. package/dist/ErrorPage/index.js +78 -0
  69. package/dist/Header/Breadcrumbs.js +31 -0
  70. package/dist/Header/Dropdown.js +12 -0
  71. package/dist/Header/constants.js +6 -0
  72. package/dist/Header/header.scss +121 -0
  73. package/dist/Header/index.js +61 -0
  74. package/dist/IconPicker/Icon.js +34 -0
  75. package/dist/IconPicker/NoResults.js +12 -0
  76. package/dist/IconPicker/constants.js +8 -0
  77. package/dist/IconPicker/icon-picker.scss +1 -0
  78. package/dist/IconPicker/index.js +164 -0
  79. package/dist/ImageWithFallback/ImagePlaceholder.js +16 -0
  80. package/dist/ImageWithFallback/index.js +31 -0
  81. package/dist/IntegrationCard/Dropdown.js +45 -0
  82. package/dist/IntegrationCard/Status.js +25 -0
  83. package/dist/IntegrationCard/index.js +128 -0
  84. package/dist/IntegrationDisconnectAlert/index.js +36 -0
  85. package/dist/{IntegrationWalkthroughModal.js → IntegrationWalkthroughModal/index.js} +6 -8
  86. package/dist/IpRestriction/AllowedIpRanges.js +72 -0
  87. package/dist/IpRestriction/CurrentIp.js +26 -0
  88. package/dist/IpRestriction/FormRow.js +77 -0
  89. package/dist/IpRestriction/Row.js +86 -0
  90. package/dist/IpRestriction/apis/allowed_ip_ranges.js +28 -0
  91. package/dist/IpRestriction/apis/current_ip.js +11 -0
  92. package/dist/IpRestriction/apis/ip_restriction.js +16 -0
  93. package/dist/IpRestriction/constants.js +11 -0
  94. package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +34 -0
  95. package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +10 -0
  96. package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +18 -0
  97. package/dist/IpRestriction/index.js +102 -0
  98. package/dist/IpRestriction/utils.js +67 -0
  99. package/dist/KeyboardShortcuts/Pane/HotKey.js +44 -0
  100. package/dist/KeyboardShortcuts/Pane/HotKeyList.js +42 -0
  101. package/dist/KeyboardShortcuts/Pane/constants.js +25 -0
  102. package/dist/KeyboardShortcuts/Pane/index.js +61 -0
  103. package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +5 -0
  104. package/dist/KeyboardShortcuts/Pane/utils.js +66 -0
  105. package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +31 -0
  106. package/dist/KeyboardShortcuts/index.js +9 -0
  107. package/dist/LoginPage/Form.js +57 -0
  108. package/dist/LoginPage/constants.js +12 -0
  109. package/dist/LoginPage/index.js +103 -0
  110. package/dist/MenuBar/AddNew.js +25 -0
  111. package/dist/MenuBar/Block.js +60 -0
  112. package/dist/MenuBar/Item.js +32 -0
  113. package/dist/MenuBar/Search.js +39 -0
  114. package/dist/MenuBar/SubTitle.js +23 -0
  115. package/dist/MenuBar/index.js +46 -0
  116. package/dist/MenuBar/menubar.scss +154 -0
  117. package/dist/Metadata/Block.js +30 -0
  118. package/dist/Metadata/DetailsBlock.js +86 -0
  119. package/dist/Metadata/constants.js +9 -0
  120. package/dist/Metadata/index.js +29 -0
  121. package/dist/Metadata/metadata.scss +15 -0
  122. package/dist/MoreDropdown/constants.js +25 -0
  123. package/dist/{MoreDropdown.js → MoreDropdown/index.js} +9 -102
  124. package/dist/NavigationHeader/LeftBlock.js +32 -0
  125. package/dist/NavigationHeader/Navigation.js +24 -0
  126. package/dist/NavigationHeader/RightBlock.js +68 -0
  127. package/dist/NavigationHeader/constants.js +11 -0
  128. package/dist/NavigationHeader/index.js +19 -0
  129. package/dist/NavigationHeader/navigation-header.scss +3 -0
  130. package/dist/NeetoWidget/CodeBlock.js +57 -0
  131. package/dist/NeetoWidget/CodeSnippet.js +119 -0
  132. package/dist/NeetoWidget/EmbedCode.js +281 -0
  133. package/dist/NeetoWidget/Main.js +19 -0
  134. package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +25 -0
  135. package/dist/NeetoWidget/SelectionSwitches/index.js +44 -0
  136. package/dist/NeetoWidget/SyntaxHighlighter.js +17 -0
  137. package/dist/NeetoWidget/api.js +20 -0
  138. package/dist/NeetoWidget/constants.js +62 -0
  139. package/dist/NeetoWidget/hooks/useForceUpdate.js +14 -0
  140. package/dist/NeetoWidget/index.js +7 -0
  141. package/dist/NeetoWidget/mutations.js +9 -0
  142. package/dist/NeetoWidget/queries.js +32 -0
  143. package/dist/NeetoWidget/utils.js +83 -0
  144. package/dist/PageLoader/index.js +81 -0
  145. package/dist/PageLoader/page-loader.scss +95 -0
  146. package/dist/PhoneNumber/CountryPicker/SingleValue.js +21 -0
  147. package/dist/PhoneNumber/CountryPicker/constants.js +26 -0
  148. package/dist/PhoneNumber/CountryPicker/index.js +59 -0
  149. package/dist/PhoneNumber/FormikPhoneNumberInput.js +21 -0
  150. package/dist/PhoneNumber/PhoneNumber.js +30 -0
  151. package/dist/PhoneNumber/PhoneNumberInput.js +79 -0
  152. package/dist/PhoneNumber/index.js +5 -0
  153. package/dist/PhoneNumber/utils.js +55 -0
  154. package/dist/PublishBlock/AlertBlock.js +14 -0
  155. package/dist/PublishBlock/index.js +100 -0
  156. package/dist/PublishBlock/publish-block.scss +25 -0
  157. package/dist/Rename/DummySpan.js +21 -0
  158. package/dist/Rename/constants.js +1 -0
  159. package/dist/Rename/index.js +191 -0
  160. package/dist/Rename/rename.scss +69 -0
  161. package/dist/Rename/utils.js +10 -0
  162. package/dist/ResponsiveDevicePicker/constants.js +19 -0
  163. package/dist/ResponsiveDevicePicker/index.js +36 -0
  164. package/dist/Schedule/DisplayAvailability.js +58 -0
  165. package/dist/Schedule/Fields.js +43 -0
  166. package/dist/Schedule/Form/ScheduleRow.js +125 -0
  167. package/dist/Schedule/Form/constants.js +20 -0
  168. package/dist/Schedule/Form/index.js +144 -0
  169. package/dist/Schedule/Form/utils.js +63 -0
  170. package/dist/Schedule/Header.js +76 -0
  171. package/dist/Schedule/ScheduleContext.js +8 -0
  172. package/dist/Schedule/constants.js +8 -0
  173. package/dist/Schedule/dayjsExtended/constants.js +1 -0
  174. package/dist/Schedule/dayjsExtended/index.js +14 -0
  175. package/dist/Schedule/dayjsExtended/range.js +73 -0
  176. package/dist/Schedule/index.js +80 -0
  177. package/dist/Schedule/utils.js +152 -0
  178. package/dist/Scrollable/constants.js +8 -0
  179. package/dist/Scrollable/index.js +26 -0
  180. package/dist/Scrollable/scrollable.scss +32 -0
  181. package/dist/Security/AllowedKeywords/Add.js +38 -0
  182. package/dist/Security/AllowedKeywords/index.js +38 -0
  183. package/dist/Security/PasswordBlock.js +31 -0
  184. package/dist/Security/RadioBlock.js +38 -0
  185. package/dist/Security/api.js +12 -0
  186. package/dist/Security/constants.js +58 -0
  187. package/dist/Security/index.js +68 -0
  188. package/dist/Security/useSecurityApi.js +22 -0
  189. package/dist/Security/utils.js +31 -0
  190. package/dist/SendToFields/FilePicker.js +34 -0
  191. package/dist/SendToFields/constants.js +6 -0
  192. package/dist/SendToFields/index.js +102 -0
  193. package/dist/SendToFields/utils.js +54 -0
  194. package/dist/Settings/Category.js +30 -0
  195. package/dist/Settings/Item.js +38 -0
  196. package/dist/Settings/index.js +37 -0
  197. package/dist/Settings/utils.js +4 -0
  198. package/dist/ShareViaEmail/EmailBodyEditor.js +22 -0
  199. package/dist/ShareViaEmail/FilePicker.js +43 -0
  200. package/dist/ShareViaEmail/Form.js +101 -0
  201. package/dist/ShareViaEmail/FormikDatePicker.js +24 -0
  202. package/dist/ShareViaEmail/constants.js +14 -0
  203. package/dist/ShareViaEmail/index.js +89 -0
  204. package/dist/ShareViaEmail/utils.js +72 -0
  205. package/dist/ShareViaLink/EditURL.js +74 -0
  206. package/dist/ShareViaLink/Link.js +105 -0
  207. package/dist/ShareViaLink/QRCode.js +41 -0
  208. package/dist/ShareViaLink/RegenerateURL.js +47 -0
  209. package/dist/ShareViaLink/SocialMedia.js +52 -0
  210. package/dist/ShareViaLink/constants.js +25 -0
  211. package/dist/ShareViaLink/edit-url.scss +8 -0
  212. package/dist/ShareViaLink/index.js +46 -0
  213. package/dist/ShareViaLink/utils.js +47 -0
  214. package/dist/Sidebar/AppSwitcher/AppLink.js +45 -0
  215. package/dist/Sidebar/AppSwitcher/Backdrop.js +13 -0
  216. package/dist/Sidebar/AppSwitcher/Body.js +65 -0
  217. package/dist/Sidebar/AppSwitcher/Portal.js +27 -0
  218. package/dist/Sidebar/AppSwitcher/appswitcher.scss +164 -0
  219. package/dist/Sidebar/AppSwitcher/index.js +47 -0
  220. package/dist/Sidebar/AppSwitcher/utils.js +25 -0
  221. package/dist/Sidebar/Chevron.js +14 -0
  222. package/dist/Sidebar/FeaturedTooltip.js +19 -0
  223. package/dist/Sidebar/Footer/AppSwitcherButton.js +48 -0
  224. package/dist/Sidebar/Footer/ProfileButton.js +30 -0
  225. package/dist/Sidebar/Footer/index.js +56 -0
  226. package/dist/Sidebar/Footer/utils.js +39 -0
  227. package/dist/Sidebar/Header.js +33 -0
  228. package/dist/Sidebar/HelpSection/HelpSectionMenu.js +52 -0
  229. package/dist/Sidebar/HelpSection/index.js +32 -0
  230. package/dist/Sidebar/Links.js +112 -0
  231. package/dist/Sidebar/NavIconWrapper.js +20 -0
  232. package/dist/Sidebar/ProfileSection/LinkSection.js +36 -0
  233. package/dist/Sidebar/ProfileSection/ProfileMenu.js +48 -0
  234. package/dist/Sidebar/ProfileSection/index.js +42 -0
  235. package/dist/Sidebar/constants.js +40 -0
  236. package/dist/Sidebar/index.js +94 -0
  237. package/dist/Sidebar/sidebar.scss +379 -0
  238. package/dist/Sidebar/utils.js +18 -0
  239. package/dist/SubHeader/RightBlock/Columns.js +35 -0
  240. package/dist/SubHeader/RightBlock/Download.js +28 -0
  241. package/dist/SubHeader/RightBlock/Filter.js +31 -0
  242. package/dist/SubHeader/RightBlock/index.js +21 -0
  243. package/dist/SubHeader/RightBlock/utils.js +13 -0
  244. package/dist/SubHeader/index.js +28 -0
  245. package/dist/SubHeader/subheader.scss +78 -0
  246. package/dist/TableWrapper/index.js +18 -0
  247. package/dist/ThemeSidebar/Customize/Logo.js +39 -0
  248. package/dist/ThemeSidebar/Customize/Properties.js +170 -0
  249. package/dist/ThemeSidebar/Customize/index.js +66 -0
  250. package/dist/ThemeSidebar/Themes/ThemeCard.js +135 -0
  251. package/dist/ThemeSidebar/Themes/index.js +110 -0
  252. package/dist/ThemeSidebar/TitleBar.js +62 -0
  253. package/dist/ThemeSidebar/constants.js +127 -0
  254. package/dist/ThemeSidebar/fields/AlignmentBlock.js +50 -0
  255. package/dist/ThemeSidebar/fields/Card.js +19 -0
  256. package/dist/ThemeSidebar/fields/ColorBlock.js +19 -0
  257. package/dist/ThemeSidebar/fields/FontPickerBlock.js +35 -0
  258. package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +67 -0
  259. package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +22 -0
  260. package/dist/ThemeSidebar/fields/ImageBlock/index.js +55 -0
  261. package/dist/ThemeSidebar/fields/SelectBlock.js +24 -0
  262. package/dist/ThemeSidebar/fields/SliderBlock.js +30 -0
  263. package/dist/ThemeSidebar/fields/SwitchBlock.js +17 -0
  264. package/dist/ThemeSidebar/fields/TextBlock.js +13 -0
  265. package/dist/ThemeSidebar/fields/slider.scss +199 -0
  266. package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +149 -0
  267. package/dist/ThemeSidebar/index.js +118 -0
  268. package/dist/ThemeSidebar/themeSidebar.scss +45 -0
  269. package/dist/ThemeSidebar/utils.js +169 -0
  270. package/dist/TimeFormat/index.js +3 -0
  271. package/dist/TimezoneMismatchModal/apis/time_zone.js +9 -0
  272. package/dist/TimezoneMismatchModal/index.js +83 -0
  273. package/dist/TimezoneMismatchModal/useTimeZoneApi.js +10 -0
  274. package/dist/TimezoneMismatchModal/utils.js +12 -0
  275. package/dist/ToggleFeatureCard/ToolTipSwitch.js +31 -0
  276. package/dist/ToggleFeatureCard/constants.js +5 -0
  277. package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +11 -0
  278. package/dist/ToggleFeatureCard/index.js +148 -0
  279. package/dist/ToggleFeatureCard/toggleFeatureCard.scss +4 -0
  280. package/package.json +28 -35
  281. package/dist/AutoSaveInput.cjs.js +0 -724
  282. package/dist/AutoSaveInput.cjs.js.map +0 -1
  283. package/dist/AutoSaveInput.js +0 -718
  284. package/dist/AutoSaveInput.js.map +0 -1
  285. package/dist/Breadcrumbs.cjs.js +0 -44
  286. package/dist/Breadcrumbs.cjs.js.map +0 -1
  287. package/dist/Breadcrumbs.js +0 -38
  288. package/dist/Breadcrumbs.js.map +0 -1
  289. package/dist/BrowserSupport.cjs.js +0 -1731
  290. package/dist/BrowserSupport.cjs.js.map +0 -1
  291. package/dist/BrowserSupport.js +0 -1725
  292. package/dist/BrowserSupport.js.map +0 -1
  293. package/dist/CalendarView.cjs.js +0 -610
  294. package/dist/CalendarView.cjs.js.map +0 -1
  295. package/dist/CalendarView.js +0 -598
  296. package/dist/CalendarView.js.map +0 -1
  297. package/dist/Codeblock.cjs.js +0 -302
  298. package/dist/Codeblock.cjs.js.map +0 -1
  299. package/dist/Codeblock.js +0 -296
  300. package/dist/Codeblock.js.map +0 -1
  301. package/dist/Columns.cjs.js +0 -248
  302. package/dist/Columns.cjs.js.map +0 -1
  303. package/dist/Columns.js.map +0 -1
  304. package/dist/ConfirmationModal.cjs.js +0 -87
  305. package/dist/ConfirmationModal.cjs.js.map +0 -1
  306. package/dist/ConfirmationModal.js.map +0 -1
  307. package/dist/Container.cjs.js +0 -1277
  308. package/dist/Container.cjs.js.map +0 -1
  309. package/dist/Container.js +0 -1271
  310. package/dist/Container.js.map +0 -1
  311. package/dist/CopyToClipboardButton.cjs.js +0 -275
  312. package/dist/CopyToClipboardButton.cjs.js.map +0 -1
  313. package/dist/CopyToClipboardButton.js +0 -269
  314. package/dist/CopyToClipboardButton.js.map +0 -1
  315. package/dist/CustomDomain.cjs.js +0 -774
  316. package/dist/CustomDomain.cjs.js.map +0 -1
  317. package/dist/CustomDomain.js +0 -747
  318. package/dist/CustomDomain.js.map +0 -1
  319. package/dist/CustomDomainDashboard.cjs.js +0 -2370
  320. package/dist/CustomDomainDashboard.cjs.js.map +0 -1
  321. package/dist/CustomDomainDashboard.js +0 -2342
  322. package/dist/CustomDomainDashboard.js.map +0 -1
  323. package/dist/DateFormat.cjs.js +0 -51
  324. package/dist/DateFormat.cjs.js.map +0 -1
  325. package/dist/DateFormat.js.map +0 -1
  326. package/dist/DateRangeFilter.cjs.js +0 -236
  327. package/dist/DateRangeFilter.cjs.js.map +0 -1
  328. package/dist/DateRangeFilter.js +0 -229
  329. package/dist/DateRangeFilter.js.map +0 -1
  330. package/dist/DynamicVariables.cjs.js +0 -189
  331. package/dist/DynamicVariables.cjs.js.map +0 -1
  332. package/dist/DynamicVariables.js +0 -183
  333. package/dist/DynamicVariables.js.map +0 -1
  334. package/dist/EmailForm.cjs.js +0 -4295
  335. package/dist/EmailForm.cjs.js.map +0 -1
  336. package/dist/EmailForm.js +0 -4265
  337. package/dist/EmailForm.js.map +0 -1
  338. package/dist/EmailPreview.cjs.js +0 -1419
  339. package/dist/EmailPreview.cjs.js.map +0 -1
  340. package/dist/EmailPreview.js +0 -1413
  341. package/dist/EmailPreview.js.map +0 -1
  342. package/dist/ErrorPage.cjs.js +0 -226
  343. package/dist/ErrorPage.cjs.js.map +0 -1
  344. package/dist/ErrorPage.js.map +0 -1
  345. package/dist/Header.cjs.js +0 -188
  346. package/dist/Header.cjs.js.map +0 -1
  347. package/dist/Header.js +0 -182
  348. package/dist/Header.js.map +0 -1
  349. package/dist/IconPicker.cjs.js +0 -1308
  350. package/dist/IconPicker.cjs.js.map +0 -1
  351. package/dist/IconPicker.js +0 -1302
  352. package/dist/IconPicker.js.map +0 -1
  353. package/dist/ImageWithFallback.cjs.js +0 -247
  354. package/dist/ImageWithFallback.cjs.js.map +0 -1
  355. package/dist/ImageWithFallback.js +0 -241
  356. package/dist/ImageWithFallback.js.map +0 -1
  357. package/dist/IntegrationCard.cjs.js +0 -409
  358. package/dist/IntegrationCard.cjs.js.map +0 -1
  359. package/dist/IntegrationCard.js +0 -403
  360. package/dist/IntegrationCard.js.map +0 -1
  361. package/dist/IntegrationDisconnectAlert.cjs.js +0 -89
  362. package/dist/IntegrationDisconnectAlert.cjs.js.map +0 -1
  363. package/dist/IntegrationDisconnectAlert.js +0 -80
  364. package/dist/IntegrationDisconnectAlert.js.map +0 -1
  365. package/dist/IntegrationWalkthroughModal.cjs.js +0 -50
  366. package/dist/IntegrationWalkthroughModal.cjs.js.map +0 -1
  367. package/dist/IntegrationWalkthroughModal.js.map +0 -1
  368. package/dist/IpRestriction.cjs.js +0 -3931
  369. package/dist/IpRestriction.cjs.js.map +0 -1
  370. package/dist/IpRestriction.js +0 -3905
  371. package/dist/IpRestriction.js.map +0 -1
  372. package/dist/KeyboardShortcuts.cjs.js +0 -2244
  373. package/dist/KeyboardShortcuts.cjs.js.map +0 -1
  374. package/dist/KeyboardShortcuts.js +0 -2237
  375. package/dist/KeyboardShortcuts.js.map +0 -1
  376. package/dist/LoginPage.cjs.js +0 -618
  377. package/dist/LoginPage.cjs.js.map +0 -1
  378. package/dist/LoginPage.js +0 -593
  379. package/dist/LoginPage.js.map +0 -1
  380. package/dist/MenuBar.cjs.js +0 -34273
  381. package/dist/MenuBar.cjs.js.map +0 -1
  382. package/dist/MenuBar.js +0 -34267
  383. package/dist/MenuBar.js.map +0 -1
  384. package/dist/Metadata.cjs.js +0 -272
  385. package/dist/Metadata.cjs.js.map +0 -1
  386. package/dist/Metadata.js +0 -266
  387. package/dist/Metadata.js.map +0 -1
  388. package/dist/MoreDropdown.cjs.js +0 -168
  389. package/dist/MoreDropdown.cjs.js.map +0 -1
  390. package/dist/MoreDropdown.js.map +0 -1
  391. package/dist/NavigationHeader.cjs.js +0 -756
  392. package/dist/NavigationHeader.cjs.js.map +0 -1
  393. package/dist/NavigationHeader.js +0 -750
  394. package/dist/NavigationHeader.js.map +0 -1
  395. package/dist/NeetoWidget.cjs.js +0 -3375
  396. package/dist/NeetoWidget.cjs.js.map +0 -1
  397. package/dist/NeetoWidget.js +0 -3348
  398. package/dist/NeetoWidget.js.map +0 -1
  399. package/dist/PageLoader.cjs.js +0 -158
  400. package/dist/PageLoader.cjs.js.map +0 -1
  401. package/dist/PageLoader.js +0 -134
  402. package/dist/PageLoader.js.map +0 -1
  403. package/dist/PhoneNumber.cjs.js +0 -7021
  404. package/dist/PhoneNumber.cjs.js.map +0 -1
  405. package/dist/PhoneNumber.js +0 -6989
  406. package/dist/PhoneNumber.js.map +0 -1
  407. package/dist/PublishBlock.cjs.js +0 -224
  408. package/dist/PublishBlock.cjs.js.map +0 -1
  409. package/dist/PublishBlock.js +0 -218
  410. package/dist/PublishBlock.js.map +0 -1
  411. package/dist/Rename.cjs.js +0 -516
  412. package/dist/Rename.cjs.js.map +0 -1
  413. package/dist/Rename.js +0 -510
  414. package/dist/Rename.js.map +0 -1
  415. package/dist/ResponsiveDevicePicker.cjs.js +0 -260
  416. package/dist/ResponsiveDevicePicker.cjs.js.map +0 -1
  417. package/dist/ResponsiveDevicePicker.js +0 -254
  418. package/dist/ResponsiveDevicePicker.js.map +0 -1
  419. package/dist/Schedule.cjs.js +0 -1077
  420. package/dist/Schedule.cjs.js.map +0 -1
  421. package/dist/Schedule.js +0 -1046
  422. package/dist/Schedule.js.map +0 -1
  423. package/dist/Scrollable.cjs.js +0 -188
  424. package/dist/Scrollable.cjs.js.map +0 -1
  425. package/dist/Scrollable.js +0 -182
  426. package/dist/Scrollable.js.map +0 -1
  427. package/dist/Security.cjs.js +0 -1921
  428. package/dist/Security.cjs.js.map +0 -1
  429. package/dist/Security.js +0 -1895
  430. package/dist/Security.js.map +0 -1
  431. package/dist/SendToFields.cjs.js +0 -2524
  432. package/dist/SendToFields.cjs.js.map +0 -1
  433. package/dist/SendToFields.js +0 -2517
  434. package/dist/SendToFields.js.map +0 -1
  435. package/dist/Settings.cjs.js +0 -501
  436. package/dist/Settings.cjs.js.map +0 -1
  437. package/dist/Settings.js +0 -495
  438. package/dist/Settings.js.map +0 -1
  439. package/dist/ShareViaEmail.cjs.js +0 -4272
  440. package/dist/ShareViaEmail.cjs.js.map +0 -1
  441. package/dist/ShareViaEmail.js +0 -4246
  442. package/dist/ShareViaEmail.js.map +0 -1
  443. package/dist/ShareViaLink.cjs.js +0 -1512
  444. package/dist/ShareViaLink.cjs.js.map +0 -1
  445. package/dist/ShareViaLink.js +0 -1486
  446. package/dist/ShareViaLink.js.map +0 -1
  447. package/dist/Sidebar.cjs.js +0 -34985
  448. package/dist/Sidebar.cjs.js.map +0 -1
  449. package/dist/Sidebar.js +0 -34959
  450. package/dist/Sidebar.js.map +0 -1
  451. package/dist/SubHeader.cjs.js +0 -283
  452. package/dist/SubHeader.cjs.js.map +0 -1
  453. package/dist/SubHeader.js +0 -276
  454. package/dist/SubHeader.js.map +0 -1
  455. package/dist/TableWrapper.cjs.js +0 -87
  456. package/dist/TableWrapper.cjs.js.map +0 -1
  457. package/dist/TableWrapper.js +0 -81
  458. package/dist/TableWrapper.js.map +0 -1
  459. package/dist/ThemeSidebar.cjs.js +0 -13705
  460. package/dist/ThemeSidebar.cjs.js.map +0 -1
  461. package/dist/ThemeSidebar.js +0 -13680
  462. package/dist/ThemeSidebar.js.map +0 -1
  463. package/dist/TimeFormat.cjs.js +0 -53
  464. package/dist/TimeFormat.cjs.js.map +0 -1
  465. package/dist/TimeFormat.js +0 -47
  466. package/dist/TimeFormat.js.map +0 -1
  467. package/dist/TimezoneMismatchModal.cjs.js +0 -176
  468. package/dist/TimezoneMismatchModal.cjs.js.map +0 -1
  469. package/dist/TimezoneMismatchModal.js +0 -168
  470. package/dist/TimezoneMismatchModal.js.map +0 -1
  471. package/dist/ToggleFeatureCard.cjs.js +0 -389
  472. package/dist/ToggleFeatureCard.cjs.js.map +0 -1
  473. package/dist/ToggleFeatureCard.js +0 -383
  474. package/dist/ToggleFeatureCard.js.map +0 -1
@@ -0,0 +1,94 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import React, { useEffect, useState } from "react";
3
+ import classnames from "classnames";
4
+ import { globalProps } from "@bigbinary/neeto-commons-frontend/initializers";
5
+ import { useLocalStorage } from "@bigbinary/neeto-commons-frontend/react-utils";
6
+ import { Button } from "@bigbinary/neetoui";
7
+ import { not } from "ramda";
8
+ import { useTranslation } from "react-i18next";
9
+ import { useLocation } from "react-router-dom";
10
+ import AppSwitcher from "./AppSwitcher";
11
+ import Chevron from "./Chevron";
12
+ import Footer from "./Footer";
13
+ import Header from "./Header";
14
+ import Links from "./Links";
15
+ import "./sidebar.scss";
16
+ import { getSidebarStateLocalStorageKey } from "./utils";
17
+ var Sidebar = function Sidebar(_ref) {
18
+ var navLinks = _ref.navLinks,
19
+ customLogo = _ref.customLogo,
20
+ _ref$profileInfoOverr = _ref.profileInfoOverrides,
21
+ profileInfoOverrides = _ref$profileInfoOverr === void 0 ? {} : _ref$profileInfoOverr,
22
+ _ref$helpLinkOverride = _ref.helpLinkOverrides,
23
+ helpLinkOverrides = _ref$helpLinkOverride === void 0 ? {} : _ref$helpLinkOverride,
24
+ _ref$extraTopLinks = _ref.extraTopLinks,
25
+ extraTopLinks = _ref$extraTopLinks === void 0 ? [] : _ref$extraTopLinks,
26
+ _ref$showAppSwitcher = _ref.showAppSwitcher,
27
+ showAppSwitcher = _ref$showAppSwitcher === void 0 ? true : _ref$showAppSwitcher;
28
+ var _useState = useState(false),
29
+ _useState2 = _slicedToArray(_useState, 2),
30
+ isAppSwitcherOpen = _useState2[0],
31
+ setIsAppSwitcherOpen = _useState2[1];
32
+ var _useLocalStorage = useLocalStorage(getSidebarStateLocalStorageKey(), false),
33
+ _useLocalStorage2 = _slicedToArray(_useLocalStorage, 2),
34
+ isSidebarCollapsed = _useLocalStorage2[0],
35
+ setIsSidebarCollapsed = _useLocalStorage2[1];
36
+ var location = useLocation();
37
+ var _useTranslation = useTranslation(),
38
+ t = _useTranslation.t;
39
+ useEffect(function () {
40
+ isAppSwitcherOpen && setIsAppSwitcherOpen(false);
41
+ // eslint-disable-next-line react-hooks/exhaustive-deps
42
+ }, [location]);
43
+ var productName = globalProps.appName.substr(5).toLowerCase();
44
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
45
+ "data-testid": "sidebar-container",
46
+ className: classnames("neeto-molecules-sidebar__wrapper", {
47
+ "neeto-molecules-sidebar__wrapper--collapsed": isSidebarCollapsed
48
+ })
49
+ }, /*#__PURE__*/React.createElement("div", {
50
+ className: "neeto-molecules-sidebar neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-shrink-0 neeto-ui-overflow-y-auto neeto-ui-overflow-x-hidden",
51
+ "data-cy": "sidebar-wrapper",
52
+ "data-testid": "sidebar"
53
+ }, /*#__PURE__*/React.createElement(Header, {
54
+ customLogo: customLogo
55
+ }), /*#__PURE__*/React.createElement(Links, {
56
+ navLinks: navLinks
57
+ }), /*#__PURE__*/React.createElement(Footer, {
58
+ extraTopLinks: extraTopLinks,
59
+ helpLinkOverrides: helpLinkOverrides,
60
+ profileInfoOverrides: profileInfoOverrides,
61
+ showAppSwitcher: showAppSwitcher,
62
+ onAppSwitcherToggle: function onAppSwitcherToggle() {
63
+ return setIsAppSwitcherOpen(not);
64
+ }
65
+ })), isSidebarCollapsed && /*#__PURE__*/React.createElement("div", {
66
+ className: "neeto-molecules-sidebar__toggler-hover-area"
67
+ }), /*#__PURE__*/React.createElement(Button, {
68
+ className: "neeto-molecules-sidebar__toggler",
69
+ "data-cy": "neeto-molecules-sidebar-toggler",
70
+ "data-testid": "sidebar-toggleButton",
71
+ style: "text",
72
+ icon: function icon() {
73
+ return /*#__PURE__*/React.createElement(Chevron, {
74
+ style: {
75
+ color: "rgb(var(--neeto-".concat(productName, "-primary))")
76
+ }
77
+ });
78
+ },
79
+ tooltipProps: {
80
+ content: isSidebarCollapsed ? t("neetoMolecules.sidebar.showMenu") : t("neetoMolecules.sidebar.hideMenu"),
81
+ position: "bottom"
82
+ },
83
+ onClick: function onClick() {
84
+ setIsSidebarCollapsed(!isSidebarCollapsed);
85
+ }
86
+ })), showAppSwitcher && /*#__PURE__*/React.createElement(AppSwitcher, {
87
+ isSidebarCollapsed: isSidebarCollapsed,
88
+ isOpen: isAppSwitcherOpen,
89
+ onClose: function onClose() {
90
+ return setIsAppSwitcherOpen(false);
91
+ }
92
+ }));
93
+ };
94
+ export default Sidebar;
@@ -0,0 +1,379 @@
1
+ :root {
2
+ --neeto-molecules-sidebar-width: 240px;
3
+ --neeto-molecules-sidebar-z-index: 99998;
4
+
5
+ --neeto-chat-primary: 136, 134, 255;
6
+ --neeto-wireframe-primary: 106, 103, 232;
7
+ --neeto-site-primary: 129, 118, 255;
8
+ --neeto-desk-primary: 253, 148, 55;
9
+ --neeto-planner-primary: 82, 169, 198;
10
+ --neeto-replay-primary: 32, 199, 189;
11
+ --neeto-course-primary: 140, 214, 114;
12
+ --neeto-ci-primary: 255, 133, 184;
13
+ --neeto-invoice-primary: 70, 160, 211;
14
+ --neeto-quiz-primary: 254, 99, 99;
15
+ --neeto-runner-primary: 75, 71, 255;
16
+ --neeto-form-primary: 254, 128, 114;
17
+ --neeto-crm-primary: 96, 154, 240;
18
+ --neeto-changelog-primary: 255, 135, 135;
19
+ --neeto-deploy-primary: 20, 209, 164;
20
+ --neeto-kb-primary: 101, 205, 161;
21
+ --neeto-cal-primary: 238, 77, 95;
22
+ --neeto-invisible-primary: 121, 157, 250;
23
+ --neeto-testify-primary: 255, 158, 69;
24
+ --neeto-monitor-primary: 70, 181, 197;
25
+ --neeto-git-primary: 255, 78, 110;
26
+ }
27
+
28
+ .neeto-molecules-sidebar__wrapper {
29
+ display: flex;
30
+ position: relative;
31
+ width: var(--neeto-molecules-sidebar-width);
32
+ max-width: var(--neeto-molecules-sidebar-width);
33
+
34
+ transition: all 150ms;
35
+
36
+ &--collapsed {
37
+ width: 0px;
38
+ max-width: 0px;
39
+
40
+ .neeto-molecules-sidebar__toggler {
41
+ transform: scale(-1);
42
+ right: -36px;
43
+ }
44
+ }
45
+
46
+ &:hover {
47
+ .neeto-molecules-sidebar__toggler {
48
+ opacity: 1;
49
+ }
50
+ }
51
+ }
52
+
53
+ .neeto-molecules-sidebar {
54
+ width: 100%;
55
+ height: 100vh;
56
+ padding: 24px 0;
57
+ background-color: rgb(var(--neeto-ui-gray-100));
58
+ border-right: 1px solid rgb(var(--neeto-ui-gray-100));
59
+ z-index: var(--neeto-molecules-sidebar-z-index);
60
+
61
+ &__no-shrinkable {
62
+ width: var(--neeto-molecules-sidebar-width);
63
+ max-width: var(--neeto-molecules-sidebar-width);
64
+ }
65
+
66
+ &::-webkit-scrollbar {
67
+ width: 0;
68
+ height: 0;
69
+ }
70
+
71
+ &::-webkit-scrollbar-thumb {
72
+ background: rgb(var(--neeto-ui-gray-300));
73
+ border-radius: 50px;
74
+ }
75
+
76
+ &::-webkit-scrollbar-track {
77
+ background: "transparent";
78
+ }
79
+
80
+ &__toggler-hover-area {
81
+ position: absolute;
82
+ top: 0;
83
+ bottom: 0;
84
+ left: 100%;
85
+ z-index: var(--neeto-molecules-sidebar-z-index);
86
+ width: 40px;
87
+ }
88
+
89
+ &__toggler {
90
+ position: absolute;
91
+ top: 8px;
92
+ right: 8px;
93
+ z-index: calc(var(--neeto-molecules-sidebar-z-index) + 1);
94
+ opacity: 0;
95
+ transition: opacity 0.3s ease-in-out;
96
+
97
+ &:focus {
98
+ opacity: 1;
99
+ }
100
+ }
101
+
102
+ // header
103
+
104
+ &__header {
105
+ padding: 0 24px;
106
+ margin: 14px 0 28px;
107
+ }
108
+
109
+ &__logo {
110
+ svg {
111
+ width: auto;
112
+ max-width: 100%;
113
+ height: 20px;
114
+ }
115
+ }
116
+
117
+ // links
118
+
119
+ &__links {
120
+ margin-bottom: 40px;
121
+ }
122
+
123
+ &__link {
124
+ width: 100%;
125
+ padding: 12px 24px;
126
+ gap: 10px;
127
+ color: rgb(var(--neeto-ui-gray-800));
128
+ transition: var(--neeto-ui-transition);
129
+ position: relative;
130
+ text-decoration: none !important;
131
+
132
+ &-icon {
133
+ flex-shrink: 0;
134
+ transition: var(--neeto-ui-transition);
135
+
136
+ svg path {
137
+ vector-effect: non-scaling-stroke;
138
+ }
139
+
140
+ &--rotate {
141
+ transform: scale(-1);
142
+ }
143
+
144
+ &--caret {
145
+ opacity: 0;
146
+ transition: opacity 0.3s ease-in-out;
147
+ }
148
+ }
149
+
150
+ &-label,
151
+ &-sub-label {
152
+ text-align: left;
153
+ flex-grow: 1;
154
+ }
155
+
156
+ &:hover {
157
+ color: rgb(var(--neeto-ui-black));
158
+ background-color: rgb(var(--neeto-ui-gray-200));
159
+ }
160
+
161
+ &[aria-expanded="true"],
162
+ &:focus,
163
+ &:focus-visible {
164
+ color: rgb(var(--neeto-ui-black));
165
+ outline: none;
166
+ background-color: rgb(var(--neeto-ui-gray-200));
167
+ }
168
+
169
+ &.active {
170
+ background-color: rgb(var(--neeto-ui-white));
171
+ color: rgb(var(--neeto-ui-black));
172
+
173
+ .neeto-molecules-sidebar__link-label {
174
+ font-weight: var(--neeto-ui-font-medium);
175
+ }
176
+ }
177
+
178
+ &:hover,
179
+ &[aria-expanded="true"],
180
+ &:focus,
181
+ &:focus-visible,
182
+ &.active {
183
+ .neeto-molecules-sidebar__link-icon--caret {
184
+ opacity: 1;
185
+ }
186
+ }
187
+
188
+ &--button {
189
+ &:focus {
190
+ background-color: transparent;
191
+ }
192
+
193
+ &:focus-visible {
194
+ color: rgb(var(--neeto-ui-gray-800));
195
+ background-color: rgb(var(--neeto-ui-gray-200));
196
+ }
197
+ }
198
+ }
199
+
200
+ &__link--change-log {
201
+ outline: none !important;
202
+ }
203
+
204
+ &__sublink-wrapper {
205
+ padding: 4px 0;
206
+ background-color: rgb(var(--neeto-ui-white));
207
+ }
208
+
209
+ &__sublink {
210
+ padding: 8px 24px 8px 58px;
211
+ color: rgb(var(--neeto-ui-gray-700));
212
+ background-color: rgb(var(--neeto-ui-white));
213
+ transition: all 0.3s;
214
+ cursor: pointer;
215
+ text-decoration: none;
216
+ gap: 8px;
217
+
218
+ &:not(:last-child) {
219
+ margin-bottom: 4px;
220
+ }
221
+
222
+ .neeto-molecules-sidebar__link-sub-count {
223
+ opacity: 0.75;
224
+ }
225
+
226
+ &:hover {
227
+ color: rgb(var(--neeto-ui-gray-800));
228
+ text-decoration: none;
229
+
230
+ .neeto-molecules-sidebar__link-sub-count {
231
+ opacity: 1;
232
+ }
233
+ }
234
+
235
+ &:focus,
236
+ &:focus-visible {
237
+ color: rgb(var(--neeto-ui-gray-800));
238
+ outline: none;
239
+ text-decoration: none;
240
+
241
+ .neeto-molecules-sidebar__link-sub-count {
242
+ opacity: 1;
243
+ }
244
+ }
245
+
246
+ &:active,
247
+ &.active {
248
+ color: rgb(var(--neeto-ui-black));
249
+ font-weight: var(--neeto-ui-font-medium);
250
+ text-decoration: none;
251
+
252
+ .neeto-molecules-sidebar__link-sub-count {
253
+ opacity: 1;
254
+ }
255
+ }
256
+ }
257
+
258
+ &__footer {
259
+ margin-top: auto;
260
+ }
261
+ }
262
+
263
+ .sidebar-featured-tooltip__content {
264
+ border-radius: 8px !important;
265
+ box-shadow: var(--neeto-ui-shadow-sm) !important;
266
+
267
+ .tippy-content {
268
+ padding: 0;
269
+ }
270
+ }
271
+
272
+ .sidebar-featured-tooltip {
273
+ padding: 12px;
274
+ width: 150px;
275
+ }
276
+
277
+ .sidebar-featured-tooltip__icon-wrap {
278
+ width: 40px;
279
+ height: 40px;
280
+ margin-left: auto;
281
+ margin-right: auto;
282
+ margin-bottom: 8px;
283
+ border-radius: 8px;
284
+ background-color: rgb(var(--neeto-ui-gray-100));
285
+ }
286
+
287
+ .sidebar-featured-tooltip__title {
288
+ margin-bottom: 4px;
289
+ }
290
+
291
+ .neeto-molecules-profile-popup-wrapper,
292
+ .neeto-molecules-help-popup-wrapper {
293
+ box-shadow: 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12), 0px 5px 5px -3px rgba(0, 0, 0, .2) !important;
294
+ border-radius: var(--neeto-ui-rounded) !important;
295
+ border: 1px solid rgb(var(--neeto-ui-gray-400));
296
+ min-width: 240px;
297
+
298
+ .tippy-content {
299
+ padding: 0;
300
+ }
301
+
302
+ .tippy-svg-arrow {
303
+ display: none !important;
304
+ }
305
+ }
306
+
307
+ .neeto-molecules-profile-popup__top-section {
308
+ border-top-left-radius: var(--neeto-ui-rounded);
309
+ border-top-right-radius: var(--neeto-ui-rounded);
310
+ }
311
+
312
+ .neeto-molecules-profile-sublist {
313
+ border-top: 1px solid rgb(var(--neeto-ui-gray-400));
314
+ }
315
+
316
+ .neeto-molecules-help-sublist,
317
+ .neeto-molecules-profile-sublist {
318
+ list-style: none;
319
+ margin: 0;
320
+ padding: 4px 0;
321
+ }
322
+
323
+ .neeto-molecules-profile-sublist__item,
324
+ .neeto-molecules-help-sublist__item {
325
+ width: 100%;
326
+ }
327
+
328
+ .neeto-molecules-profile-sublist__item-btn,
329
+ .neeto-molecules-help-sublist__item-btn {
330
+ border-radius: 0;
331
+ justify-content: flex-end !important;
332
+ min-height: 40px;
333
+ text-align: left;
334
+
335
+ &.active {
336
+ background-color: rgb(var(--neeto-ui-gray-800));
337
+ color: rgb(var(--neeto-ui-white));
338
+ }
339
+
340
+ &-icon {
341
+ svg {
342
+ path {
343
+ vector-effect: non-scaling-stroke;
344
+ }
345
+ }
346
+ }
347
+
348
+ span {
349
+ display: flex;
350
+ align-items: center;
351
+ gap: 8px;
352
+ }
353
+ }
354
+
355
+ .neeto-molecules-sidebar__link-icon {
356
+ position: relative;
357
+ }
358
+
359
+ .neeto-molecules-sidebar__notif-count {
360
+ position: absolute;
361
+ right: -6px;
362
+ top: -6px;
363
+ z-index: 1;
364
+ }
365
+
366
+ .neeto-molecules-sidebar__notif-count, .neeto-molecules-help-sublist__item-btn-count {
367
+ display: inline-flex;
368
+ justify-content: center;
369
+ align-items: center;
370
+ text-align: center;
371
+ width: 16px;
372
+ height: 16px;
373
+ flex-shrink: 0;
374
+ background-color: rgb(var(--neeto-ui-primary-500));
375
+ color: rgb(var(--neeto-ui-white));
376
+ border-radius: var(--neeto-ui-rounded-full);
377
+ font-size: var(--neeto-ui-text-xxs);
378
+ user-select: none;
379
+ }
@@ -0,0 +1,18 @@
1
+ import { all } from "ramda";
2
+ export var isSubRouteActive = function isSubRouteActive(subRoute, location) {
3
+ var currentBrowserUrl = new URL(location.pathname + location.search, window.location.origin);
4
+ var targetUrl = new URL(subRoute, window.location.origin);
5
+ if (!currentBrowserUrl.pathname.startsWith(targetUrl.pathname)) {
6
+ return false;
7
+ }
8
+ var targetSearchParams = targetUrl.searchParams;
9
+ var targetSearchKeys = Array.from(targetSearchParams.keys());
10
+ return all(function (key) {
11
+ return currentBrowserUrl.searchParams.get(key) === targetSearchParams.get(key);
12
+ }, targetSearchKeys);
13
+ };
14
+ export var getSidebarStateLocalStorageKey = function getSidebarStateLocalStorageKey() {
15
+ var _globalProps$user, _globalProps$user2;
16
+ var user = ((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.email) || ((_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.phoneNumber);
17
+ return "sidebarState-".concat(user);
18
+ };
@@ -0,0 +1,35 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["buttonProps"];
5
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
+ import React, { forwardRef } from "react";
8
+ import { Column } from "@bigbinary/neeto-icons";
9
+ import { useTranslation } from "react-i18next";
10
+ import ManageColumns from "../../Columns";
11
+ var Columns = /*#__PURE__*/forwardRef(function (_ref, ref) {
12
+ var _ref$buttonProps = _ref.buttonProps,
13
+ buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
14
+ props = _objectWithoutProperties(_ref, _excluded);
15
+ var _useTranslation = useTranslation(),
16
+ t = _useTranslation.t;
17
+ return /*#__PURE__*/React.createElement("div", {
18
+ className: "neeto-molecules-subheader__columns"
19
+ }, /*#__PURE__*/React.createElement(ManageColumns, _extends({
20
+ buttonProps: _objectSpread({
21
+ icon: Column,
22
+ label: null,
23
+ tooltipProps: {
24
+ content: t("neetoMolecules.columns.columns"),
25
+ position: "bottom"
26
+ },
27
+ "data-testid": "columns-button",
28
+ "data-cy": "columns-dropdown-button"
29
+ }, buttonProps)
30
+ }, _objectSpread(_objectSpread({}, props), {}, {
31
+ ref: ref
32
+ }))));
33
+ });
34
+ Columns.displayName = "Columns";
35
+ export default Columns;
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import { Download } from "@bigbinary/neeto-icons";
3
+ import { Button } from "@bigbinary/neetoui";
4
+ import { useTranslation } from "react-i18next";
5
+ var DownloadButton = function DownloadButton(_ref) {
6
+ var count = _ref.count,
7
+ onClick = _ref.onClick,
8
+ _ref$dataCy = _ref["data-cy"],
9
+ dataCy = _ref$dataCy === void 0 ? "download-button" : _ref$dataCy;
10
+ var _useTranslation = useTranslation(),
11
+ t = _useTranslation.t;
12
+ return /*#__PURE__*/React.createElement("div", {
13
+ className: "neeto-molecules-subheader__download"
14
+ }, /*#__PURE__*/React.createElement(Button, {
15
+ "data-cy": dataCy,
16
+ "data-testid": "download-button",
17
+ icon: Download,
18
+ style: "text",
19
+ tooltipProps: {
20
+ content: t("neetoMolecules.common.download"),
21
+ position: "bottom"
22
+ },
23
+ onClick: onClick
24
+ }), count && /*#__PURE__*/React.createElement("span", {
25
+ className: "neeto-molecules-subheader__download-count"
26
+ }, count));
27
+ };
28
+ export default DownloadButton;
@@ -0,0 +1,31 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["buttonProps"];
5
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
+ import React from "react";
8
+ import { Filters as NeetoFilters } from "@bigbinary/neeto-filters-frontend";
9
+ import { Filter } from "@bigbinary/neeto-icons";
10
+ import { useTranslation } from "react-i18next";
11
+ var FilterButton = function FilterButton(_ref) {
12
+ var buttonProps = _ref.buttonProps,
13
+ props = _objectWithoutProperties(_ref, _excluded);
14
+ var _useTranslation = useTranslation(),
15
+ t = _useTranslation.t;
16
+ return /*#__PURE__*/React.createElement("div", {
17
+ className: "neeto-molecules-subheader__filter"
18
+ }, /*#__PURE__*/React.createElement(NeetoFilters, _extends({
19
+ buttonProps: _objectSpread({
20
+ "data-testid": "filter-button",
21
+ icon: Filter,
22
+ style: "text",
23
+ tooltipProps: {
24
+ content: t("neetoMolecules.common.filter"),
25
+ position: "bottom"
26
+ },
27
+ label: null
28
+ }, buttonProps)
29
+ }, props)));
30
+ };
31
+ export default FilterButton;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import classnames from "classnames";
3
+ import { isNotPresent } from "@bigbinary/neeto-commons-frontend/pure";
4
+ import { not } from "ramda";
5
+ import Columns from "./Columns";
6
+ import Download from "./Download";
7
+ import Filter from "./Filter";
8
+ var RightBlock = function RightBlock(_ref) {
9
+ var downloadButtonProps = _ref.downloadButtonProps,
10
+ columnsButtonProps = _ref.columnsButtonProps,
11
+ filterProps = _ref.filterProps,
12
+ dataProps = _ref.dataProps;
13
+ var showIcons = isNotPresent(dataProps === null || dataProps === void 0 ? void 0 : dataProps.totalCount) ? true : (dataProps === null || dataProps === void 0 ? void 0 : dataProps.totalCount) > 0;
14
+ return /*#__PURE__*/React.createElement("div", {
15
+ "data-testid": "subheader-rightblock-buttons-container",
16
+ className: classnames("neeto-molecules-subheader__right-actions", {
17
+ hidden: not(showIcons)
18
+ })
19
+ }, downloadButtonProps && /*#__PURE__*/React.createElement(Download, downloadButtonProps), columnsButtonProps && /*#__PURE__*/React.createElement(Columns, columnsButtonProps), filterProps && /*#__PURE__*/React.createElement(Filter, filterProps));
20
+ };
21
+ export default RightBlock;
@@ -0,0 +1,13 @@
1
+ import { 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
+ };
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import classnames from "classnames";
3
+ import RightBlock from "./RightBlock";
4
+ import "./subheader.scss";
5
+ var SubHeader = function SubHeader(_ref) {
6
+ var _ref$className = _ref.className,
7
+ className = _ref$className === void 0 ? "" : _ref$className,
8
+ leftActionBlock = _ref.leftActionBlock,
9
+ rightActionBlock = _ref.rightActionBlock,
10
+ _ref$dataCy = _ref["data-cy"],
11
+ dataCy = _ref$dataCy === void 0 ? "subheader" : _ref$dataCy;
12
+ return /*#__PURE__*/React.createElement("div", {
13
+ className: classnames(["neeto-molecules-subheader", className]),
14
+ "data-cy": dataCy,
15
+ "data-testid": "subheader"
16
+ }, /*#__PURE__*/React.createElement("div", {
17
+ className: "neeto-molecules-subheader__left-wrapper",
18
+ "data-cy": "subheader-left-wrapper"
19
+ }, leftActionBlock && /*#__PURE__*/React.createElement("div", {
20
+ className: "neeto-molecules-subheader__left",
21
+ "data-cy": "subheader-left"
22
+ }, leftActionBlock)), rightActionBlock && /*#__PURE__*/React.createElement("div", {
23
+ className: "neeto-molecules-subheader__right",
24
+ "data-cy": "subheader-right"
25
+ }, rightActionBlock));
26
+ };
27
+ SubHeader.RightBlock = RightBlock;
28
+ export default SubHeader;