@zonos/elements 1.3.6 → 1.3.7-alpha.1

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 (306) hide show
  1. package/dist/cjs/{localization-2c9f5765.js → cart-89d9fff4.js} +863 -89
  2. package/dist/cjs/formatStringWithLinks-52341fc7.js +17 -0
  3. package/dist/cjs/{getBorderRadius-b252096d.js → getBorderRadius-d8f18958.js} +1 -1
  4. package/dist/cjs/{isDarkColor-168002d6.js → isDarkColor-57860b44.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/submitGtag-24740560.js +55 -0
  7. package/dist/cjs/zonos-address_4.cjs.entry.js +36 -18
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
  9. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +8 -8
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +10 -8
  12. package/dist/cjs/zonos-cart-items_9.cjs.entry.js +66 -56
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +170 -34
  14. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-controller.cjs.entry.js +51 -32
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -3
  17. package/dist/cjs/zonos-country-select_3.cjs.entry.js +21 -12
  18. package/dist/cjs/zonos-elements.cjs.js +1 -1
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +23 -19
  20. package/dist/cjs/zonos-hello.cjs.entry.js +51 -34
  21. package/dist/cjs/zonos-link.cjs.entry.js +24 -0
  22. package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
  23. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-payment.cjs.entry.js +5 -6
  25. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
  26. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  28. package/dist/cjs/{zonosStore-5d94dabb.js → zonosStore-138c5555.js} +9 -7
  29. package/dist/collection/collection-manifest.json +1 -0
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -6
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +27 -13
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +39 -18
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +5 -1
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +2 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +1 -6
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +3 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -0
  39. package/dist/collection/components/common/component-template/zonos-link/zonos-link.css +54 -0
  40. package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +97 -0
  41. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  42. package/dist/collection/components/common/zonos-button/zonos-button.css +2 -0
  43. package/dist/collection/components/common/zonos-button/zonos-button.js +4 -4
  44. package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
  45. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  46. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +26 -6
  47. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +8 -2
  48. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +4 -2
  49. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  50. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  51. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  52. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  53. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
  54. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  55. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  56. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  57. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +50 -11
  58. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  59. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +5 -3
  60. package/dist/collection/components/main/zonos-controller.js +1 -1
  61. package/dist/collection/components/store/checkout/cart.js +2 -2
  62. package/dist/collection/components/store/checkout/stripe.js +29 -4
  63. package/dist/collection/components/store/hello/localization.js +34 -7
  64. package/dist/collection/components/store/zonosStore.js +9 -7
  65. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  66. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  67. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  68. package/dist/collection/components/utils/api/trackConversionEvent.js +22 -0
  69. package/dist/collection/components/utils/checkout/isShippableCountry.js +15 -0
  70. package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +111 -0
  71. package/dist/collection/components/utils/formatStringWithLinks.js +13 -0
  72. package/dist/collection/components/utils/handleFetch.js +1 -1
  73. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +25 -28
  74. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +2 -1
  75. package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +8 -6
  76. package/dist/collection/components/utils/hello/initHello.js +23 -3
  77. package/dist/collection/components/utils/logging/log.js +20 -9
  78. package/dist/collection/components/utils/logging/logError.js +2 -1
  79. package/dist/collection/components/utils/logging/sendErrorLog.js +12 -0
  80. package/dist/collection/scripts/checkIfLoadVersionDomain.js +35 -0
  81. package/dist/collection/scripts/zonosBase.js +21 -31
  82. package/dist/collection/styles/stripe/addressRuleStyle.js +4 -0
  83. package/dist/collection/types/generated/graphql.customer.types.js +7 -4
  84. package/dist/collection/types/generated/graphql.frontend.types.js +3 -0
  85. package/dist/components/stripe.js +4097 -7
  86. package/dist/components/submitGtag.js +1 -1
  87. package/dist/components/trackConversionEvent.js +24 -0
  88. package/dist/components/zonos-address2.js +2 -3
  89. package/dist/components/zonos-badge2.js +3 -3
  90. package/dist/components/zonos-button2.js +5 -5
  91. package/dist/components/zonos-card2.js +2 -2
  92. package/dist/components/zonos-cart-subtotal2.js +2 -8
  93. package/dist/components/zonos-checkbox2.js +3 -3
  94. package/dist/components/zonos-checkout-finish2.js +44 -16
  95. package/dist/components/zonos-checkout-footer2.js +1 -1
  96. package/dist/components/zonos-checkout-payment2.js +2 -3
  97. package/dist/components/zonos-checkout.js +157 -19
  98. package/dist/components/zonos-collapse2.js +26 -6
  99. package/dist/components/zonos-component.js +1 -1
  100. package/dist/components/zonos-controller.js +25 -6
  101. package/dist/components/zonos-country-flag2.js +1 -1
  102. package/dist/components/zonos-country-select2.js +9 -3
  103. package/dist/components/zonos-custom-message2.js +18 -3
  104. package/dist/components/zonos-customer-info2.js +4 -3
  105. package/dist/components/zonos-dialog2.js +3 -3
  106. package/dist/components/zonos-hello-dialog-footer2.js +3 -3
  107. package/dist/components/zonos-hello-dialog2.js +6 -5
  108. package/dist/components/zonos-hello.js +23 -7
  109. package/dist/components/zonos-language-select2.js +3 -3
  110. package/dist/components/zonos-link-authentication2.js +1 -1
  111. package/dist/components/zonos-link.d.ts +11 -0
  112. package/dist/components/zonos-link.js +43 -0
  113. package/dist/components/zonos-logo.js +2 -2
  114. package/dist/components/zonos-payment2.js +1 -1
  115. package/dist/components/zonos-review2.js +2 -8
  116. package/dist/components/zonos-select-dialog-header2.js +2 -2
  117. package/dist/components/zonos-shipping-rich-radio2.js +1 -1
  118. package/dist/components/zonos-shipping2.js +7 -3
  119. package/dist/components/zonos-tooltip2.js +2 -2
  120. package/dist/components/zonos-v-stack2.js +2 -2
  121. package/dist/components/zonosStore.js +9 -7
  122. package/dist/esm/{localization-d8f6453b.js → cart-1bbb7662.js} +846 -90
  123. package/dist/esm/formatStringWithLinks-9e819405.js +15 -0
  124. package/dist/esm/{getBorderRadius-e9736f7e.js → getBorderRadius-19787feb.js} +1 -1
  125. package/dist/esm/{isDarkColor-e982fa09.js → isDarkColor-2344e7a5.js} +1 -1
  126. package/dist/esm/loader.js +1 -1
  127. package/dist/esm/submitGtag-d3d11f1a.js +51 -0
  128. package/dist/esm/zonos-address_4.entry.js +33 -15
  129. package/dist/esm/zonos-badge_2.entry.js +6 -6
  130. package/dist/esm/zonos-banner.entry.js +1 -1
  131. package/dist/esm/zonos-button_3.entry.js +8 -8
  132. package/dist/esm/zonos-card_2.entry.js +8 -6
  133. package/dist/esm/zonos-cart-items_9.entry.js +47 -37
  134. package/dist/esm/zonos-checkout.entry.js +158 -22
  135. package/dist/esm/zonos-component.entry.js +1 -1
  136. package/dist/esm/zonos-controller.entry.js +28 -9
  137. package/dist/esm/zonos-country-flag.entry.js +4 -2
  138. package/dist/esm/zonos-country-select_3.entry.js +19 -10
  139. package/dist/esm/zonos-elements.js +1 -1
  140. package/dist/esm/zonos-hello-dialog.entry.js +9 -5
  141. package/dist/esm/zonos-hello.entry.js +24 -7
  142. package/dist/esm/zonos-link.entry.js +20 -0
  143. package/dist/esm/zonos-logo.entry.js +3 -3
  144. package/dist/esm/zonos-notification.entry.js +1 -1
  145. package/dist/esm/zonos-payment.entry.js +5 -6
  146. package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
  147. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  148. package/dist/esm/zonos-text.entry.js +1 -1
  149. package/dist/esm/{zonosStore-e6c7be3a.js → zonosStore-00bce01b.js} +9 -7
  150. package/dist/esm-es5/cart-1bbb7662.js +1 -0
  151. package/dist/esm-es5/formatStringWithLinks-9e819405.js +1 -0
  152. package/dist/esm-es5/{getBorderRadius-e9736f7e.js → getBorderRadius-19787feb.js} +1 -1
  153. package/dist/esm-es5/{isDarkColor-e982fa09.js → isDarkColor-2344e7a5.js} +1 -1
  154. package/dist/esm-es5/loader.js +1 -1
  155. package/dist/esm-es5/submitGtag-d3d11f1a.js +1 -0
  156. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  157. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  158. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  159. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  160. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  161. package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -1
  162. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  163. package/dist/esm-es5/zonos-component.entry.js +1 -1
  164. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  165. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  166. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  167. package/dist/esm-es5/zonos-elements.js +1 -1
  168. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  169. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  170. package/dist/esm-es5/zonos-link.entry.js +1 -0
  171. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  172. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  173. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  174. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  175. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  176. package/dist/esm-es5/zonos-text.entry.js +1 -1
  177. package/dist/esm-es5/{zonosStore-e6c7be3a.js → zonosStore-00bce01b.js} +1 -1
  178. package/dist/scripts/checkIfLoadVersionDomain.js +1 -0
  179. package/dist/scripts/loadStripe.js +1 -1
  180. package/dist/scripts/loadZonos.js +1 -1
  181. package/dist/scripts/stripe.js +1 -1
  182. package/dist/scripts/zonos.js +1 -1
  183. package/dist/scripts/zonosBase.js +1 -1
  184. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -1
  185. package/dist/types/components/common/component-template/zonos-link/zonos-link.d.ts +19 -0
  186. package/dist/types/components/common/zonos-collapse/zonos-collapse.d.ts +1 -0
  187. package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +2 -0
  188. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +9 -3
  189. package/dist/types/components/store/checkout/cart.d.ts +6 -3
  190. package/dist/types/components/store/checkout/stripe.d.ts +26 -1
  191. package/dist/types/components/store/hello/localization.d.ts +1 -1
  192. package/dist/types/components/store/zonosStore.d.ts +2 -1
  193. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  194. package/dist/types/components/utils/api/trackConversionEvent.d.ts +3 -0
  195. package/dist/types/components/utils/checkout/isShippableCountry.d.ts +1 -0
  196. package/dist/types/components/utils/checkout/watchBigcommerceDomesticCheckout.d.ts +20 -0
  197. package/dist/types/components/utils/formatStringWithLinks.d.ts +1 -0
  198. package/dist/types/components/utils/hello/currencyConversion/getCurrencyElements.d.ts +1 -1
  199. package/dist/types/components/utils/hello/currencyConversion/getLanguageCode.d.ts +1 -1
  200. package/dist/types/components/utils/logging/log.d.ts +1 -1
  201. package/dist/types/components/utils/logging/sendErrorLog.d.ts +7 -0
  202. package/dist/types/components.d.ts +53 -3
  203. package/dist/types/scripts/checkIfLoadVersionDomain.d.ts +13 -0
  204. package/dist/types/scripts/zonosBase.d.ts +2 -0
  205. package/dist/types/types/ICountryJson.d.ts +2 -1
  206. package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -1
  207. package/dist/types/types/generated/graphql.customer.types.d.ts +23 -53
  208. package/dist/types/types/generated/graphql.customer.types.ts +42 -62
  209. package/dist/types/types/generated/graphql.frontend.types.d.ts +9 -1
  210. package/dist/types/types/generated/graphql.frontend.types.ts +19 -1
  211. package/dist/zonos-elements/p-0318632a.entry.js +1 -0
  212. package/dist/zonos-elements/p-066c5893.system.js +1 -1
  213. package/dist/zonos-elements/p-07966463.entry.js +1 -0
  214. package/dist/zonos-elements/p-0c0aa552.js +1 -0
  215. package/dist/zonos-elements/p-127b480c.entry.js +1 -0
  216. package/dist/zonos-elements/p-135ab559.system.entry.js +1 -0
  217. package/dist/zonos-elements/{p-b81a0577.system.entry.js → p-143dc0d9.system.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-32bca9c8.system.entry.js → p-14d27ce1.system.entry.js} +1 -1
  219. package/dist/zonos-elements/p-15a80c4a.entry.js +1 -0
  220. package/dist/zonos-elements/p-17e87be1.entry.js +1 -0
  221. package/dist/zonos-elements/{p-0c7480a5.entry.js → p-1e0dd491.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-a33745e9.entry.js → p-279d1c5f.entry.js} +1 -1
  223. package/dist/zonos-elements/p-2d6557ee.system.js +1 -0
  224. package/dist/zonos-elements/p-314be538.system.entry.js +1 -0
  225. package/dist/zonos-elements/{p-dd7729fd.system.entry.js → p-328b7f6f.system.entry.js} +1 -1
  226. package/dist/zonos-elements/p-354603b3.system.entry.js +1 -0
  227. package/dist/zonos-elements/{p-50287643.system.js → p-49f6a985.system.js} +1 -1
  228. package/dist/zonos-elements/p-57b65321.system.entry.js +1 -0
  229. package/dist/zonos-elements/p-58c1ddef.system.js +1 -0
  230. package/dist/zonos-elements/{p-06652d87.system.entry.js → p-58e2f6a1.system.entry.js} +1 -1
  231. package/dist/zonos-elements/p-5ee03db0.system.entry.js +1 -0
  232. package/dist/zonos-elements/{p-5a113c3d.system.entry.js → p-61e5cf29.system.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-49a764e9.system.entry.js → p-799d8a17.system.entry.js} +1 -1
  234. package/dist/zonos-elements/p-7a32526c.entry.js +1 -0
  235. package/dist/zonos-elements/p-7b87b82f.js +1 -0
  236. package/dist/zonos-elements/{p-9cbbf261.system.entry.js → p-7c45ce37.system.entry.js} +1 -1
  237. package/dist/zonos-elements/p-84f4f00f.entry.js +1 -0
  238. package/dist/zonos-elements/{p-e8a9bc56.entry.js → p-857cfe35.entry.js} +1 -1
  239. package/dist/zonos-elements/p-87e9c42f.entry.js +1 -0
  240. package/dist/zonos-elements/{p-e99d79d9.system.js → p-91797d4e.system.js} +1 -1
  241. package/dist/zonos-elements/{p-17550a10.js → p-95e0fc06.js} +1 -1
  242. package/dist/zonos-elements/{p-7a6144b1.entry.js → p-a3cc0f84.entry.js} +1 -1
  243. package/dist/zonos-elements/p-a5f12396.entry.js +1 -0
  244. package/dist/zonos-elements/p-a87561b8.js +1 -0
  245. package/dist/zonos-elements/{p-ba43275e.entry.js → p-ac0a7b8f.entry.js} +1 -1
  246. package/dist/zonos-elements/p-ae82a9ae.js +1 -0
  247. package/dist/zonos-elements/p-b0462325.system.entry.js +1 -0
  248. package/dist/zonos-elements/p-b2c0ec71.system.entry.js +1 -0
  249. package/dist/zonos-elements/{p-fcc4f140.system.js → p-b4725505.system.js} +1 -1
  250. package/dist/zonos-elements/p-bef54fb1.entry.js +1 -0
  251. package/dist/zonos-elements/p-c0d431f6.system.entry.js +1 -0
  252. package/dist/zonos-elements/p-d054788b.system.js +1 -0
  253. package/dist/zonos-elements/p-d407c93a.system.entry.js +1 -0
  254. package/dist/zonos-elements/p-e55dd932.js +1 -0
  255. package/dist/zonos-elements/p-ec37439e.entry.js +1 -0
  256. package/dist/zonos-elements/p-edace42b.entry.js +1 -0
  257. package/dist/zonos-elements/p-f478c814.system.entry.js +1 -0
  258. package/dist/zonos-elements/{p-7dd8e8ba.system.entry.js → p-f6eaef7b.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-bd6a2095.entry.js → p-f7c36fcc.entry.js} +1 -1
  260. package/dist/zonos-elements/p-f862b97f.system.entry.js +1 -0
  261. package/dist/zonos-elements/p-fd642725.entry.js +1 -0
  262. package/dist/zonos-elements/p-fdb72530.system.entry.js +1 -0
  263. package/dist/zonos-elements/{p-a4de3fb2.entry.js → p-ff64ddc5.entry.js} +1 -1
  264. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  265. package/package.json +1 -1
  266. package/dist/cjs/cart-b8bbf22d.js +0 -698
  267. package/dist/cjs/submitGtag-792fe45d.js +0 -21
  268. package/dist/collection/scripts/extractZonosQaUrl.js +0 -26
  269. package/dist/components/localization.js +0 -4016
  270. package/dist/esm/cart-bc3bb22e.js +0 -682
  271. package/dist/esm/submitGtag-bebe2cb0.js +0 -19
  272. package/dist/esm-es5/cart-bc3bb22e.js +0 -1
  273. package/dist/esm-es5/localization-d8f6453b.js +0 -1
  274. package/dist/esm-es5/submitGtag-bebe2cb0.js +0 -1
  275. package/dist/types/scripts/extractZonosQaUrl.d.ts +0 -11
  276. package/dist/zonos-elements/p-00d63df1.system.entry.js +0 -1
  277. package/dist/zonos-elements/p-04f63cea.entry.js +0 -1
  278. package/dist/zonos-elements/p-16b74c31.system.js +0 -1
  279. package/dist/zonos-elements/p-1d16a6fb.js +0 -1
  280. package/dist/zonos-elements/p-1ea68e3b.entry.js +0 -1
  281. package/dist/zonos-elements/p-1ed530cc.entry.js +0 -1
  282. package/dist/zonos-elements/p-289c8b1a.system.entry.js +0 -1
  283. package/dist/zonos-elements/p-2a00c270.system.entry.js +0 -1
  284. package/dist/zonos-elements/p-37f53a79.entry.js +0 -1
  285. package/dist/zonos-elements/p-394cf1cf.js +0 -1
  286. package/dist/zonos-elements/p-3ef27745.js +0 -1
  287. package/dist/zonos-elements/p-458fd100.system.entry.js +0 -1
  288. package/dist/zonos-elements/p-47fac33f.js +0 -1
  289. package/dist/zonos-elements/p-4fafb2a5.system.entry.js +0 -1
  290. package/dist/zonos-elements/p-4fb71a93.js +0 -1
  291. package/dist/zonos-elements/p-5276c61b.system.entry.js +0 -1
  292. package/dist/zonos-elements/p-6308b347.entry.js +0 -1
  293. package/dist/zonos-elements/p-63d1b1fe.entry.js +0 -1
  294. package/dist/zonos-elements/p-7347ee7c.system.entry.js +0 -1
  295. package/dist/zonos-elements/p-8c26a080.system.js +0 -1
  296. package/dist/zonos-elements/p-96aabe02.entry.js +0 -1
  297. package/dist/zonos-elements/p-a682fd38.system.entry.js +0 -1
  298. package/dist/zonos-elements/p-ba1a111a.system.entry.js +0 -1
  299. package/dist/zonos-elements/p-c4321084.system.entry.js +0 -1
  300. package/dist/zonos-elements/p-cdf114a2.entry.js +0 -1
  301. package/dist/zonos-elements/p-d5ae3cbb.system.entry.js +0 -1
  302. package/dist/zonos-elements/p-d5d7c8f5.entry.js +0 -1
  303. package/dist/zonos-elements/p-de339fb6.entry.js +0 -1
  304. package/dist/zonos-elements/p-ec25f180.entry.js +0 -1
  305. package/dist/zonos-elements/p-f49dfd06.system.js +0 -1
  306. package/dist/zonos-elements/p-f6f5f644.entry.js +0 -1
@@ -7,7 +7,6 @@ import { formatCurrency } from "../../../utils/formatCurrency";
7
7
  import InfoIcon from "./assets/InfoIcon.svg";
8
8
  export class ZonosCartSubtotal {
9
9
  render() {
10
- const totalWithoutTaxes = cartStore.total - cartStore.dutiesTaxFees;
11
10
  const showDutyTaxesInfo = cartStore.step === 'payment' || cartStore.step === 'shipping';
12
11
  const renderShippingInfo = () => {
13
12
  if (!cartStore.selectedShippingOption) {
@@ -29,11 +28,7 @@ export class ZonosCartSubtotal {
29
28
  currency: cartStore.currency,
30
29
  })
31
30
  : '-', cartStore.isSelectedShippingGuarantee && (h("zonos-badge", null, translate('Guaranteed'))))))), h("tr", { class: "zonos--row zonos--cart-pay-total" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Order total'))), h("td", { class: "zonos--column" }, h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
32
- amount:
33
- // show total without taxes when step is shipping, show total with taxes when step is payment
34
- cartStore.step === 'shipping'
35
- ? totalWithoutTaxes
36
- : cartStore.total,
31
+ amount: cartStore.total,
37
32
  currency: cartStore.currency,
38
33
  })))))));
39
34
  }
@@ -3,8 +3,10 @@ import { cartStore } from "../../../store/checkout/cart";
3
3
  import { stripeStore, stripeStoreReset, stripeStoreRetrievePayment, } from "../../../store/checkout/stripe";
4
4
  import { translate } from "../../../store/translationStore";
5
5
  import { zonosStore } from "../../../store/zonosStore";
6
+ import { trackConversionEvent } from "../../../utils/api/trackConversionEvent";
6
7
  import { getBorderRadius } from "../../../utils/getBorderRadius";
7
8
  import { handleFetch } from "../../../utils/handleFetch";
9
+ import { sendErrorLog } from "../../../utils/logging/sendErrorLog";
8
10
  import { submitGtag } from "../../../utils/submitGtag";
9
11
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
10
12
  import RemoveIcon from "./assets/RemoveIcon.svg";
@@ -28,19 +30,24 @@ export class ZonosCheckoutFinish {
28
30
  this.handleSuccessBehavior = (orderId) => {
29
31
  const { successBehavior } = zonosStore.checkoutSettings;
30
32
  switch (successBehavior) {
31
- case 'REDIRECT_TO_SUCCESS_PAGE':
33
+ case 'REDIRECT_TO_SUCCESS_PAGE': {
32
34
  const redirectUrl = zonosStore.checkoutSettings.successRedirectUrl;
33
35
  if (redirectUrl) {
36
+ // reset store and checkout session id before redirecting
37
+ stripeStoreReset();
38
+ cartStore.checkoutSessionId = null;
34
39
  window.location.href = `${redirectUrl}?zOrderNumber=${orderId}`;
35
40
  }
36
41
  // If no redirect URL, break and display Zonos success page
37
42
  break;
43
+ }
38
44
  case 'CLOSE_MODAL':
39
45
  this.closeClickHandler();
40
46
  break;
41
47
  case 'ZONOS_SUCCESS_PAGE':
42
48
  default:
43
49
  // Do nothing, display Zonos success page
50
+ this.isLoading = false;
44
51
  break;
45
52
  }
46
53
  };
@@ -48,9 +55,9 @@ export class ZonosCheckoutFinish {
48
55
  this.getPullOrder = async (attempts = 0) => {
49
56
  const order = await this.pullOrder();
50
57
  if (order) {
58
+ void trackConversionEvent('checkout_orderCompleted');
51
59
  this.order = order;
52
60
  this.handleSuccessBehavior(order.id);
53
- this.isLoading = false;
54
61
  }
55
62
  else if (!order && attempts < 5) {
56
63
  // Wait for 1 second before the next attempt
@@ -60,18 +67,16 @@ export class ZonosCheckoutFinish {
60
67
  else {
61
68
  // Set loading to false to display generic success page and log error
62
69
  this.isLoading = false;
63
- const errorObject = {
64
- endpoint: `${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/get-order`,
70
+ const baseUrl = process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL;
71
+ const checkoutSessionId = cartStore.checkoutSessionId;
72
+ void sendErrorLog({
73
+ endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}`,
65
74
  errors: ['Order not found after multiple attempts'],
66
75
  metadata: {
67
76
  checkoutSessionId: cartStore.checkoutSessionId || '',
68
77
  domain: window.location.hostname,
69
78
  storeId: zonosStore.storeId,
70
79
  },
71
- };
72
- void handleFetch(`${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/log-error`, {
73
- body: errorObject,
74
- method: 'POST',
75
80
  });
76
81
  }
77
82
  };
@@ -79,7 +84,7 @@ export class ZonosCheckoutFinish {
79
84
  this.isLoading = true;
80
85
  const clientSecret = new URLSearchParams(window.location.search).get('payment_intent_client_secret') || stripeStore.clientSecret;
81
86
  if (clientSecret || this.storybookForceStatus) {
82
- const { error, messages } = await stripeStoreRetrievePayment({
87
+ const { error, messages, paymentMethod } = await stripeStoreRetrievePayment({
83
88
  clientSecret,
84
89
  storybookForceStatus: this.storybookForceStatus,
85
90
  });
@@ -93,6 +98,9 @@ export class ZonosCheckoutFinish {
93
98
  }
94
99
  else {
95
100
  submitGtag('zonos-checkout-success');
101
+ void trackConversionEvent('checkout_paymentInfoCompleted', {
102
+ paymentMethod,
103
+ });
96
104
  const successEvent = new CustomEvent('zonos-checkout-success', {
97
105
  detail: {
98
106
  message: 'Zonos Checkout successfully processed order',
@@ -102,12 +110,18 @@ export class ZonosCheckoutFinish {
102
110
  }
103
111
  // Attempt to pull the order details from the graph every second on 5 attempts
104
112
  if (this.notificationType === 'success') {
105
- this.isLoading = true;
106
- void this.getPullOrder();
113
+ // wait this to finish before resetting store and checkout session id
114
+ await this.getPullOrder();
115
+ }
116
+ else {
117
+ this.isLoading = false;
107
118
  }
108
119
  }
120
+ else {
121
+ this.isLoading = false;
122
+ }
109
123
  stripeStoreReset();
110
- this.isLoading = false;
124
+ cartStore.checkoutSessionId = null;
111
125
  };
112
126
  this.closeClickHandler = () => {
113
127
  this.closeClick.emit();
@@ -140,7 +154,7 @@ export class ZonosCheckoutFinish {
140
154
  // const totalItems = this.order?.items?.reduce((acc, item) => {
141
155
  // return acc + item.quantity;
142
156
  // }, 0);
143
- return (h(Host, { key: '9a09eb68e5e6d256f72798bb5119ad1ff467fd70', class: "zonos--checkout-finish zonos--elements", style: {
157
+ return (h(Host, { key: 'fe08bfd0c0b60f4dce1aa9a6f3ba273dccd70a92', class: "zonos--checkout-finish zonos--elements", style: {
144
158
  '--border-radius': getBorderRadius(this.borderRadius),
145
159
  } }, this.isLoading && (h("div", { class: "loading-wrapper" }, h("zonos-spinner", null))), !this.isLoading && (h(Fragment, null, h("div", { class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", null, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Keep shopping')))))));
146
160
  }
@@ -62,6 +62,9 @@
62
62
  :host .zonos--payment-error-banner {
63
63
  margin-bottom: var(--amino-space-8);
64
64
  }
65
+ :host zonos-button {
66
+ box-shadow: 0 0 1px 0 var(--amino-gray-600);
67
+ }
65
68
  :host .zonos--group-btn {
66
69
  position: sticky;
67
70
  display: flex;
@@ -1,10 +1,13 @@
1
1
  import { Fragment, h, Host, } from "@stencil/core";
2
2
  import { cartStore, cartStoreNextStep, cartStorePreviousStep, cartStoreReset, cartStoreUpdateItems, cartStoreUpdateToErrorState, } from "../../store/checkout/cart";
3
- import { initStripeElements, stripeStore, stripeStoreConfirmPayment, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, } from "../../store/checkout/stripe";
3
+ import { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, } from "../../store/checkout/stripe";
4
4
  import { localizationStore } from "../../store/hello/localization";
5
5
  import { translate } from "../../store/translationStore";
6
6
  import { zonosStore, } from "../../store/zonosStore";
7
+ import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
7
8
  import { isCheckoutMobile } from "../../utils/checkout/isCheckoutMobile";
9
+ import { isShippableCountry } from "../../utils/checkout/isShippableCountry";
10
+ import { watchBigcommerceDomesticCheckout } from "../../utils/checkout/watchBigcommerceDomesticCheckout";
8
11
  import { classes } from "../../utils/classes";
9
12
  import { getBorderRadius } from "../../utils/getBorderRadius";
10
13
  import { isDarkColor } from "../../utils/isDarkColor";
@@ -31,19 +34,6 @@ export class ZonosCheckout {
31
34
  overrideTheme: this.isMobile ? theme : undefined,
32
35
  });
33
36
  };
34
- this.isShippableCountry = (showLog = true) => {
35
- if (!localizationStore.localizationLoaded) {
36
- return false;
37
- }
38
- // if localization is loaded and the localization is not a shippable country, keep the original click event
39
- if (!localizationStore.isShippableCountry) {
40
- if (showLog) {
41
- log(`Checkout: not shippable country`);
42
- }
43
- return false;
44
- }
45
- return true;
46
- };
47
37
  this.getCurrentLocalePageEnum = () => {
48
38
  switch (cartStore.step) {
49
39
  case 'customer-info':
@@ -70,6 +60,7 @@ export class ZonosCheckout {
70
60
  this.isMobile = false;
71
61
  this.zonosReviewRef = undefined;
72
62
  this.storybookPaymentStatusOverride = undefined;
63
+ this.domesticRedirectedBtnSelector = '#zonos--domestic-redirected-checkout-button';
73
64
  }
74
65
  /**
75
66
  * Init cart info handler event
@@ -115,7 +106,8 @@ export class ZonosCheckout {
115
106
  // do nothing if button element is not found
116
107
  return;
117
108
  }
118
- const buttonAnchorElements = document.querySelectorAll(buttonAnchorSelector);
109
+ // also attach event to hidden button if user was redirected with shipping address session
110
+ const buttonAnchorElements = document.querySelectorAll(`${buttonAnchorSelector}, ${this.domesticRedirectedBtnSelector}`);
119
111
  // only attach event once, and looping through all of the button elements
120
112
  buttonAnchorElements.forEach(button => {
121
113
  const isEventAttached = button.getAttribute('data-zonos-checkout-attached');
@@ -125,7 +117,7 @@ export class ZonosCheckout {
125
117
  }
126
118
  button.addEventListener('click', async (e) => {
127
119
  // do nothing if it's not shippable country
128
- if (!this.isShippableCountry()) {
120
+ if (!isShippableCountry()) {
129
121
  return;
130
122
  }
131
123
  e.preventDefault();
@@ -141,6 +133,7 @@ export class ZonosCheckout {
141
133
  throw new Error('Error building cart');
142
134
  }
143
135
  submitGtag('zonos-checkout-start');
136
+ void trackConversionEvent('checkout_open');
144
137
  }
145
138
  catch (err) {
146
139
  // stop loading
@@ -155,6 +148,14 @@ export class ZonosCheckout {
155
148
  });
156
149
  button.removeAttribute('disabled');
157
150
  button.setAttribute('data-zonos-checkout-attached', 'true');
151
+ // if this button is the hidden button, trigger the click event
152
+ if (button.matches(this.domesticRedirectedBtnSelector)) {
153
+ button.dispatchEvent(new CustomEvent('click'));
154
+ // cleanup shipping session after button is clicked
155
+ stripeStoreCleanupDomesticShippingSession();
156
+ // remove the button after it's clicked
157
+ button.remove();
158
+ }
158
159
  });
159
160
  }
160
161
  appearanceSettingsOverrideChanged() {
@@ -170,6 +171,25 @@ export class ZonosCheckout {
170
171
  async init() {
171
172
  stripeStore.stripe = window.Zonos.stripe;
172
173
  this.stripe = window.Zonos.stripe;
174
+ // check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
175
+ watchBigcommerceDomesticCheckout({
176
+ domesticRedirectedBtnSelector: this.domesticRedirectedBtnSelector,
177
+ onShippingAddressSessionFound: shippingAddressSession => {
178
+ // prefilled the default address if shipping address session is found for checkout on open
179
+ this.defaultAddress = {
180
+ address: {
181
+ city: shippingAddressSession.city,
182
+ country: shippingAddressSession.countryCode,
183
+ line1: shippingAddressSession.address1,
184
+ line2: shippingAddressSession.address2,
185
+ postal_code: shippingAddressSession.postalCode,
186
+ state: shippingAddressSession.state,
187
+ },
188
+ name: `${shippingAddressSession.firstName} ${shippingAddressSession.lastName}`,
189
+ phone: shippingAddressSession.phone,
190
+ };
191
+ },
192
+ });
173
193
  const hideInternationalOrderInterval = setInterval(() => {
174
194
  const internationalSelector = window.Zonos.internationalHideSelector;
175
195
  if (!internationalSelector) {
@@ -178,7 +198,7 @@ export class ZonosCheckout {
178
198
  return;
179
199
  }
180
200
  // hide the selector if it's international
181
- const isInternationalOrder = this.isShippableCountry(false);
201
+ const isInternationalOrder = isShippableCountry(false);
182
202
  const selector = document.querySelectorAll(internationalSelector);
183
203
  if (!isInternationalOrder) {
184
204
  // show the selector when it's domestic
@@ -507,7 +527,8 @@ export class ZonosCheckout {
507
527
  "isAttachError": {},
508
528
  "isMobile": {},
509
529
  "zonosReviewRef": {},
510
- "storybookPaymentStatusOverride": {}
530
+ "storybookPaymentStatusOverride": {},
531
+ "domesticRedirectedBtnSelector": {}
511
532
  };
512
533
  }
513
534
  static get methods() {
@@ -51,6 +51,9 @@
51
51
  :host .zonos--checkbox + .zonos--address {
52
52
  margin-bottom: 0;
53
53
  }
54
+ :host zonos-button {
55
+ box-shadow: 0 0 1px 0 var(--amino-gray-600);
56
+ }
54
57
  :host .zonos--group {
55
58
  margin-bottom: var(--amino-space-20);
56
59
  overflow: auto;
@@ -75,7 +78,8 @@
75
78
  position: sticky;
76
79
  display: flex;
77
80
  justify-content: center;
78
- bottom: 0;
81
+ bottom: -5px;
82
+ padding-top: var(--amino-space-8);
79
83
  margin-top: var(--amino-space-12);
80
84
  background: var(--primary-color, var(--amino-gray-0));
81
85
  }
@@ -1,6 +1,7 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { stripeStore, } from "../../../store/checkout/stripe";
3
3
  import { translate } from "../../../store/translationStore";
4
+ import { trackConversionEvent } from "../../../utils/api/trackConversionEvent";
4
5
  import { submitGtag } from "../../../utils/submitGtag";
5
6
  export class ZonosCustomerInfo {
6
7
  constructor() {
@@ -20,6 +21,7 @@ export class ZonosCustomerInfo {
20
21
  if (!this.disabled) {
21
22
  // submit google tag when the form is complete
22
23
  submitGtag('zonos-checkout-customer-info');
24
+ void trackConversionEvent('checkout_customerInfoCompleted');
23
25
  }
24
26
  }
25
27
  render() {
@@ -28,7 +28,6 @@ export class ZonosReview {
28
28
  ? 'boldSubheader'
29
29
  : 'secondaryPageHeader';
30
30
  const titleTextColor = this.isMobile ? 'gray-1200' : 'gray-800';
31
- const totalWithoutTaxes = cartStore.total - cartStore.dutiesTaxFees;
32
31
  const renderCollapseIcon = () => {
33
32
  // only display the collapse icon if the component is being rendered with mobile styles
34
33
  if (!this.isMobile) {
@@ -43,11 +42,7 @@ export class ZonosReview {
43
42
  'zonos--review zonos--elements',
44
43
  this.isMobile && 'mobile',
45
44
  ]) }, h("div", { class: "zonos--title" }, h("zonos-text", { textColor: titleTextColor, type: titleTextType }, translate('Pay'), " ", zonosStore.organizationName), renderCollapseIcon()), h("div", { class: "zonos--total-pay" }, h("zonos-text", { type: totalTextType }, formatCurrency({
46
- amount:
47
- // show total without taxes when step is shipping, show total with taxes when step is payment
48
- cartStore.step === 'shipping'
49
- ? totalWithoutTaxes
50
- : cartStore.total,
45
+ amount: cartStore.total,
51
46
  currency: cartStore.currency,
52
47
  })))));
53
48
  }
@@ -65,6 +65,9 @@
65
65
  :host .zonos--group::-webkit-scrollbar-thumb:hover {
66
66
  background: #d6d6d6;
67
67
  }
68
+ :host zonos-button {
69
+ box-shadow: 0 0 1px 0 var(--amino-gray-600);
70
+ }
68
71
  :host .zonos--group-btn {
69
72
  position: sticky;
70
73
  display: flex;
@@ -1,6 +1,7 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { cartStore, cartStoreGetShippingTransitInfo, cartStoreUpdateSelectedShippingOption, } from "../../../store/checkout/cart";
3
3
  import { translate } from "../../../store/translationStore";
4
+ import { trackConversionEvent } from "../../../utils/api/trackConversionEvent";
4
5
  import { formatCurrency } from "../../../utils/formatCurrency";
5
6
  import { submitGtag } from "../../../utils/submitGtag";
6
7
  export class ZonosShipping {
@@ -35,9 +36,13 @@ export class ZonosShipping {
35
36
  this.disabled = true;
36
37
  }
37
38
  watchFormComplete() {
39
+ var _a;
38
40
  if (!this.disabled) {
39
41
  // submit google tag when the form is complete
40
42
  submitGtag('zonos-checkout-shipping-info');
43
+ void trackConversionEvent('checkout_shippingInfoCompleted', {
44
+ serviceLevelId: (_a = this.selectedShippingMethod) === null || _a === void 0 ? void 0 : _a.value,
45
+ });
41
46
  }
42
47
  }
43
48
  render() {
@@ -0,0 +1,54 @@
1
+ :host {
2
+ font-family: var(--font-family, Inter), Inter;
3
+ display: block;
4
+ white-space: normal;
5
+ }
6
+ :host * {
7
+ font-family: var(--font-family, Inter), Inter;
8
+ }
9
+ :host img {
10
+ max-width: 100%;
11
+ }
12
+ :host dl,
13
+ :host dd,
14
+ :host h1,
15
+ :host h2,
16
+ :host h3,
17
+ :host h4,
18
+ :host h5,
19
+ :host h6,
20
+ :host hr,
21
+ :host figure,
22
+ :host p,
23
+ :host pre {
24
+ margin: 0;
25
+ }
26
+
27
+ /* All sets of variable are here */
28
+ /* smooth font rendering */
29
+ :host {
30
+ -moz-osx-font-smoothing: grayscale;
31
+ -webkit-font-smoothing: antialiased;
32
+ }
33
+
34
+ :host {
35
+ display: inline-block;
36
+ }
37
+ :host a {
38
+ padding-bottom: 2px;
39
+ color: var(--amino-primary);
40
+ box-shadow: none;
41
+ text-decoration: none;
42
+ /* Non standard for webkit */
43
+ word-break: break-word;
44
+ hyphens: auto;
45
+ overflow-wrap: break-word;
46
+ }
47
+ :host a:link, :host a:visited {
48
+ color: var(--amino-primary);
49
+ transition: all 150ms ease-in-out;
50
+ }
51
+ :host a:hover, :host a:active {
52
+ color: var(--amino-primary);
53
+ box-shadow: 0 1px 0 var(--amino-primary);
54
+ }
@@ -0,0 +1,97 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class ZonosLink {
3
+ constructor() {
4
+ this.href = '';
5
+ this.rel = undefined;
6
+ this.target = undefined;
7
+ this.linkTitle = undefined;
8
+ }
9
+ render() {
10
+ return (h(Host, { key: '99bf9ff46cf84f424739b76d3da8a8c770c0a88f', class: "zonos--elements" }, h("a", { key: 'bd3553a33f27b4815a7b0573a34862093242b456', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: 'ad80829c1ca5cd9b0e2dd62542025eeecf436196' }))));
11
+ }
12
+ static get is() { return "zonos-link"; }
13
+ static get encapsulation() { return "shadow"; }
14
+ static get originalStyleUrls() {
15
+ return {
16
+ "$": ["zonos-link.scss"]
17
+ };
18
+ }
19
+ static get styleUrls() {
20
+ return {
21
+ "$": ["zonos-link.css"]
22
+ };
23
+ }
24
+ static get properties() {
25
+ return {
26
+ "href": {
27
+ "type": "string",
28
+ "mutable": false,
29
+ "complexType": {
30
+ "original": "string",
31
+ "resolved": "string",
32
+ "references": {}
33
+ },
34
+ "required": false,
35
+ "optional": false,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": "The href for the link"
39
+ },
40
+ "attribute": "href",
41
+ "reflect": false,
42
+ "defaultValue": "''"
43
+ },
44
+ "rel": {
45
+ "type": "string",
46
+ "mutable": false,
47
+ "complexType": {
48
+ "original": "string",
49
+ "resolved": "string | undefined",
50
+ "references": {}
51
+ },
52
+ "required": false,
53
+ "optional": true,
54
+ "docs": {
55
+ "tags": [],
56
+ "text": "The rel attribute for the link"
57
+ },
58
+ "attribute": "rel",
59
+ "reflect": false
60
+ },
61
+ "target": {
62
+ "type": "string",
63
+ "mutable": false,
64
+ "complexType": {
65
+ "original": "string",
66
+ "resolved": "string | undefined",
67
+ "references": {}
68
+ },
69
+ "required": false,
70
+ "optional": true,
71
+ "docs": {
72
+ "tags": [],
73
+ "text": "The target attribute for the link"
74
+ },
75
+ "attribute": "target",
76
+ "reflect": false
77
+ },
78
+ "linkTitle": {
79
+ "type": "string",
80
+ "mutable": false,
81
+ "complexType": {
82
+ "original": "string",
83
+ "resolved": "string | undefined",
84
+ "references": {}
85
+ },
86
+ "required": false,
87
+ "optional": true,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": "The title attribute for the link"
91
+ },
92
+ "attribute": "link-title",
93
+ "reflect": false
94
+ }
95
+ };
96
+ }
97
+ }
@@ -11,16 +11,16 @@ export class ZonosBadge {
11
11
  this.rounded = false;
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '0f502b63322730f508fd7c92f231573b1dfbfd6b', class: classes(['zonos--elements zonos--badge']), style: {
14
+ return (h(Host, { key: '1cece57ce37e04873f625d05ad5a0bea6368b46b', class: classes(['zonos--elements zonos--badge']), style: {
15
15
  '--font-family': zonosStoreFontFamily(),
16
- } }, h("div", { key: '4ee3f0b623067625ddd79336a1854f5ab796b3b1', class: classes([
16
+ } }, h("div", { key: '8caf3f2ffb7deda215c44ad0c6c0892936d526c2', class: classes([
17
17
  'zonos--badge-content',
18
18
  this.badgeColor,
19
19
  this.rounded && 'rounded',
20
20
  this.iconRight && 'icon-right',
21
21
  this.size,
22
22
  this.bold && 'bold',
23
- ]) }, this.icon, h("zonos-text", { key: 'e5bdf974408416811f7666fc453ca47db58fa43f' }, h("slot", { key: 'd953b60fefe2c25aea529b9de41938cfd96a285b' })))));
23
+ ]) }, this.icon, h("zonos-text", { key: 'fb8ac7f09675f9cfd829ecea54c61f5c699caa00' }, h("slot", { key: '978bc876e427d932662a0100043e04b105e9df8d' })))));
24
24
  }
25
25
  static get is() { return "zonos-badge"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -33,6 +33,7 @@
33
33
 
34
34
  :host {
35
35
  display: inline-flex;
36
+ border-radius: var(--border-radius, var(--amino-radius-10));
36
37
  }
37
38
  :host .zonos--spinner-wrapper {
38
39
  position: absolute;
@@ -69,6 +70,7 @@
69
70
  white-space: nowrap;
70
71
  padding: var(--amino-space-8) var(--amino-space-24);
71
72
  color: var(--color, var(--amino-gray-1200));
73
+ margin: 1px;
72
74
  /** Button size */
73
75
  }
74
76
  :host button.sm.no-background, :host button.md.no-background, :host button.lg.no-background {
@@ -58,13 +58,13 @@ export class ZonosButton {
58
58
  // only set theme for button to change text color if variant is standard and override background is set
59
59
  const buttonTheme = variant === 'standard' ? getButtonTheme(overrideBackground) : undefined;
60
60
  const borderStyle = getBorderRadius(this.borderStyle);
61
- const spinnerColor = buttonTheme === 'LIGHT' ? 'white' : 'black';
62
- return (h(Host, { key: '817142c1d229333aee0b38864788346d2749d3d1', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
61
+ const spinnerColor = buttonTheme === 'LIGHT' ? 'black' : 'white';
62
+ return (h(Host, { key: 'f3374eedd37ec6293260fba7b19d66aa013d3484', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
63
63
  '--background-color': overrideBackground,
64
64
  '--border-radius': borderStyle,
65
65
  '--color': color,
66
66
  '--font-family': zonosStoreFontFamily(),
67
- } }, h("button", { key: '04bff1f932154f54b4af51b2fac053d40efc354f', class: classes([
67
+ } }, h("button", { key: '352ce427591b20b8042dcd19ce159b77c1fc2faf', class: classes([
68
68
  this.hasIcon && 'has-icon',
69
69
  this.hasContent && 'has-content',
70
70
  this.noBackground && 'no-background',
@@ -77,7 +77,7 @@ export class ZonosButton {
77
77
  overrideBackground &&
78
78
  variant === 'standard' &&
79
79
  'override-background',
80
- ]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'fd9bd0e9f89c3c9ab6dc9d0ac7a123542a1f5023', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
80
+ ]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '554cc1fd9bb58d833339ae21e837d586adc248c2', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
81
81
  }
82
82
  static get is() { return "zonos-button"; }
83
83
  static get encapsulation() { return "shadow"; }
@@ -12,9 +12,9 @@ export class ZonosCard {
12
12
  this.spacing = '24px';
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '8581e04d45e7061bff02485ad9a9a22920b5fe84', style: {
15
+ return (h(Host, { key: 'b350f7a592ea35c3b6beaf5eefaa2ab0208975dd', style: {
16
16
  '--font-family': zonosStoreFontFamily(),
17
- } }, h("div", { key: '5e2038438e0885602c2e15808a34d62e86c95035', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot", { key: 'b7cbddad1cc08256ae9192349fe5a44302b6d79e' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
17
+ } }, h("div", { key: '125e8b550cd8f371e28a012536722f48402774f2', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot", { key: '3cf038c62910ebac736ed1c37ecf1a490c8e1d0e' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
18
18
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
19
19
  padding: this.spacing,
20
20
  } }, h("div", null, this.footerContent), h("h-stack", { spacing: 8 }, this.footerActions))))));
@@ -27,14 +27,14 @@ export class ZonosCheckbox {
27
27
  ? 'var(--amino-gray-800)'
28
28
  : 'var(--amino-gray-0)';
29
29
  const borderStyle = getBorderRadius(this.borderStyle, '4px');
30
- return (h(Host, { key: '86ab50028bec3f6a230b3a9492d06c1b2ce250fe', class: classes(['zonos--elements zonos--checkbox']), style: {
30
+ return (h(Host, { key: '5f8516f5933b739cc3f21d901e50dec1c761fa58', class: classes(['zonos--elements zonos--checkbox']), style: {
31
31
  '--background-color': backgroundColor,
32
32
  '--border-radius': borderStyle,
33
33
  '--font-family': zonosStoreFontFamily(),
34
34
  '--size': `${this.size}px`,
35
- } }, h("label", { key: '88e87bb45739707a4e3da6d378ba491899dad76c', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'c877ba4a2bd43aa67c394136ef4b3c71096e75aa', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
35
+ } }, h("label", { key: '6544f51a8c892d616123ab4194d069b055e3dc86', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: '958e35bf16be575230748fccdb1a3916942c3a30', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
36
36
  this.checkboxSelected.emit(e.target.checked);
37
- }, type: "checkbox" }), h("span", { key: '0f40603a3cf90c38f37b05d7bfd8ed54623b07f4', class: "checkmark-container" }, h("svg", { key: '67945bb82cc05997bb40aeef14c5c0fd452a68af', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ac2d1db7ba5c1578dbe59f4ca9755a409ab24546', "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", { size: this.fontSize }, this.label)))));
37
+ }, type: "checkbox" }), h("span", { key: '2c55e0a190b092dd083c433c35143e253910f54f', class: "checkmark-container" }, h("svg", { key: '0aa1f705b728055835159a399173a170aee4f7c0', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'd526bbafde4d4399be3f3a0a7cc87e92634d9548', "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", { size: this.fontSize }, this.label)))));
38
38
  }
39
39
  static get is() { return "zonos-checkbox"; }
40
40
  static get encapsulation() { return "shadow"; }