@bigbinary/neeto-molecules 1.1.10 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +27 -34
  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 -2263
  373. package/dist/KeyboardShortcuts.cjs.js.map +0 -1
  374. package/dist/KeyboardShortcuts.js +0 -2256
  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
@@ -1,724 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var pure = require('@bigbinary/neeto-commons-frontend/pure');
5
- var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
6
- var neetoIcons = require('@bigbinary/neeto-icons');
7
- var neetoui = require('@bigbinary/neetoui');
8
- var ramda = require('ramda');
9
- var i18next = require('i18next');
10
-
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
-
13
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
14
-
15
- function _extends() {
16
- _extends = Object.assign ? Object.assign.bind() : function (target) {
17
- for (var i = 1; i < arguments.length; i++) {
18
- var source = arguments[i];
19
- for (var key in source) {
20
- if (Object.prototype.hasOwnProperty.call(source, key)) {
21
- target[key] = source[key];
22
- }
23
- }
24
- }
25
- return target;
26
- };
27
- return _extends.apply(this, arguments);
28
- }
29
-
30
- function _typeof$1(obj) {
31
- "@babel/helpers - typeof";
32
-
33
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
34
- return typeof obj;
35
- } : function (obj) {
36
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
37
- }, _typeof$1(obj);
38
- }
39
-
40
- function _toPrimitive(input, hint) {
41
- if (_typeof$1(input) !== "object" || input === null) return input;
42
- var prim = input[Symbol.toPrimitive];
43
- if (prim !== undefined) {
44
- var res = prim.call(input, hint || "default");
45
- if (_typeof$1(res) !== "object") return res;
46
- throw new TypeError("@@toPrimitive must return a primitive value.");
47
- }
48
- return (hint === "string" ? String : Number)(input);
49
- }
50
-
51
- function _toPropertyKey(arg) {
52
- var key = _toPrimitive(arg, "string");
53
- return _typeof$1(key) === "symbol" ? key : String(key);
54
- }
55
-
56
- function _defineProperty(obj, key, value) {
57
- key = _toPropertyKey(key);
58
- if (key in obj) {
59
- Object.defineProperty(obj, key, {
60
- value: value,
61
- enumerable: true,
62
- configurable: true,
63
- writable: true
64
- });
65
- } else {
66
- obj[key] = value;
67
- }
68
- return obj;
69
- }
70
-
71
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
72
- try {
73
- var info = gen[key](arg);
74
- var value = info.value;
75
- } catch (error) {
76
- reject(error);
77
- return;
78
- }
79
- if (info.done) {
80
- resolve(value);
81
- } else {
82
- Promise.resolve(value).then(_next, _throw);
83
- }
84
- }
85
- function _asyncToGenerator(fn) {
86
- return function () {
87
- var self = this,
88
- args = arguments;
89
- return new Promise(function (resolve, reject) {
90
- var gen = fn.apply(self, args);
91
- function _next(value) {
92
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
93
- }
94
- function _throw(err) {
95
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
96
- }
97
- _next(undefined);
98
- });
99
- };
100
- }
101
-
102
- function _arrayWithHoles(arr) {
103
- if (Array.isArray(arr)) return arr;
104
- }
105
-
106
- function _iterableToArrayLimit(arr, i) {
107
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
108
- if (null != _i) {
109
- var _s,
110
- _e,
111
- _x,
112
- _r,
113
- _arr = [],
114
- _n = !0,
115
- _d = !1;
116
- try {
117
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
118
- if (Object(_i) !== _i) return;
119
- _n = !1;
120
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
121
- } catch (err) {
122
- _d = !0, _e = err;
123
- } finally {
124
- try {
125
- if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
126
- } finally {
127
- if (_d) throw _e;
128
- }
129
- }
130
- return _arr;
131
- }
132
- }
133
-
134
- function _arrayLikeToArray(arr, len) {
135
- if (len == null || len > arr.length) len = arr.length;
136
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
137
- return arr2;
138
- }
139
-
140
- function _unsupportedIterableToArray(o, minLen) {
141
- if (!o) return;
142
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
143
- var n = Object.prototype.toString.call(o).slice(8, -1);
144
- if (n === "Object" && o.constructor) n = o.constructor.name;
145
- if (n === "Map" || n === "Set") return Array.from(o);
146
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
147
- }
148
-
149
- function _nonIterableRest() {
150
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
151
- }
152
-
153
- function _slicedToArray(arr, i) {
154
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
155
- }
156
-
157
- function _objectWithoutPropertiesLoose(source, excluded) {
158
- if (source == null) return {};
159
- var target = {};
160
- var sourceKeys = Object.keys(source);
161
- var key, i;
162
- for (i = 0; i < sourceKeys.length; i++) {
163
- key = sourceKeys[i];
164
- if (excluded.indexOf(key) >= 0) continue;
165
- target[key] = source[key];
166
- }
167
- return target;
168
- }
169
-
170
- function _objectWithoutProperties(source, excluded) {
171
- if (source == null) return {};
172
- var target = _objectWithoutPropertiesLoose(source, excluded);
173
- var key, i;
174
- if (Object.getOwnPropertySymbols) {
175
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
176
- for (i = 0; i < sourceSymbolKeys.length; i++) {
177
- key = sourceSymbolKeys[i];
178
- if (excluded.indexOf(key) >= 0) continue;
179
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
180
- target[key] = source[key];
181
- }
182
- }
183
- return target;
184
- }
185
-
186
- var regeneratorRuntime$1 = {exports: {}};
187
-
188
- var _typeof = {exports: {}};
189
-
190
- (function (module) {
191
- function _typeof(obj) {
192
- "@babel/helpers - typeof";
193
-
194
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
195
- return typeof obj;
196
- } : function (obj) {
197
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
198
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
199
- }
200
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
201
- } (_typeof));
202
-
203
- (function (module) {
204
- var _typeof$1 = _typeof.exports["default"];
205
- function _regeneratorRuntime() {
206
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
207
- return exports;
208
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
209
- var exports = {},
210
- Op = Object.prototype,
211
- hasOwn = Op.hasOwnProperty,
212
- defineProperty = Object.defineProperty || function (obj, key, desc) {
213
- obj[key] = desc.value;
214
- },
215
- $Symbol = "function" == typeof Symbol ? Symbol : {},
216
- iteratorSymbol = $Symbol.iterator || "@@iterator",
217
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
218
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
219
- function define(obj, key, value) {
220
- return Object.defineProperty(obj, key, {
221
- value: value,
222
- enumerable: !0,
223
- configurable: !0,
224
- writable: !0
225
- }), obj[key];
226
- }
227
- try {
228
- define({}, "");
229
- } catch (err) {
230
- define = function define(obj, key, value) {
231
- return obj[key] = value;
232
- };
233
- }
234
- function wrap(innerFn, outerFn, self, tryLocsList) {
235
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
236
- generator = Object.create(protoGenerator.prototype),
237
- context = new Context(tryLocsList || []);
238
- return defineProperty(generator, "_invoke", {
239
- value: makeInvokeMethod(innerFn, self, context)
240
- }), generator;
241
- }
242
- function tryCatch(fn, obj, arg) {
243
- try {
244
- return {
245
- type: "normal",
246
- arg: fn.call(obj, arg)
247
- };
248
- } catch (err) {
249
- return {
250
- type: "throw",
251
- arg: err
252
- };
253
- }
254
- }
255
- exports.wrap = wrap;
256
- var ContinueSentinel = {};
257
- function Generator() {}
258
- function GeneratorFunction() {}
259
- function GeneratorFunctionPrototype() {}
260
- var IteratorPrototype = {};
261
- define(IteratorPrototype, iteratorSymbol, function () {
262
- return this;
263
- });
264
- var getProto = Object.getPrototypeOf,
265
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
266
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
267
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
268
- function defineIteratorMethods(prototype) {
269
- ["next", "throw", "return"].forEach(function (method) {
270
- define(prototype, method, function (arg) {
271
- return this._invoke(method, arg);
272
- });
273
- });
274
- }
275
- function AsyncIterator(generator, PromiseImpl) {
276
- function invoke(method, arg, resolve, reject) {
277
- var record = tryCatch(generator[method], generator, arg);
278
- if ("throw" !== record.type) {
279
- var result = record.arg,
280
- value = result.value;
281
- return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
282
- invoke("next", value, resolve, reject);
283
- }, function (err) {
284
- invoke("throw", err, resolve, reject);
285
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
286
- result.value = unwrapped, resolve(result);
287
- }, function (error) {
288
- return invoke("throw", error, resolve, reject);
289
- });
290
- }
291
- reject(record.arg);
292
- }
293
- var previousPromise;
294
- defineProperty(this, "_invoke", {
295
- value: function value(method, arg) {
296
- function callInvokeWithMethodAndArg() {
297
- return new PromiseImpl(function (resolve, reject) {
298
- invoke(method, arg, resolve, reject);
299
- });
300
- }
301
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
302
- }
303
- });
304
- }
305
- function makeInvokeMethod(innerFn, self, context) {
306
- var state = "suspendedStart";
307
- return function (method, arg) {
308
- if ("executing" === state) throw new Error("Generator is already running");
309
- if ("completed" === state) {
310
- if ("throw" === method) throw arg;
311
- return doneResult();
312
- }
313
- for (context.method = method, context.arg = arg;;) {
314
- var delegate = context.delegate;
315
- if (delegate) {
316
- var delegateResult = maybeInvokeDelegate(delegate, context);
317
- if (delegateResult) {
318
- if (delegateResult === ContinueSentinel) continue;
319
- return delegateResult;
320
- }
321
- }
322
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
323
- if ("suspendedStart" === state) throw state = "completed", context.arg;
324
- context.dispatchException(context.arg);
325
- } else "return" === context.method && context.abrupt("return", context.arg);
326
- state = "executing";
327
- var record = tryCatch(innerFn, self, context);
328
- if ("normal" === record.type) {
329
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
330
- return {
331
- value: record.arg,
332
- done: context.done
333
- };
334
- }
335
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
336
- }
337
- };
338
- }
339
- function maybeInvokeDelegate(delegate, context) {
340
- var methodName = context.method,
341
- method = delegate.iterator[methodName];
342
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
343
- var record = tryCatch(method, delegate.iterator, context.arg);
344
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
345
- var info = record.arg;
346
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
347
- }
348
- function pushTryEntry(locs) {
349
- var entry = {
350
- tryLoc: locs[0]
351
- };
352
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
353
- }
354
- function resetTryEntry(entry) {
355
- var record = entry.completion || {};
356
- record.type = "normal", delete record.arg, entry.completion = record;
357
- }
358
- function Context(tryLocsList) {
359
- this.tryEntries = [{
360
- tryLoc: "root"
361
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
362
- }
363
- function values(iterable) {
364
- if (iterable) {
365
- var iteratorMethod = iterable[iteratorSymbol];
366
- if (iteratorMethod) return iteratorMethod.call(iterable);
367
- if ("function" == typeof iterable.next) return iterable;
368
- if (!isNaN(iterable.length)) {
369
- var i = -1,
370
- next = function next() {
371
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
372
- return next.value = undefined, next.done = !0, next;
373
- };
374
- return next.next = next;
375
- }
376
- }
377
- return {
378
- next: doneResult
379
- };
380
- }
381
- function doneResult() {
382
- return {
383
- value: undefined,
384
- done: !0
385
- };
386
- }
387
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
388
- value: GeneratorFunctionPrototype,
389
- configurable: !0
390
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
391
- value: GeneratorFunction,
392
- configurable: !0
393
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
394
- var ctor = "function" == typeof genFun && genFun.constructor;
395
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
396
- }, exports.mark = function (genFun) {
397
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
398
- }, exports.awrap = function (arg) {
399
- return {
400
- __await: arg
401
- };
402
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
403
- return this;
404
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
405
- void 0 === PromiseImpl && (PromiseImpl = Promise);
406
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
407
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
408
- return result.done ? result.value : iter.next();
409
- });
410
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
411
- return this;
412
- }), define(Gp, "toString", function () {
413
- return "[object Generator]";
414
- }), exports.keys = function (val) {
415
- var object = Object(val),
416
- keys = [];
417
- for (var key in object) keys.push(key);
418
- return keys.reverse(), function next() {
419
- for (; keys.length;) {
420
- var key = keys.pop();
421
- if (key in object) return next.value = key, next.done = !1, next;
422
- }
423
- return next.done = !0, next;
424
- };
425
- }, exports.values = values, Context.prototype = {
426
- constructor: Context,
427
- reset: function reset(skipTempReset) {
428
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
429
- },
430
- stop: function stop() {
431
- this.done = !0;
432
- var rootRecord = this.tryEntries[0].completion;
433
- if ("throw" === rootRecord.type) throw rootRecord.arg;
434
- return this.rval;
435
- },
436
- dispatchException: function dispatchException(exception) {
437
- if (this.done) throw exception;
438
- var context = this;
439
- function handle(loc, caught) {
440
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
441
- }
442
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
443
- var entry = this.tryEntries[i],
444
- record = entry.completion;
445
- if ("root" === entry.tryLoc) return handle("end");
446
- if (entry.tryLoc <= this.prev) {
447
- var hasCatch = hasOwn.call(entry, "catchLoc"),
448
- hasFinally = hasOwn.call(entry, "finallyLoc");
449
- if (hasCatch && hasFinally) {
450
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
451
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
452
- } else if (hasCatch) {
453
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
454
- } else {
455
- if (!hasFinally) throw new Error("try statement without catch or finally");
456
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
457
- }
458
- }
459
- }
460
- },
461
- abrupt: function abrupt(type, arg) {
462
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
463
- var entry = this.tryEntries[i];
464
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
465
- var finallyEntry = entry;
466
- break;
467
- }
468
- }
469
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
470
- var record = finallyEntry ? finallyEntry.completion : {};
471
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
472
- },
473
- complete: function complete(record, afterLoc) {
474
- if ("throw" === record.type) throw record.arg;
475
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
476
- },
477
- finish: function finish(finallyLoc) {
478
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
479
- var entry = this.tryEntries[i];
480
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
481
- }
482
- },
483
- "catch": function _catch(tryLoc) {
484
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
485
- var entry = this.tryEntries[i];
486
- if (entry.tryLoc === tryLoc) {
487
- var record = entry.completion;
488
- if ("throw" === record.type) {
489
- var thrown = record.arg;
490
- resetTryEntry(entry);
491
- }
492
- return thrown;
493
- }
494
- }
495
- throw new Error("illegal catch attempt");
496
- },
497
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
498
- return this.delegate = {
499
- iterator: values(iterable),
500
- resultName: resultName,
501
- nextLoc: nextLoc
502
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
503
- }
504
- }, exports;
505
- }
506
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
507
- } (regeneratorRuntime$1));
508
-
509
- // TODO(Babel 8): Remove this file.
510
-
511
- var runtime = regeneratorRuntime$1.exports();
512
- var regenerator = runtime;
513
-
514
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
515
- try {
516
- regeneratorRuntime = runtime;
517
- } catch (accidentalStrictMode) {
518
- if (typeof globalThis === "object") {
519
- globalThis.regeneratorRuntime = runtime;
520
- } else {
521
- Function("r", "regeneratorRuntime = r")(runtime);
522
- }
523
- }
524
-
525
- var classnames$1 = {exports: {}};
526
-
527
- /*!
528
- Copyright (c) 2018 Jed Watson.
529
- Licensed under the MIT License (MIT), see
530
- http://jedwatson.github.io/classnames
531
- */
532
-
533
- (function (module) {
534
- /* global define */
535
-
536
- (function () {
537
-
538
- var hasOwn = {}.hasOwnProperty;
539
-
540
- function classNames() {
541
- var classes = [];
542
-
543
- for (var i = 0; i < arguments.length; i++) {
544
- var arg = arguments[i];
545
- if (!arg) continue;
546
-
547
- var argType = typeof arg;
548
-
549
- if (argType === 'string' || argType === 'number') {
550
- classes.push(arg);
551
- } else if (Array.isArray(arg)) {
552
- if (arg.length) {
553
- var inner = classNames.apply(null, arg);
554
- if (inner) {
555
- classes.push(inner);
556
- }
557
- }
558
- } else if (argType === 'object') {
559
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
560
- classes.push(arg.toString());
561
- continue;
562
- }
563
-
564
- for (var key in arg) {
565
- if (hasOwn.call(arg, key) && arg[key]) {
566
- classes.push(key);
567
- }
568
- }
569
- }
570
- }
571
-
572
- return classes.join(' ');
573
- }
574
-
575
- if (module.exports) {
576
- classNames.default = classNames;
577
- module.exports = classNames;
578
- } else {
579
- window.classNames = classNames;
580
- }
581
- }());
582
- } (classnames$1));
583
-
584
- var classnames = classnames$1.exports;
585
-
586
- var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
587
-
588
- var css = ".neeto-molecules-autosave-input input::-webkit-inner-spin-button,.neeto-molecules-autosave-input input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.neeto-molecules-autosave-input input[type=number]{-moz-appearance:textfield}.neeto-molecules-autosave-input .neeto-ui-input__suffix{margin-right:0!important}";
589
- n(css,{});
590
-
591
- var TOOLTIP_PROPS = {
592
- save: {
593
- content: i18next.t("neetoMolecules.common.actions.save"),
594
- position: "top",
595
- delay: 300
596
- },
597
- cancel: {
598
- content: i18next.t("neetoMolecules.common.actions.cancel"),
599
- position: "top",
600
- delay: 300
601
- }
602
- };
603
-
604
- var mergeRefs = function mergeRefs() {
605
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
606
- refs[_key] = arguments[_key];
607
- }
608
- return function (node) {
609
- return refs.forEach(function (ref) {
610
- return typeof ref === "function" ? ref(node) : ref.current = node;
611
- });
612
- };
613
- };
614
-
615
- var _excluded = ["nullable", "value", "isSaving", "className", "handleSubmit", "handleCancel"];
616
- var AutoSaveInput = /*#__PURE__*/React__default["default"].forwardRef(function (props, ref) {
617
- var _props$nullable = props.nullable,
618
- nullable = _props$nullable === void 0 ? false : _props$nullable,
619
- _props$value = props.value,
620
- value = _props$value === void 0 ? "" : _props$value,
621
- isSaving = props.isSaving,
622
- _props$className = props.className,
623
- className = _props$className === void 0 ? "" : _props$className,
624
- _props$handleSubmit = props.handleSubmit,
625
- handleSubmit = _props$handleSubmit === void 0 ? pure.noop : _props$handleSubmit,
626
- _props$handleCancel = props.handleCancel,
627
- handleCancel = _props$handleCancel === void 0 ? pure.noop : _props$handleCancel,
628
- otherProps = _objectWithoutProperties(props, _excluded);
629
- var _useState = React.useState(false),
630
- _useState2 = _slicedToArray(_useState, 2),
631
- isSubmitting = _useState2[0],
632
- setIsSubmitting = _useState2[1];
633
- var _useStateWithDependen = reactUtils.useStateWithDependency(value !== null && value !== void 0 ? value : ""),
634
- _useStateWithDependen2 = _slicedToArray(_useStateWithDependen, 2),
635
- inputValue = _useStateWithDependen2[0],
636
- setInputValue = _useStateWithDependen2[1];
637
- var inputRef = React.useRef(null);
638
- var trimmedValue = inputValue && (inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim());
639
- var isValidValue = nullable || pure.isNotEmpty(trimmedValue) && ramda.isNotNil(trimmedValue);
640
- var handleFocusOut = function handleFocusOut() {
641
- if (!isValidValue || isSubmitting) return;
642
- inputValue !== value ? onSubmit() : handleCancel(inputValue);
643
- };
644
- var onSubmit = /*#__PURE__*/function () {
645
- var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
646
- return regenerator.wrap(function _callee$(_context) {
647
- while (1) switch (_context.prev = _context.next) {
648
- case 0:
649
- setIsSubmitting(true);
650
- _context.next = 3;
651
- return handleSubmit(inputValue);
652
- case 3:
653
- setIsSubmitting(false);
654
- case 4:
655
- case "end":
656
- return _context.stop();
657
- }
658
- }, _callee);
659
- }));
660
- return function onSubmit() {
661
- return _ref.apply(this, arguments);
662
- };
663
- }();
664
- var closeRef = reactUtils.useHotKeys("escape", function (event) {
665
- event.stopPropagation();
666
- handleCancel(inputValue);
667
- }, {
668
- mode: "scoped"
669
- });
670
- var submitRef = reactUtils.useHotKeys(["command+return", "return"], function () {
671
- return onSubmit();
672
- }, {
673
- mode: "scoped",
674
- enabled: isValidValue
675
- });
676
- React.useEffect(function () {
677
- return inputRef.current && inputRef.current.focus();
678
- }, [isSubmitting]);
679
- return /*#__PURE__*/React__default["default"].createElement("div", {
680
- className: classnames("flex flex-grow", _defineProperty({}, className, className))
681
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({
682
- className: "neeto-molecules-autosave-input",
683
- "data-testid": "neeto-molecules-autosave-input",
684
- disabled: isSubmitting,
685
- ref: mergeRefs(inputRef, closeRef, submitRef),
686
- value: inputValue,
687
- onChange: function onChange(e) {
688
- return setInputValue(e.target.value);
689
- },
690
- onBlur: function onBlur(event) {
691
- var _otherProps$onBlur;
692
- otherProps === null || otherProps === void 0 ? void 0 : (_otherProps$onBlur = otherProps.onBlur) === null || _otherProps$onBlur === void 0 ? void 0 : _otherProps$onBlur.call(otherProps, event);
693
- handleFocusOut();
694
- }
695
- }, otherProps, {
696
- suffix: /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
697
- "data-testid": "neeto-molecules-autosave-input-save",
698
- disabled: !isValidValue || isSubmitting || isSaving,
699
- icon: neetoIcons.Check,
700
- loading: isSubmitting || isSaving,
701
- size: "small",
702
- style: "text",
703
- tabIndex: -1,
704
- tooltipProps: TOOLTIP_PROPS["save"],
705
- onClick: onSubmit
706
- }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
707
- disabled: isSubmitting || isSaving,
708
- icon: neetoIcons.Close,
709
- ref: ref,
710
- "data-testid": "neeto-molecules-autosave-input-cancel",
711
- size: "small",
712
- style: "text",
713
- tabIndex: -1,
714
- tooltipProps: TOOLTIP_PROPS["cancel"],
715
- onClick: function onClick() {
716
- return handleCancel(inputValue);
717
- }
718
- }))
719
- })));
720
- });
721
- AutoSaveInput.displayName = "AutoSaveInput";
722
-
723
- module.exports = AutoSaveInput;
724
- //# sourceMappingURL=AutoSaveInput.cjs.js.map