@zonos/elements 1.3.39 → 1.3.41

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 (303) hide show
  1. package/dist/cjs/{cart-c7212410.js → cart-497bb434.js} +300 -7
  2. package/dist/cjs/{getBorderRadius-074b46ef.js → getBorderRadius-4413e191.js} +1 -1
  3. package/dist/cjs/{index-b071017b.js → index-d56e0a8b.js} +242 -169
  4. package/dist/cjs/index.cjs.js +10 -4
  5. package/dist/cjs/{isDarkColor-371a3b1a.js → isDarkColor-4eb96a1e.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/paypal-e65a287a.js +461 -0
  8. package/dist/cjs/{submitGtag-7a679d92.js → sendErrorLog-c3c315a9.js} +2 -19
  9. package/dist/cjs/zonos-address_8.cjs.entry.js +11 -11
  10. package/dist/cjs/zonos-badge_2.cjs.entry.js +4 -4
  11. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
  13. package/dist/cjs/zonos-card.cjs.entry.js +3 -3
  14. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +76 -38
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +43 -70
  16. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  17. package/dist/cjs/zonos-controller.cjs.entry.js +15 -15
  18. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  19. package/dist/cjs/{zonos-country-select_3.cjs.entry.js → zonos-country-select_4.cjs.entry.js} +100 -14
  20. package/dist/cjs/zonos-elements.cjs.js +3 -3
  21. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
  22. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-input.cjs.entry.js +7 -7
  24. package/dist/cjs/zonos-language-select_2.cjs.entry.js +9 -9
  25. package/dist/cjs/zonos-link.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
  27. package/dist/cjs/{zonos-notification_2.cjs.entry.js → zonos-notification_3.cjs.entry.js} +59 -7
  28. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  29. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  30. package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
  31. package/dist/cjs/{zonosStore-4c6c85da.js → zonosStore-56401fdb.js} +5 -1
  32. package/dist/collection/__tests__/build-utils/urlCheckOne.js +3 -1
  33. package/dist/collection/collection-manifest.json +3 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +1 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +39 -8
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -0
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +37 -22
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +30 -60
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
  43. package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +8 -0
  44. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +14 -4
  45. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  46. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  47. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  48. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  49. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  50. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  51. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  52. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  53. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  54. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  55. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.css +46 -0
  56. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +177 -0
  57. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  58. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  59. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  60. package/dist/collection/components/main/zonos-controller.js +22 -8
  61. package/dist/collection/components/paypal/zonos-paypal-payment.css +37 -0
  62. package/dist/collection/components/paypal/zonos-paypal-payment.js +92 -0
  63. package/dist/collection/components/store/checkout/cart.js +26 -1
  64. package/dist/collection/components/store/checkout/paypal.js +219 -0
  65. package/dist/collection/components/store/checkout/stripe.js +16 -4
  66. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  67. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  68. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  69. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  70. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  71. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  72. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  73. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  74. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  75. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  76. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  77. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  78. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  79. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  80. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  81. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  82. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  83. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  84. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  85. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  86. package/dist/collection/components/store/zonosStore.js +4 -0
  87. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  88. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  89. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -3
  90. package/dist/collection/components/utils/api/getZonosSettings.js +3 -3
  91. package/dist/collection/components/utils/api/paypalCaptureOrder.js +8 -0
  92. package/dist/collection/components/utils/api/paypalCreateOrder.js +8 -0
  93. package/dist/collection/components/utils/getContrastColor.js +6 -2
  94. package/dist/collection/components/utils/handleFetch.js +6 -1
  95. package/dist/collection/components/utils/isContrastColor.js +7 -0
  96. package/dist/collection/environment.js +4 -5
  97. package/dist/collection/scripts/_getZonosQaUrl.js +4 -0
  98. package/dist/collection/scripts/_zonosBase.js +2 -0
  99. package/dist/collection/styles/stripe/addressRuleStyle.js +6 -0
  100. package/dist/collection/types/generated/graphql.customer.types.js +35 -0
  101. package/dist/esm/{cart-eb75b113.js → cart-f53c9f90.js} +296 -8
  102. package/dist/esm/{getBorderRadius-947c24de.js → getBorderRadius-3ba98361.js} +1 -1
  103. package/dist/esm/{index-3b46f3c3.js → index-86b8247e.js} +242 -169
  104. package/dist/esm/index.js +10 -4
  105. package/dist/esm/{isDarkColor-f8324c10.js → isDarkColor-3119e351.js} +1 -1
  106. package/dist/esm/loader.js +3 -3
  107. package/dist/esm/paypal-72296ae6.js +453 -0
  108. package/dist/esm/{submitGtag-0bc0baa0.js → sendErrorLog-f8d3ec4b.js} +3 -19
  109. package/dist/esm/zonos-address_8.entry.js +11 -11
  110. package/dist/esm/zonos-badge_2.entry.js +4 -4
  111. package/dist/esm/zonos-banner.entry.js +2 -2
  112. package/dist/esm/zonos-button_3.entry.js +4 -4
  113. package/dist/esm/zonos-card.entry.js +3 -3
  114. package/dist/esm/zonos-cart-items_12.entry.js +63 -25
  115. package/dist/esm/zonos-checkout.entry.js +34 -61
  116. package/dist/esm/zonos-component.entry.js +2 -2
  117. package/dist/esm/zonos-controller.entry.js +15 -15
  118. package/dist/esm/zonos-country-flag.entry.js +5 -5
  119. package/dist/esm/{zonos-country-select_3.entry.js → zonos-country-select_4.entry.js} +100 -15
  120. package/dist/esm/zonos-elements.js +4 -4
  121. package/dist/esm/zonos-hello-dialog.entry.js +9 -9
  122. package/dist/esm/zonos-hello.entry.js +5 -5
  123. package/dist/esm/zonos-input.entry.js +7 -7
  124. package/dist/esm/zonos-language-select_2.entry.js +9 -9
  125. package/dist/esm/zonos-link.entry.js +2 -2
  126. package/dist/esm/zonos-logo.entry.js +4 -4
  127. package/dist/esm/{zonos-notification_2.entry.js → zonos-notification_3.entry.js} +60 -9
  128. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  129. package/dist/esm/zonos-text.entry.js +2 -2
  130. package/dist/esm/zonos-v-stack.entry.js +4 -4
  131. package/dist/esm/{zonosStore-ba9e541e.js → zonosStore-8fc9ceb2.js} +5 -1
  132. package/dist/esm-es5/cart-f53c9f90.js +1 -0
  133. package/dist/esm-es5/{getBorderRadius-947c24de.js → getBorderRadius-3ba98361.js} +1 -1
  134. package/dist/esm-es5/index-86b8247e.js +2 -0
  135. package/dist/esm-es5/index.js +1 -1
  136. package/dist/esm-es5/{isDarkColor-f8324c10.js → isDarkColor-3119e351.js} +1 -1
  137. package/dist/esm-es5/loader.js +1 -1
  138. package/dist/esm-es5/paypal-72296ae6.js +17 -0
  139. package/dist/esm-es5/sendErrorLog-f8d3ec4b.js +1 -0
  140. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  141. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  142. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  143. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  144. package/dist/esm-es5/zonos-card.entry.js +1 -1
  145. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  146. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  147. package/dist/esm-es5/zonos-component.entry.js +1 -1
  148. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  149. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  150. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -0
  151. package/dist/esm-es5/zonos-elements.js +1 -1
  152. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  153. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  154. package/dist/esm-es5/zonos-input.entry.js +1 -1
  155. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  156. package/dist/esm-es5/zonos-link.entry.js +1 -1
  157. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  158. package/dist/esm-es5/zonos-notification_3.entry.js +1 -0
  159. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  160. package/dist/esm-es5/zonos-text.entry.js +1 -1
  161. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  162. package/dist/esm-es5/{zonosStore-ba9e541e.js → zonosStore-8fc9ceb2.js} +1 -1
  163. package/dist/scripts/index.d.ts +170 -6
  164. package/dist/scripts/index.js +1 -1
  165. package/dist/scripts/loadZonos.js +1 -1
  166. package/dist/scripts/zonos.js +1 -1
  167. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
  168. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +8 -4
  169. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -20
  170. package/dist/types/components/common/zonos-virtual-scroll/zonos-virtual-scroll.d.ts +32 -0
  171. package/dist/types/components/main/zonos-controller.d.ts +6 -0
  172. package/dist/types/components/paypal/zonos-paypal-payment.d.ts +17 -0
  173. package/dist/types/components/store/checkout/cart.d.ts +19 -1
  174. package/dist/types/components/store/checkout/paypal.d.ts +28 -0
  175. package/dist/types/components/store/checkout/stripe.d.ts +10 -1
  176. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  177. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  178. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  179. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  180. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  181. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  182. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  183. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  184. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  185. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  186. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  187. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  188. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  189. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  190. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  191. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  192. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  193. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  194. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  195. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  196. package/dist/types/components/store/translationStore.d.ts +1 -1
  197. package/dist/types/components/store/zonosStore.d.ts +4 -0
  198. package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -0
  199. package/dist/types/components/utils/api/paypalCaptureOrder.d.ts +10 -0
  200. package/dist/types/components/utils/api/paypalCreateOrder.d.ts +9 -0
  201. package/dist/types/components/utils/handleFetch.d.ts +4 -0
  202. package/dist/types/components/utils/isContrastColor.d.ts +4 -0
  203. package/dist/types/components.d.ts +129 -6
  204. package/dist/types/scripts/_zonosBase.d.ts +9 -1
  205. package/dist/types/stencil-public-runtime.d.ts +3 -10
  206. package/dist/types/types/checkout/CheckoutConfig.d.ts +14 -1
  207. package/dist/types/types/generated/graphql.customer.types.d.ts +71 -11
  208. package/dist/types/types/generated/graphql.customer.types.ts +103 -11
  209. package/dist/zonos-elements/index.esm.js +1 -1
  210. package/dist/zonos-elements/{p-71882ac9.system.entry.js → p-0229282c.system.entry.js} +1 -1
  211. package/dist/zonos-elements/{p-5821856c.js → p-04054425.js} +1 -1
  212. package/dist/zonos-elements/p-05cdd3b4.js +17 -0
  213. package/dist/zonos-elements/{p-a8b934c2.entry.js → p-0f9804e3.entry.js} +1 -1
  214. package/dist/zonos-elements/p-12266c9e.js +1 -0
  215. package/dist/zonos-elements/{p-01304a58.system.entry.js → p-14067782.system.entry.js} +1 -1
  216. package/dist/zonos-elements/p-1a89c54a.js +1 -0
  217. package/dist/zonos-elements/{p-d2992457.system.entry.js → p-1e4f7997.system.entry.js} +1 -1
  218. package/dist/zonos-elements/p-1ee2fa70.system.entry.js +1 -0
  219. package/dist/zonos-elements/{p-63a27875.entry.js → p-25633055.entry.js} +1 -1
  220. package/dist/zonos-elements/{p-e37440ad.system.js → p-40c21634.system.js} +1 -1
  221. package/dist/zonos-elements/p-4db5be24.system.entry.js +1 -0
  222. package/dist/zonos-elements/{p-da2e5289.system.entry.js → p-4f454a91.system.entry.js} +1 -1
  223. package/dist/zonos-elements/p-52947dab.system.entry.js +1 -0
  224. package/dist/zonos-elements/{p-62ed4236.entry.js → p-52fa9aab.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-31b3d26b.js → p-52fb6876.js} +1 -1
  226. package/dist/zonos-elements/p-539974db.system.js +1 -0
  227. package/dist/zonos-elements/p-5922c099.entry.js +1 -0
  228. package/dist/zonos-elements/p-5b7da777.js +2 -0
  229. package/dist/zonos-elements/p-5fe10991.system.entry.js +1 -0
  230. package/dist/zonos-elements/p-678f1888.entry.js +1 -0
  231. package/dist/zonos-elements/p-67f22fbf.system.entry.js +1 -0
  232. package/dist/zonos-elements/{p-9a1c0d02.js → p-6ac72711.js} +1 -1
  233. package/dist/zonos-elements/{p-ed333de6.system.entry.js → p-6bb0b7d2.system.entry.js} +1 -1
  234. package/dist/zonos-elements/p-6de1c78a.entry.js +1 -0
  235. package/dist/zonos-elements/{p-d8c1eb99.entry.js → p-6de38759.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-a21ec316.system.entry.js → p-6fbb4565.system.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-6c3390b7.entry.js → p-706d2bad.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-73ba4398.system.entry.js → p-717028a2.system.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-8acdf43b.system.entry.js → p-7833fa53.system.entry.js} +1 -1
  240. package/dist/zonos-elements/p-79fd4f3c.system.js +1 -0
  241. package/dist/zonos-elements/p-8809964a.system.js +1 -0
  242. package/dist/zonos-elements/{p-3541e6dd.entry.js → p-8b01aafb.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-2aa72606.entry.js → p-9220f63d.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-699a5376.entry.js → p-9420f9db.entry.js} +1 -1
  245. package/dist/zonos-elements/p-9525cc44.system.js +1 -0
  246. package/dist/zonos-elements/{p-c21802e9.entry.js → p-9a319774.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-3523c3b4.entry.js → p-9d1f13c2.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-c0fcc0fa.system.entry.js → p-9eadd9a7.system.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-966ab4e7.system.entry.js → p-a3e2592b.system.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-f06bb776.system.entry.js → p-ab11cca6.system.entry.js} +1 -1
  251. package/dist/zonos-elements/p-b3e825dc.system.js +17 -0
  252. package/dist/zonos-elements/{p-9d29f3f4.system.entry.js → p-b689309d.system.entry.js} +1 -1
  253. package/dist/zonos-elements/p-c460665d.system.js +1 -0
  254. package/dist/zonos-elements/p-c4617501.entry.js +1 -0
  255. package/dist/zonos-elements/{p-b903af96.system.entry.js → p-c4bb2949.system.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-c3619b3d.entry.js → p-c7301a88.entry.js} +1 -1
  257. package/dist/zonos-elements/p-c78dd680.system.js +1 -0
  258. package/dist/zonos-elements/p-d86c89e3.entry.js +1 -0
  259. package/dist/zonos-elements/{p-e3c014ae.entry.js → p-dc368ad5.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-18b28104.entry.js → p-de53d9c3.entry.js} +1 -1
  261. package/dist/zonos-elements/p-df69fa38.system.entry.js +1 -0
  262. package/dist/zonos-elements/{p-22882fd6.entry.js → p-e07bf9ea.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-9de374a7.system.entry.js → p-e8f7fb29.system.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-59f37de3.entry.js → p-f35ee203.entry.js} +1 -1
  265. package/dist/zonos-elements/p-fd061229.system.js +2 -0
  266. package/dist/zonos-elements/p-fd54fbb9.system.entry.js +1 -0
  267. package/dist/zonos-elements/p-fdb4347f.entry.js +1 -0
  268. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  269. package/dist/zonos-elements/zonos-elements.js +1 -1
  270. package/loader/cdn.js +1 -2
  271. package/loader/index.cjs.js +1 -2
  272. package/loader/index.d.ts +3 -0
  273. package/loader/index.es2017.js +1 -2
  274. package/loader/index.js +1 -2
  275. package/package.json +12 -11
  276. package/dist/esm-es5/cart-eb75b113.js +0 -1
  277. package/dist/esm-es5/index-3b46f3c3.js +0 -2
  278. package/dist/esm-es5/submitGtag-0bc0baa0.js +0 -1
  279. package/dist/esm-es5/zonos-country-select_3.entry.js +0 -1
  280. package/dist/esm-es5/zonos-notification_2.entry.js +0 -1
  281. package/dist/zonos-elements/p-02405211.system.entry.js +0 -1
  282. package/dist/zonos-elements/p-085548f2.entry.js +0 -1
  283. package/dist/zonos-elements/p-0b538ed4.system.js +0 -1
  284. package/dist/zonos-elements/p-2a45c837.system.entry.js +0 -1
  285. package/dist/zonos-elements/p-357322ea.system.entry.js +0 -1
  286. package/dist/zonos-elements/p-3f5e2e5c.system.entry.js +0 -1
  287. package/dist/zonos-elements/p-53acc999.js +0 -1
  288. package/dist/zonos-elements/p-548ac127.entry.js +0 -1
  289. package/dist/zonos-elements/p-5609876a.system.entry.js +0 -1
  290. package/dist/zonos-elements/p-6f9448bb.entry.js +0 -1
  291. package/dist/zonos-elements/p-70262120.system.js +0 -1
  292. package/dist/zonos-elements/p-878293fe.js +0 -1
  293. package/dist/zonos-elements/p-97d74f84.system.js +0 -1
  294. package/dist/zonos-elements/p-a393c1db.system.entry.js +0 -1
  295. package/dist/zonos-elements/p-a8cb25de.system.js +0 -1
  296. package/dist/zonos-elements/p-abe8ea12.system.js +0 -1
  297. package/dist/zonos-elements/p-ae04d3ff.entry.js +0 -1
  298. package/dist/zonos-elements/p-b684f8aa.system.entry.js +0 -1
  299. package/dist/zonos-elements/p-ce347974.js +0 -2
  300. package/dist/zonos-elements/p-d99232c5.system.js +0 -2
  301. package/dist/zonos-elements/p-e0bf9666.system.js +0 -1
  302. package/dist/zonos-elements/p-e1db1bc9.entry.js +0 -1
  303. package/dist/zonos-elements/p-e74ca4bc.entry.js +0 -1
@@ -17,17 +17,17 @@ export class ZonosInput {
17
17
  this.inputChange.emit(newValue);
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: 'f4b7ad75b2aebce3bc05a482fe20fee290a3a4e7', class: classes([
20
+ return (h(Host, { key: '66ab3a9ec4ac4f78e448008824471cecd4775e78', class: classes([
21
21
  'zonos--input zonos--elements',
22
22
  this.inputSize,
23
23
  this.isError && 'has-error',
24
24
  ]), style: {
25
25
  '--border-radius': getBorderRadius(),
26
26
  '--font-family': zonosStoreFontFamily(),
27
- } }, h("div", { key: '356e16c11c1cd9edf137f69978ebaa3eb2c28d4e', class: classes([
27
+ } }, h("div", { key: 'cef0295dea117c8bf0b8f3dc090f7c34648b9b31', class: classes([
28
28
  'zonos--label-wrapper',
29
29
  this.isDisabled && 'disabled',
30
- ]) }, h("input", { key: '71659072bd58942efebb88be65ced18ad29be8ab', class: classes([
30
+ ]) }, h("input", { key: 'a5c9e0791292046e9520bf8d186f6dc76a23ba64', class: classes([
31
31
  'zonos--floated-input',
32
32
  !!this.inputLabel && 'has-label',
33
33
  this.inputValue && 'has-content',
@@ -35,7 +35,7 @@ export class ZonosInput {
35
35
  ]), disabled: this.isDisabled, onInput: e => {
36
36
  const input = e.target;
37
37
  this.inputChange.emit(input.value);
38
- }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: 'b84c60836fc969c23aedc314c67337e8e87f2ab6', class: "zonos--floated-label", "data-label": this.inputLabel }))));
38
+ }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '25f51d372fdb0819fe316bcbfce429d63ded358f', class: "zonos--floated-label", "data-label": this.inputLabel }))));
39
39
  }
40
40
  static get is() { return "zonos-input"; }
41
41
  static get encapsulation() { return "shadow"; }
@@ -16,9 +16,9 @@ export class ZonosLanguageSelect {
16
16
  }
17
17
  render() {
18
18
  const { selectedLocale } = localizationStore;
19
- return (h(Host, { key: '6682af3d631bac1a8d3783418c30364ff7694792', class: "zonos--elements", style: {
19
+ return (h(Host, { key: '448f89b5870956b6e9455968134b94c9409a983d', class: "zonos--elements", style: {
20
20
  '--font-family': zonosStoreFontFamily(),
21
- } }, h("div", { key: '9f7e60bc5c4e9d1c0cc31afcbbaec444a7da630e', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: 'f790ef85eeb0bed05773d98793437ab4d6e64c8d', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '7385a1134b21ae4b39947483ee643da021e6c54c', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
21
+ } }, h("div", { key: '23841aa801d68da4b537cfaab5ea89405ec66a9f', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '5fc1b45aa0cb27c94163c2dace5ce4ad63215dfc', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '7030fb276a05eea0e7333add3219b5316495662c', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
22
22
  }
23
23
  static get is() { return "zonos-language-select"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -7,7 +7,7 @@ export class ZonosLink {
7
7
  this.linkTitle = undefined;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'bba0da02c0dee468bd0cacd268f339f7ec4f1008', class: "zonos--elements" }, h("a", { key: '19515197e397b2b24237e77d3e89de75382c14e1', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '63d597a3091e954c9302e461030646b38ee2396e' }))));
10
+ return (h(Host, { key: 'a5913bea95608f1f1a95186664d2032a4aff66ec', class: "zonos--elements" }, h("a", { key: 'dffb72ba6d1820669b1dbd9e841a242cbe58d860', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '774219d208dce4b32dcc715b827b1d85fc5dfe5e' }))));
11
11
  }
12
12
  static get is() { return "zonos-link"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -10,11 +10,11 @@ export class ZonosLogo {
10
10
  const filterColor = this.theme === 'DARK'
11
11
  ? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
12
12
  : 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
13
- return (h(Host, { key: '08ef20244bc204125a7a308efed42cd7fc86c885', class: classes(['zonos--elements zonos--logo']), style: {
13
+ return (h(Host, { key: '8737fef033ef8114ca67be72b2f598897a6929b3', class: classes(['zonos--elements zonos--logo']), style: {
14
14
  '--filter-color': filterColor,
15
15
  '--font-family': zonosStoreFontFamily(),
16
16
  '--width': this.width,
17
- } }, h("img", { key: '9202f0619fa3874a19ca3050477719b19592d82a', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
17
+ } }, h("img", { key: 'd5a15f2f8f891f865c7eb46268ae2f113ad1d3b4', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
18
18
  }
19
19
  static get is() { return "zonos-logo"; }
20
20
  static get encapsulation() { return "shadow"; }
@@ -14,11 +14,11 @@ export class ZonosRestState {
14
14
  }
15
15
  render() {
16
16
  const imageUrl = this.getImageRestState();
17
- return (h(Host, { key: 'c6b1e581578da852f6ff852c0c8ff48eba97c82b', class: classes(['zonos--elements zonos--restState']), style: {
17
+ return (h(Host, { key: 'a87be11591bfc71ad5133ceeea1f6b396cd98055', class: classes(['zonos--elements zonos--restState']), style: {
18
18
  '--font-family': zonosStoreFontFamily(),
19
- } }, h("div", { key: '3c9bb31ade1e3343901fbb22bef5a123b3332a77', class: "zonos--restState-image" }, h("img", { key: '00417c062265b35f8603d90520f5efe677b76b19', alt: this.restStateType, onError: () => {
19
+ } }, h("div", { key: 'c317f01e0ac745e6ef91df1247b98c72aa340ce8', class: "zonos--restState-image" }, h("img", { key: '34947c09f8bcb76b21a547d8f5e0aa88d957a760', alt: this.restStateType, onError: () => {
20
20
  this.isErrorImageLoad = true;
21
- }, src: imageUrl })), h("div", { key: '503346f06d25e04a1bc1bbfb770359817854cd64', class: "content" }, h("zonos-text", { key: 'eb580484efd22fd93530d43d04889569ced27fba', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '34972cd05b26b01b1e7877a80b79d6729b63b025', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: '703bfa3740b94e7d742804cd073347ba5f6a8855', class: "action" }, h("slot", { key: 'd0b330b60ad98bda20d35cc6802412d24ab6c536' }))));
21
+ }, src: imageUrl })), h("div", { key: '6e5ea4207cafd572ad947e10526d20c38b24764f', class: "content" }, h("zonos-text", { key: '2dcb142426419451a0543ef2a110d7e8c713879f', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '440fe0d032979b56316cc9dc58c67d2c62795f3a', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: '2c9d2542bee1dc37202204529d8dd09b9c0592fa', class: "action" }, h("slot", { key: 'a50f0d183dd80a5c8509c8d3b839e342c661a33f' }))));
22
22
  }
23
23
  static get is() { return "zonos-rest-state"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -8,9 +8,9 @@ export class ZonosSelectDialogHeader {
8
8
  this.label = '';
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: '21cd3c3e35baf172ecad7f47a76810e8f39bdeff', class: "zonos--elements", style: {
11
+ return (h(Host, { key: '8ac4e1bcd64f6a2073e1161fec76c9b117345ada', class: "zonos--elements", style: {
12
12
  '--font-family': zonosStoreFontFamily(),
13
- } }, h("zonos-v-stack", { key: '0470633326b6fca9b45a8be67e0d77819561f634', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '8713cbf368658af22bb88825d32175117d47c95b', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '2f94e9f6139570398897ca55934c5244df7f82e8', type: "boldLabel" }, this.label), h("zonos-button", { key: 'c247dabcc8f487a4cc5a814fb1aa4d9a68fa4ba3', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '26727e634ec09a3b9e3912ada3b920a87a1ba4d0' }))));
13
+ } }, h("zonos-v-stack", { key: 'fe4a184a8bed7aceb4c3f8d341fed50380587c77', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '2176069a11ba20c7408ef898044f2ba68eea4a80', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '45b9d890484881a15c4fa7a7e4028f9887cc942e', type: "boldLabel" }, this.label), h("zonos-button", { key: '65f0d9ea7b6dee35d23aa6fca19fd686190b667f', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '758fce95d668ad755745687d3fcf1a6a307061bc' }))));
14
14
  }
15
15
  static get is() { return "zonos-select-dialog-header"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -7,10 +7,10 @@ export class ZonosTooltip {
7
7
  this.showTooltip = false;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'a38f8d5dec27abcfc73f341b9451ac29c71f3e1a', class: "zonos--elements" }, h("div", { key: 'dc2d9d599437e79d61ea6a7c4dc1cbba6ab03748', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: 'a0e10b6ea75346cee1b5a42f0c35f9a86ba4f1ee' }), h("div", { key: 'bed28d732fe207e56f03ba50ea835c562c5d08cb', class: classes([
10
+ return (h(Host, { key: '24f3b1f73cc320540ab3700213004c267ea04658', class: "zonos--elements" }, h("div", { key: '7f52acf90cb5b9f1fd5efdc4fedc4d61a893a646', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '1871529e8b75c44a71bf1f5bc9e60b81bbc598d2' }), h("div", { key: 'c0b9c9c1b3fef5f766d2bad4c5bea48f3d6bbb6f', class: classes([
11
11
  this.showTooltip && 'zonos--show-tooltip',
12
12
  'zonos--tooltip-content',
13
- ]) }, h("zonos-text", { key: '920ef6419d1dedd71e46be23e9a19dc1042925ce', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '259961488d833d3728819f6ba93ea6579b0f3f9d', size: "xs", textColor: "gray-0" }, this.subtitle)))));
13
+ ]) }, h("zonos-text", { key: '3b106cb439877dffa101f15fb01aff980a64c7cb', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: 'c0005051e6e1b614b7739718e1a262f6043d56f5', size: "xs", textColor: "gray-0" }, this.subtitle)))));
14
14
  }
15
15
  static get is() { return "zonos-tooltip"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -7,9 +7,9 @@ export class VStack {
7
7
  this.spacing = 24;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '8cdee94089af0eac57784a7914e169f363472577', style: {
10
+ return (h(Host, { key: 'e542ff8bbefa3223f157ad4bd6e537af8e5d5a5d', style: {
11
11
  '--font-family': zonosStoreFontFamily(),
12
- } }, h("div", { key: 'd60da826d77b4cf7e5349b75927fc746f0053ddd', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '97b0e8232cbac73938225e1310712c1607997073' }))));
12
+ } }, h("div", { key: '9bd1cc8fdf94265d7d2767d507af7ad21d77234d', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'c8a294410e4c1348405c53283cf4dba176d5b27b' }))));
13
13
  }
14
14
  static get is() { return "zonos-v-stack"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,46 @@
1
+ :host {
2
+ font-family: var(--font-family, Inter), Inter;
3
+ display: block;
4
+ white-space: normal;
5
+ }
6
+ :host * {
7
+ font-family: var(--font-family, Inter), Inter;
8
+ }
9
+ :host img {
10
+ max-width: 100%;
11
+ }
12
+ :host dl,
13
+ :host dd,
14
+ :host h1,
15
+ :host h2,
16
+ :host h3,
17
+ :host h4,
18
+ :host h5,
19
+ :host h6,
20
+ :host hr,
21
+ :host figure,
22
+ :host p,
23
+ :host pre {
24
+ margin: 0;
25
+ }
26
+
27
+ /* All sets of variable are here */
28
+ /* smooth font rendering */
29
+ :host {
30
+ -moz-osx-font-smoothing: grayscale;
31
+ -webkit-font-smoothing: antialiased;
32
+ }
33
+
34
+ :host {
35
+ overflow: scroll;
36
+ }
37
+ :host .scroller {
38
+ display: inline-block;
39
+ }
40
+ :host .item-container {
41
+ position: relative;
42
+ display: inline-block;
43
+ }
44
+ :host .item-container .item {
45
+ position: absolute;
46
+ }
@@ -0,0 +1,177 @@
1
+ import { h, Host } from "@stencil/core";
2
+ /**
3
+ * The idea is from
4
+ * @ref https://github.com/beenotung/stencil-virtual-scroll/blob/master/src/components/virtual-scroll-list/virtual-scroll-list.scss
5
+ * @ref https://github.dev/ionic-team/ionic-framework/blob/v6.7.5/core/src/components/virtual-scroll/virtual-scroll.tsx
6
+ */
7
+ export class ZonosVirtualScroll {
8
+ constructor() {
9
+ this.scrollListener = (_ev) => {
10
+ this.scrollTop = this.ele.scrollTop;
11
+ };
12
+ this.container = undefined;
13
+ this.renderItem = undefined;
14
+ this.itemWidth = undefined;
15
+ this.fallbackItemHeight = undefined;
16
+ this.itemHeights = undefined;
17
+ this.scrollTop = 0;
18
+ this.totalHeight = 1;
19
+ }
20
+ updateTotalHeight() {
21
+ this.totalHeight = this.itemHeights.reduce((acc, height) => acc + (height || this.fallbackItemHeight), 0);
22
+ }
23
+ connectedCallback() {
24
+ this.ele.addEventListener('scroll', this.scrollListener);
25
+ this.updateTotalHeight();
26
+ }
27
+ disconnectedCallback() {
28
+ this.ele.removeEventListener('scroll', this.scrollListener);
29
+ }
30
+ render() {
31
+ const W = this.ele.clientWidth;
32
+ const H = this.ele.clientHeight;
33
+ const heights = this.itemHeights;
34
+ const fallbackItemHeight = this.fallbackItemHeight;
35
+ const N = this.itemHeights.length;
36
+ const scrollTop = this.scrollTop;
37
+ const children = [];
38
+ let accHeight = 0;
39
+ // buffer for pre-rendering for item outside of viewport
40
+ const buffer = 100;
41
+ for (let i = 0; i < N; i++) {
42
+ const itemHeight = heights[i] || fallbackItemHeight;
43
+ if (scrollTop > accHeight + itemHeight + buffer) {
44
+ accHeight += itemHeight;
45
+ continue; // this item is above the viewport
46
+ }
47
+ if (scrollTop + H < accHeight - buffer) {
48
+ break; // this item is below the viewport
49
+ }
50
+ const x = 0;
51
+ const y = accHeight;
52
+ children.push(h("div", { class: "item", style: {
53
+ height: `${itemHeight}px`,
54
+ transform: `translate(${x}px,${y}px)`,
55
+ width: this.itemWidth ? `${this.itemWidth}px` : `${W}px`,
56
+ } }, this.renderItem(i)));
57
+ accHeight += itemHeight;
58
+ }
59
+ return (h(Host, { key: '6faa73cacfefee42781f87e6f697980941139d12' }, h("div", { key: '5411c13934b8b997f68bc6678e6e1c475d6d453c',
60
+ // to capture scroll action
61
+ class: "scroller", style: {
62
+ height: `${this.totalHeight}px`,
63
+ width: `${W}px`,
64
+ } }), h("div", { key: '46c402a5a0df3242b9022e16b15d5e348210bc32',
65
+ // to display items
66
+ class: "item-container", ref: el => (this.container = el), style: {
67
+ height: `${this.totalHeight}px`,
68
+ left: `${-W}px`,
69
+ } }, children)));
70
+ }
71
+ static get is() { return "zonos-virtual-scroll"; }
72
+ static get encapsulation() { return "scoped"; }
73
+ static get originalStyleUrls() {
74
+ return {
75
+ "$": ["zonos-virtual-scroll.scss"]
76
+ };
77
+ }
78
+ static get styleUrls() {
79
+ return {
80
+ "$": ["zonos-virtual-scroll.css"]
81
+ };
82
+ }
83
+ static get properties() {
84
+ return {
85
+ "renderItem": {
86
+ "type": "unknown",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "(\n itemIndex: number,\n ) =>\n | HTMLElement\n | Promise<HTMLElement>\n | HTMLElement[]\n | Promise<HTMLElement[]>\n | Promise<HTMLElement>[]",
90
+ "resolved": "(itemIndex: number) => HTMLElement | HTMLElement[] | Promise<HTMLElement> | Promise<HTMLElement[]> | Promise<HTMLElement>[]",
91
+ "references": {
92
+ "HTMLElement": {
93
+ "location": "global",
94
+ "id": "global::HTMLElement"
95
+ },
96
+ "Promise": {
97
+ "location": "global",
98
+ "id": "global::Promise"
99
+ }
100
+ }
101
+ },
102
+ "required": true,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [],
106
+ "text": "Render item"
107
+ }
108
+ },
109
+ "itemWidth": {
110
+ "type": "number",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "number",
114
+ "resolved": "number | undefined",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": true,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "Width of each item"
122
+ },
123
+ "attribute": "item-width",
124
+ "reflect": false
125
+ },
126
+ "fallbackItemHeight": {
127
+ "type": "number",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "number",
131
+ "resolved": "number",
132
+ "references": {}
133
+ },
134
+ "required": true,
135
+ "optional": false,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": "Height that is used as a fallback if height is not provided"
139
+ },
140
+ "attribute": "fallback-item-height",
141
+ "reflect": false
142
+ },
143
+ "itemHeights": {
144
+ "type": "unknown",
145
+ "mutable": false,
146
+ "complexType": {
147
+ "original": "number[]",
148
+ "resolved": "number[]",
149
+ "references": {}
150
+ },
151
+ "required": true,
152
+ "optional": false,
153
+ "docs": {
154
+ "tags": [],
155
+ "text": "Heights list of each item"
156
+ }
157
+ }
158
+ };
159
+ }
160
+ static get states() {
161
+ return {
162
+ "container": {},
163
+ "scrollTop": {},
164
+ "totalHeight": {}
165
+ };
166
+ }
167
+ static get elementRef() { return "ele"; }
168
+ static get watchers() {
169
+ return [{
170
+ "propName": "itemHeights",
171
+ "methodName": "updateTotalHeight"
172
+ }, {
173
+ "propName": "fallbackItemHeight",
174
+ "methodName": "updateTotalHeight"
175
+ }];
176
+ }
177
+ }
@@ -10,7 +10,7 @@ export class ZonosComponent {
10
10
  return format(this.first, this.middle, this.last);
11
11
  }
12
12
  render() {
13
- return h("div", { key: '23fbe02ded67e42f94b5c3641aae55970cef052d' }, "Hello, World! I'm ", this.getText());
13
+ return h("div", { key: 'ece01ba1df61d0c15e60d2cf9fffbf4c01268612' }, "Hello, World! I'm ", this.getText());
14
14
  }
15
15
  static get is() { return "zonos-component"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -18,9 +18,9 @@ export class ZonosHelloDialogFooter {
18
18
  const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
19
19
  // Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
20
20
  const mainColor = primaryColor && isDarkColor(primaryColor) ? 'white' : 'black';
21
- return (h(Host, { key: '49ed5ba840bd0d1e813b8eb4b89d0508930928a2', class: "zonos--elements" }, h("div", { key: 'ae66c6a3e8c824189b4eae2208c873943f8687ca', class: "zonos--hello-dialog-footer", style: {
21
+ return (h(Host, { key: 'a9b52a67a2db1967fe6fde4f19dc8d2785469f8a', class: "zonos--elements" }, h("div", { key: '1b36f45f0f00fe2b6494fb04373b12b4848b9484', class: "zonos--hello-dialog-footer", style: {
22
22
  '--primary-color': primaryColor,
23
- } }, h("a", { key: '61226c77fe20c817efd58e12c5d5c16dad6375ac', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '7dc60e603c7f64fc42359632190249caf0a18317', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: mainColor, size: 108 })), h("div", { key: 'a6875d4c4dcf5804570d47409567f87728b8c8b5', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: '51083ce07a51f62469afce508c79a7ebbf4eeacf', buttonColor: mainColor, icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: '46b826f2fc8f819507db9d432da459124b65cee8', buttonColor: mainColor, icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
23
+ } }, h("a", { key: '7ca110d30f9266d021069af41766588ffce3d2ad', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'f9f4866c18bc75577e5a3961ffdd67f48977fd68', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: mainColor, size: 108 })), h("div", { key: '2bacafbd2c2d9c79935b7a2c69ae9fd3e1ede48a', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: 'a223f6706d319da505e8f013bff6863a433effd3', buttonColor: mainColor, icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: 'aa94f1e06b80f6bec8433c3c8a7b066f0d91df08', buttonColor: mainColor, icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
24
24
  }
25
25
  static get is() { return "zonos-hello-dialog-footer"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -198,18 +198,18 @@ export class ZonosHelloDialog {
198
198
  const defaultMessage = formatStringWithLinks(defaultMessageStr);
199
199
  const currentPage = this.getCurrentPageEnum();
200
200
  const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
201
- return (h(Host, { key: '7fa136af625bb72bb9f14ba4f3ff3aa70a95074b', class: "zonos--elements" }, h("div", { key: '94839999d9a9f2ff182f50ba24ad3183c44c6a31', class: classes([
201
+ return (h(Host, { key: '7dec47839d142b9d3580dffda8b8eea28af9974f', class: "zonos--elements" }, h("div", { key: 'ea71e8885de2be45be5a2dcc9dbe44ef99261102', class: classes([
202
202
  'zonos--hello-dialog',
203
203
  animateLeft && 'zonos--hello-dialog-animate-from-left',
204
204
  animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
205
205
  !!this.mobileLocationOverride &&
206
206
  'zonos--hello-dialog-mobile-override',
207
207
  this.isOpen && 'zonos--hello-dialog-open',
208
- ]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '7c412fd167248e55b4b285cd77f4cfc85a6a038f' }, h("div", { key: '78d376fffe7289f3a4e144aca964e6a11da45600', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: 'b1c03836ef2825d4f0cf7c395aab0905008f2d5d', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '91249ab433e0c29ca013c8cba607693a7a6bed02', spacing: 24 }, h("zonos-country-flag", { key: 'f11acc0b2f96f3fd0e5af6f4abb34c64bd290dae', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '7322b563606ae3e6f5e0751305ef5779c99f3b36', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'cc6b7618a289bb0b001e2f1268b30e2ef18a6e54', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'f60575298db7743c942bfaa922baff1e93ea6774', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '28c6a3bd2b49078ee337ae1e755519de332cda5d', spacing: 8 }, this.restrictedItems.map(item => {
208
+ ]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '2e66e1610e534de2fd4f4f5bce29e899f6c65877' }, h("div", { key: '598ffd431b5fcab10f7a7cb3c453fd959abdd881', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '68998e9634998a6b6d244540776c2bc18fb54c27', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '660c8ae672b70185a046280d9e27b3fce8ad3e00', spacing: 24 }, h("zonos-country-flag", { key: '46f9733add5cf8038944e2c7c48a14f6f39f831a', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'e0571eae7cfd1a6555b16dd3ac450a8545095231', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'fffa08e2519973aafc2813246b7df2f9e4895a0d', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'ef78eead5a3fd2ce7ad881deb6472ca70e18032d', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: 'cd2632bb7a2655a240715601c32df6c807c283a1', spacing: 8 }, this.restrictedItems.map(item => {
209
209
  var _a;
210
210
  return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
211
- }), h("zonos-card", { key: '3fe69193fa354dcd592957333d8ddb484a88f309', spacing: "12px" }, h("zonos-v-stack", { key: '327079d7ead3a16af25b9131e1882f97c6ebe2be', spacing: 12 }, hasInclusivePrices ? (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), h("zonos-text", null, inclusivePriceMessage))) : (h(Fragment, null, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
212
- additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: 'ce8ca134e3918406bf69c0ab8dd883fd1af802c2', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '03f07b6d622b1bc0ac918e9c910e5d5d815bd886' }, h("zonos-country-select", { key: 'fcbc3374d29c7b52f5316450956671340e0dd45c', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '32e7c6391b5299fc845f7404745ee768a6f5e7bf' }, h("zonos-language-select", { key: 'b82087d23130629c339f02236d18dab598f33993', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
211
+ }), h("zonos-card", { key: 'ad5f69b84e2fd80864a6772216aa28b6558f12c4', spacing: "12px" }, h("zonos-v-stack", { key: '86b8c89c17b9b1348bf56c9a6fa2be3de11cb841', spacing: 12 }, hasInclusivePrices ? (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), h("zonos-text", null, inclusivePriceMessage))) : (h(Fragment, null, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
212
+ additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '2dc162a5dc40d781009379ef8276ebcd38a26494', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'a86eaaa8536432db2d4e63c3d3b4122349edeba6' }, h("zonos-country-select", { key: '2d0ec209c2500763b1656f07f8685818ee329e1e', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: 'd1c7f801e301635028dd2f6a478a93d72fc968f7' }, h("zonos-language-select", { key: '95e40b3c1e44d437d466fbc704c7e95ebdf8ec3c', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
213
213
  }
214
214
  static get is() { return "zonos-hello-dialog"; }
215
215
  static get encapsulation() { return "shadow"; }
@@ -93,22 +93,22 @@ export class ZonosController {
93
93
  // running with scope async function to avoid blocking the main thread
94
94
  (async () => {
95
95
  var _a, _b;
96
- const { errors, json } = await getZonosSettings();
96
+ const { errors, json, zonosMode } = await getZonosSettings();
97
97
  if (((_a = errors[0]) === null || _a === void 0 ? void 0 : _a.type.toString()) === '403') {
98
98
  log('Failed to load zonos settings. This domain may not have access', 'warn');
99
99
  return;
100
100
  }
101
101
  // init zonos notification
102
102
  this.initZonosNotification();
103
- const config = Object.assign(Object.assign({}, this.config), {
104
- // override subscription status
105
- subscriptionStatus: undefined
106
- });
103
+ // override subscription status
104
+ const config = Object.assign(Object.assign({}, this.config), { checkoutSettings: this.config.checkoutSettings
105
+ ? Object.assign(Object.assign({}, this.config.checkoutSettings), { subscriptionStatus: undefined }) : undefined });
107
106
  // load default setting if fail to load user setting
108
107
  zonosStoreInitSetting({
109
108
  overrideSettings: config,
110
109
  zonosSettings: json,
111
110
  });
111
+ zonosStore.zonosMode = zonosMode;
112
112
  // setup google font after store loaded
113
113
  void this.setupGoogleFont();
114
114
  if (zonosStore.helloSettings) {
@@ -136,7 +136,6 @@ export class ZonosController {
136
136
  this.stripeInitEvent.emit({
137
137
  publishableKey: publishableKey.token,
138
138
  });
139
- log('zonos controller loaded');
140
139
  })();
141
140
  }
142
141
  /**
@@ -187,7 +186,7 @@ export class ZonosController {
187
186
  zonosStore.organizationName = organizationName;
188
187
  }
189
188
  render() {
190
- return h(Host, { key: '209a2ea0249b9561b5ca1f84f7d31b1520ef49fe', class: "zonos--elements" });
189
+ return h(Host, { key: '8738fa5324977321764af1c89181550d948955a6', class: "zonos--elements" });
191
190
  }
192
191
  static get is() { return "zonos-controller"; }
193
192
  static get encapsulation() { return "shadow"; }
@@ -245,6 +244,21 @@ export class ZonosController {
245
244
  }
246
245
  static get events() {
247
246
  return [{
247
+ "method": "paypalInitEvent",
248
+ "name": "paypalInitEvent",
249
+ "bubbles": true,
250
+ "cancelable": true,
251
+ "composed": true,
252
+ "docs": {
253
+ "tags": [],
254
+ "text": "Event emitted to initialize paypal"
255
+ },
256
+ "complexType": {
257
+ "original": "{ paypalClientId: string }",
258
+ "resolved": "{ paypalClientId: string; }",
259
+ "references": {}
260
+ }
261
+ }, {
248
262
  "method": "stripeInitEvent",
249
263
  "name": "stripeInitEvent",
250
264
  "bubbles": true,
@@ -279,7 +293,7 @@ export class ZonosController {
279
293
  "Stripe": {
280
294
  "location": "import",
281
295
  "path": "@stripe/stripe-js",
282
- "id": ""
296
+ "id": "node_modules::Stripe"
283
297
  }
284
298
  },
285
299
  "return": "Promise<void>"
@@ -0,0 +1,37 @@
1
+ :host {
2
+ font-family: var(--font-family, Inter), Inter;
3
+ display: block;
4
+ white-space: normal;
5
+ }
6
+ :host * {
7
+ font-family: var(--font-family, Inter), Inter;
8
+ }
9
+ :host img {
10
+ max-width: 100%;
11
+ }
12
+ :host dl,
13
+ :host dd,
14
+ :host h1,
15
+ :host h2,
16
+ :host h3,
17
+ :host h4,
18
+ :host h5,
19
+ :host h6,
20
+ :host hr,
21
+ :host figure,
22
+ :host p,
23
+ :host pre {
24
+ margin: 0;
25
+ }
26
+
27
+ /* All sets of variable are here */
28
+ /* smooth font rendering */
29
+ :host {
30
+ -moz-osx-font-smoothing: grayscale;
31
+ -webkit-font-smoothing: antialiased;
32
+ }
33
+
34
+ :host {
35
+ display: inline-flex;
36
+ flex-direction: column;
37
+ }
@@ -0,0 +1,92 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ import { h, Host, } from "@stencil/core";
3
+ import { paypalStoreInitButtons } from "../store/checkout/paypal";
4
+ import { log } from "../utils/logging/log";
5
+ /**
6
+ * This component is a wrapper for the paypal authentication element that would render default style object
7
+ */
8
+ export class ZonosPaypalPayment {
9
+ async loadPaypal() {
10
+ if (!window.Zonos.paypal) {
11
+ log('Paypal is not available');
12
+ return;
13
+ }
14
+ // Init paypal store buttons
15
+ const paypalButtons = paypalStoreInitButtons({
16
+ onPaypalFail: () => {
17
+ log('onPaypalFail');
18
+ this.paypalSessionFail.emit();
19
+ },
20
+ onPaypalSessionDone: ({ orderId }) => {
21
+ log('onPaypalSessionDone', 'info', { orderId });
22
+ this.paypalSessionDone.emit({ orderId });
23
+ },
24
+ });
25
+ if (!(paypalButtons === null || paypalButtons === void 0 ? void 0 : paypalButtons.length)) {
26
+ log('There are no paypal buttons available');
27
+ return;
28
+ }
29
+ const container = this.el.querySelector('.zonos--payment-paypal-container');
30
+ if (!container) {
31
+ log('Cannot find container element for paypal buttons');
32
+ return;
33
+ }
34
+ // render paypal buttons
35
+ paypalButtons.forEach(async (paypalButton) => {
36
+ await paypalButton.render(container);
37
+ });
38
+ }
39
+ componentDidLoad() {
40
+ // @Watch doesn't get trigger on initial load
41
+ void this.loadPaypal();
42
+ }
43
+ render() {
44
+ return (h(Host, { key: 'a09fe5b66b1ac971c10529ecb6213479f2870f08', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: '6ba337785b8a90965e0cba05fd62681bc92633fe', class: "zonos--payment-paypal-container" })));
45
+ }
46
+ static get is() { return "zonos-paypal-payment"; }
47
+ static get encapsulation() { return "scoped"; }
48
+ static get originalStyleUrls() {
49
+ return {
50
+ "$": ["zonos-paypal-payment.scss"]
51
+ };
52
+ }
53
+ static get styleUrls() {
54
+ return {
55
+ "$": ["zonos-paypal-payment.css"]
56
+ };
57
+ }
58
+ static get events() {
59
+ return [{
60
+ "method": "paypalSessionDone",
61
+ "name": "paypalSessionDone",
62
+ "bubbles": true,
63
+ "cancelable": true,
64
+ "composed": true,
65
+ "docs": {
66
+ "tags": [],
67
+ "text": "Event to emit when the paypal session is done"
68
+ },
69
+ "complexType": {
70
+ "original": "{ orderId: string }",
71
+ "resolved": "{ orderId: string; }",
72
+ "references": {}
73
+ }
74
+ }, {
75
+ "method": "paypalSessionFail",
76
+ "name": "paypalSessionFail",
77
+ "bubbles": true,
78
+ "cancelable": true,
79
+ "composed": true,
80
+ "docs": {
81
+ "tags": [],
82
+ "text": "Event to emit when the paypal session is failed"
83
+ },
84
+ "complexType": {
85
+ "original": "void",
86
+ "resolved": "void",
87
+ "references": {}
88
+ }
89
+ }];
90
+ }
91
+ static get elementRef() { return "el"; }
92
+ }