@zonos/elements 1.3.204 → 1.3.206

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 (316) hide show
  1. package/dist/cjs/{cart-0d91ad0b.js → cart-3d961c6e.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-ff33875b.js} +421 -182
  9. package/dist/cjs/{paypal-9953115b.js → paypal-dee5c109.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 +102 -36
  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 +98 -32
  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/store/translationStore/strings.arabic.js +21 -9
  89. package/dist/collection/components/store/translationStore/strings.base.js +21 -10
  90. package/dist/collection/components/store/translationStore/strings.chinese.js +21 -9
  91. package/dist/collection/components/store/translationStore/strings.danish.js +21 -9
  92. package/dist/collection/components/store/translationStore/strings.dutch.js +21 -9
  93. package/dist/collection/components/store/translationStore/strings.french.js +21 -9
  94. package/dist/collection/components/store/translationStore/strings.german.js +21 -9
  95. package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -9
  96. package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -9
  97. package/dist/collection/components/store/translationStore/strings.italian.js +21 -9
  98. package/dist/collection/components/store/translationStore/strings.japanese.js +21 -9
  99. package/dist/collection/components/store/translationStore/strings.korean.js +21 -9
  100. package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -9
  101. package/dist/collection/components/store/translationStore/strings.polish.js +21 -9
  102. package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -9
  103. package/dist/collection/components/store/translationStore/strings.russian.js +21 -9
  104. package/dist/collection/components/store/translationStore/strings.spanish.js +21 -9
  105. package/dist/collection/components/store/translationStore/strings.swedish.js +21 -9
  106. package/dist/collection/components/store/translationStore/strings.turkish.js +21 -9
  107. package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -9
  108. package/dist/collection/components/stripe/zonos-address/zonos-address.js +21 -8
  109. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +13 -5
  110. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +73 -33
  111. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +11 -6
  112. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -2
  113. package/dist/esm/{cart-db61eb95.js → cart-5835676d.js} +7 -6
  114. package/dist/esm/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
  115. package/dist/esm/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
  116. package/dist/esm/{index-a457c60c.js → index-5ea9f81d.js} +455 -377
  117. package/dist/esm/index.js +7 -7
  118. package/dist/esm/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
  119. package/dist/esm/loader.js +2 -2
  120. package/dist/esm/{localization-bf7224aa.js → localization-4c7f64e8.js} +421 -182
  121. package/dist/esm/{paypal-2e0ffb07.js → paypal-b4f106be.js} +4 -4
  122. package/dist/esm/zonos-address_11.entry.js +273 -121
  123. package/dist/esm/zonos-badge.entry.js +26 -4
  124. package/dist/esm/zonos-banner.entry.js +6 -5
  125. package/dist/esm/zonos-button_3.entry.js +89 -24
  126. package/dist/esm/zonos-card.entry.js +10 -9
  127. package/dist/esm/zonos-cart-items_14.entry.js +193 -74
  128. package/dist/esm/zonos-checkout.entry.js +90 -35
  129. package/dist/esm/zonos-collapse.entry.js +8 -2
  130. package/dist/esm/zonos-component.entry.js +10 -1
  131. package/dist/esm/zonos-controller.entry.js +6 -8
  132. package/dist/esm/zonos-country-flag.entry.js +8 -4
  133. package/dist/esm/zonos-country-select_4.entry.js +52 -24
  134. package/dist/esm/zonos-elements.js +3 -3
  135. package/dist/esm/zonos-empty-state-payment_4.entry.js +11 -10
  136. package/dist/esm/zonos-hello-dialog.entry.js +102 -36
  137. package/dist/esm/zonos-hello.entry.js +29 -17
  138. package/dist/esm/zonos-input.entry.js +18 -4
  139. package/dist/esm/zonos-language-select_2.entry.js +15 -4
  140. package/dist/esm/zonos-link.entry.js +4 -4
  141. package/dist/esm/zonos-logo.entry.js +8 -2
  142. package/dist/esm/zonos-shipping-rich-radio.entry.js +8 -8
  143. package/dist/esm/zonos-stripe-input.entry.js +25 -9
  144. package/dist/esm/zonos-text.entry.js +11 -4
  145. package/dist/esm/zonos-toggle.entry.js +5 -3
  146. package/dist/esm/zonos-tooltip.entry.js +7 -1
  147. package/dist/esm/zonos-v-stack.entry.js +6 -2
  148. package/dist/esm/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +4 -5
  149. package/dist/esm-es5/{cart-db61eb95.js → cart-5835676d.js} +1 -1
  150. package/dist/esm-es5/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
  151. package/dist/esm-es5/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
  152. package/dist/esm-es5/index-5ea9f81d.js +2 -0
  153. package/dist/esm-es5/index.js +1 -1
  154. package/dist/esm-es5/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
  155. package/dist/esm-es5/loader.js +1 -1
  156. package/dist/esm-es5/localization-4c7f64e8.js +1 -0
  157. package/dist/esm-es5/{paypal-2e0ffb07.js → paypal-b4f106be.js} +1 -1
  158. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  159. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  160. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  161. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  162. package/dist/esm-es5/zonos-card.entry.js +1 -1
  163. package/dist/esm-es5/zonos-cart-items_14.entry.js +1 -1
  164. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  165. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  166. package/dist/esm-es5/zonos-component.entry.js +1 -1
  167. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  168. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  169. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  170. package/dist/esm-es5/zonos-elements.js +1 -1
  171. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  172. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  173. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  174. package/dist/esm-es5/zonos-input.entry.js +1 -1
  175. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  176. package/dist/esm-es5/zonos-link.entry.js +1 -1
  177. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  178. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  179. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  180. package/dist/esm-es5/zonos-text.entry.js +1 -1
  181. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  182. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  183. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  184. package/dist/esm-es5/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +1 -1
  185. package/dist/scripts/index.js +1 -1
  186. package/dist/scripts/loadZonos.js +1 -1
  187. package/dist/scripts/zonos.js +1 -1
  188. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +3 -0
  189. package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -6
  190. package/dist/types/components/store/translationStore/strings.base.d.ts +18 -6
  191. package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -6
  192. package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -6
  193. package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -6
  194. package/dist/types/components/store/translationStore/strings.french.d.ts +18 -6
  195. package/dist/types/components/store/translationStore/strings.german.d.ts +18 -6
  196. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -6
  197. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -6
  198. package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -6
  199. package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -6
  200. package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -6
  201. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -6
  202. package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -6
  203. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -6
  204. package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -6
  205. package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -6
  206. package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -6
  207. package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -6
  208. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -6
  209. package/dist/types/types/index.d.ts +1 -0
  210. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  211. package/dist/zonos-elements/index.esm.js +1 -1
  212. package/dist/zonos-elements/p-019f8637.entry.js +1 -0
  213. package/dist/zonos-elements/p-02da743b.system.js +2 -0
  214. package/dist/zonos-elements/p-051e0e48.entry.js +1 -0
  215. package/dist/zonos-elements/p-0c4c8d63.entry.js +1 -0
  216. package/dist/zonos-elements/p-12cd9d3a.entry.js +1 -0
  217. package/dist/zonos-elements/{p-d42dfd32.system.js → p-1327b935.system.js} +1 -1
  218. package/dist/zonos-elements/p-1640d77f.js +2 -0
  219. package/dist/zonos-elements/{p-3d82a352.js → p-16678764.js} +1 -1
  220. package/dist/zonos-elements/{p-c291bac1.entry.js → p-18149db1.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-db025dfc.system.entry.js → p-1ad099ec.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-c5fcbc92.system.entry.js → p-1bc09abe.system.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-d46349d3.system.entry.js → p-22cb6880.system.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-cdd3087f.system.entry.js → p-265af369.system.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-c9aa902e.system.entry.js → p-2866fd29.system.entry.js} +1 -1
  226. package/dist/zonos-elements/p-30778fde.system.entry.js +1 -0
  227. package/dist/zonos-elements/p-3196bf98.entry.js +1 -0
  228. package/dist/zonos-elements/p-3505e4c4.entry.js +1 -0
  229. package/dist/zonos-elements/p-3a50124e.entry.js +1 -0
  230. package/dist/zonos-elements/p-3afc27ef.entry.js +1 -0
  231. package/dist/zonos-elements/{p-ea6d87a1.system.js → p-3ee44728.system.js} +1 -1
  232. package/dist/zonos-elements/p-41c1d7c4.entry.js +1 -0
  233. package/dist/zonos-elements/p-42a9557f.entry.js +1 -0
  234. package/dist/zonos-elements/{p-f8d0d488.system.entry.js → p-469ccc66.system.entry.js} +1 -1
  235. package/dist/zonos-elements/p-47e2cd31.entry.js +1 -0
  236. package/dist/zonos-elements/p-4a3bb31d.entry.js +1 -0
  237. package/dist/zonos-elements/{p-26a634a5.system.entry.js → p-4cb8b87f.system.entry.js} +1 -1
  238. package/dist/zonos-elements/p-4e9c8f9e.system.js +1 -0
  239. package/dist/zonos-elements/{p-80bbd9c0.system.entry.js → p-4fb88ebc.system.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-df4c46a6.entry.js → p-5616b304.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-a9307caa.js → p-658936c9.js} +2 -2
  242. package/dist/zonos-elements/{p-6b6a9dd6.system.js → p-666164d9.system.js} +1 -1
  243. package/dist/zonos-elements/{p-3284f459.system.entry.js → p-719e14a8.system.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-fbe36bc8.system.entry.js → p-7234f876.system.entry.js} +1 -1
  245. package/dist/zonos-elements/p-74bcb5cc.entry.js +1 -0
  246. package/dist/zonos-elements/{p-27987298.system.entry.js → p-7777d85f.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-aa1193bc.entry.js → p-848e08e8.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-ab176281.system.entry.js → p-858b7908.system.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-0693422b.system.js → p-91c996d3.system.js} +1 -1
  250. package/dist/zonos-elements/{p-851c642e.system.entry.js → p-93aeba62.system.entry.js} +1 -1
  251. package/dist/zonos-elements/p-9b8a5372.entry.js +1 -0
  252. package/dist/zonos-elements/{p-cb823c4d.system.js → p-9e9ac7a2.system.js} +1 -1
  253. package/dist/zonos-elements/p-9fa17353.js +1 -0
  254. package/dist/zonos-elements/{p-01987cb2.system.entry.js → p-a0f570ea.system.entry.js} +1 -1
  255. package/dist/zonos-elements/p-a2b55d11.entry.js +1 -0
  256. package/dist/zonos-elements/p-aafcd40f.system.entry.js +1 -0
  257. package/dist/zonos-elements/p-abc83d01.entry.js +1 -0
  258. package/dist/zonos-elements/p-abe218ab.system.entry.js +1 -0
  259. package/dist/zonos-elements/{p-45ebc788.entry.js → p-b21b0330.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-488ad646.system.entry.js → p-b50eaeac.system.entry.js} +1 -1
  261. package/dist/zonos-elements/p-b922c441.system.js +1 -0
  262. package/dist/zonos-elements/p-ba027b70.system.entry.js +1 -0
  263. package/dist/zonos-elements/p-bab19e2a.entry.js +1 -0
  264. package/dist/zonos-elements/p-c4e0f49a.system.entry.js +1 -0
  265. package/dist/zonos-elements/{p-c50b3100.system.js → p-c666d557.system.js} +1 -1
  266. package/dist/zonos-elements/{p-f891d470.entry.js → p-c988cf84.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-6a71f76b.system.js → p-d5f7f7e6.system.js} +1 -1
  268. package/dist/zonos-elements/p-dbd23bea.entry.js +1 -0
  269. package/dist/zonos-elements/p-e0587eeb.entry.js +1 -0
  270. package/dist/zonos-elements/{p-72f37935.js → p-e337fa88.js} +1 -1
  271. package/dist/zonos-elements/{p-d6a10007.entry.js → p-e5152c04.entry.js} +1 -1
  272. package/dist/zonos-elements/p-ea88baa9.system.entry.js +1 -0
  273. package/dist/zonos-elements/p-eb2560b6.system.entry.js +1 -0
  274. package/dist/zonos-elements/{p-452070af.system.entry.js → p-eca09508.system.entry.js} +1 -1
  275. package/dist/zonos-elements/{p-e26c9e83.js → p-ed20f2f7.js} +1 -1
  276. package/dist/zonos-elements/p-edcfb3a3.js +1 -0
  277. package/dist/zonos-elements/{p-be5afc91.system.entry.js → p-f4d741de.system.entry.js} +1 -1
  278. package/dist/zonos-elements/{p-5c74e5c9.system.entry.js → p-f8bfc320.system.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-d99d9e00.js → p-f9664811.js} +1 -1
  280. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  281. package/dist/zonos-elements/zonos-elements.js +1 -1
  282. package/package.json +50 -40
  283. package/dist/esm-es5/index-a457c60c.js +0 -2
  284. package/dist/esm-es5/localization-bf7224aa.js +0 -1
  285. package/dist/zonos-elements/p-04b43dd5.entry.js +0 -1
  286. package/dist/zonos-elements/p-06f25f75.entry.js +0 -1
  287. package/dist/zonos-elements/p-0944fe64.entry.js +0 -1
  288. package/dist/zonos-elements/p-0c62cfb3.entry.js +0 -1
  289. package/dist/zonos-elements/p-1dcdb65f.system.entry.js +0 -1
  290. package/dist/zonos-elements/p-25970cb8.system.entry.js +0 -1
  291. package/dist/zonos-elements/p-43633269.system.js +0 -2
  292. package/dist/zonos-elements/p-4b5197e7.system.entry.js +0 -1
  293. package/dist/zonos-elements/p-4c81112f.entry.js +0 -1
  294. package/dist/zonos-elements/p-4efa8187.js +0 -1
  295. package/dist/zonos-elements/p-5170bc41.entry.js +0 -1
  296. package/dist/zonos-elements/p-5d0f7364.system.js +0 -1
  297. package/dist/zonos-elements/p-715d0f59.system.entry.js +0 -1
  298. package/dist/zonos-elements/p-7ae5cd60.entry.js +0 -1
  299. package/dist/zonos-elements/p-8d870d4c.entry.js +0 -1
  300. package/dist/zonos-elements/p-9af5e93a.entry.js +0 -1
  301. package/dist/zonos-elements/p-bc8bda92.entry.js +0 -1
  302. package/dist/zonos-elements/p-c137dc82.js +0 -2
  303. package/dist/zonos-elements/p-c3d2422e.entry.js +0 -1
  304. package/dist/zonos-elements/p-c66fc4e5.system.entry.js +0 -1
  305. package/dist/zonos-elements/p-c767242b.entry.js +0 -1
  306. package/dist/zonos-elements/p-cf6ae7dc.entry.js +0 -1
  307. package/dist/zonos-elements/p-d2165441.system.entry.js +0 -1
  308. package/dist/zonos-elements/p-dcd6acd4.system.entry.js +0 -1
  309. package/dist/zonos-elements/p-dd1cfa74.entry.js +0 -1
  310. package/dist/zonos-elements/p-dfd1ba1d.entry.js +0 -1
  311. package/dist/zonos-elements/p-e68d5219.entry.js +0 -1
  312. package/dist/zonos-elements/p-ef3e05e5.system.js +0 -1
  313. package/dist/zonos-elements/p-f255e822.js +0 -1
  314. package/dist/zonos-elements/p-f29edb65.entry.js +0 -1
  315. package/dist/zonos-elements/p-f655ec36.entry.js +0 -1
  316. package/dist/zonos-elements/p-fcc2e712.entry.js +0 -1
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host } from './index-a457c60c.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
1
+ import { r as registerInstance, h, H as Host } from './index-5ea9f81d.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
  import './VarianceTest-fef2d958.js';
5
5
 
@@ -14,14 +14,36 @@ const ZonosBadgeStyle0 = zonosBadgeCss;
14
14
  const ZonosBadge = class {
15
15
  constructor(hostRef) {
16
16
  registerInstance(this, hostRef);
17
+ /**
18
+ * Whether or not the badge is bold
19
+ * @default false
20
+ */
17
21
  this.bold = false;
22
+ /**
23
+ * The color of the badge
24
+ * @default 24
25
+ */
18
26
  this.badgeColor = 'gray';
19
- this.icon = undefined;
27
+ /**
28
+ * Position the icon to the right when icon is specified
29
+ * @default false
30
+ */
20
31
  this.iconRight = false;
32
+ /**
33
+ * The size of the badge
34
+ * @default 'default'
35
+ */
21
36
  this.size = 'default';
37
+ /**
38
+ * Whether or not the badge is rounded
39
+ * @default false
40
+ */
22
41
  this.rounded = false;
42
+ /**
43
+ * Whether or not the badge is loading
44
+ * @default false
45
+ */
23
46
  this.loading = false;
24
- this.dismissHandler = undefined;
25
47
  }
26
48
  render() {
27
49
  return (h(Host, { key: 'd8a6a11f10c36a272ecdb52c54919f9ad45e1a9a', class: classes(['zonos--elements zonos--badge']), style: {
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host } from './index-a457c60c.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
1
+ import { r as registerInstance, h, H as Host } from './index-5ea9f81d.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
  import './VarianceTest-fef2d958.js';
5
5
 
@@ -9,15 +9,16 @@ const ZonosBannerStyle0 = zonosBannerCss;
9
9
  const ZonosBanner = class {
10
10
  constructor(hostRef) {
11
11
  registerInstance(this, hostRef);
12
+ /**
13
+ * Whether or not the button has content
14
+ */
15
+ this.hasContent = false;
12
16
  /**
13
17
  * Detect if the button has an content
14
18
  */
15
19
  this.handleSlotChange = () => {
16
20
  this.hasContent = true;
17
21
  };
18
- this.bannerTitle = undefined;
19
- this.intent = undefined;
20
- this.hasContent = false;
21
22
  }
22
23
  render() {
23
24
  const renderContent = ({ color }) => {
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, H as Host, d as getElement } from './index-a457c60c.js';
2
- import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
1
+ import { r as registerInstance, h, H as Host, d as getElement } from './index-5ea9f81d.js';
2
+ import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
3
3
  import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-2f6955b1.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
- import { g as getBorderRadius } from './getBorderRadius-78b28b4d.js';
5
+ import { g as getBorderRadius } from './getBorderRadius-b18c924f.js';
6
6
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
7
- import { i as isDarkColor } from './isDarkColor-31dd7dff.js';
7
+ import { i as isDarkColor } from './isDarkColor-d8bb8659.js';
8
8
  import { s as styles } from './styles-6fc2fad9.js';
9
9
  import './VarianceTest-fef2d958.js';
10
10
 
@@ -37,6 +37,75 @@ const ZonosButton = class {
37
37
  * Inherited attributes from the host element
38
38
  */
39
39
  this.inheritedAttributes = {};
40
+ /**
41
+ * Whether or not the button is disabled
42
+ * @note Prop should not conflict name with native html attribute if the prop is also affected by another prop.
43
+ * The issue is the component has internal disabled @prop(). @prop decorator is to watch the update of the attribute of the component in the dom.
44
+ * And `disabled` prop is not an only factor to determine the component is disabled. isLoading @prop() also affect that.
45
+ * <Host> is also referred to a component itself, if disabled prop is true, the `zonos-button` will have disabled attribute.
46
+ * So let's say when the loading state is true, and the component consume the zonos-button doesn't pass the disabled prop down.
47
+ * It accidentally turns the disabled prop on even thought the disabled state is not changed from the outside.
48
+ */
49
+ this.isDisabled = false;
50
+ /**
51
+ * The icon element to display
52
+ * @default null
53
+ */
54
+ this.icon = null;
55
+ /**
56
+ * Whether or not the icon is on the right
57
+ * @default false
58
+ */
59
+ this.iconRight = false;
60
+ /**
61
+ * The size of the button
62
+ * @default 'sm'
63
+ */
64
+ this.size = 'sm';
65
+ /**
66
+ * The variance of the button
67
+ * @note If the button `variant` is set to 'standard', backgroundColor will be disregarded
68
+ * @default standard
69
+ */
70
+ this.variant = 'standard';
71
+ /**
72
+ * Whether or not the button has a background
73
+ * @default false
74
+ */
75
+ this.noBackground = false;
76
+ /**
77
+ * Whether or not the button has a box shadow
78
+ */
79
+ this.withBoxShadow = false;
80
+ /**
81
+ * Whether or not the button has a left padding
82
+ */
83
+ this.noPaddingLeft = false;
84
+ /**
85
+ * Whether or not the button has a right padding
86
+ */
87
+ this.noPaddingRight = false;
88
+ /**
89
+ * Whether or not the button is loading
90
+ */
91
+ this.loading = false;
92
+ /**
93
+ * The content alignment within the button
94
+ * @default 'center'
95
+ */
96
+ this.justifyContent = 'center';
97
+ /**
98
+ * Whether or not the button text color is bold
99
+ */
100
+ this.bold = false;
101
+ /**
102
+ * Whether or not the button has an icon
103
+ */
104
+ this.hasIcon = !!this.icon;
105
+ /**
106
+ * Whether or not the button has content
107
+ */
108
+ this.hasContent = false;
40
109
  /**
41
110
  * Detect if the button has an content
42
111
  */
@@ -107,24 +176,6 @@ const ZonosButton = class {
107
176
  }
108
177
  }
109
178
  };
110
- this.buttonColor = undefined;
111
- this.backgroundColor = undefined;
112
- this.borderStyle = undefined;
113
- this.isDisabled = false;
114
- this.icon = null;
115
- this.iconRight = false;
116
- this.size = 'sm';
117
- this.variant = 'standard';
118
- this.noBackground = false;
119
- this.withBoxShadow = false;
120
- this.noPaddingLeft = false;
121
- this.noPaddingRight = false;
122
- this.loading = false;
123
- this.justifyContent = 'center';
124
- this.bold = false;
125
- this.theme = undefined;
126
- this.hasIcon = !!this.icon;
127
- this.hasContent = false;
128
179
  }
129
180
  /**
130
181
  * Detect if the icon changes and update the state accordingly
@@ -193,9 +244,20 @@ const ZonosIconStyle0 = zonosIconCss;
193
244
  const ZonosIcon = class {
194
245
  constructor(hostRef) {
195
246
  registerInstance(this, hostRef);
247
+ /**
248
+ * Determines if the icon should be auto height instead of square
249
+ * @default false
250
+ */
196
251
  this.autoHeight = false;
252
+ /**
253
+ * Color of the SVG
254
+ * @default 'gray-1000'
255
+ */
197
256
  this.iconColor = 'gray-1000';
198
- this.content = undefined;
257
+ /**
258
+ * The size of the icon
259
+ * @default 24
260
+ */
199
261
  this.size = 24;
200
262
  }
201
263
  render() {
@@ -223,8 +285,11 @@ const ZonosSpinnerStyle0 = zonosSpinnerCss;
223
285
  const ZonosSpinner = class {
224
286
  constructor(hostRef) {
225
287
  registerInstance(this, hostRef);
288
+ /**
289
+ * The size of the spinner
290
+ * @default 32
291
+ */
226
292
  this.size = 32;
227
- this.spinnerColor = undefined;
228
293
  }
229
294
  render() {
230
295
  if (!this.el.shadowRoot) {
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, h, H as Host } from './index-a457c60c.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
1
+ import { r as registerInstance, h, H as Host } from './index-5ea9f81d.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-78b28b4d.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-b18c924f.js';
5
5
  import './VarianceTest-fef2d958.js';
6
6
 
7
7
  const zonosCardCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
@@ -10,13 +10,14 @@ const ZonosCardStyle0 = zonosCardCss;
10
10
  const ZonosCard = class {
11
11
  constructor(hostRef) {
12
12
  registerInstance(this, hostRef);
13
- this.actions = undefined;
14
- this.backgroundColor = undefined;
13
+ /**
14
+ * The border radius of the card
15
+ * @default 6
16
+ */
15
17
  this.borderRadius = 6;
16
- this.footerActions = undefined;
17
- this.footerContent = undefined;
18
- this.footerHeight = undefined;
19
- this.label = undefined;
18
+ /**
19
+ * The spacing to apply between elements in the card
20
+ */
20
21
  this.spacing = '24px';
21
22
  }
22
23
  render() {
@@ -1,14 +1,14 @@
1
- import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-a457c60c.js';
2
- import { e as cartStore, A as cartStoreHasOneEligibleItem, B as stripeStoreApplyPromoCode, C as stripeStoreRemovePromoCode, d as stripeStore, y as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, D as stripeStoreResetPromoCode, E as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, F as stripeStoreTranslateAddressToLatin, G as cartStoreUpdateSelectedShippingOption, H as cartStoreGetShippingTransitInfo, I as sortServiceLevelOptionsByAmount, J as cartStoreGetMethod } from './cart-db61eb95.js';
3
- import { d as currencyFormat, t as translate, s as storageStore, l as localizationStore } from './localization-bf7224aa.js';
1
+ import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-5ea9f81d.js';
2
+ import { e as cartStore, A as cartStoreHasOneEligibleItem, B as stripeStoreApplyPromoCode, C as stripeStoreRemovePromoCode, c as stripeStore, y as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, D as stripeStoreResetPromoCode, E as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, F as stripeStoreTranslateAddressToLatin, G as cartStoreUpdateSelectedShippingOption, H as cartStoreGetShippingTransitInfo, I as sortServiceLevelOptionsByAmount, J as cartStoreGetMethod } from './cart-5835676d.js';
3
+ import { d as currencyFormat, t as translate, s as storageStore, l as localizationStore } from './localization-4c7f64e8.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
- import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-2e0ffb07.js';
6
- import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
5
+ import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-b4f106be.js';
6
+ import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
7
7
  import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, g as getIsTestMode, d as allLogs, i as isCheckoutMobile, b as logError, a as getIsStagingMode } from './handleFetch-621e45bc.js';
8
8
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
9
- import { g as getBorderRadius } from './getBorderRadius-78b28b4d.js';
9
+ import { g as getBorderRadius } from './getBorderRadius-b18c924f.js';
10
10
  import { l as languages } from './ILanguage-cd6acb72.js';
11
- import { i as isDarkColor, t as tinycolor } from './isDarkColor-31dd7dff.js';
11
+ import { i as isDarkColor, t as tinycolor } from './isDarkColor-d8bb8659.js';
12
12
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
13
13
  import { s as shouldRenderTaxIdInput, c as containsNonLatinChars } from './shouldRenderTaxIdInput-8bc112bb.js';
14
14
  import { e as euCountryCodes } from './TaxId-50d72254.js';
@@ -1108,9 +1108,15 @@ const ZonosCartRestrictedItemsStyle0 = zonosCartRestrictedItemsCss;
1108
1108
  const ZonosCartRestrictedItems = class {
1109
1109
  constructor(hostRef) {
1110
1110
  registerInstance(this, hostRef);
1111
+ /**
1112
+ * This is to hide the section when the parent collapse on mobile
1113
+ */
1111
1114
  this.hide = false;
1112
1115
  this.errorImages = [];
1113
1116
  this.internalCollapsed = true;
1117
+ /**
1118
+ * Should do something after the component is loaded
1119
+ */
1114
1120
  this.firstRender = true;
1115
1121
  }
1116
1122
  componentDidLoad() {
@@ -1167,8 +1173,9 @@ const ZonosCartSubtotalStyle0 = zonosCartSubtotalCss;
1167
1173
  const ZonosCartSubtotal = class {
1168
1174
  constructor(hostRef) {
1169
1175
  registerInstance(this, hostRef);
1170
- this.submitBtnType = undefined;
1171
- this.submitBtnColor = undefined;
1176
+ /**
1177
+ * Loading state for apply promo code button
1178
+ */
1172
1179
  this.loading = false;
1173
1180
  }
1174
1181
  render() {
@@ -1276,6 +1283,20 @@ const ZonosCheckoutFinish = class {
1276
1283
  constructor(hostRef) {
1277
1284
  registerInstance(this, hostRef);
1278
1285
  this.closeClick = createEvent(this, "closeClick", 7);
1286
+ /**
1287
+ * The border radius style of the dialog
1288
+ */
1289
+ this.borderRadius = 'ROUNDED';
1290
+ this.isLoading = true;
1291
+ this.notificationType = 'success';
1292
+ this.notificationTitle = '';
1293
+ this.notificationMessages = [];
1294
+ this.notificationActionText = translate('Keep shopping');
1295
+ this.order = null;
1296
+ /**
1297
+ * Is waiting to redirect to a different page
1298
+ */
1299
+ this.isWaitingToRedirect = true;
1279
1300
  this.pullOrder = async () => {
1280
1301
  var _a, _b;
1281
1302
  const checkoutSessionId = storageStore.checkoutSessionId;
@@ -1606,16 +1627,6 @@ const ZonosCheckoutFinish = class {
1606
1627
  };
1607
1628
  localStorage.setItem('zonos--placed-order-info', JSON.stringify(placedOrderTime));
1608
1629
  };
1609
- this.borderRadius = 'ROUNDED';
1610
- this.storybookForceStatus = undefined;
1611
- this.overrideNotification = undefined;
1612
- this.isLoading = true;
1613
- this.notificationType = 'success';
1614
- this.notificationTitle = '';
1615
- this.notificationMessages = [];
1616
- this.notificationActionText = translate('Keep shopping');
1617
- this.order = null;
1618
- this.isWaitingToRedirect = true;
1619
1630
  }
1620
1631
  componentDidLoad() {
1621
1632
  // Reset local storage for placed order info
@@ -1687,8 +1698,10 @@ const ZonosCheckoutFooterStyle0 = zonosCheckoutFooterCss;
1687
1698
  const ZonosCheckoutFooter = class {
1688
1699
  constructor(hostRef) {
1689
1700
  registerInstance(this, hostRef);
1701
+ /**
1702
+ * Override mobile mode
1703
+ */
1690
1704
  this.mobile = false;
1691
- this.dataTheme = undefined;
1692
1705
  this.showLanguageDialog = false;
1693
1706
  this.isMobile = false;
1694
1707
  }
@@ -1774,6 +1787,31 @@ const ZonosCheckoutPayment = class {
1774
1787
  this.continueClicked = createEvent(this, "continueClicked", 7);
1775
1788
  this.paypalSessionFailed = createEvent(this, "paypalSessionFailed", 7);
1776
1789
  this.paypalSessionDone = createEvent(this, "paypalSessionDone", 7);
1790
+ /**
1791
+ * Whether or not the continue button is loading
1792
+ */
1793
+ this.continueLoading = false;
1794
+ /**
1795
+ * Whether or not the checkout is in mobile mode
1796
+ */
1797
+ this.isMobile = false;
1798
+ /**
1799
+ * Show error banner when the form is not complete, and user clicks on `Submit` button
1800
+ * @default false
1801
+ */
1802
+ this.showErrorBanner = false;
1803
+ /**
1804
+ * Show payment error banner when the payment is failed
1805
+ */
1806
+ this.hasStripePaymentError = false;
1807
+ /**
1808
+ * Error message when the staging order creation is failed
1809
+ */
1810
+ this.stagingOrderCreateErrorMessage = '';
1811
+ /**
1812
+ * Internal state to handle continue loading
1813
+ */
1814
+ this.internalContinueLoading = this.continueLoading;
1777
1815
  this.handleValidate = () => {
1778
1816
  var _a;
1779
1817
  return !!((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.complete);
@@ -1840,15 +1878,6 @@ const ZonosCheckoutPayment = class {
1840
1878
  // continue to the next step
1841
1879
  cartStoreNextStep();
1842
1880
  };
1843
- this.submitBtnType = undefined;
1844
- this.continueLoading = false;
1845
- this.submitBtnColor = undefined;
1846
- this.isMobile = false;
1847
- this.overridePrimaryColor = undefined;
1848
- this.showErrorBanner = false;
1849
- this.hasStripePaymentError = false;
1850
- this.stagingOrderCreateErrorMessage = '';
1851
- this.internalContinueLoading = this.continueLoading;
1852
1881
  }
1853
1882
  continueLoadingWatcher() {
1854
1883
  this.internalContinueLoading = this.continueLoading;
@@ -1984,6 +2013,14 @@ const ZonosCheckoutProgressTabsStyle0 = zonosCheckoutProgressTabsCss;
1984
2013
  const ZonosCheckoutProgressTabs = class {
1985
2014
  constructor(hostRef) {
1986
2015
  registerInstance(this, hostRef);
2016
+ /**
2017
+ * Color of the tab progress bar and label, override the secondary color of the appearance settings
2018
+ */
2019
+ this.tabColor = null;
2020
+ /**
2021
+ * Background color of the parent that's wrapped around the tab progress bar
2022
+ */
2023
+ this.backgroundColor = null;
1987
2024
  /**
1988
2025
  * The total number of steps that's done
1989
2026
  */
@@ -2007,8 +2044,6 @@ const ZonosCheckoutProgressTabs = class {
2007
2044
  .slice(0, currentTab.index - 1)
2008
2045
  .every(tab => tab.isDone);
2009
2046
  };
2010
- this.tabColor = null;
2011
- this.backgroundColor = null;
2012
2047
  }
2013
2048
  /**
2014
2049
  * Set the tab items data. This is to be used in storybook
@@ -2085,22 +2120,47 @@ const ZonosConfirmDialog = class {
2085
2120
  registerInstance(this, hostRef);
2086
2121
  this.confirmClicked = createEvent(this, "confirmClicked", 7);
2087
2122
  this.cancelClicked = createEvent(this, "cancelClicked", 7);
2088
- this.clickOutsideDialogHandler = (event) => {
2089
- if (event.target === event.currentTarget && !this.noClickOutside) {
2090
- this.closeDialogHandler();
2091
- }
2092
- };
2123
+ /**
2124
+ * Dialog title text
2125
+ * @default "Are you sure?"
2126
+ */
2093
2127
  this.dialogTitle = translate('Are you sure?');
2128
+ /**
2129
+ * Dialog intent (for icon and button color)
2130
+ * @default "info"
2131
+ */
2094
2132
  this.dialogIntent = 'info';
2133
+ /**
2134
+ * Dialog subtitle text
2135
+ * @default null No subtitle
2136
+ */
2095
2137
  this.dialogSubtitle = null;
2096
- this.submitBtnColor = undefined;
2097
- this.dialogConfirmBtnText = undefined;
2138
+ /**
2139
+ * Dialog width
2140
+ * @default 350 px
2141
+ */
2098
2142
  this.dialogWidth = 350;
2099
- this.dialogCancelBtnText = undefined;
2143
+ /**
2144
+ * Type of dialog
2145
+ * - "alert" - Only confirm button
2146
+ * - "confirm" - Both Confirm and cancel buttons
2147
+ * @default "confirm"
2148
+ */
2100
2149
  this.dialogType = 'confirm';
2150
+ /**
2151
+ * Whether or not the dialog is open
2152
+ */
2101
2153
  this.isMobile = false;
2102
- this.dialogOpen = undefined;
2154
+ /**
2155
+ * Whether or not to close the dialog when clicking outside of it
2156
+ * @default false
2157
+ */
2103
2158
  this.noClickOutside = false;
2159
+ this.clickOutsideDialogHandler = (event) => {
2160
+ if (event.target === event.currentTarget && !this.noClickOutside) {
2161
+ this.closeDialogHandler();
2162
+ }
2163
+ };
2104
2164
  }
2105
2165
  handleKeyDown(ev) {
2106
2166
  if (ev.key === 'Escape') {
@@ -2284,6 +2344,60 @@ const ZonosCustomerInfo = class {
2284
2344
  registerInstance(this, hostRef);
2285
2345
  this.continueClicked = createEvent(this, "continueClicked", 7);
2286
2346
  this.testContinueClicked = createEvent(this, "testContinueClicked", 7);
2347
+ /**
2348
+ * Whether or not the continue button is loading
2349
+ */
2350
+ this.continueLoading = false;
2351
+ /**
2352
+ * Whether or not the dialog is open
2353
+ */
2354
+ this.isMobile = false;
2355
+ /**
2356
+ * Default address to use for the checkout (preview mode)
2357
+ */
2358
+ this.defaultAddress = [];
2359
+ /**
2360
+ * Whether to override custom address form to be always visible
2361
+ */
2362
+ this.shouldUseCustomAddressFormOverride = false;
2363
+ /**
2364
+ * Due to Stripe's validation difficulties, we need to show a banner when users hasn't filled out the form correctly but clicked continue
2365
+ */
2366
+ this.showErrorBanner = false;
2367
+ this.shippingCountry = '';
2368
+ this.isCheckingForRestrictedItems = false;
2369
+ /**
2370
+ * Whether or not the address is being validated
2371
+ */
2372
+ this.isValidatingAddress = false;
2373
+ /**
2374
+ * Whether or not the tax id input is invalid
2375
+ */
2376
+ this.taxIdErrorMessage = '';
2377
+ /**
2378
+ * Whether or not the shipping address contains invalid characters
2379
+ */
2380
+ this.invalidShippingCharacterList = null;
2381
+ /**
2382
+ * Whether or not the shipping address contains invalid characters
2383
+ */
2384
+ this.invalidBillingCharacterList = null;
2385
+ /**
2386
+ * Handler for the dialog close button
2387
+ */
2388
+ this.openAddressValidationDialog = false;
2389
+ /**
2390
+ * Whether or not the custom address form is enabled
2391
+ */
2392
+ this.shouldEnabledCustomAddress = false;
2393
+ /**
2394
+ * Handler for the email error state
2395
+ */
2396
+ this.isEmailError = false;
2397
+ /**
2398
+ * Whether or not the custom address form is used
2399
+ */
2400
+ this.recordedFormTypeUsed = false;
2287
2401
  /**
2288
2402
  * Handler for invalid characters in the address
2289
2403
  */
@@ -2514,23 +2628,6 @@ const ZonosCustomerInfo = class {
2514
2628
  // Render Stripe address component by default
2515
2629
  return (h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
2516
2630
  };
2517
- this.continueLoading = false;
2518
- this.submitBtnType = undefined;
2519
- this.submitBtnColor = undefined;
2520
- this.isMobile = false;
2521
- this.defaultAddress = [];
2522
- this.shouldUseCustomAddressFormOverride = false;
2523
- this.showErrorBanner = false;
2524
- this.shippingCountry = '';
2525
- this.isCheckingForRestrictedItems = false;
2526
- this.isValidatingAddress = false;
2527
- this.taxIdErrorMessage = '';
2528
- this.invalidShippingCharacterList = null;
2529
- this.invalidBillingCharacterList = null;
2530
- this.openAddressValidationDialog = false;
2531
- this.shouldEnabledCustomAddress = false;
2532
- this.isEmailError = false;
2533
- this.recordedFormTypeUsed = false;
2534
2631
  }
2535
2632
  watchShowErrorBanner() {
2536
2633
  // start validate on typing after error banner is shown, and hide it if the form is complete
@@ -2622,8 +2719,14 @@ const ZonosLoadingOverlayStyle0 = zonosLoadingOverlayCss;
2622
2719
  const ZonosLoadingOverlay = class {
2623
2720
  constructor(hostRef) {
2624
2721
  registerInstance(this, hostRef);
2722
+ /**
2723
+ * Whether or not the overlay is open
2724
+ * @default false
2725
+ */
2625
2726
  this.open = false;
2626
- this.spinnerColor = undefined;
2727
+ /**
2728
+ * Spinner size (optional, default 40)
2729
+ */
2627
2730
  this.size = 40;
2628
2731
  }
2629
2732
  render() {
@@ -2638,14 +2741,14 @@ const ZonosRestStateStyle0 = zonosRestStateCss;
2638
2741
  const ZonosRestState = class {
2639
2742
  constructor(hostRef) {
2640
2743
  registerInstance(this, hostRef);
2744
+ /**
2745
+ * Whether or not the image failed to load
2746
+ */
2747
+ this.isErrorImageLoad = false;
2641
2748
  this.getImageRestState = () => {
2642
2749
  const imageSrc = getAssetPath(`./assets/${this.restStateType}.png`);
2643
2750
  return imageSrc;
2644
2751
  };
2645
- this.restStateSubtitle = undefined;
2646
- this.restStateTitle = undefined;
2647
- this.restStateType = undefined;
2648
- this.isErrorImageLoad = false;
2649
2752
  }
2650
2753
  render() {
2651
2754
  const imageUrl = this.getImageRestState();
@@ -2669,7 +2772,15 @@ const ZonosReviewStyle0 = zonosReviewCss;
2669
2772
  const ZonosReview = class {
2670
2773
  constructor(hostRef) {
2671
2774
  registerInstance(this, hostRef);
2775
+ /**
2776
+ * Whether or not the component is being rendered with mobile styles
2777
+ */
2672
2778
  this.mobile = false;
2779
+ /**
2780
+ * Whether or not to show the collapse icon
2781
+ * This is controled from the collapsed state of the zonos-collapse component
2782
+ * to show the collapse icon
2783
+ */
2673
2784
  this.collapsed = false;
2674
2785
  this.isMobile = false;
2675
2786
  }
@@ -2742,6 +2853,26 @@ const ZonosShipping = class {
2742
2853
  constructor(hostRef) {
2743
2854
  registerInstance(this, hostRef);
2744
2855
  this.continueClicked = createEvent(this, "continueClicked", 7);
2856
+ /**
2857
+ * Whether or not the continue button is loading
2858
+ */
2859
+ this.continueLoading = false;
2860
+ this.selectedShippingMethod = null;
2861
+ this.collapsedDAPOptions = true;
2862
+ /**
2863
+ * Whether or not the user is selecting a shipping method
2864
+ */
2865
+ this.isSelecting = false;
2866
+ /**
2867
+ * Show error banner when the form is not complete, and user clicks on `Submit` button
2868
+ * @default false
2869
+ */
2870
+ this.showErrorBanner = false;
2871
+ this.serviceLevelsDDP = [];
2872
+ this.serviceLevelsDAP = [];
2873
+ this.serviceLevelsOther = [];
2874
+ this.serviceLevelsAll = [];
2875
+ this.displayBaseCurrency = false;
2745
2876
  this.handleRadioSelected = async (e) => {
2746
2877
  var _a;
2747
2878
  this.selectedShippingMethod = e.detail;
@@ -2880,18 +3011,6 @@ const ZonosShipping = class {
2880
3011
  });
2881
3012
  }
2882
3013
  };
2883
- this.continueLoading = false;
2884
- this.submitBtnColor = undefined;
2885
- this.submitBtnType = undefined;
2886
- this.selectedShippingMethod = null;
2887
- this.collapsedDAPOptions = true;
2888
- this.isSelecting = false;
2889
- this.showErrorBanner = false;
2890
- this.serviceLevelsDDP = [];
2891
- this.serviceLevelsDAP = [];
2892
- this.serviceLevelsOther = [];
2893
- this.serviceLevelsAll = [];
2894
- this.displayBaseCurrency = false;
2895
3014
  }
2896
3015
  componentWillLoad() {
2897
3016
  this.preselectFirstShippingMethod();