@zonos/elements 1.3.204 → 1.3.205

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 (269) hide show
  1. package/dist/cjs/{cart-0d91ad0b.js → cart-193af95a.js} +6 -5
  2. package/dist/cjs/{debounce-94e1b7ff.js → debounce-0b9c0f8a.js} +1 -1
  3. package/dist/cjs/{getBorderRadius-8d3b1049.js → getBorderRadius-c424eb05.js} +1 -1
  4. package/dist/cjs/{index-0993f42d.js → index-1c710d00.js} +455 -377
  5. package/dist/cjs/index.cjs.js +7 -7
  6. package/dist/cjs/{isDarkColor-bcf49625.js → isDarkColor-35e8daec.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{localization-2f17c95f.js → localization-88da0959.js} +1 -1
  9. package/dist/cjs/{paypal-9953115b.js → paypal-8525404c.js} +4 -4
  10. package/dist/cjs/zonos-address_11.cjs.entry.js +273 -121
  11. package/dist/cjs/zonos-badge.cjs.entry.js +26 -4
  12. package/dist/cjs/zonos-banner.cjs.entry.js +6 -5
  13. package/dist/cjs/zonos-button_3.cjs.entry.js +89 -24
  14. package/dist/cjs/zonos-card.cjs.entry.js +10 -9
  15. package/dist/cjs/zonos-cart-items_14.cjs.entry.js +193 -74
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +90 -35
  17. package/dist/cjs/zonos-collapse.cjs.entry.js +8 -2
  18. package/dist/cjs/zonos-component.cjs.entry.js +10 -1
  19. package/dist/cjs/zonos-controller.cjs.entry.js +6 -8
  20. package/dist/cjs/zonos-country-flag.cjs.entry.js +8 -4
  21. package/dist/cjs/zonos-country-select_4.cjs.entry.js +52 -24
  22. package/dist/cjs/zonos-elements.cjs.js +2 -2
  23. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +11 -10
  24. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +21 -13
  25. package/dist/cjs/zonos-hello.cjs.entry.js +29 -17
  26. package/dist/cjs/zonos-input.cjs.entry.js +18 -4
  27. package/dist/cjs/zonos-language-select_2.cjs.entry.js +15 -4
  28. package/dist/cjs/zonos-link.cjs.entry.js +4 -4
  29. package/dist/cjs/zonos-logo.cjs.entry.js +8 -2
  30. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +8 -8
  31. package/dist/cjs/zonos-stripe-input.cjs.entry.js +25 -9
  32. package/dist/cjs/zonos-text.cjs.entry.js +11 -4
  33. package/dist/cjs/zonos-toggle.cjs.entry.js +5 -3
  34. package/dist/cjs/zonos-tooltip.cjs.entry.js +7 -1
  35. package/dist/cjs/zonos-v-stack.cjs.entry.js +6 -2
  36. package/dist/cjs/{zonosStore-9264749e.js → zonosStore-7c1e1bc1.js} +4 -5
  37. package/dist/collection/collection-manifest.json +1 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +0 -4
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -13
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +6 -0
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -2
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +14 -10
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +3 -1
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +25 -9
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +3 -1
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +83 -28
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +54 -17
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +8 -0
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +20 -12
  51. package/dist/collection/components/common/zonos-badge/zonos-badge.js +24 -2
  52. package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -3
  53. package/dist/collection/components/common/zonos-button/zonos-button.js +69 -18
  54. package/dist/collection/components/common/zonos-card/zonos-card.js +7 -6
  55. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +15 -2
  56. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +8 -2
  57. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +6 -0
  58. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +34 -9
  59. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +5 -1
  60. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +6 -2
  61. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +6 -0
  62. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +48 -14
  63. package/dist/collection/components/common/zonos-icon/zonos-icon.js +12 -1
  64. package/dist/collection/components/common/zonos-input/zonos-input.js +15 -1
  65. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +5 -1
  66. package/dist/collection/components/common/zonos-link/zonos-link.js +3 -3
  67. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +7 -1
  68. package/dist/collection/components/common/zonos-logo/zonos-logo.js +6 -0
  69. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +4 -4
  70. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +7 -0
  71. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +5 -5
  72. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -1
  73. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +21 -5
  74. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +19 -14
  75. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +37 -12
  76. package/dist/collection/components/common/zonos-text/zonos-text.js +9 -2
  77. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +3 -1
  78. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +6 -0
  79. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +4 -0
  80. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -7
  81. package/dist/collection/components/component-template/zonos-component/zonos-component.js +9 -0
  82. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +25 -13
  83. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +8 -1
  84. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +0 -2
  85. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +17 -9
  86. package/dist/collection/components/main/zonos-controller.js +0 -4
  87. package/dist/collection/components/store/checkout/stripe.js +2 -1
  88. package/dist/collection/components/stripe/zonos-address/zonos-address.js +21 -8
  89. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +13 -5
  90. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +73 -33
  91. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +11 -6
  92. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -2
  93. package/dist/esm/{cart-db61eb95.js → cart-a921e0b7.js} +7 -6
  94. package/dist/esm/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
  95. package/dist/esm/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
  96. package/dist/esm/{index-a457c60c.js → index-5ea9f81d.js} +455 -377
  97. package/dist/esm/index.js +7 -7
  98. package/dist/esm/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
  99. package/dist/esm/loader.js +2 -2
  100. package/dist/esm/{localization-bf7224aa.js → localization-a2b8f9ed.js} +1 -1
  101. package/dist/esm/{paypal-2e0ffb07.js → paypal-67d51f03.js} +4 -4
  102. package/dist/esm/zonos-address_11.entry.js +273 -121
  103. package/dist/esm/zonos-badge.entry.js +26 -4
  104. package/dist/esm/zonos-banner.entry.js +6 -5
  105. package/dist/esm/zonos-button_3.entry.js +89 -24
  106. package/dist/esm/zonos-card.entry.js +10 -9
  107. package/dist/esm/zonos-cart-items_14.entry.js +193 -74
  108. package/dist/esm/zonos-checkout.entry.js +90 -35
  109. package/dist/esm/zonos-collapse.entry.js +8 -2
  110. package/dist/esm/zonos-component.entry.js +10 -1
  111. package/dist/esm/zonos-controller.entry.js +6 -8
  112. package/dist/esm/zonos-country-flag.entry.js +8 -4
  113. package/dist/esm/zonos-country-select_4.entry.js +52 -24
  114. package/dist/esm/zonos-elements.js +3 -3
  115. package/dist/esm/zonos-empty-state-payment_4.entry.js +11 -10
  116. package/dist/esm/zonos-hello-dialog.entry.js +21 -13
  117. package/dist/esm/zonos-hello.entry.js +29 -17
  118. package/dist/esm/zonos-input.entry.js +18 -4
  119. package/dist/esm/zonos-language-select_2.entry.js +15 -4
  120. package/dist/esm/zonos-link.entry.js +4 -4
  121. package/dist/esm/zonos-logo.entry.js +8 -2
  122. package/dist/esm/zonos-shipping-rich-radio.entry.js +8 -8
  123. package/dist/esm/zonos-stripe-input.entry.js +25 -9
  124. package/dist/esm/zonos-text.entry.js +11 -4
  125. package/dist/esm/zonos-toggle.entry.js +5 -3
  126. package/dist/esm/zonos-tooltip.entry.js +7 -1
  127. package/dist/esm/zonos-v-stack.entry.js +6 -2
  128. package/dist/esm/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +4 -5
  129. package/dist/esm-es5/{cart-db61eb95.js → cart-a921e0b7.js} +1 -1
  130. package/dist/esm-es5/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
  131. package/dist/esm-es5/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
  132. package/dist/esm-es5/index-5ea9f81d.js +2 -0
  133. package/dist/esm-es5/index.js +1 -1
  134. package/dist/esm-es5/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
  135. package/dist/esm-es5/loader.js +1 -1
  136. package/dist/esm-es5/{localization-bf7224aa.js → localization-a2b8f9ed.js} +1 -1
  137. package/dist/esm-es5/{paypal-2e0ffb07.js → paypal-67d51f03.js} +1 -1
  138. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  139. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  140. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  141. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  142. package/dist/esm-es5/zonos-card.entry.js +1 -1
  143. package/dist/esm-es5/zonos-cart-items_14.entry.js +1 -1
  144. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  145. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  146. package/dist/esm-es5/zonos-component.entry.js +1 -1
  147. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  148. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  149. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  150. package/dist/esm-es5/zonos-elements.js +1 -1
  151. package/dist/esm-es5/zonos-empty-state-payment_4.entry.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-shipping-rich-radio.entry.js +1 -1
  159. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  160. package/dist/esm-es5/zonos-text.entry.js +1 -1
  161. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  162. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  163. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  164. package/dist/esm-es5/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +1 -1
  165. package/dist/scripts/index.js +1 -1
  166. package/dist/scripts/loadZonos.js +1 -1
  167. package/dist/scripts/zonos.js +1 -1
  168. package/dist/zonos-elements/index.esm.js +1 -1
  169. package/dist/zonos-elements/p-019f8637.entry.js +1 -0
  170. package/dist/zonos-elements/p-02da743b.system.js +2 -0
  171. package/dist/zonos-elements/{p-df4c46a6.entry.js → p-05a91fe6.entry.js} +1 -1
  172. package/dist/zonos-elements/p-0c4c8d63.entry.js +1 -0
  173. package/dist/zonos-elements/{p-5d0f7364.system.js → p-0d2df4d2.system.js} +1 -1
  174. package/dist/zonos-elements/p-0d7af8be.system.entry.js +1 -0
  175. package/dist/zonos-elements/p-12cd9d3a.entry.js +1 -0
  176. package/dist/zonos-elements/{p-d42dfd32.system.js → p-1327b935.system.js} +1 -1
  177. package/dist/zonos-elements/p-1640d77f.js +2 -0
  178. package/dist/zonos-elements/{p-3d82a352.js → p-16678764.js} +1 -1
  179. package/dist/zonos-elements/p-16e858f9.entry.js +1 -0
  180. package/dist/zonos-elements/{p-c291bac1.entry.js → p-18149db1.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-db025dfc.system.entry.js → p-1ad099ec.system.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-c5fcbc92.system.entry.js → p-1bc09abe.system.entry.js} +1 -1
  183. package/dist/zonos-elements/p-20ac92e1.system.entry.js +1 -0
  184. package/dist/zonos-elements/{p-d46349d3.system.entry.js → p-22cb6880.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-c9aa902e.system.entry.js → p-2866fd29.system.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-0693422b.system.js → p-28fcd277.system.js} +1 -1
  187. package/dist/zonos-elements/p-3196bf98.entry.js +1 -0
  188. package/dist/zonos-elements/p-3afc27ef.entry.js +1 -0
  189. package/dist/zonos-elements/p-3c921768.system.entry.js +1 -0
  190. package/dist/zonos-elements/{p-ea6d87a1.system.js → p-3ee44728.system.js} +1 -1
  191. package/dist/zonos-elements/{p-be5afc91.system.entry.js → p-4329f616.system.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-715d0f59.system.entry.js → p-43b72ad6.system.entry.js} +1 -1
  193. package/dist/zonos-elements/{p-f8d0d488.system.entry.js → p-469ccc66.system.entry.js} +1 -1
  194. package/dist/zonos-elements/p-4a3bb31d.entry.js +1 -0
  195. package/dist/zonos-elements/{p-80bbd9c0.system.entry.js → p-4fb88ebc.system.entry.js} +1 -1
  196. package/dist/zonos-elements/p-5fbaa153.system.entry.js +1 -0
  197. package/dist/zonos-elements/{p-6a71f76b.system.js → p-69577745.system.js} +1 -1
  198. package/dist/zonos-elements/p-6d467dfb.entry.js +1 -0
  199. package/dist/zonos-elements/{p-3284f459.system.entry.js → p-719e14a8.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-fbe36bc8.system.entry.js → p-7234f876.system.entry.js} +1 -1
  201. package/dist/zonos-elements/p-74bcb5cc.entry.js +1 -0
  202. package/dist/zonos-elements/{p-27987298.system.entry.js → p-7777d85f.system.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-aa1193bc.entry.js → p-848e08e8.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-ab176281.system.entry.js → p-858b7908.system.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-f255e822.js → p-8609e956.js} +1 -1
  206. package/dist/zonos-elements/p-87e807b4.entry.js +1 -0
  207. package/dist/zonos-elements/{p-cdd3087f.system.entry.js → p-8debefec.system.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-d99d9e00.js → p-8e000d8d.js} +1 -1
  209. package/dist/zonos-elements/p-90c185ac.entry.js +1 -0
  210. package/dist/zonos-elements/p-91fc6911.entry.js +1 -0
  211. package/dist/zonos-elements/{p-851c642e.system.entry.js → p-93aeba62.system.entry.js} +1 -1
  212. package/dist/zonos-elements/p-9b8a5372.entry.js +1 -0
  213. package/dist/zonos-elements/{p-cb823c4d.system.js → p-9e9ac7a2.system.js} +1 -1
  214. package/dist/zonos-elements/p-9fa17353.js +1 -0
  215. package/dist/zonos-elements/{p-01987cb2.system.entry.js → p-a0f570ea.system.entry.js} +1 -1
  216. package/dist/zonos-elements/p-abc83d01.entry.js +1 -0
  217. package/dist/zonos-elements/{p-45ebc788.entry.js → p-b21b0330.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-488ad646.system.entry.js → p-b50eaeac.system.entry.js} +1 -1
  219. package/dist/zonos-elements/p-b922c441.system.js +1 -0
  220. package/dist/zonos-elements/{p-6b6a9dd6.system.js → p-be53e893.system.js} +1 -1
  221. package/dist/zonos-elements/{p-c50b3100.system.js → p-c666d557.system.js} +1 -1
  222. package/dist/zonos-elements/{p-f891d470.entry.js → p-c988cf84.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-26a634a5.system.entry.js → p-d649fb9a.system.entry.js} +1 -1
  224. package/dist/zonos-elements/p-dcbd57df.entry.js +1 -0
  225. package/dist/zonos-elements/p-dd0f8f06.system.entry.js +1 -0
  226. package/dist/zonos-elements/{p-a9307caa.js → p-dfe7d1dd.js} +1 -1
  227. package/dist/zonos-elements/p-e0587eeb.entry.js +1 -0
  228. package/dist/zonos-elements/p-e0ebbefe.entry.js +1 -0
  229. package/dist/zonos-elements/{p-72f37935.js → p-e337fa88.js} +1 -1
  230. package/dist/zonos-elements/{p-d6a10007.entry.js → p-e5152c04.entry.js} +1 -1
  231. package/dist/zonos-elements/p-eb2560b6.system.entry.js +1 -0
  232. package/dist/zonos-elements/p-ebe08e44.entry.js +1 -0
  233. package/dist/zonos-elements/{p-452070af.system.entry.js → p-eca09508.system.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-e26c9e83.js → p-ed20f2f7.js} +1 -1
  235. package/dist/zonos-elements/{p-5c74e5c9.system.entry.js → p-ee7a661d.system.entry.js} +1 -1
  236. package/dist/zonos-elements/p-f98276ed.entry.js +1 -0
  237. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  238. package/dist/zonos-elements/zonos-elements.js +1 -1
  239. package/package.json +50 -40
  240. package/dist/esm-es5/index-a457c60c.js +0 -2
  241. package/dist/zonos-elements/p-04b43dd5.entry.js +0 -1
  242. package/dist/zonos-elements/p-06f25f75.entry.js +0 -1
  243. package/dist/zonos-elements/p-0944fe64.entry.js +0 -1
  244. package/dist/zonos-elements/p-0c62cfb3.entry.js +0 -1
  245. package/dist/zonos-elements/p-1dcdb65f.system.entry.js +0 -1
  246. package/dist/zonos-elements/p-25970cb8.system.entry.js +0 -1
  247. package/dist/zonos-elements/p-43633269.system.js +0 -2
  248. package/dist/zonos-elements/p-4b5197e7.system.entry.js +0 -1
  249. package/dist/zonos-elements/p-4c81112f.entry.js +0 -1
  250. package/dist/zonos-elements/p-4efa8187.js +0 -1
  251. package/dist/zonos-elements/p-5170bc41.entry.js +0 -1
  252. package/dist/zonos-elements/p-7ae5cd60.entry.js +0 -1
  253. package/dist/zonos-elements/p-8d870d4c.entry.js +0 -1
  254. package/dist/zonos-elements/p-9af5e93a.entry.js +0 -1
  255. package/dist/zonos-elements/p-bc8bda92.entry.js +0 -1
  256. package/dist/zonos-elements/p-c137dc82.js +0 -2
  257. package/dist/zonos-elements/p-c3d2422e.entry.js +0 -1
  258. package/dist/zonos-elements/p-c66fc4e5.system.entry.js +0 -1
  259. package/dist/zonos-elements/p-c767242b.entry.js +0 -1
  260. package/dist/zonos-elements/p-cf6ae7dc.entry.js +0 -1
  261. package/dist/zonos-elements/p-d2165441.system.entry.js +0 -1
  262. package/dist/zonos-elements/p-dcd6acd4.system.entry.js +0 -1
  263. package/dist/zonos-elements/p-dd1cfa74.entry.js +0 -1
  264. package/dist/zonos-elements/p-dfd1ba1d.entry.js +0 -1
  265. package/dist/zonos-elements/p-e68d5219.entry.js +0 -1
  266. package/dist/zonos-elements/p-ef3e05e5.system.js +0 -1
  267. package/dist/zonos-elements/p-f29edb65.entry.js +0 -1
  268. package/dist/zonos-elements/p-f655ec36.entry.js +0 -1
  269. package/dist/zonos-elements/p-fcc2e712.entry.js +0 -1
@@ -3,7 +3,13 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
3
3
  import { formatStringWithLinks } from "../../utils/formatStringWithLinks";
4
4
  export class ZonosCustomMessage {
5
5
  constructor() {
6
+ /**
7
+ * The custom message icon
8
+ */
6
9
  this.icon = '';
10
+ /**
11
+ * The custom message text
12
+ */
7
13
  this.message = '';
8
14
  }
9
15
  render() {
@@ -7,6 +7,54 @@ import { getBorderRadius } from "../../utils/getBorderRadius";
7
7
  import RemoveIcon from "./assets/removeIcon.svg";
8
8
  export class ZonosDialog {
9
9
  constructor() {
10
+ /**
11
+ * Whether or not the dialog is open
12
+ * @default false
13
+ */
14
+ this.open = false;
15
+ /**
16
+ * The header text for the dialog
17
+ */
18
+ this.headerText = '';
19
+ /**
20
+ * The width of the dialog
21
+ * @default 460px
22
+ */
23
+ this.width = '460px';
24
+ /**
25
+ * Whether or not to show the header
26
+ * @default false
27
+ */
28
+ this.noHeader = false;
29
+ /**
30
+ * Whether or not to have body padding
31
+ * @default false
32
+ */
33
+ this.noBodyPadding = false;
34
+ /**
35
+ * Whether or not to have body padding
36
+ * @default false
37
+ */
38
+ this.noBorder = false;
39
+ /**
40
+ * Whether or not to show the close button
41
+ * @default false
42
+ */
43
+ this.noCloseButton = false;
44
+ /**
45
+ * Whether or not to close the dialog when clicking outside of it
46
+ * @default false
47
+ */
48
+ this.noClickOutside = false;
49
+ /**
50
+ * Flag to determine if the checkout is on mobile
51
+ */
52
+ this.mobile = false;
53
+ /**
54
+ * Load loading spinner for the dialog or not
55
+ */
56
+ this.isLoading = true;
57
+ this.isMobile = false;
10
58
  this.isMobileMode = () => {
11
59
  return this.mobile || window.innerWidth <= 768;
12
60
  };
@@ -22,20 +70,6 @@ export class ZonosDialog {
22
70
  this.closeDialog.emit();
23
71
  }
24
72
  };
25
- this.open = false;
26
- this.headerText = '';
27
- this.width = '460px';
28
- this.height = undefined;
29
- this.minHeight = undefined;
30
- this.noHeader = false;
31
- this.noBodyPadding = false;
32
- this.noBorder = false;
33
- this.borderStyle = undefined;
34
- this.noCloseButton = false;
35
- this.noClickOutside = false;
36
- this.mobile = false;
37
- this.isLoading = true;
38
- this.isMobile = false;
39
73
  }
40
74
  handleWindowResize() {
41
75
  this.isMobile = this.isMobileMode();
@@ -3,9 +3,20 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
3
3
  import { isColorVariable } from "../../utils/isColorVariable";
4
4
  export class ZonosIcon {
5
5
  constructor() {
6
+ /**
7
+ * Determines if the icon should be auto height instead of square
8
+ * @default false
9
+ */
6
10
  this.autoHeight = false;
11
+ /**
12
+ * Color of the SVG
13
+ * @default 'gray-1000'
14
+ */
7
15
  this.iconColor = 'gray-1000';
8
- this.content = undefined;
16
+ /**
17
+ * The size of the icon
18
+ * @default 24
19
+ */
9
20
  this.size = 24;
10
21
  }
11
22
  render() {
@@ -4,11 +4,25 @@ import { classes } from "../../utils/classes";
4
4
  import { getBorderRadius } from "../../utils/getBorderRadius";
5
5
  export class ZonosInput {
6
6
  constructor() {
7
+ /**
8
+ * Value of the input
9
+ */
7
10
  this.inputValue = '';
8
- this.inputLabel = undefined;
11
+ /**
12
+ * Input size
13
+ */
9
14
  this.inputSize = 'md';
15
+ /**
16
+ * Disables the input
17
+ */
10
18
  this.isDisabled = false;
19
+ /**
20
+ * Error state of the input
21
+ */
11
22
  this.isError = false;
23
+ /**
24
+ * Placeholder for the input
25
+ */
12
26
  this.inputPlaceholder = '';
13
27
  this.value = this.inputValue;
14
28
  }
@@ -7,12 +7,16 @@ import { languages } from "../../../types/ILanguage";
7
7
  import GreenCheckDuotoneIcon from "./assets/greenCheckDuotone.svg";
8
8
  export class ZonosLanguageSelect {
9
9
  constructor() {
10
+ /**
11
+ * Function to close the language select
12
+ * @default () => {}
13
+ */
14
+ this.handleOnClose = () => { };
10
15
  this.languageSelected = (languageCode) => {
11
16
  // mutate the selected language code in store
12
17
  void localizationStoreUpdateSelectedLocale(languageCode);
13
18
  this.handleOnClose();
14
19
  };
15
- this.handleOnClose = () => { };
16
20
  }
17
21
  render() {
18
22
  const { selectedLocale } = localizationStore;
@@ -1,10 +1,10 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  export class ZonosLink {
3
3
  constructor() {
4
+ /**
5
+ * The href for the link
6
+ */
4
7
  this.href = '';
5
- this.rel = undefined;
6
- this.target = undefined;
7
- this.linkTitle = undefined;
8
8
  }
9
9
  render() {
10
10
  return (h(Host, { key: '41f0a757a334338631250764599ac99e28c41ed2', class: "zonos--elements" }, h("a", { key: 'b6e84f40141e8de85d005c05426f885f242ffc53', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: 'dd5ed33f163d7958fb7806992e003d2279ee1f5b' }))));
@@ -2,8 +2,14 @@ import { h, Host } from "@stencil/core";
2
2
  import { classes } from "../../utils/classes";
3
3
  export class ZonosLoadingOverlay {
4
4
  constructor() {
5
+ /**
6
+ * Whether or not the overlay is open
7
+ * @default false
8
+ */
5
9
  this.open = false;
6
- this.spinnerColor = undefined;
10
+ /**
11
+ * Spinner size (optional, default 40)
12
+ */
7
13
  this.size = 40;
8
14
  }
9
15
  render() {
@@ -3,7 +3,13 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
3
3
  import { classes } from "../../utils/classes";
4
4
  export class ZonosLogo {
5
5
  constructor() {
6
+ /**
7
+ * Theme to change the color of the logo
8
+ */
6
9
  this.theme = 'LIGHT';
10
+ /**
11
+ * The width of the logo
12
+ */
7
13
  this.width = 'auto';
8
14
  }
9
15
  render() {
@@ -3,14 +3,14 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
3
3
  import { classes } from "../../utils/classes";
4
4
  export class ZonosRestState {
5
5
  constructor() {
6
+ /**
7
+ * Whether or not the image failed to load
8
+ */
9
+ this.isErrorImageLoad = false;
6
10
  this.getImageRestState = () => {
7
11
  const imageSrc = getAssetPath(`./assets/${this.restStateType}.png`);
8
12
  return imageSrc;
9
13
  };
10
- this.restStateSubtitle = undefined;
11
- this.restStateTitle = undefined;
12
- this.restStateType = undefined;
13
- this.isErrorImageLoad = false;
14
14
  }
15
15
  render() {
16
16
  const imageUrl = this.getImageRestState();
@@ -4,7 +4,14 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
4
4
  import RemoveIcon from "./assets/removeIcon.svg";
5
5
  export class ZonosSelectDialogHeader {
6
6
  constructor() {
7
+ /**
8
+ * Callback to do something on close
9
+ * @default () => {}
10
+ */
7
11
  this.handleOnClose = () => { };
12
+ /**
13
+ * The label for the select dialog
14
+ */
8
15
  this.label = '';
9
16
  }
10
17
  render() {
@@ -5,6 +5,11 @@ import { getBorderRadius } from "../../utils/getBorderRadius";
5
5
  import { isColorVariable } from "../../utils/isColorVariable";
6
6
  export class ZonosShippingRichRadio {
7
7
  constructor() {
8
+ /**
9
+ * Selected item
10
+ * @default {null|firstItem}
11
+ */
12
+ this.selectedItem = null;
8
13
  this.handleRichRadioSelect = (item) => {
9
14
  var _a;
10
15
  (_a = this.radioSelected) === null || _a === void 0 ? void 0 : _a.emit(item);
@@ -21,11 +26,6 @@ export class ZonosShippingRichRadio {
21
26
  '--zonos--selected-border-color': secondaryColor || 'unset',
22
27
  };
23
28
  };
24
- this.items = undefined;
25
- this.borderColor = undefined;
26
- this.borderStyle = undefined;
27
- this.theme = undefined;
28
- this.selectedItem = null;
29
29
  }
30
30
  render() {
31
31
  var _a;
@@ -2,8 +2,11 @@ import { h, Host } from "@stencil/core";
2
2
  import { classes } from "../../utils/classes";
3
3
  export class ZonosSpinner {
4
4
  constructor() {
5
+ /**
6
+ * The size of the spinner
7
+ * @default 32
8
+ */
5
9
  this.size = 32;
6
- this.spinnerColor = undefined;
7
10
  }
8
11
  render() {
9
12
  if (!this.el.shadowRoot) {
@@ -15,17 +15,33 @@ export class ZonosStripeInput {
15
15
  */
16
16
  this.inheritedAttributes = {};
17
17
  this.inputId = `zonos--input-${++inputId}`;
18
- this.name = undefined;
19
- this.autoComplete = undefined;
18
+ /**
19
+ * Value of the stripeInput
20
+ */
20
21
  this.inputValue = '';
21
- this.inputLabel = undefined;
22
- this.overridePrimaryColor = undefined;
23
- this.overrideSecondaryColor = undefined;
22
+ /**
23
+ * Disables the input
24
+ */
24
25
  this.isDisabled = false;
26
+ /**
27
+ * Error state of the input
28
+ */
25
29
  this.isError = false;
30
+ /**
31
+ * Error message of the input
32
+ */
26
33
  this.error = '';
34
+ /**
35
+ * Placeholder for the input
36
+ */
27
37
  this.inputPlaceholder = '';
38
+ /**
39
+ * The value of the input.
40
+ */
28
41
  this.value = '';
42
+ /**
43
+ * Whether the input is required
44
+ */
29
45
  this.required = false;
30
46
  this.internalValue = this.inputValue;
31
47
  }
@@ -16,6 +16,25 @@ export class ZonosStripePhoneInput {
16
16
  * Inherited attributes from the host element
17
17
  */
18
18
  this.inheritedAttributes = {};
19
+ /**
20
+ * The autoComplete attribute for the phone input
21
+ */
22
+ this.autoComplete = '';
23
+ /**
24
+ * Available country options for the select dropdown
25
+ */
26
+ this.countryOptions = null;
27
+ /**
28
+ * Whether the input is disabled
29
+ */
30
+ this.disabled = false;
31
+ /**
32
+ * The country code of the phone input
33
+ */
34
+ this.countryCode = null;
35
+ this.phoneNumber = '';
36
+ this.isFocused = false;
37
+ this.isSelectOpen = false;
19
38
  this.handleCountryChange = (event) => {
20
39
  var _a;
21
40
  const select = event.target;
@@ -102,20 +121,6 @@ export class ZonosStripePhoneInput {
102
121
  // Update the phone formatter to use the new country code
103
122
  this.updatePhoneFormatter();
104
123
  };
105
- this.autoComplete = '';
106
- this.countryOptions = null;
107
- this.disabled = false;
108
- this.error = undefined;
109
- this.inputLabel = undefined;
110
- this.overridePrimaryColor = undefined;
111
- this.overrideSecondaryColor = undefined;
112
- this.inputValue = undefined;
113
- this.countryCode = null;
114
- this.minWidth = undefined;
115
- this.selectedCountry = undefined;
116
- this.phoneNumber = '';
117
- this.isFocused = false;
118
- this.isSelectOpen = false;
119
124
  }
120
125
  onCountryOptionsChange() {
121
126
  // Re-initialize the phone number value when the country options change
@@ -17,30 +17,55 @@ export class ZonosStripeSelect {
17
17
  */
18
18
  this.inheritedAttributes = {};
19
19
  this.selectId = `zonos--select-${++selectId}`;
20
- this.handleClear = (e) => {
21
- e.stopPropagation();
22
- this.internalValue = '';
23
- this.selectChange.emit('');
24
- this.el.selectedValue = '';
25
- this.el.dispatchEvent(new Event('change'));
26
- };
27
- this.name = undefined;
20
+ /**
21
+ * Selected value of the select
22
+ */
28
23
  this.selectedValue = '';
29
- this.selectLabel = undefined;
30
- this.overridePrimaryColor = undefined;
31
- this.overrideSecondaryColor = undefined;
24
+ /**
25
+ * Disables the select
26
+ */
32
27
  this.isDisabled = false;
28
+ /**
29
+ * Error state of the select
30
+ */
33
31
  this.isError = false;
32
+ /**
33
+ * Error message of the select
34
+ */
34
35
  this.error = '';
36
+ /**
37
+ * Placeholder for the select
38
+ */
35
39
  this.selectPlaceholder = '';
40
+ /**
41
+ * Options for the select. Must be set using a query selector.
42
+ */
36
43
  this.options = [];
44
+ /**
45
+ * The autoComplete attribute for the select.
46
+ */
37
47
  this.autoComplete = '';
48
+ /**
49
+ * The value of the select.
50
+ */
38
51
  this.value = '';
52
+ /**
53
+ * Whether the select is required
54
+ */
39
55
  this.required = false;
56
+ /**
57
+ * Whether the select can be cleared
58
+ */
40
59
  this.isClearable = false;
41
- this.minWidth = undefined;
42
60
  this.internalValue = this.selectedValue;
43
61
  this.internalOptions = this.options;
62
+ this.handleClear = (e) => {
63
+ e.stopPropagation();
64
+ this.internalValue = '';
65
+ this.selectChange.emit('');
66
+ this.el.selectedValue = '';
67
+ this.el.dispatchEvent(new Event('change'));
68
+ };
44
69
  }
45
70
  onOptionsChange(newValue) {
46
71
  this.internalOptions = newValue;
@@ -6,10 +6,17 @@ import { styles } from "../../utils/styles";
6
6
  import { textOptions, } from "../../../types/styles/Text";
7
7
  export class ZonosText {
8
8
  constructor() {
9
+ /**
10
+ * The icon element to display
11
+ */
9
12
  this.textColor = 'gray-1000';
10
- this.size = undefined;
13
+ /**
14
+ * Type of the text to display
15
+ */
11
16
  this.type = 'body';
12
- this.weight = undefined;
17
+ /**
18
+ * Whether or not the component is ready
19
+ */
13
20
  this.ready = false;
14
21
  }
15
22
  componentDidRender() {
@@ -3,8 +3,10 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
3
3
  import { classes } from "../../utils/classes";
4
4
  export class ZonosToggle {
5
5
  constructor() {
6
+ /**
7
+ * Options for the toggle
8
+ */
6
9
  this.options = [];
7
- this.value = undefined;
8
10
  }
9
11
  render() {
10
12
  return (h(Host, { key: '9a526e8fee8e4c5af558442c82f7acbc634706c3', class: classes(['zonos--elements zonos--toggle']), style: {
@@ -2,7 +2,13 @@ import { h, Host } from "@stencil/core";
2
2
  import { classes } from "../../utils/classes";
3
3
  export class ZonosTooltip {
4
4
  constructor() {
5
+ /**
6
+ * The title of the tooltip
7
+ */
5
8
  this.label = '';
9
+ /**
10
+ * The subtitle of the tooltip
11
+ */
6
12
  this.subtitle = '';
7
13
  this.showTooltip = false;
8
14
  }
@@ -4,6 +4,10 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
4
4
  import { classes } from "../../utils/classes";
5
5
  export class VStack {
6
6
  constructor() {
7
+ /**
8
+ * The spacing between elements in the stack
9
+ * @default 24
10
+ */
7
11
  this.spacing = 24;
8
12
  }
9
13
  render() {
@@ -6,16 +6,11 @@ import { h, Host } from "@stencil/core";
6
6
  */
7
7
  export class ZonosVirtualScroll {
8
8
  constructor() {
9
+ this.scrollTop = 0;
10
+ this.totalHeight = 1;
9
11
  this.scrollListener = (_ev) => {
10
12
  this.scrollTop = this.ele.scrollTop;
11
13
  };
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
14
  }
20
15
  updateTotalHeight() {
21
16
  this.totalHeight = this.itemHeights.reduce((acc, height) => acc + (height || this.fallbackItemHeight), 0);
@@ -2,8 +2,17 @@ import { h } from "@stencil/core";
2
2
  import { format } from "../../../utils/format";
3
3
  export class ZonosComponent {
4
4
  constructor() {
5
+ /**
6
+ * The first name
7
+ */
5
8
  this.first = '';
9
+ /**
10
+ * The middle name
11
+ */
6
12
  this.middle = '';
13
+ /**
14
+ * The last name
15
+ */
7
16
  this.last = '';
8
17
  }
9
18
  getText() {
@@ -19,6 +19,31 @@ import { mergeConfig } from "../../utils/mergeConfig";
19
19
  const PEEK_MESSAGE_CLOSE_DELAY_MS = 3000;
20
20
  export class ZonosHello {
21
21
  constructor() {
22
+ this.showPeekMessage = false;
23
+ this.zonosStoreHelloSettings = zonosStore.helloSettings;
24
+ this.showDialog = false;
25
+ this.peekMessage = '';
26
+ this.initialUrl = '';
27
+ /**
28
+ * This array will hold all restricted items handled by Hello thus far
29
+ */
30
+ this.allRestrictedItems = [];
31
+ /**
32
+ * This array will hold all products handled by Hello thus far
33
+ */
34
+ this.allFoundProducts = [];
35
+ /**
36
+ * This array will hold all products currently on the page
37
+ */
38
+ this.productsOnPage = [];
39
+ /**
40
+ * Hello widget is rendered on the screen, this should only triggered once
41
+ */
42
+ this.isHelloWidgetRendered = false;
43
+ /**
44
+ * Determine if the window is mobile
45
+ */
46
+ this.isMobile = false;
22
47
  this.getHelloPeekMessage = (organizationName) => {
23
48
  const isRestrictionPage = zonosStore.currentHelloPage === 'productDetail' ||
24
49
  zonosStore.currentHelloPage === 'productList';
@@ -193,19 +218,6 @@ export class ZonosHello {
193
218
  }
194
219
  return showForCountries === null || showForCountries === void 0 ? void 0 : showForCountries.includes(localizationStore.selectedCountryCode || '');
195
220
  };
196
- this.mobileLocationOverride = undefined;
197
- this.animateFromLeftOverride = undefined;
198
- this.appearanceSettingsOverride = undefined;
199
- this.showPeekMessage = false;
200
- this.zonosStoreHelloSettings = zonosStore.helloSettings;
201
- this.showDialog = false;
202
- this.peekMessage = '';
203
- this.initialUrl = '';
204
- this.allRestrictedItems = [];
205
- this.allFoundProducts = [];
206
- this.productsOnPage = [];
207
- this.isHelloWidgetRendered = false;
208
- this.isMobile = false;
209
221
  }
210
222
  /**
211
223
  * Get the country list the hello widget's country select is using
@@ -8,8 +8,15 @@ import Globe from "./assets/globe.svg";
8
8
  import ZonosIcon from "./assets/zonosIcon.svg";
9
9
  export class ZonosHelloDialogFooter {
10
10
  constructor() {
11
- this.appearanceSettings = undefined;
11
+ /**
12
+ * Whether or not the country select dialog is open
13
+ * @default false
14
+ */
12
15
  this.setShowCountrySelect = () => { };
16
+ /**
17
+ * Whether or not the language select dialog is open
18
+ * @default false
19
+ */
13
20
  this.setShowLanguageSelect = () => { };
14
21
  }
15
22
  render() {
@@ -187,8 +187,6 @@
187
187
  :host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left {
188
188
  transform-origin: bottom;
189
189
  }
190
- }
191
- @media (max-width: 768px) {
192
190
  :host .zonos--hello-dialog.zonos--hello-dialog-open {
193
191
  opacity: 1;
194
192
  transform: scaleY(1);
@@ -26,6 +26,23 @@ const dutyTaxMessage_AU_lowValueGST = `${translate('The low-value GST law passed
26
26
  })}`;
27
27
  export class ZonosHelloDialog {
28
28
  constructor() {
29
+ /**
30
+ * Whether or not the dialog is open
31
+ */
32
+ this.isOpen = false;
33
+ /**
34
+ * The function to set the open state
35
+ * @default () => {}
36
+ */
37
+ this.setIsOpen = () => { };
38
+ /**
39
+ * Item restrictions array if any
40
+ * @default []
41
+ */
42
+ this.restrictedItems = [];
43
+ this.welcomeMessage = 'Welcome to our Demo App!';
44
+ this.showCountrySelect = false;
45
+ this.showLanguageSelect = false;
29
46
  this.clickOutsideDialogHandler = (e) => {
30
47
  if (!e.composedPath().includes(this.dialogRef) && this.isOpen) {
31
48
  this.setIsOpen(false);
@@ -190,15 +207,6 @@ export class ZonosHelloDialog {
190
207
  return null;
191
208
  }
192
209
  };
193
- this.isOpen = false;
194
- this.setIsOpen = () => { };
195
- this.mobileLocationOverride = undefined;
196
- this.animateFromLeftOverride = undefined;
197
- this.appearanceSettings = undefined;
198
- this.restrictedItems = [];
199
- this.welcomeMessage = 'Welcome to our Demo App!';
200
- this.showCountrySelect = false;
201
- this.showLanguageSelect = false;
202
210
  }
203
211
  globalClickHandler(e) {
204
212
  this.clickOutsideDialogHandler(e);
@@ -11,10 +11,6 @@ import { CheckoutAddressService } from "../utils/iframe/CheckoutAddressService";
11
11
  import { iframeServices, injectPrivateIframe, } from "../utils/iframe/IframeHelpers";
12
12
  import { log } from "../utils/logging/log";
13
13
  export class ZonosController {
14
- constructor() {
15
- this.config = undefined;
16
- this.zonosApiKey = undefined;
17
- }
18
14
  /**
19
15
  * Method to initialize checkout element
20
16
  */