@bigbinary/neeto-molecules 1.1.16 → 1.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/dist/AutoSaveInput.js +658 -0
  2. package/dist/AutoSaveInput.js.map +1 -0
  3. package/dist/Breadcrumbs.js +38 -0
  4. package/dist/Breadcrumbs.js.map +1 -0
  5. package/dist/BrowserSupport.js +418 -0
  6. package/dist/BrowserSupport.js.map +1 -0
  7. package/dist/Builder.js +662 -0
  8. package/dist/Builder.js.map +1 -0
  9. package/dist/CalendarView.js +538 -0
  10. package/dist/CalendarView.js.map +1 -0
  11. package/dist/Codeblock.js +236 -0
  12. package/dist/Codeblock.js.map +1 -0
  13. package/dist/{Columns/index.js → Columns.js} +130 -13
  14. package/dist/Columns.js.map +1 -0
  15. package/dist/{ConfirmationModal/index.js → ConfirmationModal.js} +20 -8
  16. package/dist/ConfirmationModal.js.map +1 -0
  17. package/dist/Container.js +1211 -0
  18. package/dist/Container.js.map +1 -0
  19. package/dist/CopyToClipboardButton.js +209 -0
  20. package/dist/CopyToClipboardButton.js.map +1 -0
  21. package/dist/CustomDomain.js +688 -0
  22. package/dist/CustomDomain.js.map +1 -0
  23. package/dist/CustomDomainDashboard.js +2283 -0
  24. package/dist/CustomDomainDashboard.js.map +1 -0
  25. package/dist/{DateFormat/index.js → DateFormat.js} +25 -8
  26. package/dist/DateFormat.js.map +1 -0
  27. package/dist/DateRangeFilter.js +229 -0
  28. package/dist/DateRangeFilter.js.map +1 -0
  29. package/dist/DynamicVariables.js +183 -0
  30. package/dist/DynamicVariables.js.map +1 -0
  31. package/dist/EmailForm.js +2291 -0
  32. package/dist/EmailForm.js.map +1 -0
  33. package/dist/EmailPreview.js +1353 -0
  34. package/dist/EmailPreview.js.map +1 -0
  35. package/dist/{ErrorPage/constants.js → ErrorPage.js} +137 -36
  36. package/dist/ErrorPage.js.map +1 -0
  37. package/dist/Header.js +122 -0
  38. package/dist/Header.js.map +1 -0
  39. package/dist/IconPicker.js +313 -0
  40. package/dist/IconPicker.js.map +1 -0
  41. package/dist/ImageWithFallback.js +181 -0
  42. package/dist/ImageWithFallback.js.map +1 -0
  43. package/dist/IntegrationCard.js +343 -0
  44. package/dist/IntegrationCard.js.map +1 -0
  45. package/dist/IntegrationDisconnectAlert.js +80 -0
  46. package/dist/IntegrationDisconnectAlert.js.map +1 -0
  47. package/dist/{IntegrationWalkthroughModal/index.js → IntegrationWalkthroughModal.js} +8 -6
  48. package/dist/IntegrationWalkthroughModal.js.map +1 -0
  49. package/dist/IpRestriction.js +857 -0
  50. package/dist/IpRestriction.js.map +1 -0
  51. package/dist/KeyboardShortcuts.js +359 -0
  52. package/dist/KeyboardShortcuts.js.map +1 -0
  53. package/dist/LoginPage.js +593 -0
  54. package/dist/LoginPage.js.map +1 -0
  55. package/dist/MenuBar.js +1461 -0
  56. package/dist/MenuBar.js.map +1 -0
  57. package/dist/Metadata.js +206 -0
  58. package/dist/Metadata.js.map +1 -0
  59. package/dist/{MoreDropdown/index.js → MoreDropdown.js} +102 -9
  60. package/dist/MoreDropdown.js.map +1 -0
  61. package/dist/NavigationHeader.js +690 -0
  62. package/dist/NavigationHeader.js.map +1 -0
  63. package/dist/NeetoWidget.js +1333 -0
  64. package/dist/NeetoWidget.js.map +1 -0
  65. package/dist/PageLoader.js +134 -0
  66. package/dist/PageLoader.js.map +1 -0
  67. package/dist/PhoneNumber.js +365 -0
  68. package/dist/PhoneNumber.js.map +1 -0
  69. package/dist/PublishBlock.js +158 -0
  70. package/dist/PublishBlock.js.map +1 -0
  71. package/dist/Rename.js +450 -0
  72. package/dist/Rename.js.map +1 -0
  73. package/dist/ResponsiveDevicePicker.js +194 -0
  74. package/dist/ResponsiveDevicePicker.js.map +1 -0
  75. package/dist/Schedule.js +1046 -0
  76. package/dist/Schedule.js.map +1 -0
  77. package/dist/Scrollable.js +122 -0
  78. package/dist/Scrollable.js.map +1 -0
  79. package/dist/Search.js +151 -0
  80. package/dist/Search.js.map +1 -0
  81. package/dist/Security.js +1835 -0
  82. package/dist/Security.js.map +1 -0
  83. package/dist/SendToFields.js +601 -0
  84. package/dist/SendToFields.js.map +1 -0
  85. package/dist/Settings.js +435 -0
  86. package/dist/Settings.js.map +1 -0
  87. package/dist/ShareViaEmail.js +2277 -0
  88. package/dist/ShareViaEmail.js.map +1 -0
  89. package/dist/ShareViaLink.js +628 -0
  90. package/dist/ShareViaLink.js.map +1 -0
  91. package/dist/Sidebar.js +972 -0
  92. package/dist/Sidebar.js.map +1 -0
  93. package/dist/SubHeader.js +216 -0
  94. package/dist/SubHeader.js.map +1 -0
  95. package/dist/{TableWrapper/index.js → TableWrapper.js} +6 -3
  96. package/dist/TableWrapper.js.map +1 -0
  97. package/dist/ThemeSidebar.js +1984 -0
  98. package/dist/ThemeSidebar.js.map +1 -0
  99. package/dist/TimeFormat.js +47 -0
  100. package/dist/TimeFormat.js.map +1 -0
  101. package/dist/TimezoneMismatchModal.js +168 -0
  102. package/dist/TimezoneMismatchModal.js.map +1 -0
  103. package/dist/ToggleFeatureCard.js +323 -0
  104. package/dist/ToggleFeatureCard.js.map +1 -0
  105. package/package.json +22 -13
  106. package/dist/AutoSaveInput/autosaveinput.scss +0 -15
  107. package/dist/AutoSaveInput/constants.js +0 -13
  108. package/dist/AutoSaveInput/index.js +0 -124
  109. package/dist/AutoSaveInput/utils.js +0 -10
  110. package/dist/Breadcrumbs/breadcrumbs.scss +0 -33
  111. package/dist/Breadcrumbs/index.js +0 -31
  112. package/dist/BrowserSupport/Callout.js +0 -15
  113. package/dist/BrowserSupport/ContactUs.js +0 -21
  114. package/dist/BrowserSupport/DownloadLink.js +0 -17
  115. package/dist/BrowserSupport/PartialSupportedBrowserVersion.js +0 -17
  116. package/dist/BrowserSupport/UnknownBrowser.js +0 -13
  117. package/dist/BrowserSupport/UnsupportedBrowser.js +0 -24
  118. package/dist/BrowserSupport/UnsupportedBrowserMessage.js +0 -22
  119. package/dist/BrowserSupport/UnsupportedBrowserVersion.js +0 -27
  120. package/dist/BrowserSupport/UnsupportedVersionMessage.js +0 -30
  121. package/dist/BrowserSupport/browsersupport.scss +0 -71
  122. package/dist/BrowserSupport/constants.js +0 -63
  123. package/dist/BrowserSupport/index.js +0 -58
  124. package/dist/BrowserSupport/utils.js +0 -32
  125. package/dist/Builder/Body.js +0 -9
  126. package/dist/Builder/ElementsPanel/ElementsList/Element.js +0 -27
  127. package/dist/Builder/ElementsPanel/ElementsList/Section.js +0 -28
  128. package/dist/Builder/ElementsPanel/ElementsList/TitleBar.js +0 -28
  129. package/dist/Builder/ElementsPanel/ElementsList/index.js +0 -63
  130. package/dist/Builder/ElementsPanel/SelectedElementsList/SelectedElement.js +0 -73
  131. package/dist/Builder/ElementsPanel/SelectedElementsList/TitleBar.js +0 -50
  132. package/dist/Builder/ElementsPanel/SelectedElementsList/index.js +0 -91
  133. package/dist/Builder/ElementsPanel/index.js +0 -70
  134. package/dist/Builder/PropertiesPanel/EmptyProperty.js +0 -21
  135. package/dist/Builder/PropertiesPanel/Skeleton.js +0 -24
  136. package/dist/Builder/PropertiesPanel/index.js +0 -12
  137. package/dist/Builder/index.js +0 -3
  138. package/dist/Builder/styles.scss +0 -84
  139. package/dist/CalendarView/CustomDatePicker.js +0 -87
  140. package/dist/CalendarView/Header.js +0 -53
  141. package/dist/CalendarView/constants.js +0 -19
  142. package/dist/CalendarView/index.js +0 -83
  143. package/dist/CalendarView/utils.js +0 -50
  144. package/dist/Codeblock/index.js +0 -30
  145. package/dist/Columns/utils.js +0 -20
  146. package/dist/ConfirmationModal/constants.js +0 -3
  147. package/dist/ConfirmationModal/utils.js +0 -6
  148. package/dist/Container/container.scss +0 -21
  149. package/dist/Container/index.js +0 -23
  150. package/dist/CopyToClipboardButton/constants.js +0 -13
  151. package/dist/CopyToClipboardButton/copyToClipboard.scss +0 -22
  152. package/dist/CopyToClipboardButton/index.js +0 -59
  153. package/dist/CustomDomain/index.js +0 -98
  154. package/dist/CustomDomainDashboard/DeleteAlert.js +0 -28
  155. package/dist/CustomDomainDashboard/Header.js +0 -32
  156. package/dist/CustomDomainDashboard/Manage/Record.js +0 -42
  157. package/dist/CustomDomainDashboard/Manage/StatusInfo.js +0 -21
  158. package/dist/CustomDomainDashboard/Manage/TagBlock.js +0 -36
  159. package/dist/CustomDomainDashboard/Manage/constants.js +0 -4
  160. package/dist/CustomDomainDashboard/Manage/index.js +0 -125
  161. package/dist/CustomDomainDashboard/Manage/utils.js +0 -8
  162. package/dist/CustomDomainDashboard/api.js +0 -35
  163. package/dist/CustomDomainDashboard/constants.js +0 -2
  164. package/dist/CustomDomainDashboard/index.js +0 -118
  165. package/dist/CustomDomainDashboard/useCustomDomainApi.js +0 -71
  166. package/dist/CustomDomainDashboard/utils.js +0 -84
  167. package/dist/DateRangeFilter/index.js +0 -60
  168. package/dist/DateRangeFilter/utils.js +0 -113
  169. package/dist/DynamicVariables/dynamic-variables.scss +0 -34
  170. package/dist/DynamicVariables/index.js +0 -59
  171. package/dist/DynamicVariables/utils.js +0 -37
  172. package/dist/EmailForm/EmailForm.js +0 -98
  173. package/dist/EmailForm/EmailFormProvider.js +0 -45
  174. package/dist/EmailForm/EmailPreview.js +0 -129
  175. package/dist/EmailForm/ReplyToField.js +0 -55
  176. package/dist/EmailForm/SendToField.js +0 -28
  177. package/dist/EmailForm/SubjectField.js +0 -64
  178. package/dist/EmailForm/constants.js +0 -33
  179. package/dist/EmailForm/contexts/EmailForm.js +0 -7
  180. package/dist/EmailForm/index.js +0 -4
  181. package/dist/EmailForm/utils.js +0 -10
  182. package/dist/EmailPreview/index.js +0 -2
  183. package/dist/ErrorPage/index.js +0 -78
  184. package/dist/Header/Breadcrumbs.js +0 -31
  185. package/dist/Header/Dropdown.js +0 -12
  186. package/dist/Header/constants.js +0 -6
  187. package/dist/Header/header.scss +0 -121
  188. package/dist/Header/index.js +0 -61
  189. package/dist/IconPicker/Icon.js +0 -34
  190. package/dist/IconPicker/NoResults.js +0 -12
  191. package/dist/IconPicker/constants.js +0 -8
  192. package/dist/IconPicker/icon-picker.scss +0 -1
  193. package/dist/IconPicker/index.js +0 -164
  194. package/dist/ImageWithFallback/ImagePlaceholder.js +0 -16
  195. package/dist/ImageWithFallback/index.js +0 -31
  196. package/dist/IntegrationCard/Dropdown.js +0 -45
  197. package/dist/IntegrationCard/Status.js +0 -25
  198. package/dist/IntegrationCard/index.js +0 -128
  199. package/dist/IntegrationDisconnectAlert/index.js +0 -36
  200. package/dist/IpRestriction/AllowedIpRanges.js +0 -75
  201. package/dist/IpRestriction/CurrentIp.js +0 -26
  202. package/dist/IpRestriction/FormRow.js +0 -84
  203. package/dist/IpRestriction/Row.js +0 -91
  204. package/dist/IpRestriction/apis/allowed_ip_ranges.js +0 -28
  205. package/dist/IpRestriction/apis/current_ip.js +0 -11
  206. package/dist/IpRestriction/apis/ip_restriction.js +0 -16
  207. package/dist/IpRestriction/constants.js +0 -20
  208. package/dist/IpRestriction/hooks/reactQuery/useAllowedIpRanges.js +0 -34
  209. package/dist/IpRestriction/hooks/reactQuery/useCurrentIp.js +0 -10
  210. package/dist/IpRestriction/hooks/reactQuery/useIpRestrictions.js +0 -18
  211. package/dist/IpRestriction/index.js +0 -102
  212. package/dist/IpRestriction/utils.js +0 -85
  213. package/dist/KeyboardShortcuts/Pane/HotKey.js +0 -44
  214. package/dist/KeyboardShortcuts/Pane/HotKeyList.js +0 -42
  215. package/dist/KeyboardShortcuts/Pane/constants.js +0 -25
  216. package/dist/KeyboardShortcuts/Pane/index.js +0 -61
  217. package/dist/KeyboardShortcuts/Pane/keyboard-shortcuts.scss +0 -5
  218. package/dist/KeyboardShortcuts/Pane/utils.js +0 -66
  219. package/dist/KeyboardShortcuts/hooks/useKeyboardShortcutsPaneState.js +0 -31
  220. package/dist/KeyboardShortcuts/index.js +0 -9
  221. package/dist/LoginPage/Form.js +0 -57
  222. package/dist/LoginPage/constants.js +0 -12
  223. package/dist/LoginPage/index.js +0 -103
  224. package/dist/MenuBar/AddNew.js +0 -25
  225. package/dist/MenuBar/Block.js +0 -60
  226. package/dist/MenuBar/Item.js +0 -32
  227. package/dist/MenuBar/Search.js +0 -39
  228. package/dist/MenuBar/SubTitle.js +0 -23
  229. package/dist/MenuBar/index.js +0 -46
  230. package/dist/MenuBar/menubar.scss +0 -154
  231. package/dist/Metadata/Block.js +0 -30
  232. package/dist/Metadata/DetailsBlock.js +0 -86
  233. package/dist/Metadata/constants.js +0 -9
  234. package/dist/Metadata/index.js +0 -29
  235. package/dist/Metadata/metadata.scss +0 -15
  236. package/dist/MoreDropdown/constants.js +0 -25
  237. package/dist/NavigationHeader/LeftBlock.js +0 -32
  238. package/dist/NavigationHeader/Navigation.js +0 -24
  239. package/dist/NavigationHeader/RightBlock.js +0 -68
  240. package/dist/NavigationHeader/constants.js +0 -11
  241. package/dist/NavigationHeader/index.js +0 -19
  242. package/dist/NavigationHeader/navigation-header.scss +0 -3
  243. package/dist/NeetoWidget/CodeBlock.js +0 -57
  244. package/dist/NeetoWidget/CodeSnippet.js +0 -119
  245. package/dist/NeetoWidget/EmbedCode.js +0 -281
  246. package/dist/NeetoWidget/Main.js +0 -19
  247. package/dist/NeetoWidget/SelectionSwitches/TooltipSwitch.js +0 -25
  248. package/dist/NeetoWidget/SelectionSwitches/index.js +0 -44
  249. package/dist/NeetoWidget/SyntaxHighlighter.js +0 -17
  250. package/dist/NeetoWidget/api.js +0 -20
  251. package/dist/NeetoWidget/constants.js +0 -62
  252. package/dist/NeetoWidget/hooks/useForceUpdate.js +0 -14
  253. package/dist/NeetoWidget/index.js +0 -7
  254. package/dist/NeetoWidget/mutations.js +0 -9
  255. package/dist/NeetoWidget/queries.js +0 -32
  256. package/dist/NeetoWidget/utils.js +0 -83
  257. package/dist/PageLoader/index.js +0 -81
  258. package/dist/PageLoader/page-loader.scss +0 -95
  259. package/dist/PhoneNumber/CountryPicker/SingleValue.js +0 -21
  260. package/dist/PhoneNumber/CountryPicker/constants.js +0 -26
  261. package/dist/PhoneNumber/CountryPicker/index.js +0 -59
  262. package/dist/PhoneNumber/FormikPhoneNumberInput.js +0 -21
  263. package/dist/PhoneNumber/PhoneNumber.js +0 -30
  264. package/dist/PhoneNumber/PhoneNumberInput.js +0 -79
  265. package/dist/PhoneNumber/index.js +0 -5
  266. package/dist/PhoneNumber/utils.js +0 -55
  267. package/dist/PublishBlock/AlertBlock.js +0 -14
  268. package/dist/PublishBlock/index.js +0 -100
  269. package/dist/PublishBlock/publish-block.scss +0 -25
  270. package/dist/Rename/DummySpan.js +0 -21
  271. package/dist/Rename/constants.js +0 -1
  272. package/dist/Rename/index.js +0 -191
  273. package/dist/Rename/rename.scss +0 -69
  274. package/dist/Rename/utils.js +0 -10
  275. package/dist/ResponsiveDevicePicker/constants.js +0 -19
  276. package/dist/ResponsiveDevicePicker/index.js +0 -36
  277. package/dist/Schedule/DisplayAvailability.js +0 -58
  278. package/dist/Schedule/Fields.js +0 -43
  279. package/dist/Schedule/Form/ScheduleRow.js +0 -125
  280. package/dist/Schedule/Form/constants.js +0 -20
  281. package/dist/Schedule/Form/index.js +0 -144
  282. package/dist/Schedule/Form/utils.js +0 -63
  283. package/dist/Schedule/Header.js +0 -76
  284. package/dist/Schedule/ScheduleContext.js +0 -8
  285. package/dist/Schedule/constants.js +0 -8
  286. package/dist/Schedule/dayjsExtended/constants.js +0 -1
  287. package/dist/Schedule/dayjsExtended/index.js +0 -14
  288. package/dist/Schedule/dayjsExtended/range.js +0 -73
  289. package/dist/Schedule/index.js +0 -80
  290. package/dist/Schedule/utils.js +0 -152
  291. package/dist/Scrollable/constants.js +0 -8
  292. package/dist/Scrollable/index.js +0 -26
  293. package/dist/Scrollable/scrollable.scss +0 -32
  294. package/dist/Search/index.js +0 -52
  295. package/dist/Security/AllowedKeywords/Add.js +0 -38
  296. package/dist/Security/AllowedKeywords/index.js +0 -38
  297. package/dist/Security/PasswordBlock.js +0 -31
  298. package/dist/Security/RadioBlock.js +0 -38
  299. package/dist/Security/api.js +0 -12
  300. package/dist/Security/constants.js +0 -58
  301. package/dist/Security/index.js +0 -68
  302. package/dist/Security/useSecurityApi.js +0 -22
  303. package/dist/Security/utils.js +0 -31
  304. package/dist/SendToFields/FilePicker.js +0 -34
  305. package/dist/SendToFields/constants.js +0 -6
  306. package/dist/SendToFields/index.js +0 -102
  307. package/dist/SendToFields/utils.js +0 -54
  308. package/dist/Settings/Category.js +0 -30
  309. package/dist/Settings/Item.js +0 -38
  310. package/dist/Settings/index.js +0 -37
  311. package/dist/Settings/utils.js +0 -4
  312. package/dist/ShareViaEmail/EmailBodyEditor.js +0 -22
  313. package/dist/ShareViaEmail/FilePicker.js +0 -43
  314. package/dist/ShareViaEmail/Form.js +0 -105
  315. package/dist/ShareViaEmail/FormikDatePicker.js +0 -24
  316. package/dist/ShareViaEmail/constants.js +0 -14
  317. package/dist/ShareViaEmail/index.js +0 -92
  318. package/dist/ShareViaEmail/utils.js +0 -72
  319. package/dist/ShareViaLink/EditURL.js +0 -74
  320. package/dist/ShareViaLink/Link.js +0 -105
  321. package/dist/ShareViaLink/QRCode.js +0 -41
  322. package/dist/ShareViaLink/RegenerateURL.js +0 -47
  323. package/dist/ShareViaLink/SocialMedia.js +0 -52
  324. package/dist/ShareViaLink/constants.js +0 -25
  325. package/dist/ShareViaLink/edit-url.scss +0 -8
  326. package/dist/ShareViaLink/index.js +0 -46
  327. package/dist/ShareViaLink/utils.js +0 -47
  328. package/dist/Sidebar/AppSwitcher/AppLink.js +0 -45
  329. package/dist/Sidebar/AppSwitcher/Backdrop.js +0 -13
  330. package/dist/Sidebar/AppSwitcher/Body.js +0 -65
  331. package/dist/Sidebar/AppSwitcher/Portal.js +0 -27
  332. package/dist/Sidebar/AppSwitcher/appswitcher.scss +0 -164
  333. package/dist/Sidebar/AppSwitcher/index.js +0 -47
  334. package/dist/Sidebar/AppSwitcher/utils.js +0 -25
  335. package/dist/Sidebar/Chevron.js +0 -14
  336. package/dist/Sidebar/FeaturedTooltip.js +0 -19
  337. package/dist/Sidebar/Footer/AppSwitcherButton.js +0 -48
  338. package/dist/Sidebar/Footer/ProfileButton.js +0 -30
  339. package/dist/Sidebar/Footer/index.js +0 -56
  340. package/dist/Sidebar/Footer/utils.js +0 -39
  341. package/dist/Sidebar/Header.js +0 -33
  342. package/dist/Sidebar/HelpSection/HelpSectionMenu.js +0 -52
  343. package/dist/Sidebar/HelpSection/index.js +0 -32
  344. package/dist/Sidebar/Links.js +0 -112
  345. package/dist/Sidebar/NavIconWrapper.js +0 -20
  346. package/dist/Sidebar/ProfileSection/LinkSection.js +0 -36
  347. package/dist/Sidebar/ProfileSection/ProfileMenu.js +0 -48
  348. package/dist/Sidebar/ProfileSection/index.js +0 -42
  349. package/dist/Sidebar/constants.js +0 -40
  350. package/dist/Sidebar/index.js +0 -94
  351. package/dist/Sidebar/sidebar.scss +0 -379
  352. package/dist/Sidebar/utils.js +0 -18
  353. package/dist/SubHeader/RightBlock/Columns.js +0 -35
  354. package/dist/SubHeader/RightBlock/Download.js +0 -28
  355. package/dist/SubHeader/RightBlock/Filter.js +0 -31
  356. package/dist/SubHeader/RightBlock/index.js +0 -21
  357. package/dist/SubHeader/RightBlock/utils.js +0 -13
  358. package/dist/SubHeader/index.js +0 -28
  359. package/dist/SubHeader/subheader.scss +0 -78
  360. package/dist/ThemeSidebar/Customize/Logo.js +0 -39
  361. package/dist/ThemeSidebar/Customize/Properties.js +0 -170
  362. package/dist/ThemeSidebar/Customize/index.js +0 -66
  363. package/dist/ThemeSidebar/Themes/ThemeCard.js +0 -135
  364. package/dist/ThemeSidebar/Themes/index.js +0 -110
  365. package/dist/ThemeSidebar/TitleBar.js +0 -62
  366. package/dist/ThemeSidebar/constants.js +0 -127
  367. package/dist/ThemeSidebar/fields/AlignmentBlock.js +0 -50
  368. package/dist/ThemeSidebar/fields/Card.js +0 -19
  369. package/dist/ThemeSidebar/fields/ColorBlock.js +0 -19
  370. package/dist/ThemeSidebar/fields/FontPickerBlock.js +0 -35
  371. package/dist/ThemeSidebar/fields/ImageBlock/ImageUploader.js +0 -67
  372. package/dist/ThemeSidebar/fields/ImageBlock/ProgressBar.js +0 -22
  373. package/dist/ThemeSidebar/fields/ImageBlock/index.js +0 -55
  374. package/dist/ThemeSidebar/fields/SelectBlock.js +0 -24
  375. package/dist/ThemeSidebar/fields/SliderBlock.js +0 -30
  376. package/dist/ThemeSidebar/fields/SwitchBlock.js +0 -17
  377. package/dist/ThemeSidebar/fields/TextBlock.js +0 -13
  378. package/dist/ThemeSidebar/fields/slider.scss +0 -199
  379. package/dist/ThemeSidebar/hooks/useDirectUploadDropzone.js +0 -149
  380. package/dist/ThemeSidebar/index.js +0 -118
  381. package/dist/ThemeSidebar/themeSidebar.scss +0 -45
  382. package/dist/ThemeSidebar/utils.js +0 -169
  383. package/dist/TimeFormat/index.js +0 -3
  384. package/dist/TimezoneMismatchModal/apis/time_zone.js +0 -9
  385. package/dist/TimezoneMismatchModal/index.js +0 -83
  386. package/dist/TimezoneMismatchModal/useTimeZoneApi.js +0 -10
  387. package/dist/TimezoneMismatchModal/utils.js +0 -12
  388. package/dist/ToggleFeatureCard/ToolTipSwitch.js +0 -31
  389. package/dist/ToggleFeatureCard/constants.js +0 -5
  390. package/dist/ToggleFeatureCard/hooks/useScrollIntoView.js +0 -11
  391. package/dist/ToggleFeatureCard/index.js +0 -148
  392. package/dist/ToggleFeatureCard/toggleFeatureCard.scss +0 -4
@@ -1,170 +0,0 @@
1
- import React, { useEffect } from "react";
2
- import { findBy } from "@bigbinary/neeto-commons-frontend/pure";
3
- import { useTranslation } from "react-i18next";
4
- import { BACKGROUND_POSITION_OPTIONS, FONT_OPTIONS } from "../constants";
5
- import AlignmentBlock from "../fields/AlignmentBlock";
6
- import Card from "../fields/Card";
7
- import ColorBlock from "../fields/ColorBlock";
8
- import FontPickerBlock from "../fields/FontPickerBlock";
9
- import ImageBlock from "../fields/ImageBlock";
10
- import SelectBlock from "../fields/SelectBlock";
11
- import SliderBlock from "../fields/SliderBlock";
12
- import SwitchBlock from "../fields/SwitchBlock";
13
- import { getContrast, hexToRgb } from "../utils";
14
- var Properties = function Properties(_ref) {
15
- var handleChange = _ref.handleChange,
16
- values = _ref.values;
17
- var _useTranslation = useTranslation(),
18
- t = _useTranslation.t;
19
- var backgroundColor = values.backgroundColor,
20
- questionColor = values.questionColor,
21
- buttonBackgroundColor = values.buttonBackgroundColor,
22
- buttonTextColor = values.buttonTextColor,
23
- answerColor = values.answerColor,
24
- backgroundImage = values.backgroundImage,
25
- isContentBackgroundEnabled = values.isContentBackgroundEnabled,
26
- contentBackgroundColor = values.contentBackgroundColor,
27
- isDominantBackgroundColorEnabled = values.isDominantBackgroundColorEnabled,
28
- backgroundOverlayOpacity = values.backgroundOverlayOpacity,
29
- buttonBorderRadius = values.buttonBorderRadius;
30
- var handleOverlayChange = function handleOverlayChange(value) {
31
- handleChange("backgroundOverlayOpacity", value, Math.abs(value / 100));
32
- if (value < 0) {
33
- handleChange("backgroundOverlayColor", "#000000");
34
- } else if (value > 0) {
35
- handleChange("backgroundOverlayColor", "#ffffff");
36
- }
37
- };
38
- useEffect(function () {
39
- if (isContentBackgroundEnabled) {
40
- var color = contentBackgroundColor || backgroundColor;
41
- handleChange("contentBackgroundColor", color);
42
- } else {
43
- handleChange("contentBackgroundColor", contentBackgroundColor);
44
- }
45
- }, [isContentBackgroundEnabled]);
46
- useEffect(function () {
47
- if (isDominantBackgroundColorEnabled && backgroundImage !== null && backgroundImage !== void 0 && backgroundImage.dominantColor) {
48
- handleChange("backgroundColor", backgroundImage.dominantColor, backgroundImage.dominantColor ? hexToRgb(backgroundImage.dominantColor) : "initial");
49
- }
50
- }, [isDominantBackgroundColorEnabled, backgroundImage === null || backgroundImage === void 0 ? void 0 : backgroundImage.dominantColor]);
51
- var handleColorChange = function handleColorChange(name) {
52
- return function (_ref2) {
53
- var hex = _ref2.hex,
54
- rgb = _ref2.rgb;
55
- handleChange(name, hex, "".concat(rgb.r, ", ").concat(rgb.g, ", ").concat(rgb.b));
56
- };
57
- };
58
- var handleAnswerColorChange = function handleAnswerColorChange(_ref3) {
59
- var hex = _ref3.hex,
60
- rgb = _ref3.rgb;
61
- handleColorChange("answerColor")({
62
- hex: hex,
63
- rgb: rgb
64
- });
65
- var contrastColor = getContrast(hex);
66
- handleColorChange("answerTextColor")({
67
- hex: contrastColor,
68
- rgb: hexToRgb(contrastColor)
69
- });
70
- };
71
- return /*#__PURE__*/React.createElement(Card, {
72
- title: t("neetoMolecules.themeSidebar.style")
73
- }, /*#__PURE__*/React.createElement("div", {
74
- className: "divide-y divide-gray-200"
75
- }, /*#__PURE__*/React.createElement(FontPickerBlock, {
76
- label: t("neetoMolecules.themeSidebar.font"),
77
- options: FONT_OPTIONS,
78
- value: findBy({
79
- value: values.fontFamily
80
- }, FONT_OPTIONS) || null,
81
- onChange: function onChange(_ref4) {
82
- var value = _ref4.value;
83
- return handleChange("fontFamily", value);
84
- }
85
- }), /*#__PURE__*/React.createElement(ColorBlock, {
86
- color: questionColor,
87
- label: t("neetoMolecules.themeSidebar.questions"),
88
- onChange: handleColorChange("questionColor")
89
- }), /*#__PURE__*/React.createElement(ColorBlock, {
90
- color: answerColor,
91
- label: t("neetoMolecules.themeSidebar.answerColor"),
92
- onChange: handleAnswerColorChange
93
- }), /*#__PURE__*/React.createElement(ColorBlock, {
94
- color: buttonBackgroundColor,
95
- label: t("neetoMolecules.themeSidebar.buttons"),
96
- onChange: handleColorChange("buttonBackgroundColor")
97
- }), /*#__PURE__*/React.createElement(ColorBlock, {
98
- color: buttonTextColor,
99
- label: t("neetoMolecules.themeSidebar.buttonText"),
100
- onChange: handleColorChange("buttonTextColor")
101
- }), /*#__PURE__*/React.createElement(SliderBlock, {
102
- defaultValue: buttonBorderRadius,
103
- label: t("neetoMolecules.themeSidebar.buttonBorderRadius"),
104
- max: 50,
105
- min: 0,
106
- onChange: function onChange(borderRadius) {
107
- return handleChange("buttonBorderRadius", borderRadius, "".concat(borderRadius, "px"));
108
- }
109
- }), /*#__PURE__*/React.createElement(ColorBlock, {
110
- color: backgroundColor,
111
- label: t("neetoMolecules.themeSidebar.backgroundColor"),
112
- onChange: function onChange(_ref5) {
113
- var hex = _ref5.hex,
114
- rgb = _ref5.rgb;
115
- handleColorChange("backgroundColor")({
116
- hex: hex,
117
- rgb: rgb
118
- });
119
- handleChange("isDominantBackgroundColorEnabled", false);
120
- }
121
- }), /*#__PURE__*/React.createElement(SwitchBlock, {
122
- label: t("neetoMolecules.themeSidebar.enableContentBackground"),
123
- name: "isContentBackgroundEnabled"
124
- }), isContentBackgroundEnabled && /*#__PURE__*/React.createElement(ColorBlock, {
125
- color: contentBackgroundColor,
126
- label: t("neetoMolecules.themeSidebar.formBackgroundColor"),
127
- onChange: handleColorChange("contentBackgroundColor")
128
- }), /*#__PURE__*/React.createElement(ImageBlock, {
129
- imageData: backgroundImage,
130
- label: t("neetoMolecules.themeSidebar.backgroundImage"),
131
- name: "backgroundImage",
132
- onChange: function onChange(name, value, variableValue) {
133
- handleChange(name, value, variableValue);
134
- handleChange("backgroundOverlayOpacity", 0);
135
- }
136
- }), (backgroundImage === null || backgroundImage === void 0 ? void 0 : backgroundImage.url) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SliderBlock, {
137
- defaultValue: backgroundOverlayOpacity,
138
- label: t("neetoMolecules.themeSidebar.backgroundOverlay"),
139
- marks: {
140
- 0: " "
141
- },
142
- max: 100,
143
- min: -100,
144
- onChange: handleOverlayChange
145
- }), /*#__PURE__*/React.createElement(SwitchBlock, {
146
- name: "isDominantBackgroundColorEnabled",
147
- label: t("neetoMolecules.themeSidebar.enableDominantBackgroundColor")
148
- }), /*#__PURE__*/React.createElement(SelectBlock, {
149
- label: t("neetoMolecules.themeSidebar.backgroundPosition"),
150
- options: BACKGROUND_POSITION_OPTIONS,
151
- placeholder: t("neetoMolecules.themeSidebar.left"),
152
- value: findBy({
153
- value: backgroundImage.backgroundPosition || "center"
154
- }, BACKGROUND_POSITION_OPTIONS),
155
- onChange: function onChange(_ref6) {
156
- var value = _ref6.value;
157
- return handleChange("backgroundImage.backgroundPosition", value);
158
- }
159
- })), /*#__PURE__*/React.createElement(AlignmentBlock, {
160
- label: t("neetoMolecules.themeSidebar.thankYouTextAlignment"),
161
- name: "thankYouTextAlignment"
162
- }), /*#__PURE__*/React.createElement(AlignmentBlock, {
163
- label: t("neetoMolecules.themeSidebar.welcomeTextAlignment"),
164
- name: "welcomeTextAlignment"
165
- }), /*#__PURE__*/React.createElement(AlignmentBlock, {
166
- label: t("neetoMolecules.themeSidebar.questionsTextAlignment"),
167
- name: "questionsTextAlignment"
168
- })));
169
- };
170
- export default Properties;
@@ -1,66 +0,0 @@
1
- import React from "react";
2
- import { Button } from "@bigbinary/neetoui";
3
- import { Form } from "@bigbinary/neetoui/formik";
4
- import { useTranslation } from "react-i18next";
5
- import Logo from "./Logo";
6
- import Properties from "./Properties";
7
- import { INITIAL_STATE, THEME_VALIDATION_SCHEMA } from "../constants";
8
- import Card from "../fields/Card";
9
- import TextBlock from "../fields/TextBlock";
10
- import { parseTheme } from "../utils";
11
- var Customize = function Customize(_ref) {
12
- var theme = _ref.theme,
13
- handleFormSubmit = _ref.handleFormSubmit;
14
- var _useTranslation = useTranslation(),
15
- t = _useTranslation.t;
16
- var getInitialValues = function getInitialValues() {
17
- return theme ? parseTheme(theme) : INITIAL_STATE;
18
- };
19
- return /*#__PURE__*/React.createElement(Form, {
20
- formikProps: {
21
- enableReinitialize: true,
22
- initialValues: getInitialValues(),
23
- onSubmit: handleFormSubmit,
24
- validationSchema: THEME_VALIDATION_SCHEMA,
25
- validateOnBlur: true,
26
- validateOnChange: true
27
- }
28
- }, function (_ref2) {
29
- var values = _ref2.values,
30
- dirty = _ref2.dirty,
31
- isSubmitting = _ref2.isSubmitting,
32
- setFieldValue = _ref2.setFieldValue;
33
- return /*#__PURE__*/React.createElement("div", {
34
- className: "neeto-molecules-theme-design-sidebar__scroll"
35
- }, /*#__PURE__*/React.createElement("div", {
36
- className: "flex flex-col gap-6 p-4"
37
- }, /*#__PURE__*/React.createElement(Card, {
38
- title: t("neetoMolecules.themeSidebar.name")
39
- }, /*#__PURE__*/React.createElement(TextBlock, {
40
- autoFocus: true,
41
- name: "name"
42
- })), /*#__PURE__*/React.createElement(Properties, {
43
- handleChange: setFieldValue,
44
- values: values
45
- }), /*#__PURE__*/React.createElement(Logo, {
46
- logo: values.logo,
47
- onChange: setFieldValue
48
- })), /*#__PURE__*/React.createElement("div", {
49
- className: "neeto-ui-bg-white neeto-ui-shadow-s sticky bottom-0 left-0 right-0 py-6 px-4"
50
- }, /*#__PURE__*/React.createElement(Button, {
51
- "data-cy": "save-changes-button",
52
- disabled: !dirty && theme.id,
53
- label: t("neetoMolecules.common.actions.save"),
54
- loading: isSubmitting,
55
- type: "submit"
56
- }), /*#__PURE__*/React.createElement(Button, {
57
- className: "ml-2",
58
- "data-cy": "reset-button",
59
- disabled: !dirty,
60
- label: t("neetoMolecules.common.actions.reset"),
61
- style: "text",
62
- type: "reset"
63
- })));
64
- });
65
- };
66
- export default Customize;
@@ -1,135 +0,0 @@
1
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
- var _excluded = ["name"];
3
- import React from "react";
4
- import classnames from "classnames";
5
- import { isPresent } from "@bigbinary/neeto-commons-frontend/pure";
6
- import { Typography, Tag, Button } from "@bigbinary/neetoui";
7
- import { path } from "ramda";
8
- import { useTranslation } from "react-i18next";
9
- import MoreDropdown from "../../MoreDropdown";
10
- var ThemeCard = function ThemeCard(_ref) {
11
- var _ref$active = _ref.active,
12
- active = _ref$active === void 0 ? false : _ref$active,
13
- isPreviewing = _ref.isPreviewing,
14
- onSetPreviewTheme = _ref.onSetPreviewTheme,
15
- onDeleteTheme = _ref.onDeleteTheme,
16
- onEditTheme = _ref.onEditTheme,
17
- onApplyTheme = _ref.onApplyTheme,
18
- onCloneTheme = _ref.onCloneTheme,
19
- theme = _ref.theme,
20
- isHighLightedTheme = _ref.isHighLightedTheme,
21
- isApplyingTheme = _ref.isApplyingTheme;
22
- var _useTranslation = useTranslation(),
23
- t = _useTranslation.t;
24
- var name = theme.name,
25
- styles = _objectWithoutProperties(theme, _excluded);
26
- var handleApplyTheme = function handleApplyTheme() {
27
- if (isApplyingTheme) return;
28
- onApplyTheme(theme);
29
- };
30
- var moreMenuItems = [{
31
- "data-cy": "theme-edit-button",
32
- key: "theme-edit-button",
33
- onClick: function onClick() {
34
- return onEditTheme(theme);
35
- },
36
- label: t("neetoMolecules.common.actions.edit"),
37
- isVisible: isPresent(onEditTheme)
38
- }, {
39
- isVisible: isPresent(onCloneTheme),
40
- "data-cy": "theme-clone-button",
41
- key: "theme-clone-button",
42
- onClick: function onClick() {
43
- return onCloneTheme(theme);
44
- },
45
- label: t("neetoMolecules.themeSidebar.themeOptions.clone")
46
- }, {
47
- isVisible: isPresent(onDeleteTheme),
48
- type: "divider",
49
- key: "divider"
50
- }, {
51
- isVisible: isPresent(onDeleteTheme),
52
- "data-cy": "theme-delete-button",
53
- key: "theme-delete-button",
54
- onClick: function onClick() {
55
- return onDeleteTheme(theme);
56
- },
57
- label: t("neetoMolecules.themeSidebar.themeOptions.delete")
58
- }];
59
- return /*#__PURE__*/React.createElement("div", {
60
- className: "group space-y-2",
61
- "data-cy": active ? "active-theme-card" : "theme-card",
62
- id: theme.id
63
- }, /*#__PURE__*/React.createElement("div", {
64
- className: classnames("neeto-molecules-theme-thumbnail neeto-ui-rounded-lg border transition-all duration-300 ease-in-out", {
65
- "neeto-ui-border-gray-400": !active,
66
- "neeto-ui-border-gray-800 neeto-molecules-theme-thumbnail--active": active,
67
- "neeto-molecules-theme-thumbnail--preview-active": isPreviewing,
68
- "neeto-molecules-theme-thumbnail--highlight-active": isHighLightedTheme
69
- }),
70
- style: {
71
- backgroundColor: path(["colorScheme", "backgroundColor"], styles),
72
- backgroundImage: path(["backgroundImage", "url"], styles) ? "url(".concat(path(["backgroundImage", "url"], styles), ")") : "initial",
73
- backgroundSize: "cover"
74
- },
75
- onClick: function onClick() {
76
- return onSetPreviewTheme(theme);
77
- }
78
- }, /*#__PURE__*/React.createElement("div", {
79
- className: "group-hover:opacity-85 neeto-ui-rounded-lg cursor-pointer p-6 transition-all duration-300 ease-in-out"
80
- }, /*#__PURE__*/React.createElement("div", {
81
- className: "mb-3"
82
- }, /*#__PURE__*/React.createElement(Typography, {
83
- style: "h3",
84
- weight: "semibold"
85
- }, /*#__PURE__*/React.createElement("span", {
86
- style: {
87
- color: path(["colorScheme", "questionColor"], styles)
88
- }
89
- }, t("neetoMolecules.themeSidebar.themeCard.question"))), /*#__PURE__*/React.createElement(Typography, {
90
- className: "neeto-ui-text-gray-600",
91
- style: "body2"
92
- }, /*#__PURE__*/React.createElement("span", {
93
- style: {
94
- color: path(["colorScheme", "answerColor"], styles)
95
- }
96
- }, t("neetoMolecules.themeSidebar.themeCard.answer")))), /*#__PURE__*/React.createElement("div", {
97
- className: "neeto-ui-rounded-lg h-5 w-12",
98
- style: {
99
- backgroundColor: path(["colorScheme", "buttonBackgroundColor"], styles)
100
- }
101
- }))), /*#__PURE__*/React.createElement("div", {
102
- className: "flex items-start justify-between gap-1"
103
- }, /*#__PURE__*/React.createElement(Typography, {
104
- className: "min-w-0 flex-grow break-words pt-1 line-clamp-2",
105
- "data-cy": "theme-name",
106
- lineHeight: "snug",
107
- style: "body2"
108
- }, name), /*#__PURE__*/React.createElement("div", {
109
- className: "flex items-center gap-2"
110
- }, active ? /*#__PURE__*/React.createElement(Tag, {
111
- className: "flex-shrink-0",
112
- "data-cy": "active-theme-label",
113
- label: t("neetoMolecules.themeSidebar.active"),
114
- style: "success"
115
- }) : /*#__PURE__*/React.createElement(Button, {
116
- className: "flex-shrink-0",
117
- "data-cy": "apply-theme-button",
118
- disabled: isApplyingTheme,
119
- label: t("neetoMolecules.common.actions.apply"),
120
- loading: isApplyingTheme,
121
- size: "small",
122
- style: "link",
123
- onClick: handleApplyTheme
124
- }), /*#__PURE__*/React.createElement(MoreDropdown, {
125
- buttonProps: {
126
- buttonSize: "small"
127
- },
128
- menuItems: moreMenuItems,
129
- dropdownButtonProps: {
130
- "data-cy": "theme-card-options",
131
- strategy: "fixed"
132
- }
133
- }))));
134
- };
135
- export default ThemeCard;
@@ -1,110 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import React, { useEffect, useState } from "react";
3
- import { isNotEmpty } from "@bigbinary/neeto-commons-frontend/pure";
4
- import { Search } from "@bigbinary/neeto-icons";
5
- import { Input, Typography } from "@bigbinary/neetoui";
6
- import { isEmpty } from "ramda";
7
- import { useTranslation } from "react-i18next";
8
- import ThemeCard from "./ThemeCard";
9
- import { scrollElementIntoView } from "../utils";
10
- var Themes = function Themes(_ref) {
11
- var currentTheme = _ref.currentTheme,
12
- onCloneTheme = _ref.onCloneTheme,
13
- _ref$customThemes = _ref.customThemes,
14
- customThemes = _ref$customThemes === void 0 ? [] : _ref$customThemes,
15
- _ref$defaultThemes = _ref.defaultThemes,
16
- defaultThemes = _ref$defaultThemes === void 0 ? [] : _ref$defaultThemes,
17
- onDeleteTheme = _ref.onDeleteTheme,
18
- onEditTheme = _ref.onEditTheme,
19
- onApplyTheme = _ref.onApplyTheme,
20
- previewingTheme = _ref.previewingTheme,
21
- setPreviewingTheme = _ref.setPreviewingTheme,
22
- themeToHighlight = _ref.themeToHighlight,
23
- didScrollActiveThemeIntoView = _ref.didScrollActiveThemeIntoView,
24
- applyingThemeId = _ref.applyingThemeId;
25
- var _useTranslation = useTranslation(),
26
- t = _useTranslation.t;
27
- var _useState = useState(""),
28
- _useState2 = _slicedToArray(_useState, 2),
29
- searchQuery = _useState2[0],
30
- setSearchQuery = _useState2[1];
31
- var filteredDefaultThemes = defaultThemes.filter(function (theme) {
32
- return theme.name.toLowerCase().includes(searchQuery.toLowerCase());
33
- });
34
- var filteredThemes = customThemes.filter(function (theme) {
35
- return theme.name.toLowerCase().includes(searchQuery.toLowerCase());
36
- });
37
- var isSearchFieldVisible = (customThemes === null || customThemes === void 0 ? void 0 : customThemes.length) + (defaultThemes === null || defaultThemes === void 0 ? void 0 : defaultThemes.length) > 10;
38
- useEffect(function () {
39
- if (didScrollActiveThemeIntoView.current || !(currentTheme !== null && currentTheme !== void 0 && currentTheme.id)) return;
40
- didScrollActiveThemeIntoView.current = true;
41
- setTimeout(function () {
42
- scrollElementIntoView(currentTheme.id);
43
- }, 200);
44
- }, [didScrollActiveThemeIntoView, currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme.id]);
45
- return /*#__PURE__*/React.createElement("div", {
46
- className: "neeto-molecules-theme-design-sidebar__scroll"
47
- }, /*#__PURE__*/React.createElement("div", {
48
- className: "mb-6 space-y-3"
49
- }, isSearchFieldVisible && /*#__PURE__*/React.createElement(Input, {
50
- autoFocus: true,
51
- autoComplete: "off",
52
- className: "mb-4 mt-1 px-6",
53
- placeholder: t("neetoMolecules.themeSidebar.searchThemes"),
54
- prefix: /*#__PURE__*/React.createElement(Search, null),
55
- type: "search",
56
- value: searchQuery,
57
- onChange: function onChange(e) {
58
- return setSearchQuery(e.target.value);
59
- }
60
- }), isEmpty(filteredThemes) && isEmpty(filteredDefaultThemes) && /*#__PURE__*/React.createElement(Typography, {
61
- className: "text-center",
62
- style: "body2"
63
- }, t("neetoMolecules.common.notFound.title", {
64
- entity: t("neetoMolecules.themeSidebar.theme", {
65
- count: 2
66
- })
67
- })), isNotEmpty(filteredDefaultThemes) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Typography, {
68
- className: "my-4 px-6 uppercase",
69
- "data-cy": "system-themes-header",
70
- style: "h6",
71
- weight: "semibold"
72
- }, t("neetoMolecules.themeSidebar.systemThemes")), /*#__PURE__*/React.createElement("div", {
73
- className: "flex flex-col gap-4 px-6"
74
- }, filteredDefaultThemes.map(function (theme) {
75
- return /*#__PURE__*/React.createElement(ThemeCard, {
76
- active: (currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme.id) === theme.id,
77
- isApplyingTheme: applyingThemeId === theme.id,
78
- isPreviewing: (previewingTheme === null || previewingTheme === void 0 ? void 0 : previewingTheme.id) === theme.id,
79
- key: theme.id,
80
- onApplyTheme: onApplyTheme,
81
- onCloneTheme: onCloneTheme,
82
- theme: theme,
83
- onSetPreviewTheme: setPreviewingTheme
84
- });
85
- })))), isNotEmpty(filteredThemes) && /*#__PURE__*/React.createElement("div", {
86
- className: "mb-6 space-y-3"
87
- }, /*#__PURE__*/React.createElement(Typography, {
88
- className: "my-4 px-6 uppercase",
89
- "data-cy": "custom-themes-header",
90
- style: "h6",
91
- weight: "semibold"
92
- }, t("neetoMolecules.themeSidebar.customThemes")), /*#__PURE__*/React.createElement("div", {
93
- className: "flex flex-col gap-4 px-6"
94
- }, filteredThemes.map(function (theme) {
95
- var isActive = (currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme.id) === theme.id;
96
- return /*#__PURE__*/React.createElement(ThemeCard, {
97
- active: isActive,
98
- isHighLightedTheme: theme.id === themeToHighlight,
99
- isPreviewing: (previewingTheme === null || previewingTheme === void 0 ? void 0 : previewingTheme.id) === theme.id,
100
- key: theme.id,
101
- onApplyTheme: onApplyTheme,
102
- onCloneTheme: onCloneTheme,
103
- onEditTheme: onEditTheme,
104
- theme: theme,
105
- onDeleteTheme: !isActive ? onDeleteTheme : null,
106
- onSetPreviewTheme: setPreviewingTheme
107
- });
108
- }))));
109
- };
110
- export default Themes;
@@ -1,62 +0,0 @@
1
- import React from "react";
2
- import classnames from "classnames";
3
- import { capitalize } from "@bigbinary/neeto-commons-frontend/pure";
4
- import { LeftArrow, Plus } from "@bigbinary/neeto-icons";
5
- import { Button, Typography } from "@bigbinary/neetoui";
6
- import { useTranslation } from "react-i18next";
7
- import { DESIGN_SCREENS } from "./constants";
8
- var TitleBar = function TitleBar(_ref) {
9
- var currentScreen = _ref.currentScreen,
10
- handleBackPress = _ref.handleBackPress,
11
- handleCreateNewTheme = _ref.handleCreateNewTheme,
12
- isNewTheme = _ref.isNewTheme;
13
- var _useTranslation = useTranslation(),
14
- t = _useTranslation.t;
15
- if (currentScreen === DESIGN_SCREENS.CUSTOMIZE) {
16
- return /*#__PURE__*/React.createElement("div", {
17
- className: classnames("neeto-molecules-theme-design-sidebar__header px-4")
18
- }, /*#__PURE__*/React.createElement("div", {
19
- className: "flex items-center justify-start space-x-2"
20
- }, /*#__PURE__*/React.createElement(Button, {
21
- "data-cy": "customise-themes-back-button",
22
- icon: LeftArrow,
23
- iconPosition: "left",
24
- style: "text",
25
- tooltipProps: {
26
- content: t("neetoMolecules.themeSidebar.backToThemes"),
27
- position: "top"
28
- },
29
- onClick: handleBackPress
30
- }), /*#__PURE__*/React.createElement(Typography, {
31
- "data-cy": "themes-header",
32
- lineHeight: "normal",
33
- style: "h3",
34
- weight: "semibold"
35
- }, isNewTheme ? t("neetoMolecules.themeSidebar.createTheme.title") : t("neetoMolecules.themeSidebar.editTheme.title"))));
36
- }
37
- return /*#__PURE__*/React.createElement("div", {
38
- className: classnames("neeto-molecules-theme-design-sidebar__header px-6")
39
- }, /*#__PURE__*/React.createElement("div", {
40
- className: "flex items-center justify-between space-x-2"
41
- }, /*#__PURE__*/React.createElement(Typography, {
42
- "data-cy": "themes-header",
43
- lineHeight: "normal",
44
- style: "h3",
45
- weight: "semibold"
46
- }, capitalize(t("neetoMolecules.themeSidebar.theme", {
47
- count: 2
48
- }))), /*#__PURE__*/React.createElement("div", {
49
- className: "self-end"
50
- }, /*#__PURE__*/React.createElement(Button, {
51
- "data-cy": "customise-themes-add-theme-button",
52
- icon: Plus,
53
- iconPosition: "left",
54
- style: "text",
55
- tooltipProps: {
56
- content: t("neetoMolecules.themeSidebar.addNewTheme"),
57
- position: "top"
58
- },
59
- onClick: handleCreateNewTheme
60
- }))));
61
- };
62
- export default TitleBar;
@@ -1,127 +0,0 @@
1
- import * as yup from "yup";
2
- export var DIRECT_UPLOAD_URL = "/api/direct_uploads";
3
- export var DESIGN_SCREENS = {
4
- THEMES: "Themes",
5
- CUSTOMIZE: "Customize",
6
- LOADING: "Loading"
7
- };
8
- export var INITIAL_STATE = {
9
- name: "",
10
- backgroundColor: "#ffffff",
11
- backgroundOverlayColor: "#000000",
12
- backgroundOverlayOpacity: 0,
13
- isDominantBackgroundColorEnabled: false,
14
- questionColor: "#000000",
15
- buttonBackgroundColor: "#2D36D4",
16
- buttonTextColor: "#ffffff",
17
- answerColor: "#2D36D4",
18
- answerTextColor: "#ffffff",
19
- logo: {},
20
- buttonBorderRadius: 10,
21
- isContentBackgroundEnabled: false,
22
- welcomeTextAlignment: "left",
23
- thankYouTextAlignment: "center",
24
- questionsTextAlignment: "left",
25
- fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
26
- };
27
- export var THEME_VALIDATION_SCHEMA = yup.object().shape({
28
- name: yup.string().required("Name is required")
29
- });
30
- export var ONE_MEGABYTE = 1048576;
31
- export var FIVE_MEGABYTES = 5242880;
32
- export var POSITION_OPTIONS = [{
33
- label: "Left",
34
- value: "left"
35
- }, {
36
- label: "Right",
37
- value: "right"
38
- }];
39
- export var BACKGROUND_POSITION_OPTIONS = [{
40
- label: "Center",
41
- value: "center"
42
- }, {
43
- label: "Top left",
44
- value: "top left"
45
- }, {
46
- label: "Top center",
47
- value: "top center"
48
- }, {
49
- label: "Top right",
50
- value: "top right"
51
- }, {
52
- label: "Center left",
53
- value: "center left"
54
- }, {
55
- label: "Center right",
56
- value: "center right"
57
- }, {
58
- label: "Bottom left",
59
- value: "bottom left"
60
- }, {
61
- label: "Bottom right",
62
- value: "bottom right"
63
- }, {
64
- label: "Bottom center",
65
- value: "bottom center"
66
- }];
67
- export var FONT_OPTIONS = [{
68
- label: "System UI",
69
- value: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
70
- }, {
71
- label: "Cedarville Cursive",
72
- value: "'Cedarville Cursive', cursive"
73
- }, {
74
- label: "Poppins",
75
- value: "Poppins, sans-serif"
76
- }, {
77
- label: "Roboto",
78
- value: "Roboto, sans-serif"
79
- }, {
80
- label: "Open Sans",
81
- value: "Open Sans, sans-serif"
82
- }, {
83
- label: "Montserrat",
84
- value: "Montserrat, sans-serif"
85
- }, {
86
- label: "Raleway",
87
- value: "Raleway, sans-serif"
88
- }, {
89
- label: "Quicksand",
90
- value: "Quicksand, sans-serif"
91
- }, {
92
- label: "Inter",
93
- value: "Inter, sans-serif"
94
- }, {
95
- label: "Satoshi",
96
- value: "Satoshi, sans-serif"
97
- }, {
98
- label: "Chillax",
99
- value: "Chillax, sans-serif"
100
- }, {
101
- label: "Clash Display",
102
- value: "Clash Display, sans-serif"
103
- }, {
104
- label: "General Sans",
105
- value: "General Sans, sans-serif"
106
- }, {
107
- label: "Cabinet Grotesk",
108
- value: "Cabinet Grotesk, sans-serif"
109
- }, {
110
- label: "Lora",
111
- value: "Lora, serif"
112
- }, {
113
- label: "Merriweather",
114
- value: "Merriweather, serif"
115
- }, {
116
- label: "Boska",
117
- value: "Boska, serif"
118
- }, {
119
- label: "Playfair Display",
120
- value: "Playfair Display, serif"
121
- }, {
122
- label: "Roboto Slab",
123
- value: "Roboto Slab, serif"
124
- }, {
125
- label: "Dancing Script",
126
- value: "Dancing Script, cursive"
127
- }];