@zonos/elements 1.3.183 → 1.3.185

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 (346) hide show
  1. package/dist/cjs/{cart-3d0c0f0b.js → cart-f9df3ac8.js} +3209 -10
  2. package/dist/cjs/debounce-3eaa4f7e.js +357 -0
  3. package/dist/cjs/{getBorderRadius-94ef609c.js → getBorderRadius-87f3b69c.js} +1 -1
  4. package/dist/cjs/getGenericSettingsOverride-c0ca32b9.js +104 -0
  5. package/dist/cjs/helpers-5bdbb68c.js +100 -0
  6. package/dist/cjs/{index-2f90486e.js → index-0993f42d.js} +15 -3
  7. package/dist/cjs/index.cjs.js +41 -9
  8. package/dist/cjs/{isDarkColor-ec4a4e7d.js → isDarkColor-d0c67c3d.js} +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/{paypal-9eaa9196.js → paypal-5e73c8f5.js} +3 -3
  11. package/dist/cjs/zonos-address_11.cjs.entry.js +7917 -0
  12. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +18 -7
  15. package/dist/cjs/zonos-card.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +113 -21
  17. package/dist/cjs/zonos-checkout.cjs.entry.js +24 -10
  18. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-controller.cjs.entry.js +233 -8
  21. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  22. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  23. package/dist/cjs/zonos-elements.cjs.js +2 -2
  24. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +8 -8
  25. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
  26. package/dist/cjs/zonos-hello.cjs.entry.js +7 -358
  27. package/dist/cjs/zonos-input.cjs.entry.js +3 -3
  28. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  29. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  31. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/zonos-stripe-input.cjs.entry.js +31 -12
  33. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-toggle.cjs.entry.js +4 -4
  35. package/dist/cjs/zonos-tooltip.cjs.entry.js +3 -3
  36. package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
  37. package/dist/cjs/{zonosStore-3812b318.js → zonosStore-adc42868.js} +2 -1
  38. package/dist/collection/collection-manifest.json +4 -0
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +3 -3
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +11 -0
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +37 -3
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -1
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +162 -17
  44. package/dist/collection/components/common/zonos-button/zonos-button.js +14 -3
  45. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +5 -3
  46. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +2 -2
  47. package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +0 -6
  48. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +2 -2
  49. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +2 -3
  50. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +105 -8
  51. package/dist/collection/components/common/zonos-stripe-phone-input/assets/ChevronDownIcon.svg +1 -0
  52. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.css +222 -0
  53. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +481 -0
  54. package/dist/collection/components/common/zonos-stripe-select/assets/ChevronDownIcon.svg +1 -0
  55. package/dist/collection/components/common/zonos-stripe-select/assets/RemoveLineIcon.svg +1 -0
  56. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.css +178 -0
  57. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +455 -0
  58. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  59. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  60. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  61. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  62. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  63. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  64. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  65. package/dist/collection/components/main/zonos-controller.js +24 -1
  66. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  67. package/dist/collection/components/store/checkout/stripe.js +24 -7
  68. package/dist/collection/components/store/translationStore/strings.arabic.js +159 -0
  69. package/dist/collection/components/store/translationStore/strings.base.js +161 -0
  70. package/dist/collection/components/store/translationStore/strings.chinese.js +159 -0
  71. package/dist/collection/components/store/translationStore/strings.danish.js +159 -0
  72. package/dist/collection/components/store/translationStore/strings.dutch.js +159 -0
  73. package/dist/collection/components/store/translationStore/strings.french.js +159 -0
  74. package/dist/collection/components/store/translationStore/strings.german.js +159 -0
  75. package/dist/collection/components/store/translationStore/strings.hebrew.js +159 -0
  76. package/dist/collection/components/store/translationStore/strings.indonesian.js +159 -0
  77. package/dist/collection/components/store/translationStore/strings.italian.js +159 -0
  78. package/dist/collection/components/store/translationStore/strings.japanese.js +159 -0
  79. package/dist/collection/components/store/translationStore/strings.korean.js +159 -0
  80. package/dist/collection/components/store/translationStore/strings.norwegian.js +159 -0
  81. package/dist/collection/components/store/translationStore/strings.polish.js +159 -0
  82. package/dist/collection/components/store/translationStore/strings.portuguese.js +159 -0
  83. package/dist/collection/components/store/translationStore/strings.russian.js +159 -0
  84. package/dist/collection/components/store/translationStore/strings.spanish.js +159 -0
  85. package/dist/collection/components/store/translationStore/strings.swedish.js +159 -0
  86. package/dist/collection/components/store/translationStore/strings.turkish.js +159 -0
  87. package/dist/collection/components/store/translationStore/strings.vietnamese.js +159 -0
  88. package/dist/collection/components/store/zonosStore.js +1 -0
  89. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  90. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/assets/RemoveIcon.svg +1 -0
  91. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.css +86 -0
  92. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +192 -0
  93. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.css +67 -0
  94. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +978 -0
  95. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  96. package/dist/collection/components/utils/api/getGenericSettingsOverride.js +10 -0
  97. package/dist/collection/components/utils/api/getZonosSettings.js +7 -1
  98. package/dist/collection/components/utils/checkout/form/helpers.js +95 -0
  99. package/dist/collection/components/utils/checkout/form/isValidZip.js +18 -0
  100. package/dist/collection/components/utils/checkout/initCheckout.js +8 -1
  101. package/dist/collection/components/utils/iframe/CheckoutAddressService.js +193 -0
  102. package/dist/collection/components/utils/iframe/IframeHelpers.js +86 -0
  103. package/dist/collection/components/utils/mergeAddress.js +5 -0
  104. package/dist/collection/constants/phone-formats.js +658 -0
  105. package/dist/collection/scripts/_getCartInfoById.js +7 -1
  106. package/dist/collection/scripts/_zonosBase.js +29 -1
  107. package/dist/collection/types/CountryFields.js +1 -0
  108. package/dist/collection/types/checkout/form/CustomAddressErrors.js +1 -0
  109. package/dist/collection/types/generated/graphql.frontend.types.js +11 -0
  110. package/dist/collection/types/generated/graphql.internal.types.js +129 -0
  111. package/dist/collection/types/index.js +0 -1
  112. package/dist/esm/{cart-3fb04f1f.js → cart-4725a63b.js} +3209 -10
  113. package/dist/esm/debounce-3cf0793c.js +355 -0
  114. package/dist/esm/{getBorderRadius-ada3ccad.js → getBorderRadius-a9a48f79.js} +1 -1
  115. package/dist/esm/getGenericSettingsOverride-0bc3e118.js +99 -0
  116. package/dist/esm/helpers-2f6955b1.js +97 -0
  117. package/dist/esm/{index-d82f06f2.js → index-a457c60c.js} +15 -3
  118. package/dist/esm/index.js +41 -9
  119. package/dist/esm/{isDarkColor-446fccb7.js → isDarkColor-62cbddb5.js} +1 -1
  120. package/dist/esm/loader.js +3 -3
  121. package/dist/esm/{paypal-1f2e863c.js → paypal-a09943f4.js} +3 -3
  122. package/dist/esm/zonos-address_11.entry.js +7903 -0
  123. package/dist/esm/zonos-badge.entry.js +2 -2
  124. package/dist/esm/zonos-banner.entry.js +2 -2
  125. package/dist/esm/zonos-button_3.entry.js +18 -7
  126. package/dist/esm/zonos-card.entry.js +3 -3
  127. package/dist/esm/zonos-cart-items_13.entry.js +113 -21
  128. package/dist/esm/zonos-checkout.entry.js +24 -10
  129. package/dist/esm/zonos-collapse.entry.js +2 -2
  130. package/dist/esm/zonos-component.entry.js +2 -2
  131. package/dist/esm/zonos-controller.entry.js +233 -8
  132. package/dist/esm/zonos-country-flag.entry.js +5 -5
  133. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  134. package/dist/esm/zonos-elements.js +3 -3
  135. package/dist/esm/zonos-empty-state-payment_4.entry.js +8 -8
  136. package/dist/esm/zonos-hello-dialog.entry.js +9 -9
  137. package/dist/esm/zonos-hello.entry.js +6 -357
  138. package/dist/esm/zonos-input.entry.js +3 -3
  139. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  140. package/dist/esm/zonos-link.entry.js +1 -1
  141. package/dist/esm/zonos-logo.entry.js +2 -2
  142. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  143. package/dist/esm/zonos-stripe-input.entry.js +31 -12
  144. package/dist/esm/zonos-text.entry.js +2 -2
  145. package/dist/esm/zonos-toggle.entry.js +4 -4
  146. package/dist/esm/zonos-tooltip.entry.js +3 -3
  147. package/dist/esm/zonos-v-stack.entry.js +4 -4
  148. package/dist/esm/{zonosStore-d3c5a0a5.js → zonosStore-1ce34e04.js} +2 -1
  149. package/dist/esm-es5/cart-4725a63b.js +1 -0
  150. package/dist/esm-es5/debounce-3cf0793c.js +1 -0
  151. package/dist/esm-es5/{getBorderRadius-ada3ccad.js → getBorderRadius-a9a48f79.js} +1 -1
  152. package/dist/esm-es5/getGenericSettingsOverride-0bc3e118.js +1 -0
  153. package/dist/esm-es5/helpers-2f6955b1.js +1 -0
  154. package/dist/esm-es5/index-a457c60c.js +2 -0
  155. package/dist/esm-es5/index.js +1 -1
  156. package/dist/esm-es5/{isDarkColor-446fccb7.js → isDarkColor-62cbddb5.js} +1 -1
  157. package/dist/esm-es5/loader.js +1 -1
  158. package/dist/esm-es5/{paypal-1f2e863c.js → paypal-a09943f4.js} +1 -1
  159. package/dist/esm-es5/zonos-address_11.entry.js +1 -0
  160. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  161. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  162. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  163. package/dist/esm-es5/zonos-card.entry.js +1 -1
  164. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  165. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  166. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  167. package/dist/esm-es5/zonos-component.entry.js +1 -1
  168. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  169. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  170. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  171. package/dist/esm-es5/zonos-elements.js +1 -1
  172. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  173. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  174. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  175. package/dist/esm-es5/zonos-input.entry.js +1 -1
  176. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  177. package/dist/esm-es5/zonos-link.entry.js +1 -1
  178. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  179. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  180. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  181. package/dist/esm-es5/zonos-text.entry.js +1 -1
  182. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  183. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  184. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  185. package/dist/esm-es5/{zonosStore-d3c5a0a5.js → zonosStore-1ce34e04.js} +1 -1
  186. package/dist/scripts/index.d.ts +3905 -3284
  187. package/dist/scripts/index.js +1 -1
  188. package/dist/scripts/loadZonos.js +1 -1
  189. package/dist/scripts/zonos.js +1 -1
  190. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
  191. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +28 -1
  192. package/dist/types/components/common/zonos-button/zonos-button.d.ts +4 -0
  193. package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -0
  194. package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +22 -0
  195. package/dist/types/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.d.ts +88 -0
  196. package/dist/types/components/common/zonos-stripe-select/zonos-stripe-select.d.ts +86 -0
  197. package/dist/types/components/main/zonos-controller.d.ts +1 -0
  198. package/dist/types/components/store/checkout/stripe.d.ts +9 -0
  199. package/dist/types/components/store/translationStore/strings.arabic.d.ts +159 -0
  200. package/dist/types/components/store/translationStore/strings.base.d.ts +159 -0
  201. package/dist/types/components/store/translationStore/strings.chinese.d.ts +159 -0
  202. package/dist/types/components/store/translationStore/strings.danish.d.ts +159 -0
  203. package/dist/types/components/store/translationStore/strings.dutch.d.ts +159 -0
  204. package/dist/types/components/store/translationStore/strings.french.d.ts +159 -0
  205. package/dist/types/components/store/translationStore/strings.german.d.ts +159 -0
  206. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +159 -0
  207. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +159 -0
  208. package/dist/types/components/store/translationStore/strings.italian.d.ts +159 -0
  209. package/dist/types/components/store/translationStore/strings.japanese.d.ts +159 -0
  210. package/dist/types/components/store/translationStore/strings.korean.d.ts +159 -0
  211. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +159 -0
  212. package/dist/types/components/store/translationStore/strings.polish.d.ts +159 -0
  213. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +159 -0
  214. package/dist/types/components/store/translationStore/strings.russian.d.ts +159 -0
  215. package/dist/types/components/store/translationStore/strings.spanish.d.ts +159 -0
  216. package/dist/types/components/store/translationStore/strings.swedish.d.ts +159 -0
  217. package/dist/types/components/store/translationStore/strings.turkish.d.ts +159 -0
  218. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +159 -0
  219. package/dist/types/components/store/zonosStore.d.ts +6 -1
  220. package/dist/types/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.d.ts +38 -0
  221. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +150 -0
  222. package/dist/types/components/utils/api/getGenericSettingsOverride.d.ts +5 -0
  223. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  224. package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -2
  225. package/dist/types/components/utils/checkout/form/helpers.d.ts +19 -0
  226. package/dist/types/components/utils/checkout/form/isValidZip.d.ts +5 -0
  227. package/dist/types/components/utils/iframe/CheckoutAddressService.d.ts +38 -0
  228. package/dist/types/components/utils/iframe/IframeHelpers.d.ts +81 -0
  229. package/dist/types/components/utils/mergeAddress.d.ts +4 -0
  230. package/dist/types/components/utils/resetToSelectedTab.d.ts +1 -1
  231. package/dist/types/components.d.ts +472 -4
  232. package/dist/types/constants/phone-formats.d.ts +5 -0
  233. package/dist/types/environment.d.ts +1 -1
  234. package/dist/types/scripts/_zonosBase.d.ts +13 -1
  235. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +1 -0
  236. package/dist/types/types/CountryFields.d.ts +40 -0
  237. package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
  238. package/dist/types/types/checkout/form/CustomAddressErrors.d.ts +13 -0
  239. package/dist/types/types/generated/graphql.frontend.types.d.ts +166 -1
  240. package/dist/types/types/generated/graphql.frontend.types.ts +148 -1
  241. package/dist/types/types/generated/graphql.internal.types.d.ts +180 -8
  242. package/dist/types/types/generated/graphql.internal.types.ts +218 -8
  243. package/dist/types/types/global.d.ts +1 -0
  244. package/dist/types/types/index.d.ts +1 -1
  245. package/dist/types/types/utils/ZonosSettings.d.ts +17 -0
  246. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  247. package/dist/zonos-elements/index.esm.js +1 -1
  248. package/dist/zonos-elements/{p-4622cca6.entry.js → p-0104d3ba.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-7cb87ea7.system.entry.js → p-04303b56.system.entry.js} +1 -1
  250. package/dist/zonos-elements/p-06f798ee.system.js +1 -0
  251. package/dist/zonos-elements/{p-739014f8.system.entry.js → p-0fdd7034.system.entry.js} +1 -1
  252. package/dist/zonos-elements/p-15dd7ea4.system.entry.js +1 -0
  253. package/dist/zonos-elements/{p-a1cfbd0a.js → p-17299200.js} +1 -1
  254. package/dist/zonos-elements/{p-58f660d4.system.entry.js → p-1b29bc5f.system.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-fe2c27c4.entry.js → p-1e612c29.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-98aa88b1.js → p-2097fae5.js} +1 -1
  257. package/dist/zonos-elements/{p-81084be5.system.entry.js → p-240ee490.system.entry.js} +1 -1
  258. package/dist/zonos-elements/p-2416aaa1.system.entry.js +1 -0
  259. package/dist/zonos-elements/{p-cedf08f0.entry.js → p-313ef896.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-fa65b53d.entry.js → p-314fbfe1.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-5187ba8f.system.js → p-31e90130.system.js} +1 -1
  262. package/dist/zonos-elements/{p-4ca666ea.system.entry.js → p-341f40c2.system.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-d49c6a3e.system.entry.js → p-35f33601.system.entry.js} +1 -1
  264. package/dist/zonos-elements/p-4160bbc2.system.js +1 -0
  265. package/dist/zonos-elements/p-43633269.system.js +2 -0
  266. package/dist/zonos-elements/p-443b5db2.entry.js +1 -0
  267. package/dist/zonos-elements/p-46d3e378.system.entry.js +1 -0
  268. package/dist/zonos-elements/{p-3d221556.system.entry.js → p-488ad646.system.entry.js} +1 -1
  269. package/dist/zonos-elements/p-53ffdb91.js +1 -0
  270. package/dist/zonos-elements/p-56b56caa.system.entry.js +1 -0
  271. package/dist/zonos-elements/p-5e15616f.entry.js +1 -0
  272. package/dist/zonos-elements/{p-3eac4b10.entry.js → p-5f896e9a.entry.js} +1 -1
  273. package/dist/zonos-elements/{p-e8c70c7d.system.entry.js → p-609c32a3.system.entry.js} +1 -1
  274. package/dist/zonos-elements/p-64ea232c.system.entry.js +1 -0
  275. package/dist/zonos-elements/{p-f378b4d3.system.entry.js → p-678ccc3f.system.entry.js} +1 -1
  276. package/dist/zonos-elements/{p-8048932d.entry.js → p-67b904c2.entry.js} +1 -1
  277. package/dist/zonos-elements/p-6b40da70.system.js +1 -0
  278. package/dist/zonos-elements/p-70d4d436.entry.js +1 -0
  279. package/dist/zonos-elements/{p-64dbc282.entry.js → p-818d6f17.entry.js} +1 -1
  280. package/dist/zonos-elements/{p-b5b9aa6c.entry.js → p-81ee1683.entry.js} +1 -1
  281. package/dist/zonos-elements/{p-236f32c8.system.entry.js → p-89fcd305.system.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-c4fa8524.system.entry.js → p-94a80d93.system.entry.js} +1 -1
  283. package/dist/zonos-elements/p-961620ae.entry.js +1 -0
  284. package/dist/zonos-elements/{p-4eff2f8a.system.entry.js → p-98e4a965.system.entry.js} +1 -1
  285. package/dist/zonos-elements/{p-5bebcfc2.system.js → p-9913c186.system.js} +1 -1
  286. package/dist/zonos-elements/{p-29e8c9e8.system.entry.js → p-991c85f1.system.entry.js} +1 -1
  287. package/dist/zonos-elements/p-995761ea.system.entry.js +1 -0
  288. package/dist/zonos-elements/p-9a6eb099.entry.js +1 -0
  289. package/dist/zonos-elements/p-9a7a9b1c.entry.js +1 -0
  290. package/dist/zonos-elements/{p-d367c9ae.system.entry.js → p-9f7b9d66.system.entry.js} +1 -1
  291. package/dist/zonos-elements/p-a2dab25e.system.entry.js +1 -0
  292. package/dist/zonos-elements/{p-587568b5.entry.js → p-aaff5dcc.entry.js} +1 -1
  293. package/dist/zonos-elements/{p-3731e7f5.entry.js → p-abc66a0b.entry.js} +1 -1
  294. package/dist/zonos-elements/{p-eb294265.entry.js → p-aca3a2bb.entry.js} +1 -1
  295. package/dist/zonos-elements/p-afa34aff.system.js +1 -0
  296. package/dist/zonos-elements/{p-69f84611.entry.js → p-b2241919.entry.js} +1 -1
  297. package/dist/zonos-elements/p-b5edee66.system.js +1 -0
  298. package/dist/zonos-elements/p-b610f70c.system.js +1 -0
  299. package/dist/zonos-elements/{p-69255ed2.system.js → p-bbbaea3a.system.js} +1 -1
  300. package/dist/zonos-elements/p-c137dc82.js +2 -0
  301. package/dist/zonos-elements/{p-be9e1818.system.entry.js → p-c140a0bd.system.entry.js} +1 -1
  302. package/dist/zonos-elements/{p-de221545.entry.js → p-cf6ae7dc.entry.js} +1 -1
  303. package/dist/zonos-elements/{p-90633d63.entry.js → p-d0f4b6c3.entry.js} +1 -1
  304. package/dist/zonos-elements/{p-112aecac.js → p-de462b9b.js} +2 -2
  305. package/dist/zonos-elements/{p-107b08c1.entry.js → p-e5d081d8.entry.js} +1 -1
  306. package/dist/zonos-elements/p-e7b0c156.js +1 -0
  307. package/dist/zonos-elements/{p-30fdcbee.js → p-e892fb29.js} +1 -1
  308. package/dist/zonos-elements/p-e90cb997.entry.js +1 -0
  309. package/dist/zonos-elements/{p-db3f381d.entry.js → p-e91b244c.entry.js} +1 -1
  310. package/dist/zonos-elements/{p-41dfc828.entry.js → p-e99354d5.entry.js} +1 -1
  311. package/dist/zonos-elements/p-ea6d87a1.system.js +1 -0
  312. package/dist/zonos-elements/p-eef5b0cc.js +1 -0
  313. package/dist/zonos-elements/{p-d0944cc8.system.entry.js → p-f3f27bf2.system.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-0e63259c.system.entry.js → p-f4cc688e.system.entry.js} +1 -1
  315. package/dist/zonos-elements/{p-cc6d9f7d.entry.js → p-f7d3e48b.entry.js} +1 -1
  316. package/dist/zonos-elements/p-fa6de0f3.js +1 -0
  317. package/dist/zonos-elements/{p-c5c8f803.system.entry.js → p-fd348fd4.system.entry.js} +1 -1
  318. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  319. package/dist/zonos-elements/zonos-elements.js +1 -1
  320. package/package.json +3 -1
  321. package/dist/cjs/zonos-address_7.cjs.entry.js +0 -772
  322. package/dist/esm/zonos-address_7.entry.js +0 -762
  323. package/dist/esm-es5/cart-3fb04f1f.js +0 -1
  324. package/dist/esm-es5/index-d82f06f2.js +0 -2
  325. package/dist/esm-es5/zonos-address_7.entry.js +0 -1
  326. package/dist/zonos-elements/p-358043a2.system.entry.js +0 -1
  327. package/dist/zonos-elements/p-43feb95e.entry.js +0 -1
  328. package/dist/zonos-elements/p-46f6e5e9.system.js +0 -1
  329. package/dist/zonos-elements/p-4aca92c5.system.entry.js +0 -1
  330. package/dist/zonos-elements/p-4caffd96.system.js +0 -2
  331. package/dist/zonos-elements/p-59e31080.system.js +0 -1
  332. package/dist/zonos-elements/p-6c0c8722.system.entry.js +0 -1
  333. package/dist/zonos-elements/p-7decb19b.entry.js +0 -1
  334. package/dist/zonos-elements/p-829f6a40.entry.js +0 -1
  335. package/dist/zonos-elements/p-8f640b28.entry.js +0 -1
  336. package/dist/zonos-elements/p-a69dbe14.js +0 -1
  337. package/dist/zonos-elements/p-ab68ad11.js +0 -2
  338. package/dist/zonos-elements/p-ac889f52.entry.js +0 -1
  339. package/dist/zonos-elements/p-b998494a.entry.js +0 -1
  340. package/dist/zonos-elements/p-bc0f885e.system.entry.js +0 -1
  341. package/dist/zonos-elements/p-c6d96a42.system.js +0 -1
  342. package/dist/zonos-elements/p-ce853f8f.system.entry.js +0 -1
  343. package/dist/zonos-elements/p-e4f8114a.system.js +0 -1
  344. package/dist/zonos-elements/p-e99e75dd.system.entry.js +0 -1
  345. package/dist/zonos-elements/p-f66a5c7c.system.entry.js +0 -1
  346. package/dist/zonos-elements/p-febb90e0.entry.js +0 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2f90486e.js');
5
+ const index = require('./index-0993f42d.js');
6
6
  const classes = require('./classes-b7918f56.js');
7
7
 
8
8
  const zonosTooltipCss = ":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 .zonos--tooltip{position:relative}:host .zonos--tooltip .zonos--tooltip-content{position:absolute;bottom:100%;left:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:12px;background-color:var(--zonos-elements-gray-1000);opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:var(--zonos-elements-radius-4);z-index:100;-webkit-box-shadow:var(--zonos-elements-v3-shadow-large);box-shadow:var(--zonos-elements-v3-shadow-large)}:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";
@@ -16,10 +16,10 @@ const ZonosTooltip = class {
16
16
  this.showTooltip = false;
17
17
  }
18
18
  render() {
19
- return (index.h(index.Host, { key: 'fa16c20a254958721bcc44dbe96f6588545e86f0', class: "zonos--elements" }, index.h("div", { key: '0e57607df02b12d5df9fb84b64c8345b40b2e823', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '9faf457a730046b789a5b822fb6ab89d88970d59' }), index.h("div", { key: 'f85dbf49e172f9a1c1b57443b1ea22d819b4099c', class: classes.classes([
19
+ return (index.h(index.Host, { key: 'fbd7f669ae886586c2512b00975fc5acf1e40eca', class: "zonos--elements" }, index.h("div", { key: '618d6ff79308540f5eeb3d8a23e7c520fb35a91a', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '303eaf31b4b3dc9fd35ed0db252be84274b7d46c' }), index.h("div", { key: '7429949912c8e3fb683ab4cbc4958d8fb6b2fd81', class: classes.classes([
20
20
  this.showTooltip && 'zonos--show-tooltip',
21
21
  'zonos--tooltip-content',
22
- ]) }, index.h("zonos-text", { key: '6e90bfe3f346cbe5d49aab4e03c868b3138aeca7', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: '1c10f75f13ae427737fcf4ece41b9f7ba13fb76d', size: "xs", textColor: "gray-0" }, this.subtitle)))));
22
+ ]) }, index.h("zonos-text", { key: '31704a564bb877fac16c1ab11a686e9ba72940ea', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: '1e2cafbfaf769b30256c8d4609953961bcd10a06', size: "xs", textColor: "gray-0" }, this.subtitle)))));
23
23
  }
24
24
  };
25
25
  ZonosTooltip.style = ZonosTooltipStyle0;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-3812b318.js');
5
+ const index = require('./index-0993f42d.js');
6
+ const zonosStore = require('./zonosStore-adc42868.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosVStackCss = ":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 .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
@@ -15,9 +15,9 @@ const VStack = class {
15
15
  this.spacing = 24;
16
16
  }
17
17
  render() {
18
- return (index.h(index.Host, { key: '32154740511a038c4ca04ad55bc7d77d96496654', style: {
18
+ return (index.h(index.Host, { key: 'b591378d641a09bac2c4fab00c8c1977ae21a14c', style: {
19
19
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
20
- } }, index.h("div", { key: 'f80f8b0e51554a3db9efa960706ac9bb450155cb', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: '711a207eb1b4c59672be4df8b19a3c7200d44f29' }))));
20
+ } }, index.h("div", { key: 'c9f3b482ace4b36813fa5412dd497c0deea7e3c0', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: '75cf9b483367945bc57279b76519205c8f0901eb' }))));
21
21
  }
22
22
  };
23
23
  VStack.style = ZonosVStackStyle0;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-2f90486e.js');
3
+ const index = require('./index-0993f42d.js');
4
4
 
5
5
  const appendToMap = (map, propName, value) => {
6
6
  const items = map.get(propName);
@@ -2768,6 +2768,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
2768
2768
  theme: 'LIGHT',
2769
2769
  zonosAttribution: 'DISABLED',
2770
2770
  },
2771
+ checkoutAddressService: null,
2771
2772
  checkoutSettings: {
2772
2773
  allowedCharacterSets: 'ALL',
2773
2774
  allowedSettlementCurrencies: 'LOCAL',
@@ -38,6 +38,8 @@
38
38
  "components/common/zonos-rest-state/zonos-rest-state.js",
39
39
  "components/common/zonos-select-dialog-header/zonos-select-dialog-header.js",
40
40
  "components/common/zonos-stripe-input/zonos-stripe-input.js",
41
+ "components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js",
42
+ "components/common/zonos-stripe-select/zonos-stripe-select.js",
41
43
  "components/common/zonos-text/zonos-text.js",
42
44
  "components/common/zonos-toggle/zonos-toggle.js",
43
45
  "components/common/zonos-tooltip/zonos-tooltip.js",
@@ -50,6 +52,8 @@
50
52
  "components/main/zonos-controller.js",
51
53
  "components/paypal/zonos-paypal-payment.js",
52
54
  "components/stripe/zonos-address/zonos-address.js",
55
+ "components/stripe/zonos-custom-address/zonos-custom-address.js",
56
+ "components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js",
53
57
  "components/stripe/zonos-link-authentication/zonos-link-authentication.js",
54
58
  "components/stripe/zonos-payment/zonos-payment.js"
55
59
  ],
@@ -144,21 +144,21 @@ export class ZonosAddressUpdateDialog {
144
144
  return (h(Host, { key: '655845cef04f4af526b1a1c4e49243c4f2b4c7f6', class: classes([
145
145
  'zonos--address-update-dialog zonos--elements',
146
146
  this.isMobile && 'mobile',
147
- ]) }, h("zonos-dialog", { key: 'eab429bb78ce6f05ba463d8748d7edd5499402fa', isLoading: this.dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeUpdateDialog.emit(), open: this.dialogOpen, width: "568px" }, h("div", { key: '08f0400e62addfcaffd91bf5200999d29bbd2da9', class: "zonos--body" }, h("div", { key: '8699df5e2f823e19066fbb552ba2a66c127c05e9', class: "zonos--dialog-header" }, h("div", { key: '92e0ff932dcdb0e5b59ea34b688d1ef8e31bfeb3', class: "zonos--dialog-title" }, h("zonos-text", { key: 'aaac3375526bddb319ce7c8f49bde30da7210264', type: "title" }, translate('Update your address')), h("zonos-button", { key: '66abf7b74045e68e84e631298504236d32ca9c4e', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.closeUpdateDialogHandler() })), h("zonos-text", { key: 'ffb3d8f169867d5f6dff269e1becd99c98c5a7da' }, translate('To ensure delivery all address details must be in Latin characters.'))), h("div", { key: '2cb61f06ce174e2317870decfdd337c67c5cf128', class: "zonos--group" }, h("zonos-text", { key: 'a616c540984120b468e52bccfb380ea3974ced22', class: "zonos--what-you-entered", type: "semiBoldLabel" }, translate('What you entered')), h("div", { key: '6ac8f9c14472370c501af1b0d50bd8f8746b7694', class: "zonos--address-display-group" }, h("zonos-address-display", { key: 'ea2c67a7bba51c99f80be968e448beeffcf1f863', addressType: "shipping", currentAddress: shipping }), billing && (h("zonos-address-display", { key: '7ea1683dc04a292810e04ed6550d86086f25186f', addressType: "billing", currentAddress: billing }))), h("div", { key: '4d1cd9096943518b8b4e267608a5e1542befb6a9', class: "zonos--address-form-section" }, h("zonos-text", { key: 'e4184a2cc618d26d43979fa8cfe06070cf8b5af8', type: "semiBoldLabel" }, translate('Translated address')), h("zonos-address-form", { key: 'c55d9d3c658565ceb7c7b879f444e3937b9f7ad6', addressType: "shipping", class: "zonos--shipping-address-form", currentAddress: shipping, onAddressChange: e => {
147
+ ]) }, h("zonos-dialog", { key: 'eab429bb78ce6f05ba463d8748d7edd5499402fa', isLoading: this.dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeUpdateDialog.emit(), open: this.dialogOpen, width: "568px" }, h("div", { key: '08f0400e62addfcaffd91bf5200999d29bbd2da9', class: "zonos--body" }, h("div", { key: '8699df5e2f823e19066fbb552ba2a66c127c05e9', class: "zonos--dialog-header" }, h("div", { key: '92e0ff932dcdb0e5b59ea34b688d1ef8e31bfeb3', class: "zonos--dialog-title" }, h("zonos-text", { key: 'aaac3375526bddb319ce7c8f49bde30da7210264', type: "title" }, translate('Update your address')), h("zonos-button", { key: '474cc2421cd3150daa46bfe215da6ae7df9c6087', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.closeUpdateDialogHandler(), title: "Close checkout dialog" })), h("zonos-text", { key: '6d019250cce57e8b30dd790a184df7273bdb234f' }, translate('To ensure delivery all address details must be in Latin characters.'))), h("div", { key: '80ee681844f4f4f43fce69d977b634b1fbc3d5f5', class: "zonos--group" }, h("zonos-text", { key: '940e510eceec156a74f32de84cf58ffebd796435', class: "zonos--what-you-entered", type: "semiBoldLabel" }, translate('What you entered')), h("div", { key: 'f626127f5c399c29ab1022deb66aaee8f8a49601', class: "zonos--address-display-group" }, h("zonos-address-display", { key: '9dfcba1037325c3a1f9e82b8e4797e7872dd7e3f', addressType: "shipping", currentAddress: shipping }), billing && (h("zonos-address-display", { key: 'fee8ae2c6786d735133c2a0a42f3e3d40d7f9ea9', addressType: "billing", currentAddress: billing }))), h("div", { key: '5a82195018ff8cdfd1126f4424062a26c25ee757', class: "zonos--address-form-section" }, h("zonos-text", { key: 'f694dfad166697e4c034cea51057133b69b1c144', type: "semiBoldLabel" }, translate('Translated address')), h("zonos-address-form", { key: '4a99c841cf4800de43c612cce3d56d956d02c22f', addressType: "shipping", class: "zonos--shipping-address-form", currentAddress: shipping, onAddressChange: e => {
148
148
  const address = e.detail;
149
149
  this.translatedShippingAddressState =
150
150
  this.buildTranslateAddressState({
151
151
  currentAddress: shipping,
152
152
  translatedAddress: address,
153
153
  });
154
- }, translatedAddress: this.translatedShippingAddressState }), billing && (h("zonos-address-form", { key: 'c3facc295b1322bb00baa6081f343dcea4f10777', addressType: "billing", class: "zonos--billing-address-form", currentAddress: billing, onAddressChange: e => {
154
+ }, translatedAddress: this.translatedShippingAddressState }), billing && (h("zonos-address-form", { key: '311fd702d29a9517203597890bd46bd268dfc6d3', addressType: "billing", class: "zonos--billing-address-form", currentAddress: billing, onAddressChange: e => {
155
155
  const address = e.detail;
156
156
  this.translatedBillingAddressState =
157
157
  this.buildTranslateAddressState({
158
158
  currentAddress: billing,
159
159
  translatedAddress: address,
160
160
  });
161
- }, translatedAddress: this.translatedBillingAddressState })))), h("div", { key: '1c89c9604ba0dece40275fcfac97e7f93706b430', class: "zonos--group-btn" }, h("div", { key: 'e47d393940b094b4e123864e4070daa87f0616f0', class: "zonos--button-wrapper" }, h("zonos-button", { key: '216b7afe268a4acd6bb8a76b7f5a32dc09bdd4f6', class: "zonos--cancel-btn", onClick: () => this.closeUpdateDialogHandler(), variant: "subtle" }, translate('Cancel')), h("zonos-button", { key: 'acbacb92cedb325b46843d8f3aff13f4e7c86ab5', backgroundColor: this.submitBtnColor, class: "zonos--update-btn", loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "sm", variant: submitBtnType }, translate('Update address'))))))));
161
+ }, translatedAddress: this.translatedBillingAddressState })))), h("div", { key: '918c3271579c3fc7a7efff0473b0ccf48fb575a2', class: "zonos--group-btn" }, h("div", { key: 'f73be0c1124d3a4d340bc6e8512f6be8356c655d', class: "zonos--button-wrapper" }, h("zonos-button", { key: '172a6cc0a7b75afb400802ef6b87faae6e7e2483', class: "zonos--cancel-btn", onClick: () => this.closeUpdateDialogHandler(), variant: "subtle" }, translate('Cancel')), h("zonos-button", { key: '8fd08bc79b60eb9a0064c06ff9d840b1ecb09123', backgroundColor: this.submitBtnColor, class: "zonos--update-btn", loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "sm", variant: submitBtnType }, translate('Update address'))))))));
162
162
  }
163
163
  static get is() { return "zonos-address-update-dialog"; }
164
164
  static get encapsulation() { return "shadow"; }
@@ -150,6 +150,7 @@
150
150
  :host(.preview) {
151
151
  min-width: 500px;
152
152
  margin: auto;
153
+ position: relative;
153
154
  }
154
155
  :host(.preview) .zonos--content {
155
156
  border: var(--zonos-elements-border);
@@ -158,6 +159,16 @@
158
159
  padding: 32px;
159
160
  }
160
161
 
162
+ :host(.hidden-mode) {
163
+ height: 0;
164
+ opacity: 0;
165
+ pointer-events: none;
166
+ position: absolute;
167
+ visibility: hidden;
168
+ width: 0;
169
+ z-index: -1;
170
+ }
171
+
161
172
  :host(.mobile) {
162
173
  min-width: auto;
163
174
  }
@@ -80,6 +80,7 @@ export class ZonosCheckout {
80
80
  const currentTime = new Date().getTime();
81
81
  const timeDiff = currentTime - cartCreatedAt;
82
82
  const timeDiffInSeconds = Math.floor(timeDiff / 1000);
83
+ log(`currentTime: ${currentTime} | cartCreatedAt: ${cartCreatedAt}`);
83
84
  log(`Cart has been created for ${timeDiffInSeconds / 60} minutes`);
84
85
  if (zonosStore.checkoutSettings.defaultCartExpiration) {
85
86
  if (timeDiffInSeconds > zonosStore.checkoutSettings.defaultCartExpiration) {
@@ -197,6 +198,7 @@ export class ZonosCheckout {
197
198
  };
198
199
  this.appearanceSettingsOverride = undefined;
199
200
  this.preview = false;
201
+ this.hiddenMode = false;
200
202
  this.mobile = false;
201
203
  this.overrideStagingMode = undefined;
202
204
  this.defaultAddress = [];
@@ -419,14 +421,19 @@ export class ZonosCheckout {
419
421
  }
420
422
  attachCheckout() {
421
423
  const buttonAnchorSelector = zonosStore.checkoutSettings.placeOrderButtonSelector;
424
+ const alwaysTriggerInternationalCheckoutSelector = zonosStore.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;
422
425
  log(`attach checkout ${buttonAnchorSelector}`);
426
+ log(`attach checkout to always trigger international checkout selector: ${alwaysTriggerInternationalCheckoutSelector}`);
423
427
  // allow to load checkout if cartData is ready (Checkout can be loaded right away if tempCartUUID is in the URL)
424
- if (!buttonAnchorSelector && !window.Zonos.cartData) {
428
+ if (!buttonAnchorSelector &&
429
+ !alwaysTriggerInternationalCheckoutSelector &&
430
+ !window.Zonos.cartData) {
425
431
  // do nothing if button element is not found
426
432
  return;
427
433
  }
428
434
  const selectors = [
429
435
  buttonAnchorSelector,
436
+ alwaysTriggerInternationalCheckoutSelector,
430
437
  // hidden button for domestic redirected
431
438
  `#${domesticRedirectedBtnSelector}`,
432
439
  // hidden button for legacy checkout facade and when client secret is provided in the query param or session storage when user is redirected from stripe
@@ -448,9 +455,15 @@ export class ZonosCheckout {
448
455
  var _a;
449
456
  // Start tracking load time
450
457
  const startTime = performance.now();
458
+ const isAlwaysTriggerInternationalCheckout = alwaysTriggerInternationalCheckoutSelector &&
459
+ button.matches(alwaysTriggerInternationalCheckoutSelector);
460
+ const isAnyImmediateTrigger = button.matches(`#${domesticRedirectedBtnSelector}`) ||
461
+ button.matches(`#${checkoutHiddenBtnSelector}`);
451
462
  // Allow no country set for legacy facades. Otherwise enforce it being a shippable country and not disabled.
452
463
  if (!window.Zonos.isLegacyCheckout &&
453
- (!isShippableCountry() || isDisabledCountry())) {
464
+ (!isShippableCountry() || isDisabledCountry()) &&
465
+ !isAlwaysTriggerInternationalCheckout &&
466
+ !isAnyImmediateTrigger) {
454
467
  return;
455
468
  }
456
469
  e.preventDefault();
@@ -553,7 +566,7 @@ export class ZonosCheckout {
553
566
  }
554
567
  button.setAttribute('data-zonos-checkout-attached', 'true');
555
568
  // if this button is the hidden button, trigger the click event
556
- if (button.matches(domesticRedirectedBtnSelector)) {
569
+ if (button.matches(`#${domesticRedirectedBtnSelector}`)) {
557
570
  button.dispatchEvent(createCustomEvent('click'));
558
571
  // cleanup shipping session after button is clicked
559
572
  stripeStoreCleanupDomesticShippingSession();
@@ -1160,6 +1173,7 @@ export class ZonosCheckout {
1160
1173
  this.preview && 'preview',
1161
1174
  this.isMobile && 'mobile',
1162
1175
  this.isIframed && 'iframed',
1176
+ this.hiddenMode && 'hidden-mode',
1163
1177
  ]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: translate("Don't close"), dialogConfirmBtnText: translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: translate('Would you like to close checkout and return to the site?'), dialogTitle: translate('Are you sure?'), onCancelClicked: () => {
1164
1178
  this.confirmDialogOpen = false;
1165
1179
  },
@@ -1269,6 +1283,26 @@ export class ZonosCheckout {
1269
1283
  "reflect": false,
1270
1284
  "defaultValue": "false"
1271
1285
  },
1286
+ "hiddenMode": {
1287
+ "type": "boolean",
1288
+ "mutable": false,
1289
+ "complexType": {
1290
+ "original": "boolean",
1291
+ "resolved": "boolean",
1292
+ "references": {}
1293
+ },
1294
+ "required": false,
1295
+ "optional": false,
1296
+ "docs": {
1297
+ "tags": [],
1298
+ "text": "Hidden mode to hide the checkout modal in preview mode"
1299
+ },
1300
+ "getter": false,
1301
+ "setter": false,
1302
+ "attribute": "hidden-mode",
1303
+ "reflect": false,
1304
+ "defaultValue": "false"
1305
+ },
1272
1306
  "mobile": {
1273
1307
  "type": "boolean",
1274
1308
  "mutable": false,
@@ -89,7 +89,7 @@
89
89
  padding-top: 8px;
90
90
  margin-top: 12px;
91
91
  background: var(--zonos--primary-color, var(--zonos-elements-gray-0));
92
- z-index: 1;
92
+ z-index: 2;
93
93
  }
94
94
  :host .zonos--group-btn zonos-button {
95
95
  width: 100%;
@@ -1,8 +1,11 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { stripeStore, stripeStoreTranslateAddressToLatin, } from "../../../store/checkout/stripe";
3
+ import { localizationStore } from "../../../store/hello/localization";
3
4
  import { translate } from "../../../store/translationStore";
4
5
  import { getZonosStoreTheme, zonosStore, } from "../../../store/zonosStore";
5
6
  import { containsNonLatinChars } from "../../../utils/containsNonLatinChars";
7
+ import { log } from "../../../utils/logging/log";
8
+ import { sendErrorLog } from "../../../utils/logging/sendErrorLog";
6
9
  import { taxIdValidationResult } from "../../../utils/taxIdValidationResult";
7
10
  import { countryRequireTaxId, shipToTaxIdLabels, } from "../../../../types/checkout/Tax";
8
11
  export class ZonosCustomerInfo {
@@ -63,6 +66,12 @@ export class ZonosCustomerInfo {
63
66
  * handler for continue button click
64
67
  */
65
68
  this.continueClickHandler = async () => {
69
+ var _a;
70
+ (_a = this.testContinueClicked) === null || _a === void 0 ? void 0 : _a.emit({
71
+ billingAddress: stripeStore.stripeBillingAddressEventData,
72
+ sameAsBilling: stripeStore.stripeShippingSameAsBilling,
73
+ shippingAddress: stripeStore.stripeAddressEventData,
74
+ });
66
75
  if (!this.handleValidate()) {
67
76
  // scroll to the top zonos-banner
68
77
  setTimeout(() => {
@@ -82,25 +91,77 @@ export class ZonosCustomerInfo {
82
91
  if (hasInvalidCharacters) {
83
92
  return;
84
93
  }
85
- this.continueClicked.emit();
94
+ this.continueClicked.emit({
95
+ billingAddress: stripeStore.stripeBillingAddressEventData,
96
+ sameAsBilling: stripeStore.stripeShippingSameAsBilling,
97
+ shippingAddress: stripeStore.stripeAddressEventData,
98
+ });
99
+ };
100
+ /**
101
+ * Validate the custom address form, turn the flag showError to false if the form is valid, or vice versa
102
+ */
103
+ this.validateCustomAddressForm = (type) => {
104
+ const useShippingAddressErrors = stripeStore.stripeShippingSameAsBilling || type === 'shipping';
105
+ const customAddressErrors = useShippingAddressErrors
106
+ ? stripeStore.customAddressErrors
107
+ : stripeStore.customBillingAddressErrors;
108
+ const { city, firstName, lastName, line1, phone, postalCode, state } = customAddressErrors;
109
+ // check to see if there is any form error or not.
110
+ let hasError = false;
111
+ if (city ||
112
+ firstName ||
113
+ lastName ||
114
+ line1 ||
115
+ phone ||
116
+ postalCode ||
117
+ state) {
118
+ hasError = true;
119
+ }
120
+ // show error if there is any form error
121
+ if (useShippingAddressErrors) {
122
+ stripeStore.customAddressErrors = Object.assign(Object.assign({}, customAddressErrors), { showError: hasError });
123
+ }
124
+ else {
125
+ stripeStore.customBillingAddressErrors = Object.assign(Object.assign({}, customAddressErrors), { showError: hasError });
126
+ }
127
+ return {
128
+ isValid: !hasError,
129
+ };
86
130
  };
87
131
  this.handleValidate = () => {
88
- var _a, _b;
132
+ var _a, _b, _c, _d;
89
133
  const stripeShippingAddressEventData = stripeStore.stripeAddressEventData;
90
134
  const stripeBillingAddressEventData = stripeStore.stripeBillingAddressEventData;
91
135
  const stripeLinkEventData = stripeStore.stripeLinkEventData;
92
136
  // if the shipping is different from billing, we need to make sure the billing address is valid and disable the button if it's not
93
- const isValidBilling = stripeStore.stripeShippingSameAsBilling
137
+ const isValidStripeBilling = stripeStore.stripeShippingSameAsBilling
94
138
  ? !!(stripeShippingAddressEventData === null || stripeShippingAddressEventData === void 0 ? void 0 : stripeShippingAddressEventData.complete)
95
139
  : !!(stripeBillingAddressEventData === null || stripeBillingAddressEventData === void 0 ? void 0 : stripeBillingAddressEventData.complete);
96
- const isValidShipping = !!(stripeShippingAddressEventData === null || stripeShippingAddressEventData === void 0 ? void 0 : stripeShippingAddressEventData.complete);
140
+ const isValidStripeShipping = !!(stripeShippingAddressEventData === null || stripeShippingAddressEventData === void 0 ? void 0 : stripeShippingAddressEventData.complete);
97
141
  const isValidLink = !!(stripeLinkEventData === null || stripeLinkEventData === void 0 ? void 0 : stripeLinkEventData.complete);
98
142
  // display errors on fields that are invalid
99
143
  void ((_a = stripeStore.stripeAddressElement) === null || _a === void 0 ? void 0 : _a.getValue());
100
144
  void ((_b = stripeStore.stripeBillingAddressElement) === null || _b === void 0 ? void 0 : _b.getValue());
145
+ // if the custom address form is enabled, use the custom address form validation result, otherwise use the stripe validation result
146
+ const isValidBilling = ((_c = zonosStore.genericSettings) === null || _c === void 0 ? void 0 : _c.shouldEnabledCustomAddress)
147
+ ? this.validateCustomAddressForm('billing').isValid
148
+ : isValidStripeBilling;
149
+ // if the custom address form is enabled, use the custom address form validation result, otherwise use the stripe validation result
150
+ const isValidShipping = ((_d = zonosStore.genericSettings) === null || _d === void 0 ? void 0 : _d.shouldEnabledCustomAddress)
151
+ ? this.validateCustomAddressForm('shipping').isValid
152
+ : isValidStripeShipping;
101
153
  if (!isValidLink && (stripeLinkEventData === null || stripeLinkEventData === void 0 ? void 0 : stripeLinkEventData.empty)) {
102
154
  this.isEmailError = true;
103
155
  }
156
+ log('==> isValidBilling', 'info', isValidBilling, {
157
+ address: stripeStore.stripeBillingAddressEventData,
158
+ errors: stripeStore.customBillingAddressErrors,
159
+ });
160
+ log('==> isValidShipping', 'info', isValidShipping, {
161
+ address: stripeStore.stripeAddressEventData,
162
+ errors: stripeStore.customAddressErrors,
163
+ });
164
+ log('==> isValidLink', 'info', isValidLink);
104
165
  // validate tax id input if it's required for specific countries, optional otherwise
105
166
  const { error, valid } = taxIdValidationResult({
106
167
  shippingCountry: this.shippingCountry,
@@ -136,11 +197,35 @@ export class ZonosCustomerInfo {
136
197
  state: addressValue.address.state || '',
137
198
  };
138
199
  };
200
+ this.renderAddressComponent = (type) => {
201
+ var _a, _b;
202
+ if (!localizationStore.selectedCountryCode) {
203
+ void sendErrorLog({
204
+ endpoint: 'NO_COUNTRY_SELECTED_WHEN_RENDERING_ADDRESS_COMPONENT',
205
+ errors: ['No country selected when rendering address component'],
206
+ metadata: {
207
+ type,
208
+ },
209
+ shouldPostReleaseErrorReporting: true,
210
+ });
211
+ }
212
+ // Only use the default address for shipping address
213
+ const defaultAddress = type === 'shipping' ? this.defaultAddress : [];
214
+ // Render custom address component if the custom address form is enabled
215
+ if (localizationStore.selectedCountryCode &&
216
+ this.shouldEnabledCustomAddress &&
217
+ ((_b = (_a = zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.countryCustomAddressEnabled) === null || _b === void 0 ? void 0 : _b.includes(localizationStore.selectedCountryCode))) {
218
+ return (h("zonos-custom-address", { defaultAddress: defaultAddress, titleText: translate('Address'), type: type }));
219
+ }
220
+ // Render Stripe address component by default
221
+ return (h("zonos-address", { defaultAddress: defaultAddress, titleText: translate('Address'), type: type }));
222
+ };
139
223
  this.continueLoading = false;
140
224
  this.submitBtnType = undefined;
141
225
  this.submitBtnColor = undefined;
142
226
  this.isMobile = false;
143
227
  this.defaultAddress = [];
228
+ this.shouldUseCustomAddressFormOverride = false;
144
229
  this.showErrorBanner = false;
145
230
  this.shippingCountry = '';
146
231
  this.isCheckingForRestrictedItems = false;
@@ -149,8 +234,15 @@ export class ZonosCustomerInfo {
149
234
  this.invalidShippingCharacterList = null;
150
235
  this.invalidBillingCharacterList = null;
151
236
  this.openAddressValidationDialog = false;
237
+ this.shouldEnabledCustomAddress = false;
152
238
  this.isEmailError = false;
153
239
  }
240
+ watchShowErrorBanner() {
241
+ // start validate on typing after error banner is shown, and hide it if the form is complete
242
+ if (this.showErrorBanner) {
243
+ this.showErrorBanner = !this.handleValidate();
244
+ }
245
+ }
154
246
  checkInvalidCharacters(address) {
155
247
  if (!address) {
156
248
  return null;
@@ -197,7 +289,7 @@ export class ZonosCustomerInfo {
197
289
  } }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
198
290
  }
199
291
  render() {
200
- var _a, _b, _c, _d, _e, _f;
292
+ var _a, _b, _c, _d, _e, _f, _g;
201
293
  if (!stripeStore.stripeElements) {
202
294
  return null;
203
295
  }
@@ -213,20 +305,19 @@ export class ZonosCustomerInfo {
213
305
  this.shippingCountry =
214
306
  stripeStore.stripeAddressEventData.value.address.country;
215
307
  }
308
+ this.shouldEnabledCustomAddress =
309
+ this.shouldUseCustomAddressFormOverride ||
310
+ !!((_b = zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.shouldEnabledCustomAddress);
216
311
  const showBilling = !stripeStore.stripeShippingSameAsBilling;
217
312
  // Get theme for the update dialog, inherit from the theme, no from this component theme
218
313
  const theme = getZonosStoreTheme(zonosStore.appearance.theme);
219
314
  // Attempt to get the email from email from customer profile's locations, if not provided, just use the email from root customer profile
220
- const defaultEmail = ((_b = this.defaultAddress.find(Boolean)) === null || _b === void 0 ? void 0 : _b.email) ||
221
- ((_e = (_d = (_c = stripeStore.customerProfile) === null || _c === void 0 ? void 0 : _c.locations) === null || _d === void 0 ? void 0 : _d.find(Boolean)) === null || _e === void 0 ? void 0 : _e.email) ||
222
- ((_f = stripeStore.customerProfile) === null || _f === void 0 ? void 0 : _f.email);
223
- // start validate on typing after error banner is shown, and hide it if the form is complete
224
- if (this.showErrorBanner) {
225
- this.showErrorBanner = !this.handleValidate();
226
- }
227
- return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), this.renderTaxIdInput(this.shippingCountry), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
315
+ const defaultEmail = ((_c = this.defaultAddress.find(Boolean)) === null || _c === void 0 ? void 0 : _c.email) ||
316
+ ((_f = (_e = (_d = stripeStore.customerProfile) === null || _d === void 0 ? void 0 : _d.locations) === null || _e === void 0 ? void 0 : _e.find(Boolean)) === null || _f === void 0 ? void 0 : _f.email) ||
317
+ ((_g = stripeStore.customerProfile) === null || _g === void 0 ? void 0 : _g.email);
318
+ return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), this.renderAddressComponent('shipping'), this.renderTaxIdInput(this.shippingCountry), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
228
319
  stripeStore.stripeShippingSameAsBilling = e.detail;
229
- } }), h("zonos-collapse", { collapsed: !showBilling }, h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Billing address'), type: "billing" })), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
320
+ } }), h("zonos-collapse", { collapsed: !showBilling }, this.renderAddressComponent('billing')), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
230
321
  // use primary type when on mobile mode
231
322
  variant: this.submitBtnType }, translate('Continue to shipping')))), stripeStore.stripeAddressEventData && (h("zonos-address-update-dialog", { billingAddress: !stripeStore.stripeShippingSameAsBilling &&
232
323
  stripeStore.stripeBillingAddressEventData
@@ -363,6 +454,26 @@ export class ZonosCustomerInfo {
363
454
  "getter": false,
364
455
  "setter": false,
365
456
  "defaultValue": "[]"
457
+ },
458
+ "shouldUseCustomAddressFormOverride": {
459
+ "type": "boolean",
460
+ "mutable": false,
461
+ "complexType": {
462
+ "original": "boolean",
463
+ "resolved": "boolean",
464
+ "references": {}
465
+ },
466
+ "required": false,
467
+ "optional": false,
468
+ "docs": {
469
+ "tags": [],
470
+ "text": "Whether to override custom address form to be always visible"
471
+ },
472
+ "getter": false,
473
+ "setter": false,
474
+ "attribute": "should-use-custom-address-form-override",
475
+ "reflect": false,
476
+ "defaultValue": "false"
366
477
  }
367
478
  };
368
479
  }
@@ -376,6 +487,7 @@ export class ZonosCustomerInfo {
376
487
  "invalidShippingCharacterList": {},
377
488
  "invalidBillingCharacterList": {},
378
489
  "openAddressValidationDialog": {},
490
+ "shouldEnabledCustomAddress": {},
379
491
  "isEmailError": {}
380
492
  };
381
493
  }
@@ -391,11 +503,44 @@ export class ZonosCustomerInfo {
391
503
  "text": "Event to emit when the continue button is clicked"
392
504
  },
393
505
  "complexType": {
394
- "original": "void",
395
- "resolved": "void",
396
- "references": {}
506
+ "original": "{\n billingAddress: StripeAddressElementChangeEvent | null;\n sameAsBilling: boolean;\n shippingAddress: StripeAddressElementChangeEvent | null;\n }",
507
+ "resolved": "{ billingAddress: StripeAddressElementChangeEvent | null; sameAsBilling: boolean; shippingAddress: StripeAddressElementChangeEvent | null; }",
508
+ "references": {
509
+ "StripeAddressElementChangeEvent": {
510
+ "location": "import",
511
+ "path": "@stripe/stripe-js",
512
+ "id": "node_modules::StripeAddressElementChangeEvent"
513
+ }
514
+ }
515
+ }
516
+ }, {
517
+ "method": "testContinueClicked",
518
+ "name": "testContinueClicked",
519
+ "bubbles": true,
520
+ "cancelable": true,
521
+ "composed": true,
522
+ "docs": {
523
+ "tags": [],
524
+ "text": "Trigger continue button click even though fields're not validated for testing purposes"
525
+ },
526
+ "complexType": {
527
+ "original": "{\n billingAddress: StripeAddressElementChangeEvent | null;\n sameAsBilling: boolean;\n shippingAddress: StripeAddressElementChangeEvent | null;\n }",
528
+ "resolved": "{ billingAddress: StripeAddressElementChangeEvent | null; sameAsBilling: boolean; shippingAddress: StripeAddressElementChangeEvent | null; }",
529
+ "references": {
530
+ "StripeAddressElementChangeEvent": {
531
+ "location": "import",
532
+ "path": "@stripe/stripe-js",
533
+ "id": "node_modules::StripeAddressElementChangeEvent"
534
+ }
535
+ }
397
536
  }
398
537
  }];
399
538
  }
400
539
  static get elementRef() { return "el"; }
540
+ static get watchers() {
541
+ return [{
542
+ "propName": "showErrorBanner",
543
+ "methodName": "watchShowErrorBanner"
544
+ }];
545
+ }
401
546
  }
@@ -1,5 +1,6 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { zonosStore, zonosStoreFontFamily, } from "../../store/zonosStore";
3
+ import { inheritAriaAttributes, inheritAttributes, } from "../../utils/checkout/form/helpers";
3
4
  import { classes } from "../../utils/classes";
4
5
  import { getBorderRadius } from "../../utils/getBorderRadius";
5
6
  import { getButtonTheme } from "../../utils/getButtonTheme";
@@ -9,6 +10,10 @@ import { isElementUsingDarkTheme } from "../../utils/isElementUsingDarkTheme";
9
10
  import { styles } from "../../utils/styles";
10
11
  export class ZonosButton {
11
12
  constructor() {
13
+ /**
14
+ * Inherited attributes from the host element
15
+ */
16
+ this.inheritedAttributes = {};
12
17
  /**
13
18
  * Detect if the button has an content
14
19
  */
@@ -112,6 +117,12 @@ export class ZonosButton {
112
117
  }
113
118
  componentWillLoad() {
114
119
  this.iconChangeHandler();
120
+ this.inheritedAttributes = Object.assign(Object.assign({}, inheritAriaAttributes(this.ele)), inheritAttributes(this.ele, [
121
+ 'tabindex',
122
+ 'title',
123
+ 'data-form-type',
124
+ 'dir',
125
+ ]));
115
126
  }
116
127
  render() {
117
128
  const { backgroundColor, color, spinnerColor, useDarkHoverSubtle } = this.getButtonStyle();
@@ -122,13 +133,13 @@ export class ZonosButton {
122
133
  const borderStyle = getBorderRadius({
123
134
  overrideBorderStyle: this.borderStyle,
124
135
  });
125
- return (h(Host, { key: '71402d1acee8307c6ab3c3fb4b552c2df3800ced', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
136
+ return (h(Host, { key: '88cc4ce2ac8a82e62ac4a5a3828724b92da1db60', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
126
137
  '--zonos--background-color': backgroundColor,
127
138
  '--zonos--border-radius': borderStyle,
128
139
  '--zonos--color': color,
129
140
  '--zonos--font-family': zonosStoreFontFamily(),
130
141
  '--zonos--font-weight': this.bold ? 'bold' : 'normal',
131
- }) }, h("button", { key: '7168a567c49b6ea6d77fa1fd329c478f2c7b5512', class: classes([
142
+ }) }, h("button", Object.assign({ key: '4037731e2337e441a2eeb5e28433ba8426cb75b2' }, this.inheritedAttributes, { class: classes([
132
143
  this.hasIcon && 'has-icon',
133
144
  this.hasContent && 'has-content',
134
145
  this.noBackground && 'no-background',
@@ -143,7 +154,7 @@ export class ZonosButton {
143
154
  backgroundColor && variant === 'standard' && 'override-background',
144
155
  ]), disabled: disabled, style: {
145
156
  justifyContent: this.justifyContent,
146
- } }, this.loading && (h("div", { key: 'cc1d53b41d4ae20f7bad93a73b539b7de16ea032', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '83043fb631ff7e246aa69b0d4ef8322439043b4a', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'b1431364d8a5034d98b6bc4e3acfd4631ec93ec7', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
157
+ } }), this.loading && (h("div", { key: '09f824b2106313200deaa1bdcb7afc3e3b161911', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'b094e740a91c49a14a31fc56142dccf1062a584b', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '8bfc81ae6f5f114a0255854aa79db32a5ee39259', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
147
158
  }
148
159
  static get is() { return "zonos-button"; }
149
160
  static get encapsulation() { return "shadow"; }
@@ -4,8 +4,10 @@ import { classes } from "../../utils/classes";
4
4
  import { getBorderRadius } from "../../utils/getBorderRadius";
5
5
  import { isDarkColor } from "../../utils/isDarkColor";
6
6
  import { colorPrefixes } from "../../../types/styles/Color";
7
+ let inputId = 0;
7
8
  export class ZonosCheckbox {
8
9
  constructor() {
10
+ this.inputId = `zonos--checkbox-${++inputId}`;
9
11
  this.backgroundColor = 'blue';
10
12
  this.label = undefined;
11
13
  this.isChecked = false;
@@ -36,14 +38,14 @@ export class ZonosCheckbox {
36
38
  customRoundRadius: '4px',
37
39
  overrideBorderStyle: this.borderStyle,
38
40
  });
39
- return (h(Host, { key: '7a2972128b04d5dffe09f60b5292d90f7201066a', class: classes(['zonos--elements zonos--checkbox']), style: {
41
+ return (h(Host, { key: '177059d9f1ad06324719d97e02a48bb582fcc3d4', class: classes(['zonos--elements zonos--checkbox']), style: {
40
42
  '--zonos--background-color': backgroundColor,
41
43
  '--zonos--border-radius': borderStyle,
42
44
  '--zonos--font-family': zonosStoreFontFamily(),
43
45
  '--zonos--size': `${this.size}px`,
44
- } }, h("label", { key: 'b18d0f091b783555b4b3a1fc2b5d5cb1c62a9d41', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'f3b86525ef7988d6df87f9147f5aa22b447c1303', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
46
+ } }, h("label", { key: '15c39a6c58b9d70e5174bb4d51ab6b8b8a48cabc', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '1a6c85de7ca83822cc8e648a84f49580f520429a', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
45
47
  this.checkboxSelected.emit(e.target.checked);
46
- }, type: "checkbox" }), h("span", { key: '2007c2fbc4d8437f75b9a3d7a4e65d394922abf4', class: "checkmark-container" }, h("svg", { key: '481b9272c99cf464d8d88ab24a8dba35de921abf', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ab7690fba113135175248c8926907312dfe478d5', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '99689099e7469f2ff928619daa2fcee0ce35a418', size: this.fontSize }, this.label)))));
48
+ }, type: "checkbox" }), h("span", { key: '8b498b0a271f07de4e2481a173aecb732a935c5b', class: "checkmark-container" }, h("svg", { key: '5d98f7b34f424942dfbd1071f82a5c4f481ac5a9', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ed79a224a05fa5bfa5f08f71e374d595e7e4c480', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '6af368e40ed1a260f76aa014591e472004978d0c', size: this.fontSize }, this.label)))));
47
49
  }
48
50
  static get is() { return "zonos-checkbox"; }
49
51
  static get encapsulation() { return "shadow"; }