@bigbinary/neeto-molecules 3.3.11 → 3.3.13

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 (325) hide show
  1. package/dist/Breadcrumbs.js +28 -24
  2. package/dist/Breadcrumbs.js.map +1 -1
  3. package/dist/BrowserSupport.js +95 -69
  4. package/dist/BrowserSupport.js.map +1 -1
  5. package/dist/Builder.js +337 -285
  6. package/dist/Builder.js.map +1 -1
  7. package/dist/CalendarView.js +121 -110
  8. package/dist/CalendarView.js.map +1 -1
  9. package/dist/{Chevron-dee43d2f.js → Chevron-6564bcdc.js} +81 -67
  10. package/dist/Chevron-6564bcdc.js.map +1 -0
  11. package/dist/Codeblock.js +30 -25
  12. package/dist/Codeblock.js.map +1 -1
  13. package/dist/Columns.js +3 -3
  14. package/dist/ConfigurePageSidebar.js +39 -37
  15. package/dist/ConfigurePageSidebar.js.map +1 -1
  16. package/dist/ConfirmationModal.js +54 -42
  17. package/dist/ConfirmationModal.js.map +1 -1
  18. package/dist/Container.js +6 -4
  19. package/dist/Container.js.map +1 -1
  20. package/dist/CopyToClipboardButton.js +5 -3
  21. package/dist/CopyToClipboardButton.js.map +1 -1
  22. package/dist/Currency.js +9 -4
  23. package/dist/Currency.js.map +1 -1
  24. package/dist/CustomDomain.js +56 -53
  25. package/dist/CustomDomain.js.map +1 -1
  26. package/dist/CustomDomainDashboard.js +131 -113
  27. package/dist/CustomDomainDashboard.js.map +1 -1
  28. package/dist/DateFormat.js +13 -7
  29. package/dist/DateFormat.js.map +1 -1
  30. package/dist/DateRangeFilter.js +43 -38
  31. package/dist/DateRangeFilter.js.map +1 -1
  32. package/dist/DeleteArchiveModal.js +47 -38
  33. package/dist/DeleteArchiveModal.js.map +1 -1
  34. package/dist/DeviceIncompatibilityMessage.js +96 -0
  35. package/dist/DeviceIncompatibilityMessage.js.map +1 -0
  36. package/dist/DocumentEditor.js +43 -39
  37. package/dist/DocumentEditor.js.map +1 -1
  38. package/dist/DownloadMobileAppCallout.js +15 -14
  39. package/dist/DownloadMobileAppCallout.js.map +1 -1
  40. package/dist/DynamicVariables.js +33 -26
  41. package/dist/DynamicVariables.js.map +1 -1
  42. package/dist/EmailForm.js +144 -131
  43. package/dist/EmailForm.js.map +1 -1
  44. package/dist/EmailPreview.js +83 -68
  45. package/dist/EmailPreview.js.map +1 -1
  46. package/dist/EmojiPicker.js +11 -6
  47. package/dist/EmojiPicker.js.map +1 -1
  48. package/dist/EmojiReactions.js +48 -37
  49. package/dist/EmojiReactions.js.map +1 -1
  50. package/dist/ErrorPage.js +51 -38
  51. package/dist/ErrorPage.js.map +1 -1
  52. package/dist/FileUpload.js +180 -149
  53. package/dist/FileUpload.js.map +1 -1
  54. package/dist/FloatingActionMenu.js +288 -230
  55. package/dist/FloatingActionMenu.js.map +1 -1
  56. package/dist/Header.js +42 -35
  57. package/dist/Header.js.map +1 -1
  58. package/dist/HelpPopover.js +50 -42
  59. package/dist/HelpPopover.js.map +1 -1
  60. package/dist/IconPicker.js +121 -100
  61. package/dist/IconPicker.js.map +1 -1
  62. package/dist/ImageWithFallback.js +9 -5
  63. package/dist/ImageWithFallback.js.map +1 -1
  64. package/dist/InlineInput.js +59 -52
  65. package/dist/InlineInput.js.map +1 -1
  66. package/dist/Insights.js +185 -153
  67. package/dist/Insights.js.map +1 -1
  68. package/dist/IntegrationCard.js +109 -91
  69. package/dist/IntegrationCard.js.map +1 -1
  70. package/dist/IntegrationDisconnectAlert.js +5 -3
  71. package/dist/IntegrationDisconnectAlert.js.map +1 -1
  72. package/dist/IntegrationWalkthroughModal.js +30 -20
  73. package/dist/IntegrationWalkthroughModal.js.map +1 -1
  74. package/dist/IpRestriction.js +209 -177
  75. package/dist/IpRestriction.js.map +1 -1
  76. package/dist/KeyboardShortcuts.js +83 -73
  77. package/dist/KeyboardShortcuts.js.map +1 -1
  78. package/dist/LoginPage.js +70 -63
  79. package/dist/LoginPage.js.map +1 -1
  80. package/dist/MadeWith.js +14 -9
  81. package/dist/MadeWith.js.map +1 -1
  82. package/dist/MenuBar.js +107 -77
  83. package/dist/MenuBar.js.map +1 -1
  84. package/dist/Metadata.js +124 -100
  85. package/dist/Metadata.js.map +1 -1
  86. package/dist/MoreDropdown.js +55 -43
  87. package/dist/MoreDropdown.js.map +1 -1
  88. package/dist/NavigationHeader.js +104 -81
  89. package/dist/NavigationHeader.js.map +1 -1
  90. package/dist/NeetoWidget.js +383 -330
  91. package/dist/NeetoWidget.js.map +1 -1
  92. package/dist/Onboarding.js +125 -107
  93. package/dist/Onboarding.js.map +1 -1
  94. package/dist/OptionFields.js +261 -227
  95. package/dist/OptionFields.js.map +1 -1
  96. package/dist/PageLoader.js +23 -19
  97. package/dist/PageLoader.js.map +1 -1
  98. package/dist/PhoneNumber.js +85 -69
  99. package/dist/PhoneNumber.js.map +1 -1
  100. package/dist/ProductEmbed.js +384 -341
  101. package/dist/ProductEmbed.js.map +1 -1
  102. package/dist/PublishBlock.js +185 -154
  103. package/dist/PublishBlock.js.map +1 -1
  104. package/dist/PublishYourItem.js +35 -30
  105. package/dist/PublishYourItem.js.map +1 -1
  106. package/dist/Rename.js +102 -83
  107. package/dist/Rename.js.map +1 -1
  108. package/dist/ResponsiveDevicePicker.js +25 -21
  109. package/dist/ResponsiveDevicePicker.js.map +1 -1
  110. package/dist/Schedule.js +340 -301
  111. package/dist/Schedule.js.map +1 -1
  112. package/dist/Scrollable.js +7 -4
  113. package/dist/Scrollable.js.map +1 -1
  114. package/dist/Search.js +6 -4
  115. package/dist/Search.js.map +1 -1
  116. package/dist/SendToFields.js +154 -125
  117. package/dist/SendToFields.js.map +1 -1
  118. package/dist/Settings.js +94 -78
  119. package/dist/Settings.js.map +1 -1
  120. package/dist/ShareRecordingPane.js +60 -49
  121. package/dist/ShareRecordingPane.js.map +1 -1
  122. package/dist/ShareViaEmail.js +167 -146
  123. package/dist/ShareViaEmail.js.map +1 -1
  124. package/dist/ShareViaLink.js +289 -255
  125. package/dist/ShareViaLink.js.map +1 -1
  126. package/dist/Sidebar.js +122 -111
  127. package/dist/Sidebar.js.map +1 -1
  128. package/dist/StickyRibbonsContainer.js +20 -18
  129. package/dist/StickyRibbonsContainer.js.map +1 -1
  130. package/dist/SubHeader.js +111 -100
  131. package/dist/SubHeader.js.map +1 -1
  132. package/dist/SuffixedInput.js +52 -47
  133. package/dist/SuffixedInput.js.map +1 -1
  134. package/dist/TableWrapper.js +9 -7
  135. package/dist/TableWrapper.js.map +1 -1
  136. package/dist/Taxonomy.js +179 -151
  137. package/dist/Taxonomy.js.map +1 -1
  138. package/dist/TimeFormat.js +2 -2
  139. package/dist/TimezoneMismatchModal.js +55 -43
  140. package/dist/TimezoneMismatchModal.js.map +1 -1
  141. package/dist/ToggleFeatureCard.js +74 -65
  142. package/dist/ToggleFeatureCard.js.map +1 -1
  143. package/dist/cjs/Breadcrumbs.js +28 -25
  144. package/dist/cjs/Breadcrumbs.js.map +1 -1
  145. package/dist/cjs/BrowserSupport.js +96 -71
  146. package/dist/cjs/BrowserSupport.js.map +1 -1
  147. package/dist/cjs/Builder.js +336 -286
  148. package/dist/cjs/Builder.js.map +1 -1
  149. package/dist/cjs/CalendarView.js +120 -111
  150. package/dist/cjs/CalendarView.js.map +1 -1
  151. package/dist/cjs/{Chevron-c10b4e16.js → Chevron-6368e586.js} +81 -69
  152. package/dist/cjs/Chevron-6368e586.js.map +1 -0
  153. package/dist/cjs/Codeblock.js +31 -27
  154. package/dist/cjs/Codeblock.js.map +1 -1
  155. package/dist/cjs/Columns.js +3 -3
  156. package/dist/cjs/ConfigurePageSidebar.js +38 -37
  157. package/dist/cjs/ConfigurePageSidebar.js.map +1 -1
  158. package/dist/cjs/ConfirmationModal.js +53 -42
  159. package/dist/cjs/ConfirmationModal.js.map +1 -1
  160. package/dist/cjs/Container.js +5 -4
  161. package/dist/cjs/Container.js.map +1 -1
  162. package/dist/cjs/CopyToClipboardButton.js +4 -4
  163. package/dist/cjs/CopyToClipboardButton.js.map +1 -1
  164. package/dist/cjs/Currency.js +9 -5
  165. package/dist/cjs/Currency.js.map +1 -1
  166. package/dist/cjs/CustomDomain.js +55 -53
  167. package/dist/cjs/CustomDomain.js.map +1 -1
  168. package/dist/cjs/CustomDomainDashboard.js +131 -114
  169. package/dist/cjs/CustomDomainDashboard.js.map +1 -1
  170. package/dist/cjs/DateFormat.js +14 -9
  171. package/dist/cjs/DateFormat.js.map +1 -1
  172. package/dist/cjs/DateRangeFilter.js +44 -40
  173. package/dist/cjs/DateRangeFilter.js.map +1 -1
  174. package/dist/cjs/DeleteArchiveModal.js +46 -38
  175. package/dist/cjs/DeleteArchiveModal.js.map +1 -1
  176. package/dist/cjs/DeviceIncompatibilityMessage.js +123 -0
  177. package/dist/cjs/DeviceIncompatibilityMessage.js.map +1 -0
  178. package/dist/cjs/DocumentEditor.js +42 -40
  179. package/dist/cjs/DocumentEditor.js.map +1 -1
  180. package/dist/cjs/DownloadMobileAppCallout.js +15 -15
  181. package/dist/cjs/DownloadMobileAppCallout.js.map +1 -1
  182. package/dist/cjs/DynamicVariables.js +32 -27
  183. package/dist/cjs/DynamicVariables.js.map +1 -1
  184. package/dist/cjs/EmailForm.js +143 -131
  185. package/dist/cjs/EmailForm.js.map +1 -1
  186. package/dist/cjs/EmailPreview.js +82 -68
  187. package/dist/cjs/EmailPreview.js.map +1 -1
  188. package/dist/cjs/EmojiPicker.js +11 -7
  189. package/dist/cjs/EmojiPicker.js.map +1 -1
  190. package/dist/cjs/EmojiReactions.js +47 -37
  191. package/dist/cjs/EmojiReactions.js.map +1 -1
  192. package/dist/cjs/ErrorPage.js +51 -39
  193. package/dist/cjs/ErrorPage.js.map +1 -1
  194. package/dist/cjs/FileUpload.js +181 -152
  195. package/dist/cjs/FileUpload.js.map +1 -1
  196. package/dist/cjs/FloatingActionMenu.js +288 -232
  197. package/dist/cjs/FloatingActionMenu.js.map +1 -1
  198. package/dist/cjs/Header.js +41 -36
  199. package/dist/cjs/Header.js.map +1 -1
  200. package/dist/cjs/HelpPopover.js +50 -43
  201. package/dist/cjs/HelpPopover.js.map +1 -1
  202. package/dist/cjs/IconPicker.js +121 -101
  203. package/dist/cjs/IconPicker.js.map +1 -1
  204. package/dist/cjs/ImageWithFallback.js +8 -6
  205. package/dist/cjs/ImageWithFallback.js.map +1 -1
  206. package/dist/cjs/InlineInput.js +59 -54
  207. package/dist/cjs/InlineInput.js.map +1 -1
  208. package/dist/cjs/Insights.js +185 -154
  209. package/dist/cjs/Insights.js.map +1 -1
  210. package/dist/cjs/IntegrationCard.js +110 -93
  211. package/dist/cjs/IntegrationCard.js.map +1 -1
  212. package/dist/cjs/IntegrationDisconnectAlert.js +6 -5
  213. package/dist/cjs/IntegrationDisconnectAlert.js.map +1 -1
  214. package/dist/cjs/IntegrationWalkthroughModal.js +30 -21
  215. package/dist/cjs/IntegrationWalkthroughModal.js.map +1 -1
  216. package/dist/cjs/IpRestriction.js +208 -177
  217. package/dist/cjs/IpRestriction.js.map +1 -1
  218. package/dist/cjs/KeyboardShortcuts.js +83 -74
  219. package/dist/cjs/KeyboardShortcuts.js.map +1 -1
  220. package/dist/cjs/LoginPage.js +69 -63
  221. package/dist/cjs/LoginPage.js.map +1 -1
  222. package/dist/cjs/MadeWith.js +14 -10
  223. package/dist/cjs/MadeWith.js.map +1 -1
  224. package/dist/cjs/MenuBar.js +108 -79
  225. package/dist/cjs/MenuBar.js.map +1 -1
  226. package/dist/cjs/Metadata.js +123 -100
  227. package/dist/cjs/Metadata.js.map +1 -1
  228. package/dist/cjs/MoreDropdown.js +55 -45
  229. package/dist/cjs/MoreDropdown.js.map +1 -1
  230. package/dist/cjs/NavigationHeader.js +105 -83
  231. package/dist/cjs/NavigationHeader.js.map +1 -1
  232. package/dist/cjs/NeetoWidget.js +383 -332
  233. package/dist/cjs/NeetoWidget.js.map +1 -1
  234. package/dist/cjs/Onboarding.js +125 -109
  235. package/dist/cjs/Onboarding.js.map +1 -1
  236. package/dist/cjs/OptionFields.js +261 -229
  237. package/dist/cjs/OptionFields.js.map +1 -1
  238. package/dist/cjs/PageLoader.js +23 -20
  239. package/dist/cjs/PageLoader.js.map +1 -1
  240. package/dist/cjs/PhoneNumber.js +86 -72
  241. package/dist/cjs/PhoneNumber.js.map +1 -1
  242. package/dist/cjs/ProductEmbed.js +383 -341
  243. package/dist/cjs/ProductEmbed.js.map +1 -1
  244. package/dist/cjs/PublishBlock.js +185 -156
  245. package/dist/cjs/PublishBlock.js.map +1 -1
  246. package/dist/cjs/PublishYourItem.js +35 -31
  247. package/dist/cjs/PublishYourItem.js.map +1 -1
  248. package/dist/cjs/Rename.js +102 -85
  249. package/dist/cjs/Rename.js.map +1 -1
  250. package/dist/cjs/ResponsiveDevicePicker.js +26 -24
  251. package/dist/cjs/ResponsiveDevicePicker.js.map +1 -1
  252. package/dist/cjs/Schedule.js +339 -301
  253. package/dist/cjs/Schedule.js.map +1 -1
  254. package/dist/cjs/Scrollable.js +7 -6
  255. package/dist/cjs/Scrollable.js.map +1 -1
  256. package/dist/cjs/Search.js +5 -5
  257. package/dist/cjs/Search.js.map +1 -1
  258. package/dist/cjs/SendToFields.js +154 -126
  259. package/dist/cjs/SendToFields.js.map +1 -1
  260. package/dist/cjs/Settings.js +94 -80
  261. package/dist/cjs/Settings.js.map +1 -1
  262. package/dist/cjs/ShareRecordingPane.js +60 -51
  263. package/dist/cjs/ShareRecordingPane.js.map +1 -1
  264. package/dist/cjs/ShareViaEmail.js +167 -148
  265. package/dist/cjs/ShareViaEmail.js.map +1 -1
  266. package/dist/cjs/ShareViaLink.js +290 -256
  267. package/dist/cjs/ShareViaLink.js.map +1 -1
  268. package/dist/cjs/Sidebar.js +120 -111
  269. package/dist/cjs/Sidebar.js.map +1 -1
  270. package/dist/cjs/StickyRibbonsContainer.js +20 -19
  271. package/dist/cjs/StickyRibbonsContainer.js.map +1 -1
  272. package/dist/cjs/SubHeader.js +110 -101
  273. package/dist/cjs/SubHeader.js.map +1 -1
  274. package/dist/cjs/SuffixedInput.js +51 -48
  275. package/dist/cjs/SuffixedInput.js.map +1 -1
  276. package/dist/cjs/TableWrapper.js +9 -8
  277. package/dist/cjs/TableWrapper.js.map +1 -1
  278. package/dist/cjs/Taxonomy.js +178 -151
  279. package/dist/cjs/Taxonomy.js.map +1 -1
  280. package/dist/cjs/TimeFormat.js +2 -2
  281. package/dist/cjs/TimezoneMismatchModal.js +54 -43
  282. package/dist/cjs/TimezoneMismatchModal.js.map +1 -1
  283. package/dist/cjs/ToggleFeatureCard.js +73 -66
  284. package/dist/cjs/ToggleFeatureCard.js.map +1 -1
  285. package/dist/cjs/{index-4ee3f585.js → index-c925b4b1.js} +296 -239
  286. package/dist/cjs/index-c925b4b1.js.map +1 -0
  287. package/dist/cjs/{useColumns-5ce3cf1e.js → useColumns-8894f767.js} +52 -42
  288. package/dist/cjs/useColumns-8894f767.js.map +1 -0
  289. package/dist/{index-0063079e.js → index-e123ffe8.js} +296 -238
  290. package/dist/index-e123ffe8.js.map +1 -0
  291. package/dist/{useColumns-e0b5dfb7.js → useColumns-13263cd8.js} +52 -40
  292. package/dist/useColumns-13263cd8.js.map +1 -0
  293. package/package.json +5 -3
  294. package/src/translations/en.json +3 -0
  295. package/types/Breadcrumbs.d.ts +0 -1
  296. package/types/Builder.d.ts +0 -1
  297. package/types/Codeblock.d.ts +0 -1
  298. package/types/Columns.d.ts +10 -4
  299. package/types/ConfirmationModal.d.ts +0 -1
  300. package/types/DeleteArchiveModal.d.ts +9 -6
  301. package/types/DeviceIncompatibilityMessage.d.ts +17 -0
  302. package/types/DocumentEditor.d.ts +0 -1
  303. package/types/EmailForm.d.ts +0 -1
  304. package/types/EmailFormProvider.d.ts +0 -1
  305. package/types/EmailPreview.d.ts +0 -1
  306. package/types/FileUpload.d.ts +8 -4
  307. package/types/IntegrationWalkthroughModal.d.ts +1 -1
  308. package/types/Metadata.d.ts +0 -1
  309. package/types/MoreDropdown.d.ts +0 -1
  310. package/types/NavigationHeader.d.ts +0 -4
  311. package/types/PhoneNumber.d.ts +1 -1
  312. package/types/ProductEmbed.d.ts +0 -1
  313. package/types/Schedule.d.ts +1 -1
  314. package/types/Search.d.ts +0 -1
  315. package/types/SendToFields.d.ts +0 -1
  316. package/types/Settings.d.ts +1 -1
  317. package/types/ShareRecordingPane.d.ts +1 -1
  318. package/types/ShareViaEmail.d.ts +1 -2
  319. package/types/Taxonomy.d.ts +0 -1
  320. package/dist/Chevron-dee43d2f.js.map +0 -1
  321. package/dist/cjs/Chevron-c10b4e16.js.map +0 -1
  322. package/dist/cjs/index-4ee3f585.js.map +0 -1
  323. package/dist/cjs/useColumns-5ce3cf1e.js.map +0 -1
  324. package/dist/index-0063079e.js.map +0 -1
  325. package/dist/useColumns-e0b5dfb7.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
- import React__default, { useState, useEffect } from 'react';
3
+ import { useState, useEffect, createElement } from 'react';
4
4
  import classnames from 'classnames';
5
5
  import { noop } from '@bigbinary/neeto-cist';
6
6
  import LeftArrow from '@bigbinary/neeto-icons/LeftArrow';
@@ -9,6 +9,7 @@ import Typography from '@bigbinary/neetoui/Typography';
9
9
  import { mergeDeepLeft, toPairs, isEmpty, mergeLeft } from 'ramda';
10
10
  import { useTranslation } from 'react-i18next';
11
11
  import Codeblock from './Codeblock.js';
12
+ import { jsx, jsxs } from 'react/jsx-runtime';
12
13
  import { t } from 'i18next';
13
14
  import Code$1 from '@bigbinary/neeto-icons/Code';
14
15
  import Eye from '@bigbinary/neeto-icons/Eye';
@@ -25,7 +26,6 @@ import Tab from '@bigbinary/neetoui/Tab';
25
26
  import Radio from '@bigbinary/neetoui/Radio';
26
27
  import Spinner from '@bigbinary/neetoui/Spinner';
27
28
  import { n } from './inject-css-c86de496.js';
28
- import '@babel/runtime/helpers/extends';
29
29
  import 'react-syntax-highlighter';
30
30
  import 'react-syntax-highlighter/dist/esm/styles/prism';
31
31
  import './CopyToClipboardButton.js';
@@ -36,13 +36,14 @@ import '@bigbinary/neeto-icons/Check';
36
36
 
37
37
  var Code = function Code(_ref) {
38
38
  var code = _ref.code;
39
- return /*#__PURE__*/React__default.createElement("div", {
39
+ return /*#__PURE__*/jsx("div", {
40
40
  className: "relative w-full overflow-y-auto",
41
41
  "data-cy": "embed-code-block",
42
- "data-testid": "embed-code-block"
43
- }, /*#__PURE__*/React__default.createElement(Codeblock, {
44
- code: code
45
- }));
42
+ "data-testid": "embed-code-block",
43
+ children: /*#__PURE__*/jsx(Codeblock, {
44
+ code: code
45
+ })
46
+ });
46
47
  };
47
48
 
48
49
  var TAB_KEYS = {
@@ -226,48 +227,51 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
226
227
  queryParams: buildQueryParamsFromInputFields(queryParams)
227
228
  });
228
229
  }, [queryParams]);
229
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Label, {
230
- className: "mb-2",
231
- "data-cy": "dynamic-query-params-label"
232
- }, t("neetoMolecules.productEmbed.customization.queryParam.label")), queryParams.map(function (param, index) {
233
- return /*#__PURE__*/React__default.createElement("div", {
234
- className: "mb-1 flex gap-1",
235
- key: index
236
- }, /*#__PURE__*/React__default.createElement(Input, {
237
- "data-cy": "dynamic-query-key-name-input",
238
- "data-testid": "dynamic-query-key-name-input",
239
- name: "queryParams.".concat(index, ".name"),
240
- value: param.name,
241
- placeholder: t("neetoMolecules.productEmbed.customization.queryParam.keyNamePlaceholder"),
242
- onChange: function onChange(e) {
243
- return handleInputChange(index, "name", e.target.value);
244
- }
245
- }), /*#__PURE__*/React__default.createElement(Input, {
246
- "data-cy": "dynamic-query-key-value-input",
247
- "data-testid": "dynamic-query-key-value-input",
248
- name: "queryParams.".concat(index, ".value"),
249
- value: param.value,
250
- placeholder: t("neetoMolecules.productEmbed.customization.queryParam.keyValuePlaceholder"),
251
- onChange: function onChange(e) {
252
- return handleInputChange(index, "value", e.target.value);
253
- }
254
- }), /*#__PURE__*/React__default.createElement(Button, {
255
- "data-cy": "dynamic-query-delete-button",
256
- icon: Delete,
257
- style: "text",
258
- onClick: function onClick() {
259
- return handleRemoveQueryParam(index);
260
- }
261
- }));
262
- }), /*#__PURE__*/React__default.createElement(Button, {
263
- className: "my-2",
264
- "data-cy": "dynamic-query-add-new-button",
265
- icon: Plus,
266
- iconPosition: "left",
267
- style: "link",
268
- label: t("neetoMolecules.productEmbed.customization.queryParam.addQueryParam"),
269
- onClick: handleAddQueryParam
270
- }));
230
+ return /*#__PURE__*/jsxs("div", {
231
+ children: [/*#__PURE__*/jsx(Label, {
232
+ className: "mb-2",
233
+ "data-cy": "dynamic-query-params-label",
234
+ children: t("neetoMolecules.productEmbed.customization.queryParam.label")
235
+ }), queryParams.map(function (param, index) {
236
+ return /*#__PURE__*/jsxs("div", {
237
+ className: "mb-1 flex gap-1",
238
+ children: [/*#__PURE__*/jsx(Input, {
239
+ "data-cy": "dynamic-query-key-name-input",
240
+ "data-testid": "dynamic-query-key-name-input",
241
+ name: "queryParams.".concat(index, ".name"),
242
+ value: param.name,
243
+ placeholder: t("neetoMolecules.productEmbed.customization.queryParam.keyNamePlaceholder"),
244
+ onChange: function onChange(e) {
245
+ return handleInputChange(index, "name", e.target.value);
246
+ }
247
+ }), /*#__PURE__*/jsx(Input, {
248
+ "data-cy": "dynamic-query-key-value-input",
249
+ "data-testid": "dynamic-query-key-value-input",
250
+ name: "queryParams.".concat(index, ".value"),
251
+ value: param.value,
252
+ placeholder: t("neetoMolecules.productEmbed.customization.queryParam.keyValuePlaceholder"),
253
+ onChange: function onChange(e) {
254
+ return handleInputChange(index, "value", e.target.value);
255
+ }
256
+ }), /*#__PURE__*/jsx(Button, {
257
+ "data-cy": "dynamic-query-delete-button",
258
+ icon: Delete,
259
+ style: "text",
260
+ onClick: function onClick() {
261
+ return handleRemoveQueryParam(index);
262
+ }
263
+ })]
264
+ }, index);
265
+ }), /*#__PURE__*/jsx(Button, {
266
+ className: "my-2",
267
+ "data-cy": "dynamic-query-add-new-button",
268
+ icon: Plus,
269
+ iconPosition: "left",
270
+ style: "link",
271
+ label: t("neetoMolecules.productEmbed.customization.queryParam.addQueryParam"),
272
+ onClick: handleAddQueryParam
273
+ })]
274
+ });
271
275
  };
272
276
 
273
277
  var ElementPopup$1 = function ElementPopup(_ref) {
@@ -284,28 +288,31 @@ var ElementPopup$1 = function ElementPopup(_ref) {
284
288
  queryParams: undefined
285
289
  });
286
290
  }, []);
287
- return /*#__PURE__*/React__default.createElement("div", {
288
- className: "space-y-6"
289
- }, /*#__PURE__*/React__default.createElement(Typography, {
290
- "data-cy": "element-popup-header",
291
- style: "h4"
292
- }, t("neetoMolecules.productEmbed.customization.elementPopup.title")), /*#__PURE__*/React__default.createElement(Callout, {
293
- "data-cy": "element-popup-description"
294
- }, t("neetoMolecules.productEmbed.customization.elementPopup.description")), /*#__PURE__*/React__default.createElement(Input, {
295
- className: "w-full",
296
- "data-cy": "element-id-input-field",
297
- "data-testid": "element-id-input-field",
298
- value: elementSelector,
299
- error: !elementSelector && t("neetoMolecules.productEmbed.customization.elementPopup.warning"),
300
- label: t("neetoMolecules.productEmbed.customization.elementPopup.elementId"),
301
- onChange: function onChange(e) {
302
- return updateCustomization({
303
- elementSelector: e.target.value
304
- });
305
- }
306
- }), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/React__default.createElement(DynamicQueryParams, {
307
- updateCustomization: updateCustomization
308
- }));
291
+ return /*#__PURE__*/jsxs("div", {
292
+ className: "space-y-6",
293
+ children: [/*#__PURE__*/jsx(Typography, {
294
+ "data-cy": "element-popup-header",
295
+ style: "h4",
296
+ children: t("neetoMolecules.productEmbed.customization.elementPopup.title")
297
+ }), /*#__PURE__*/jsx(Callout, {
298
+ "data-cy": "element-popup-description",
299
+ children: t("neetoMolecules.productEmbed.customization.elementPopup.description")
300
+ }), /*#__PURE__*/jsx(Input, {
301
+ className: "w-full",
302
+ "data-cy": "element-id-input-field",
303
+ "data-testid": "element-id-input-field",
304
+ value: elementSelector,
305
+ error: !elementSelector && t("neetoMolecules.productEmbed.customization.elementPopup.warning"),
306
+ label: t("neetoMolecules.productEmbed.customization.elementPopup.elementId"),
307
+ onChange: function onChange(e) {
308
+ return updateCustomization({
309
+ elementSelector: e.target.value
310
+ });
311
+ }
312
+ }), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/jsx(DynamicQueryParams, {
313
+ updateCustomization: updateCustomization
314
+ })]
315
+ });
309
316
  };
310
317
 
311
318
  var FloatingPopup$1 = function FloatingPopup(_ref) {
@@ -327,72 +334,82 @@ var FloatingPopup$1 = function FloatingPopup(_ref) {
327
334
  queryParams: undefined
328
335
  });
329
336
  }, []);
330
- return /*#__PURE__*/React__default.createElement("div", {
331
- className: "space-y-6"
332
- }, /*#__PURE__*/React__default.createElement(Typography, {
333
- "data-cy": "popup-customization-header",
334
- style: "h4"
335
- }, t("neetoMolecules.productEmbed.customization.floatingPopup.title")), icon && /*#__PURE__*/React__default.createElement(Checkbox, {
336
- checked: showIcon,
337
- "data-cy": "show-icon-checkbox",
338
- "data-testid": "show-icon-checkbox",
339
- label: t("neetoMolecules.productEmbed.customization.floatingPopup.showCalIcon"),
340
- onChange: function onChange(e) {
341
- return updateCustomization({
342
- showIcon: e.target.checked
343
- });
344
- }
345
- }), /*#__PURE__*/React__default.createElement("div", {
346
- className: "space-y-2"
347
- }, /*#__PURE__*/React__default.createElement(Input, {
348
- "data-cy": "button-text-input-field",
349
- "data-testid": "button-text-input-field",
350
- value: btnText,
351
- label: t("neetoMolecules.productEmbed.customization.floatingPopup.button.text"),
352
- onChange: function onChange(e) {
353
- return updateCustomization({
354
- btnText: e.target.value
355
- });
356
- }
357
- })), /*#__PURE__*/React__default.createElement("div", {
358
- className: "space-y-2"
359
- }, /*#__PURE__*/React__default.createElement(Select, {
360
- "data-cy": "button-position-select-field",
361
- "data-testid": "button-position-select-field",
362
- options: FLOATING_BUTTON_POSITIONS,
363
- value: btnPosition,
364
- getOptionValue: function getOptionValue(option) {
365
- return typeof option === "string" ? option : option.value;
366
- },
367
- label: t("neetoMolecules.productEmbed.customization.floatingPopup.button.pos"),
368
- onChange: function onChange(e) {
369
- return updateCustomization({
370
- btnPosition: e.value
371
- });
372
- }
373
- })), /*#__PURE__*/React__default.createElement("div", {
374
- className: "flex items-center justify-between gap-x-2",
375
- "data-cy": "button-color-label"
376
- }, /*#__PURE__*/React__default.createElement(Label, null, t("neetoMolecules.productEmbed.customization.floatingPopup.button.color")), /*#__PURE__*/React__default.createElement(ColorPicker, {
377
- color: btnColor,
378
- onChange: function onChange(e) {
379
- return updateCustomization({
380
- btnColor: e.hex
381
- });
382
- }
383
- })), /*#__PURE__*/React__default.createElement("div", {
384
- className: "flex items-center justify-between gap-x-2",
385
- "data-cy": "button-text-color-label"
386
- }, /*#__PURE__*/React__default.createElement(Label, null, t("neetoMolecules.productEmbed.customization.floatingPopup.button.textColor")), /*#__PURE__*/React__default.createElement(ColorPicker, {
387
- color: btnTextColor,
388
- onChange: function onChange(e) {
389
- return updateCustomization({
390
- btnTextColor: e.hex
391
- });
392
- }
393
- })), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/React__default.createElement(DynamicQueryParams, {
394
- updateCustomization: updateCustomization
395
- }));
337
+ return /*#__PURE__*/jsxs("div", {
338
+ className: "space-y-6",
339
+ children: [/*#__PURE__*/jsx(Typography, {
340
+ "data-cy": "popup-customization-header",
341
+ style: "h4",
342
+ children: t("neetoMolecules.productEmbed.customization.floatingPopup.title")
343
+ }), icon && /*#__PURE__*/jsx(Checkbox, {
344
+ checked: showIcon,
345
+ "data-cy": "show-icon-checkbox",
346
+ "data-testid": "show-icon-checkbox",
347
+ label: t("neetoMolecules.productEmbed.customization.floatingPopup.showCalIcon"),
348
+ onChange: function onChange(e) {
349
+ return updateCustomization({
350
+ showIcon: e.target.checked
351
+ });
352
+ }
353
+ }), /*#__PURE__*/jsx("div", {
354
+ className: "space-y-2",
355
+ children: /*#__PURE__*/jsx(Input, {
356
+ "data-cy": "button-text-input-field",
357
+ "data-testid": "button-text-input-field",
358
+ value: btnText,
359
+ label: t("neetoMolecules.productEmbed.customization.floatingPopup.button.text"),
360
+ onChange: function onChange(e) {
361
+ return updateCustomization({
362
+ btnText: e.target.value
363
+ });
364
+ }
365
+ })
366
+ }), /*#__PURE__*/jsx("div", {
367
+ className: "space-y-2",
368
+ children: /*#__PURE__*/jsx(Select, {
369
+ "data-cy": "button-position-select-field",
370
+ "data-testid": "button-position-select-field",
371
+ options: FLOATING_BUTTON_POSITIONS,
372
+ value: btnPosition,
373
+ getOptionValue: function getOptionValue(option) {
374
+ return typeof option === "string" ? option : option.value;
375
+ },
376
+ label: t("neetoMolecules.productEmbed.customization.floatingPopup.button.pos"),
377
+ onChange: function onChange(e) {
378
+ return updateCustomization({
379
+ btnPosition: e.value
380
+ });
381
+ }
382
+ })
383
+ }), /*#__PURE__*/jsxs("div", {
384
+ className: "flex items-center justify-between gap-x-2",
385
+ "data-cy": "button-color-label",
386
+ children: [/*#__PURE__*/jsx(Label, {
387
+ children: t("neetoMolecules.productEmbed.customization.floatingPopup.button.color")
388
+ }), /*#__PURE__*/jsx(ColorPicker, {
389
+ color: btnColor,
390
+ onChange: function onChange(e) {
391
+ return updateCustomization({
392
+ btnColor: e.hex
393
+ });
394
+ }
395
+ })]
396
+ }), /*#__PURE__*/jsxs("div", {
397
+ className: "flex items-center justify-between gap-x-2",
398
+ "data-cy": "button-text-color-label",
399
+ children: [/*#__PURE__*/jsx(Label, {
400
+ children: t("neetoMolecules.productEmbed.customization.floatingPopup.button.textColor")
401
+ }), /*#__PURE__*/jsx(ColorPicker, {
402
+ color: btnTextColor,
403
+ onChange: function onChange(e) {
404
+ return updateCustomization({
405
+ btnTextColor: e.hex
406
+ });
407
+ }
408
+ })]
409
+ }), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/jsx(DynamicQueryParams, {
410
+ updateCustomization: updateCustomization
411
+ })]
412
+ });
396
413
  };
397
414
 
398
415
  var Inline$1 = function Inline(_ref) {
@@ -415,57 +432,64 @@ var Inline$1 = function Inline(_ref) {
415
432
  queryParams: undefined
416
433
  });
417
434
  }, []);
418
- return /*#__PURE__*/React__default.createElement("div", {
419
- className: "flex flex-col gap-y-6"
420
- }, /*#__PURE__*/React__default.createElement(Typography, {
421
- "data-cy": "customization-text",
422
- style: "h4"
423
- }, t("neetoMolecules.productEmbed.customization.inline.title")), /*#__PURE__*/React__default.createElement("div", {
424
- className: "flex flex-col gap-2"
425
- }, /*#__PURE__*/React__default.createElement(Label, {
426
- "data-cy": "window-size-text"
427
- }, t("neetoMolecules.productEmbed.customization.inline.sizeOfEmbedWindow")), /*#__PURE__*/React__default.createElement("div", {
428
- className: "flex justify-between gap-x-2"
429
- }, /*#__PURE__*/React__default.createElement(Input, {
430
- className: "neeto-molecules-product-embed-size-input",
431
- "data-cy": "inline-width-input-field",
432
- "data-testid": "inline-width-input-field",
433
- max: 100,
434
- min: 0,
435
- prefix: "W",
436
- suffix: "%",
437
- type: "number",
438
- value: width,
439
- onChange: function onChange(e) {
440
- return handleInputChange(e, "width");
441
- }
442
- }), /*#__PURE__*/React__default.createElement(Input, {
443
- className: "neeto-molecules-product-embed-size-input",
444
- "data-cy": "inline-height-input-field",
445
- "data-testid": "inline-height-input-field",
446
- max: 100,
447
- min: 0,
448
- prefix: "H",
449
- suffix: "%",
450
- type: "number",
451
- value: height,
452
- onChange: function onChange(e) {
453
- return handleInputChange(e, "height");
454
- }
455
- }))), /*#__PURE__*/React__default.createElement("div", {
456
- className: "flex flex-col gap-2"
457
- }, /*#__PURE__*/React__default.createElement(Label, {
458
- "data-cy": "inline-element-id-input-label"
459
- }, t("neetoMolecules.productEmbed.customization.inline.elementId")), /*#__PURE__*/React__default.createElement(Input, {
460
- "data-cy": "inline-element-id-input-field",
461
- "data-testid": "inline-element-id-input-field",
462
- value: elementSelector,
463
- onChange: function onChange(e) {
464
- return handleInputChange(e, "elementSelector");
465
- }
466
- })), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/React__default.createElement(DynamicQueryParams, {
467
- updateCustomization: updateCustomization
468
- }));
435
+ return /*#__PURE__*/jsxs("div", {
436
+ className: "flex flex-col gap-y-6",
437
+ children: [/*#__PURE__*/jsx(Typography, {
438
+ "data-cy": "customization-text",
439
+ style: "h4",
440
+ children: t("neetoMolecules.productEmbed.customization.inline.title")
441
+ }), /*#__PURE__*/jsxs("div", {
442
+ className: "flex flex-col gap-2",
443
+ children: [/*#__PURE__*/jsx(Label, {
444
+ "data-cy": "window-size-text",
445
+ children: t("neetoMolecules.productEmbed.customization.inline.sizeOfEmbedWindow")
446
+ }), /*#__PURE__*/jsxs("div", {
447
+ className: "flex justify-between gap-x-2",
448
+ children: [/*#__PURE__*/jsx(Input, {
449
+ className: "neeto-molecules-product-embed-size-input",
450
+ "data-cy": "inline-width-input-field",
451
+ "data-testid": "inline-width-input-field",
452
+ max: 100,
453
+ min: 0,
454
+ prefix: "W",
455
+ suffix: "%",
456
+ type: "number",
457
+ value: width,
458
+ onChange: function onChange(e) {
459
+ return handleInputChange(e, "width");
460
+ }
461
+ }), /*#__PURE__*/jsx(Input, {
462
+ className: "neeto-molecules-product-embed-size-input",
463
+ "data-cy": "inline-height-input-field",
464
+ "data-testid": "inline-height-input-field",
465
+ max: 100,
466
+ min: 0,
467
+ prefix: "H",
468
+ suffix: "%",
469
+ type: "number",
470
+ value: height,
471
+ onChange: function onChange(e) {
472
+ return handleInputChange(e, "height");
473
+ }
474
+ })]
475
+ })]
476
+ }), /*#__PURE__*/jsxs("div", {
477
+ className: "flex flex-col gap-2",
478
+ children: [/*#__PURE__*/jsx(Label, {
479
+ "data-cy": "inline-element-id-input-label",
480
+ children: t("neetoMolecules.productEmbed.customization.inline.elementId")
481
+ }), /*#__PURE__*/jsx(Input, {
482
+ "data-cy": "inline-element-id-input-field",
483
+ "data-testid": "inline-element-id-input-field",
484
+ value: elementSelector,
485
+ onChange: function onChange(e) {
486
+ return handleInputChange(e, "elementSelector");
487
+ }
488
+ })]
489
+ }), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/jsx(DynamicQueryParams, {
490
+ updateCustomization: updateCustomization
491
+ })]
492
+ });
469
493
  };
470
494
 
471
495
  var Customization = function Customization(_ref) {
@@ -476,7 +500,7 @@ var Customization = function Customization(_ref) {
476
500
  otherCustomizations = _ref.otherCustomizations;
477
501
  var type = _defineProperty(_defineProperty(_defineProperty({}, EMBED_OPTIONS.INLINE, Inline$1), EMBED_OPTIONS.FLOATING_POPUP, FloatingPopup$1), EMBED_OPTIONS.ELEMENT_POPUP, ElementPopup$1);
478
502
  var Component = type[option];
479
- return /*#__PURE__*/React__default.createElement(Component, {
503
+ return /*#__PURE__*/jsx(Component, {
480
504
  customization: customization,
481
505
  isQueryParamsEnabled: isQueryParamsEnabled,
482
506
  otherCustomizations: otherCustomizations,
@@ -487,90 +511,96 @@ var Customization = function Customization(_ref) {
487
511
  var Header = function Header(_ref) {
488
512
  var tab = _ref.tab,
489
513
  setTab = _ref.setTab;
490
- return /*#__PURE__*/React__default.createElement("div", {
491
- className: "flex w-full pt-2"
492
- }, /*#__PURE__*/React__default.createElement(Tab, {
493
- noUnderline: true,
494
- className: "neeto-molecules-product-embed-tab"
495
- }, TABS.map(function (_ref2) {
496
- var key = _ref2.key,
497
- label = _ref2.label,
498
- icon = _ref2.icon;
499
- return /*#__PURE__*/React__default.createElement(Tab.Item, {
500
- icon: icon,
501
- active: tab === key,
502
- "data-cy": "".concat(key, "-tab"),
503
- "data-testid": "".concat(key, "-tab"),
504
- key: key,
505
- onClick: function onClick() {
506
- return setTab(key);
507
- }
508
- }, label);
509
- })));
514
+ return /*#__PURE__*/jsx("div", {
515
+ className: "flex w-full pt-2",
516
+ children: /*#__PURE__*/jsx(Tab, {
517
+ noUnderline: true,
518
+ className: "neeto-molecules-product-embed-tab",
519
+ children: TABS.map(function (_ref2) {
520
+ var key = _ref2.key,
521
+ label = _ref2.label,
522
+ icon = _ref2.icon;
523
+ return /*#__PURE__*/createElement(Tab.Item, {
524
+ icon: icon,
525
+ active: tab === key,
526
+ "data-cy": "".concat(key, "-tab"),
527
+ "data-testid": "".concat(key, "-tab"),
528
+ key: key,
529
+ onClick: function onClick() {
530
+ return setTab(key);
531
+ }
532
+ }, label);
533
+ })
534
+ })
535
+ });
510
536
  };
511
537
 
512
538
  var Options = function Options(_ref) {
513
539
  var options = _ref.options,
514
540
  selectedOption = _ref.selectedOption,
515
541
  setSelectedOption = _ref.setSelectedOption;
516
- return /*#__PURE__*/React__default.createElement(Radio, {
542
+ return /*#__PURE__*/jsx(Radio, {
517
543
  stacked: true,
518
544
  containerClassName: "w-full flex flex-col gap-y-6",
519
- name: "options"
520
- }, Object.entries(options).map(function (_ref2) {
521
- var _ref3 = _slicedToArray(_ref2, 2),
522
- key = _ref3[0],
523
- _ref3$ = _ref3[1],
524
- label = _ref3$.label,
525
- description = _ref3$.description;
526
- return /*#__PURE__*/React__default.createElement("label", {
527
- className: "neeto-ui-border-gray-300 neeto-ui-bg-white neeto-ui-rounded-lg w-full cursor-pointer border p-4",
528
- "data-cy": "".concat(key, "-embed-option-label"),
529
- "data-testid": "".concat(key, "-embed-option-label"),
530
- htmlFor: key,
531
- key: key
532
- }, /*#__PURE__*/React__default.createElement("div", {
533
- className: "flex items-center"
534
- }, /*#__PURE__*/React__default.createElement(Radio.Item, {
535
- label: label,
536
- checked: key === selectedOption,
537
- className: "mb-0",
538
- "data-cy": "".concat(key, "-embed-radio-button"),
539
- "data-testid": "".concat(key, "-embed-radio-button"),
540
- id: key,
541
- name: "options",
542
- value: key,
543
- onChange: function onChange(event) {
544
- return setSelectedOption(event.target.value);
545
- }
546
- })), /*#__PURE__*/React__default.createElement(Typography, {
547
- className: "w-full pl-6 pt-1",
548
- "data-cy": "".concat(key, "-embed-option-description"),
549
- style: "body2"
550
- }, description));
551
- }));
545
+ name: "options",
546
+ children: Object.entries(options).map(function (_ref2) {
547
+ var _ref3 = _slicedToArray(_ref2, 2),
548
+ key = _ref3[0],
549
+ _ref3$ = _ref3[1],
550
+ label = _ref3$.label,
551
+ description = _ref3$.description;
552
+ return /*#__PURE__*/jsxs("label", {
553
+ className: "neeto-ui-border-gray-300 neeto-ui-bg-white neeto-ui-rounded-lg w-full cursor-pointer border p-4",
554
+ "data-cy": "".concat(key, "-embed-option-label"),
555
+ "data-testid": "".concat(key, "-embed-option-label"),
556
+ htmlFor: key,
557
+ children: [/*#__PURE__*/jsx("div", {
558
+ className: "flex items-center",
559
+ children: /*#__PURE__*/jsx(Radio.Item, {
560
+ label: label,
561
+ checked: key === selectedOption,
562
+ className: "mb-0",
563
+ "data-cy": "".concat(key, "-embed-radio-button"),
564
+ "data-testid": "".concat(key, "-embed-radio-button"),
565
+ id: key,
566
+ name: "options",
567
+ value: key,
568
+ onChange: function onChange(event) {
569
+ return setSelectedOption(event.target.value);
570
+ }
571
+ })
572
+ }), /*#__PURE__*/jsx(Typography, {
573
+ className: "w-full pl-6 pt-1",
574
+ "data-cy": "".concat(key, "-embed-option-description"),
575
+ style: "body2",
576
+ children: description
577
+ })]
578
+ }, key);
579
+ })
580
+ });
552
581
  };
553
582
 
554
583
  var BrowserIcon = function BrowserIcon() {
555
- return /*#__PURE__*/React__default.createElement("svg", {
584
+ return /*#__PURE__*/jsxs("svg", {
556
585
  fill: "none",
557
586
  height: "12",
558
587
  viewBox: "0 0 52 12",
559
588
  width: "52",
560
- xmlns: "http://www.w3.org/2000/svg"
561
- }, /*#__PURE__*/React__default.createElement("path", {
562
- d: "M11.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
563
- fill: "#FF5F57",
564
- stroke: "#E14640"
565
- }), /*#__PURE__*/React__default.createElement("path", {
566
- d: "M31.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
567
- fill: "#FFBD2E",
568
- stroke: "#DFA123"
569
- }), /*#__PURE__*/React__default.createElement("path", {
570
- d: "M51.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
571
- fill: "#28CA42",
572
- stroke: "#1DAD2C"
573
- }));
589
+ xmlns: "http://www.w3.org/2000/svg",
590
+ children: [/*#__PURE__*/jsx("path", {
591
+ d: "M11.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
592
+ fill: "#FF5F57",
593
+ stroke: "#E14640"
594
+ }), /*#__PURE__*/jsx("path", {
595
+ d: "M31.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
596
+ fill: "#FFBD2E",
597
+ stroke: "#DFA123"
598
+ }), /*#__PURE__*/jsx("path", {
599
+ d: "M51.5 6a5.5 5.5 0 11-11 0 5.5 5.5 0 0111 0z",
600
+ fill: "#28CA42",
601
+ stroke: "#1DAD2C"
602
+ })]
603
+ });
574
604
  };
575
605
 
576
606
  var ElementPopup = function ElementPopup(_ref) {
@@ -584,14 +614,15 @@ var ElementPopup = function ElementPopup(_ref) {
584
614
  var element = document.getElementById(elementSelector);
585
615
  if (element) (_window$globalProps$a = window[globalProps.appName]) === null || _window$globalProps$a === void 0 ? void 0 : _window$globalProps$a.embed(element, iframeURL);
586
616
  }, []);
587
- return /*#__PURE__*/React__default.createElement("div", {
588
- className: "relative flex h-full w-full items-center justify-center p-6"
589
- }, /*#__PURE__*/React__default.createElement(Button, {
590
- "data-cy": "preview-element-popup-button",
591
- "data-testid": "preview-element-popup-button",
592
- id: elementSelector,
593
- label: t("neetoMolecules.productEmbed.customization.elementPopup.label")
594
- }));
617
+ return /*#__PURE__*/jsx("div", {
618
+ className: "relative flex h-full w-full items-center justify-center p-6",
619
+ children: /*#__PURE__*/jsx(Button, {
620
+ "data-cy": "preview-element-popup-button",
621
+ "data-testid": "preview-element-popup-button",
622
+ id: elementSelector,
623
+ label: t("neetoMolecules.productEmbed.customization.elementPopup.label")
624
+ })
625
+ });
595
626
  };
596
627
 
597
628
  var FloatingPopup = function FloatingPopup(_ref) {
@@ -613,19 +644,20 @@ var FloatingPopup = function FloatingPopup(_ref) {
613
644
  btn.style.backgroundColor = btnColor;
614
645
  btn.style.color = btnTextColor;
615
646
  }, [btnColor, btnTextColor]);
616
- return /*#__PURE__*/React__default.createElement("div", {
617
- className: "relative h-full w-full"
618
- }, /*#__PURE__*/React__default.createElement(Button, {
619
- "data-cy": "popup-preview-button",
620
- icon: icon && showIcon ? icon : null,
621
- iconPosition: "left",
622
- id: "embedBtn",
623
- label: btnText,
624
- className: classnames("absolute bottom-0 m-4", {
625
- "left-0": btnPosition === "bottomLeft",
626
- "right-0": btnPosition === "bottomRight"
647
+ return /*#__PURE__*/jsx("div", {
648
+ className: "relative h-full w-full",
649
+ children: /*#__PURE__*/jsx(Button, {
650
+ "data-cy": "popup-preview-button",
651
+ icon: icon && showIcon ? icon : null,
652
+ iconPosition: "left",
653
+ id: "embedBtn",
654
+ label: btnText,
655
+ className: classnames("absolute bottom-0 m-4", {
656
+ "left-0": btnPosition === "bottomLeft",
657
+ "right-0": btnPosition === "bottomRight"
658
+ })
627
659
  })
628
- }));
660
+ });
629
661
  };
630
662
 
631
663
  var Inline = function Inline(_ref) {
@@ -633,7 +665,7 @@ var Inline = function Inline(_ref) {
633
665
  customization = _ref.customization;
634
666
  var height = customization.height,
635
667
  width = customization.width;
636
- return /*#__PURE__*/React__default.createElement("iframe", {
668
+ return /*#__PURE__*/jsx("iframe", {
637
669
  className: "m-auto",
638
670
  height: "".concat(height, "%"),
639
671
  src: iframeURL,
@@ -652,20 +684,24 @@ var Preview = function Preview(_ref) {
652
684
  var iframeURL = customPreviewIframeUrl || "".concat(location.origin, "/embed/").concat(id);
653
685
  var Component = preview[selectedOption];
654
686
  if (isScriptLoading) {
655
- return /*#__PURE__*/React__default.createElement("div", {
656
- className: "flex min-h-0 flex-grow items-center justify-center overflow-y-auto"
657
- }, /*#__PURE__*/React__default.createElement(Spinner, null));
687
+ return /*#__PURE__*/jsx("div", {
688
+ className: "flex min-h-0 flex-grow items-center justify-center overflow-y-auto",
689
+ children: /*#__PURE__*/jsx(Spinner, {})
690
+ });
658
691
  }
659
- return /*#__PURE__*/React__default.createElement("div", {
660
- className: "neeto-ui-rounded-lg neeto-ui-border-gray-300 neeto-ui-bg-white relative flex w-full flex-col overflow-hidden border"
661
- }, /*#__PURE__*/React__default.createElement("div", {
662
- className: "neeto-ui-border-gray-300 flex-shrink-0 border-b p-3"
663
- }, /*#__PURE__*/React__default.createElement(BrowserIcon, null)), /*#__PURE__*/React__default.createElement("div", {
664
- className: "flex min-h-0 flex-grow overflow-y-auto"
665
- }, /*#__PURE__*/React__default.createElement(Component, {
666
- customization: customization,
667
- iframeURL: iframeURL
668
- })));
692
+ return /*#__PURE__*/jsxs("div", {
693
+ className: "neeto-ui-rounded-lg neeto-ui-border-gray-300 neeto-ui-bg-white relative flex w-full flex-col overflow-hidden border",
694
+ children: [/*#__PURE__*/jsx("div", {
695
+ className: "neeto-ui-border-gray-300 flex-shrink-0 border-b p-3",
696
+ children: /*#__PURE__*/jsx(BrowserIcon, {})
697
+ }), /*#__PURE__*/jsx("div", {
698
+ className: "flex min-h-0 flex-grow overflow-y-auto",
699
+ children: /*#__PURE__*/jsx(Component, {
700
+ customization: customization,
701
+ iframeURL: iframeURL
702
+ })
703
+ })]
704
+ });
669
705
  };
670
706
 
671
707
  var css = ".neeto-molecules-product-embed-size-input.neeto-ui-input__wrapper .neeto-ui-input__prefix{align-self:stretch;background-color:rgb(var(--neeto-ui-gray-200));margin-left:0!important;padding-left:12px;padding-right:12px}.neeto-molecules-product-embed-tab{gap:.5rem}.neeto-molecules-product-embed-tab .neeto-ui-tab{border-radius:var(--neeto-ui-btn-border-radius);color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-product-embed-tab .neeto-ui-tab:not(.active):hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-molecules-product-embed-tab .neeto-ui-tab.active{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-embed-left-sidebar{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;max-width:28rem;overflow-y:auto;padding:1.5rem;width:100%}";
@@ -735,56 +771,63 @@ var ProductEmbed = function ProductEmbed(_ref) {
735
771
  var isScriptLoaded = document.getElementById(SCRIPT_ID);
736
772
  if (isScriptLoaded) setIsScriptLoading(false);else loadScript();
737
773
  }, []);
738
- return /*#__PURE__*/React__default.createElement("div", {
774
+ return /*#__PURE__*/jsxs("div", {
739
775
  className: classnames("flex w-full flex-grow", className),
740
- "data-testid": "embed-product"
741
- }, /*#__PURE__*/React__default.createElement("div", {
742
- className: "neeto-molecules-embed-left-sidebar border-r"
743
- }, goBackLink && /*#__PURE__*/React__default.createElement(Button, {
744
- className: "mb-4 px-0",
745
- "data-cy": "back-button",
746
- "data-testid": "back-button",
747
- icon: LeftArrow,
748
- iconPosition: "left",
749
- label: t("neetoMolecules.productEmbed.backToShare"),
750
- size: "small",
751
- style: "icon",
752
- to: goBackLink
753
- }), /*#__PURE__*/React__default.createElement(Typography, {
754
- "data-cy": "embed-options-header-title",
755
- style: "h3"
756
- }, t("neetoMolecules.productEmbed.embedOptions.title")), /*#__PURE__*/React__default.createElement(Typography, {
757
- className: "mt-1",
758
- "data-cy": "embed-options-header-description",
759
- style: "body3"
760
- }, t("neetoMolecules.productEmbed.embedOptions.description")), /*#__PURE__*/React__default.createElement("div", {
761
- className: "mt-6 flex w-full flex-col gap-y-6 pb-10"
762
- }, /*#__PURE__*/React__default.createElement(Options, {
763
- options: options,
764
- selectedOption: selectedOption,
765
- setSelectedOption: setSelectedOption
766
- }), /*#__PURE__*/React__default.createElement(Customization, {
767
- isQueryParamsEnabled: isQueryParamsEnabled,
768
- otherCustomizations: otherCustomizations,
769
- updateCustomization: updateCustomization,
770
- customization: customizations[selectedOption],
771
- option: selectedOption
772
- }))), /*#__PURE__*/React__default.createElement("div", {
773
- className: "neeto-ui-bg-white flex w-full min-w-0 flex-grow flex-col gap-4 p-6"
774
- }, /*#__PURE__*/React__default.createElement(Header, {
775
- setTab: setTab,
776
- tab: tab
777
- }), /*#__PURE__*/React__default.createElement("div", {
778
- className: "flex flex-grow overflow-y-auto"
779
- }, tab === TAB_KEYS.PREVIEW ? /*#__PURE__*/React__default.createElement(Preview, {
780
- customPreviewIframeUrl: customPreviewIframeUrl,
781
- id: id,
782
- isScriptLoading: isScriptLoading,
783
- selectedOption: selectedOption,
784
- customization: customizations[selectedOption]
785
- }) : /*#__PURE__*/React__default.createElement(Code, {
786
- code: code
787
- }))));
776
+ "data-testid": "embed-product",
777
+ children: [/*#__PURE__*/jsxs("div", {
778
+ className: "neeto-molecules-embed-left-sidebar border-r",
779
+ children: [goBackLink && /*#__PURE__*/jsx(Button, {
780
+ className: "mb-4 px-0",
781
+ "data-cy": "back-button",
782
+ "data-testid": "back-button",
783
+ icon: LeftArrow,
784
+ iconPosition: "left",
785
+ label: t("neetoMolecules.productEmbed.backToShare"),
786
+ size: "small",
787
+ style: "icon",
788
+ to: goBackLink
789
+ }), /*#__PURE__*/jsx(Typography, {
790
+ "data-cy": "embed-options-header-title",
791
+ style: "h3",
792
+ children: t("neetoMolecules.productEmbed.embedOptions.title")
793
+ }), /*#__PURE__*/jsx(Typography, {
794
+ className: "mt-1",
795
+ "data-cy": "embed-options-header-description",
796
+ style: "body3",
797
+ children: t("neetoMolecules.productEmbed.embedOptions.description")
798
+ }), /*#__PURE__*/jsxs("div", {
799
+ className: "mt-6 flex w-full flex-col gap-y-6 pb-10",
800
+ children: [/*#__PURE__*/jsx(Options, {
801
+ options: options,
802
+ selectedOption: selectedOption,
803
+ setSelectedOption: setSelectedOption
804
+ }), /*#__PURE__*/jsx(Customization, {
805
+ isQueryParamsEnabled: isQueryParamsEnabled,
806
+ otherCustomizations: otherCustomizations,
807
+ updateCustomization: updateCustomization,
808
+ customization: customizations[selectedOption],
809
+ option: selectedOption
810
+ })]
811
+ })]
812
+ }), /*#__PURE__*/jsxs("div", {
813
+ className: "neeto-ui-bg-white flex w-full min-w-0 flex-grow flex-col gap-4 p-6",
814
+ children: [/*#__PURE__*/jsx(Header, {
815
+ setTab: setTab,
816
+ tab: tab
817
+ }), /*#__PURE__*/jsx("div", {
818
+ className: "flex flex-grow overflow-y-auto",
819
+ children: tab === TAB_KEYS.PREVIEW ? /*#__PURE__*/jsx(Preview, {
820
+ customPreviewIframeUrl: customPreviewIframeUrl,
821
+ id: id,
822
+ isScriptLoading: isScriptLoading,
823
+ selectedOption: selectedOption,
824
+ customization: customizations[selectedOption]
825
+ }) : /*#__PURE__*/jsx(Code, {
826
+ code: code
827
+ })
828
+ })]
829
+ })]
830
+ });
788
831
  };
789
832
 
790
833
  export { ProductEmbed as default };