@zonos/elements 1.3.5 → 1.3.6

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 (403) hide show
  1. package/dist/cjs/ILanguage-d247b45b.js +26 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  3. package/dist/cjs/{cart-c1b0915c.js → cart-b8bbf22d.js} +62 -19
  4. package/dist/cjs/{getBorderRadius-cd7ef574.js → getBorderRadius-b252096d.js} +8 -4
  5. package/dist/cjs/index.cjs.js +0 -21
  6. package/dist/cjs/{isDarkColor-5eda1323.js → isDarkColor-168002d6.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +5 -3
  8. package/dist/cjs/{localization-d43e1540.js → localization-2c9f5765.js} +366 -1
  9. package/dist/cjs/{submitGtag-bd6e9b42.js → submitGtag-792fe45d.js} +2 -2
  10. package/dist/cjs/zonos-address_4.cjs.entry.js +289 -0
  11. package/dist/cjs/zonos-badge_2.cjs.entry.js +57 -0
  12. package/dist/cjs/zonos-banner.cjs.entry.js +4 -9
  13. package/dist/cjs/{zonos-button_2.cjs.entry.js → zonos-button_3.cjs.entry.js} +42 -15
  14. package/dist/cjs/zonos-card_2.cjs.entry.js +26 -14
  15. package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_9.cjs.entry.js} +75 -84
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +12 -13
  17. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
  19. package/dist/cjs/zonos-country-flag.cjs.entry.js +40 -0
  20. package/dist/cjs/{zonos-country-flag_4.cjs.entry.js → zonos-country-select_3.cjs.entry.js} +29 -55
  21. package/dist/cjs/zonos-elements.cjs.js +6 -4
  22. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -8
  23. package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-logo.cjs.entry.js +32 -0
  25. package/dist/cjs/zonos-notification.cjs.entry.js +5 -6
  26. package/dist/cjs/zonos-payment.cjs.entry.js +7 -7
  27. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +45 -0
  28. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +4 -4
  29. package/dist/cjs/zonos-text.cjs.entry.js +4 -6
  30. package/dist/cjs/{zonosStore-b88b5671.js → zonosStore-5d94dabb.js} +1 -1
  31. package/dist/collection/collection-manifest.json +6 -1
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -1
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -5
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/chevronDownIcon.svg +1 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/globe.svg +3 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIcon.svg +5 -0
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +126 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +60 -0
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +1 -1
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +12 -21
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +4 -5
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +9 -0
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +12 -4
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -3
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +1 -1
  46. package/dist/collection/components/common/zonos-badge/zonos-badge.js +7 -26
  47. package/dist/collection/components/common/zonos-banner/zonos-banner.js +2 -25
  48. package/dist/collection/components/common/zonos-button/zonos-button.css +18 -0
  49. package/dist/collection/components/common/zonos-button/zonos-button.js +9 -28
  50. package/dist/collection/components/common/zonos-card/zonos-card.js +2 -20
  51. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.css +82 -0
  52. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +218 -0
  53. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  54. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +1 -20
  55. package/dist/collection/components/common/zonos-country-select/assets/greenCheckDuotone.svg +4 -0
  56. package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +11 -10
  57. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +7 -11
  58. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  59. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  60. package/dist/collection/components/common/zonos-icon/zonos-icon.js +4 -4
  61. package/dist/collection/components/common/zonos-language-select/assets/greenCheckDuotone.svg +4 -0
  62. package/dist/collection/components/common/zonos-language-select/zonos-language-select.css +61 -0
  63. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +58 -0
  64. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -21
  65. package/dist/collection/components/common/zonos-notification/zonos-notification.js +3 -26
  66. package/dist/collection/components/common/zonos-select-dialog-header/assets/removeIcon.svg +1 -0
  67. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css +45 -0
  68. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +68 -0
  69. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
  70. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -4
  71. package/dist/collection/components/common/zonos-text/zonos-text.js +4 -24
  72. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.css +55 -0
  73. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +72 -0
  74. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -21
  75. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  76. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/globe.svg +3 -0
  77. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +10 -0
  78. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +27 -5
  79. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +16 -2
  80. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +11 -5
  81. package/dist/collection/components/main/zonos-controller.js +1 -1
  82. package/dist/collection/components/store/checkout/stripe.js +28 -7
  83. package/dist/collection/components/store/hello/localization.js +5 -1
  84. package/dist/collection/components/store/translationStore/strings.arabic.js +18 -0
  85. package/dist/collection/components/store/translationStore/strings.base.js +18 -0
  86. package/dist/collection/components/store/translationStore/strings.chinese.js +18 -0
  87. package/dist/collection/components/store/translationStore/strings.danish.js +18 -0
  88. package/dist/collection/components/store/translationStore/strings.dutch.js +18 -0
  89. package/dist/collection/components/store/translationStore/strings.french.js +18 -0
  90. package/dist/collection/components/store/translationStore/strings.german.js +18 -0
  91. package/dist/collection/components/store/translationStore/strings.hebrew.js +18 -0
  92. package/dist/collection/components/store/translationStore/strings.indonesian.js +18 -0
  93. package/dist/collection/components/store/translationStore/strings.italian.js +18 -0
  94. package/dist/collection/components/store/translationStore/strings.japanese.js +18 -0
  95. package/dist/collection/components/store/translationStore/strings.korean.js +18 -0
  96. package/dist/collection/components/store/translationStore/strings.norwegian.js +18 -0
  97. package/dist/collection/components/store/translationStore/strings.polish.js +18 -0
  98. package/dist/collection/components/store/translationStore/strings.portuguese.js +18 -0
  99. package/dist/collection/components/store/translationStore/strings.russian.js +18 -0
  100. package/dist/collection/components/store/translationStore/strings.spanish.js +18 -0
  101. package/dist/collection/components/store/translationStore/strings.swedish.js +18 -0
  102. package/dist/collection/components/store/translationStore/strings.turkish.js +18 -0
  103. package/dist/collection/components/store/translationStore/strings.vietnamese.js +18 -0
  104. package/dist/collection/components/stripe/zonos-address/zonos-address.js +63 -24
  105. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  106. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  107. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +19 -1
  108. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +11 -5
  109. package/dist/collection/components/utils/getBorderRadius.js +7 -3
  110. package/dist/collection/types/ILanguage.js +22 -0
  111. package/dist/collection/types/generated/graphql.customer.types.js +13 -0
  112. package/dist/collection/types/index.js +0 -1
  113. package/dist/collection/types/styles/Color.js +9 -0
  114. package/dist/components/ILanguage.js +24 -0
  115. package/dist/components/getBorderRadius.js +7 -3
  116. package/dist/components/index.js +0 -1
  117. package/dist/components/isDarkColor.js +1 -1
  118. package/dist/components/localization.js +365 -1
  119. package/dist/components/{cart.js → stripe.js} +273 -228
  120. package/dist/components/submitGtag.js +1 -1
  121. package/dist/components/zonos-address2.js +65 -26
  122. package/dist/components/zonos-badge2.js +8 -10
  123. package/dist/components/zonos-banner2.js +3 -9
  124. package/dist/components/zonos-button2.js +10 -12
  125. package/dist/components/zonos-card2.js +3 -5
  126. package/dist/components/zonos-cart-items2.js +1 -1
  127. package/dist/components/zonos-cart-subtotal2.js +14 -8
  128. package/dist/components/zonos-checkbox.d.ts +11 -0
  129. package/dist/components/zonos-checkbox.js +6 -0
  130. package/dist/components/zonos-checkbox2.js +87 -0
  131. package/dist/components/zonos-checkout-finish2.js +3 -3
  132. package/dist/components/zonos-checkout-footer.d.ts +11 -0
  133. package/dist/components/zonos-checkout-footer.js +6 -0
  134. package/dist/components/zonos-checkout-footer2.js +109 -0
  135. package/dist/components/zonos-checkout-payment2.js +2 -2
  136. package/dist/components/zonos-checkout.js +75 -52
  137. package/dist/components/zonos-collapse2.js +3 -3
  138. package/dist/components/zonos-component.js +1 -1
  139. package/dist/components/zonos-controller.js +4 -4
  140. package/dist/components/zonos-country-flag2.js +3 -5
  141. package/dist/components/zonos-country-select2.js +26 -19
  142. package/dist/components/zonos-custom-message2.js +3 -3
  143. package/dist/components/zonos-customer-info2.js +30 -10
  144. package/dist/components/zonos-dialog2.js +4 -4
  145. package/dist/components/zonos-hello-dialog-footer2.js +23 -10
  146. package/dist/components/zonos-hello-dialog2.js +41 -23
  147. package/dist/components/zonos-hello.js +31 -19
  148. package/dist/components/zonos-icon2.js +4 -4
  149. package/dist/components/zonos-language-select.d.ts +11 -0
  150. package/dist/components/zonos-language-select.js +6 -0
  151. package/dist/components/zonos-language-select2.js +87 -0
  152. package/dist/components/zonos-link-authentication2.js +2 -2
  153. package/dist/components/zonos-logo.js +44 -1
  154. package/dist/components/zonos-notification2.js +4 -6
  155. package/dist/components/zonos-payment2.js +2 -2
  156. package/dist/components/zonos-review2.js +4 -4
  157. package/dist/components/zonos-select-dialog-header.d.ts +11 -0
  158. package/dist/components/zonos-select-dialog-header.js +6 -0
  159. package/dist/components/zonos-select-dialog-header2.js +71 -0
  160. package/dist/components/zonos-shipping-rich-radio2.js +2 -2
  161. package/dist/components/zonos-shipping2.js +2 -2
  162. package/dist/components/zonos-spinner2.js +3 -3
  163. package/dist/components/zonos-text2.js +4 -7
  164. package/dist/components/zonos-tooltip.d.ts +11 -0
  165. package/dist/components/zonos-tooltip.js +6 -0
  166. package/dist/components/zonos-tooltip2.js +48 -0
  167. package/dist/components/zonos-v-stack2.js +4 -6
  168. package/dist/components/zonosStore.js +1 -1
  169. package/dist/esm/ILanguage-97790bee.js +24 -0
  170. package/dist/esm/app-globals-0f993ce5.js +3 -0
  171. package/dist/esm/{cart-7e7c7585.js → cart-bc3bb22e.js} +63 -18
  172. package/dist/esm/getBorderRadius-e9736f7e.js +20 -0
  173. package/dist/esm/index.js +1 -6
  174. package/dist/esm/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
  175. package/dist/esm/loader.js +6 -4
  176. package/dist/esm/{localization-5d83fde2.js → localization-d8f6453b.js} +366 -2
  177. package/dist/esm/{submitGtag-776c5e10.js → submitGtag-bebe2cb0.js} +2 -2
  178. package/dist/esm/zonos-address_4.entry.js +282 -0
  179. package/dist/esm/zonos-badge_2.entry.js +52 -0
  180. package/dist/esm/zonos-banner.entry.js +4 -9
  181. package/dist/esm/{zonos-button_2.entry.js → zonos-button_3.entry.js} +42 -16
  182. package/dist/esm/zonos-card_2.entry.js +26 -14
  183. package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_9.entry.js} +75 -83
  184. package/dist/esm/zonos-checkout.entry.js +12 -13
  185. package/dist/esm/zonos-component.entry.js +2 -2
  186. package/dist/esm/zonos-controller.entry.js +7 -7
  187. package/dist/esm/zonos-country-flag.entry.js +36 -0
  188. package/dist/esm/{zonos-country-flag_4.entry.js → zonos-country-select_3.entry.js} +30 -55
  189. package/dist/esm/zonos-elements.js +7 -5
  190. package/dist/esm/zonos-hello-dialog.entry.js +13 -8
  191. package/dist/esm/zonos-hello.entry.js +3 -3
  192. package/dist/esm/zonos-logo.entry.js +28 -0
  193. package/dist/esm/zonos-notification.entry.js +5 -6
  194. package/dist/esm/zonos-payment.entry.js +7 -7
  195. package/dist/esm/zonos-select-dialog-header_2.entry.js +40 -0
  196. package/dist/esm/zonos-shipping-rich-radio.entry.js +4 -4
  197. package/dist/esm/zonos-text.entry.js +4 -6
  198. package/dist/esm/{zonosStore-e59617f8.js → zonosStore-e6c7be3a.js} +1 -1
  199. package/dist/esm-es5/ILanguage-97790bee.js +1 -0
  200. package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
  201. package/dist/esm-es5/cart-bc3bb22e.js +1 -0
  202. package/dist/esm-es5/getBorderRadius-e9736f7e.js +1 -0
  203. package/dist/esm-es5/index.js +0 -1
  204. package/dist/esm-es5/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
  205. package/dist/esm-es5/loader.js +1 -1
  206. package/dist/esm-es5/localization-d8f6453b.js +1 -0
  207. package/dist/esm-es5/{submitGtag-776c5e10.js → submitGtag-bebe2cb0.js} +1 -1
  208. package/dist/esm-es5/zonos-address_4.entry.js +1 -0
  209. package/dist/esm-es5/zonos-badge_2.entry.js +1 -0
  210. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  211. package/dist/esm-es5/zonos-button_3.entry.js +1 -0
  212. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  213. package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -0
  214. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  215. package/dist/esm-es5/zonos-component.entry.js +1 -1
  216. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  217. package/dist/esm-es5/zonos-country-flag.entry.js +1 -0
  218. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -0
  219. package/dist/esm-es5/zonos-elements.js +1 -1
  220. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  221. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  222. package/dist/esm-es5/zonos-logo.entry.js +1 -0
  223. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  224. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  225. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -0
  226. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  227. package/dist/esm-es5/zonos-text.entry.js +1 -1
  228. package/dist/esm-es5/{zonosStore-e59617f8.js → zonosStore-e6c7be3a.js} +1 -1
  229. package/dist/scripts/insertTranslations.js +1 -0
  230. package/dist/scripts/loadZonos.js +1 -1
  231. package/dist/scripts/zonos.js +1 -1
  232. package/dist/scripts/zonosBase.js +1 -1
  233. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
  234. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +7 -0
  235. package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +1 -5
  236. package/dist/types/components/common/zonos-banner/zonos-banner.d.ts +0 -4
  237. package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -5
  238. package/dist/types/components/common/zonos-card/zonos-card.d.ts +0 -4
  239. package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +42 -0
  240. package/dist/types/components/common/zonos-country-flag/zonos-country-flag.d.ts +0 -4
  241. package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +1 -1
  242. package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +1 -1
  243. package/dist/types/components/common/zonos-language-select/zonos-language-select.d.ts +9 -0
  244. package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +0 -4
  245. package/dist/types/components/common/zonos-notification/zonos-notification.d.ts +0 -4
  246. package/dist/types/components/common/zonos-select-dialog-header/zonos-select-dialog-header.d.ts +12 -0
  247. package/dist/types/components/common/zonos-spinner/zonos-spinner.d.ts +1 -1
  248. package/dist/types/components/common/zonos-text/zonos-text.d.ts +1 -5
  249. package/dist/types/components/common/zonos-tooltip/zonos-tooltip.d.ts +12 -0
  250. package/dist/types/components/common/zonos-v-stack/zonos-v-stack.d.ts +0 -4
  251. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.d.ts +5 -0
  252. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +2 -0
  253. package/dist/types/components/store/checkout/stripe.d.ts +8 -0
  254. package/dist/types/components/store/hello/localization.d.ts +2 -1
  255. package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -0
  256. package/dist/types/components/store/translationStore/strings.base.d.ts +18 -0
  257. package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -0
  258. package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -0
  259. package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -0
  260. package/dist/types/components/store/translationStore/strings.french.d.ts +18 -0
  261. package/dist/types/components/store/translationStore/strings.german.d.ts +18 -0
  262. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -0
  263. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -0
  264. package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -0
  265. package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -0
  266. package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -0
  267. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -0
  268. package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -0
  269. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -0
  270. package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -0
  271. package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -0
  272. package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -0
  273. package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -0
  274. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -0
  275. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +3 -0
  276. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  277. package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +18 -2
  278. package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
  279. package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
  280. package/dist/types/components/utils/getBorderRadius.d.ts +1 -1
  281. package/dist/types/components.d.ts +242 -116
  282. package/dist/types/types/ILanguage.d.ts +81 -0
  283. package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -3
  284. package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +13 -0
  285. package/dist/types/types/generated/graphql.customer.types.d.ts +16 -4
  286. package/dist/types/types/generated/graphql.customer.types.ts +21 -4
  287. package/dist/types/types/generated/graphql.frontend.types.d.ts +6 -6
  288. package/dist/types/types/generated/graphql.frontend.types.ts +14 -4
  289. package/dist/types/types/index.d.ts +1 -1
  290. package/dist/types/types/styles/Color.d.ts +2 -0
  291. package/dist/zonos-elements/index.esm.js +0 -1
  292. package/dist/zonos-elements/{p-626b5a52.system.entry.js → p-00d63df1.system.entry.js} +1 -1
  293. package/dist/zonos-elements/p-04f63cea.entry.js +1 -0
  294. package/dist/zonos-elements/{p-120df5be.system.entry.js → p-06652d87.system.entry.js} +1 -1
  295. package/dist/zonos-elements/p-066c5893.system.js +1 -0
  296. package/dist/zonos-elements/p-0c7480a5.entry.js +1 -0
  297. package/dist/zonos-elements/p-16ad90ca.js +1 -0
  298. package/dist/zonos-elements/p-16b74c31.system.js +1 -0
  299. package/dist/zonos-elements/{p-0024f8c2.js → p-17550a10.js} +1 -1
  300. package/dist/zonos-elements/p-1d16a6fb.js +1 -0
  301. package/dist/zonos-elements/p-1ea68e3b.entry.js +1 -0
  302. package/dist/zonos-elements/{p-28d7b75d.entry.js → p-1ed530cc.entry.js} +1 -1
  303. package/dist/zonos-elements/p-289c8b1a.system.entry.js +1 -0
  304. package/dist/zonos-elements/{p-eb631432.system.entry.js → p-2a00c270.system.entry.js} +1 -1
  305. package/dist/zonos-elements/{p-be23cc91.system.entry.js → p-32bca9c8.system.entry.js} +1 -1
  306. package/dist/zonos-elements/p-37f53a79.entry.js +1 -0
  307. package/dist/zonos-elements/p-394cf1cf.js +1 -0
  308. package/dist/zonos-elements/{p-af910392.js → p-3ef27745.js} +1 -1
  309. package/dist/zonos-elements/{p-18e09138.system.entry.js → p-458fd100.system.entry.js} +1 -1
  310. package/dist/zonos-elements/{p-e8da4463.js → p-47fac33f.js} +1 -1
  311. package/dist/zonos-elements/p-49a764e9.system.entry.js +1 -0
  312. package/dist/zonos-elements/p-4fafb2a5.system.entry.js +1 -0
  313. package/dist/zonos-elements/p-4fb71a93.js +1 -0
  314. package/dist/zonos-elements/{p-dc09ca69.system.js → p-50287643.system.js} +1 -1
  315. package/dist/zonos-elements/p-50ea2036.system.js +1 -0
  316. package/dist/zonos-elements/p-5276c61b.system.entry.js +1 -0
  317. package/dist/zonos-elements/p-56ba5cbf.system.js +1 -0
  318. package/dist/zonos-elements/{p-5a0264e8.system.entry.js → p-5a113c3d.system.entry.js} +1 -1
  319. package/dist/zonos-elements/p-6308b347.entry.js +1 -0
  320. package/dist/zonos-elements/p-63d1b1fe.entry.js +1 -0
  321. package/dist/zonos-elements/p-7347ee7c.system.entry.js +1 -0
  322. package/dist/zonos-elements/p-7a6144b1.entry.js +1 -0
  323. package/dist/zonos-elements/p-7dd8e8ba.system.entry.js +1 -0
  324. package/dist/zonos-elements/p-8c26a080.system.js +1 -0
  325. package/dist/zonos-elements/p-96aabe02.entry.js +1 -0
  326. package/dist/zonos-elements/p-9cbbf261.system.entry.js +1 -0
  327. package/dist/zonos-elements/p-a33745e9.entry.js +1 -0
  328. package/dist/zonos-elements/{p-aca66e4b.entry.js → p-a4de3fb2.entry.js} +1 -1
  329. package/dist/zonos-elements/p-a682fd38.system.entry.js +1 -0
  330. package/dist/zonos-elements/p-abe7524f.system.js +1 -0
  331. package/dist/zonos-elements/{p-73174d0c.system.entry.js → p-b81a0577.system.entry.js} +1 -1
  332. package/dist/zonos-elements/p-ba1a111a.system.entry.js +1 -0
  333. package/dist/zonos-elements/p-ba43275e.entry.js +1 -0
  334. package/dist/zonos-elements/p-bd6a2095.entry.js +1 -0
  335. package/dist/zonos-elements/{p-f82e000f.system.entry.js → p-c4321084.system.entry.js} +1 -1
  336. package/dist/zonos-elements/{p-b58d2231.entry.js → p-cdf114a2.entry.js} +1 -1
  337. package/dist/zonos-elements/p-d5ae3cbb.system.entry.js +1 -0
  338. package/dist/zonos-elements/p-d5d7c8f5.entry.js +1 -0
  339. package/dist/zonos-elements/p-dd7729fd.system.entry.js +1 -0
  340. package/dist/zonos-elements/p-de339fb6.entry.js +1 -0
  341. package/dist/zonos-elements/p-e1255160.js +1 -0
  342. package/dist/zonos-elements/p-e8a9bc56.entry.js +1 -0
  343. package/dist/zonos-elements/{p-7f68c103.system.js → p-e99d79d9.system.js} +1 -1
  344. package/dist/zonos-elements/p-ec25f180.entry.js +1 -0
  345. package/dist/zonos-elements/{p-ead79548.system.js → p-f49dfd06.system.js} +1 -1
  346. package/dist/zonos-elements/{p-31fa76da.entry.js → p-f6f5f644.entry.js} +1 -1
  347. package/dist/zonos-elements/p-fcc4f140.system.js +1 -0
  348. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  349. package/dist/zonos-elements/zonos-elements.js +1 -1
  350. package/package.json +17 -18
  351. package/dist/cjs/zonos-address_2.cjs.entry.js +0 -161
  352. package/dist/cjs/zonos-badge.cjs.entry.js +0 -38
  353. package/dist/cjs/zonos-icon.cjs.entry.js +0 -35
  354. package/dist/collection/components/common/zonos-country-select/assets/arrowLeftBlue.svg +0 -1
  355. package/dist/components/zonos-logo2.js +0 -48
  356. package/dist/esm/getBorderRadius-9e4cb3b1.js +0 -16
  357. package/dist/esm/zonos-address_2.entry.js +0 -156
  358. package/dist/esm/zonos-badge.entry.js +0 -34
  359. package/dist/esm/zonos-icon.entry.js +0 -31
  360. package/dist/esm-es5/cart-7e7c7585.js +0 -1
  361. package/dist/esm-es5/getBorderRadius-9e4cb3b1.js +0 -1
  362. package/dist/esm-es5/localization-5d83fde2.js +0 -1
  363. package/dist/esm-es5/zonos-address_2.entry.js +0 -1
  364. package/dist/esm-es5/zonos-badge.entry.js +0 -1
  365. package/dist/esm-es5/zonos-button_2.entry.js +0 -1
  366. package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
  367. package/dist/esm-es5/zonos-country-flag_4.entry.js +0 -1
  368. package/dist/esm-es5/zonos-icon.entry.js +0 -1
  369. package/dist/zonos-elements/p-027abb50.entry.js +0 -1
  370. package/dist/zonos-elements/p-09c5dc1b.system.entry.js +0 -1
  371. package/dist/zonos-elements/p-1156ae5d.system.entry.js +0 -1
  372. package/dist/zonos-elements/p-12ecf765.system.js +0 -1
  373. package/dist/zonos-elements/p-174239da.system.js +0 -1
  374. package/dist/zonos-elements/p-1c00ffea.system.entry.js +0 -1
  375. package/dist/zonos-elements/p-21793192.entry.js +0 -1
  376. package/dist/zonos-elements/p-2589a038.system.entry.js +0 -1
  377. package/dist/zonos-elements/p-3319e4db.entry.js +0 -1
  378. package/dist/zonos-elements/p-357f0c61.entry.js +0 -1
  379. package/dist/zonos-elements/p-410045c5.system.entry.js +0 -1
  380. package/dist/zonos-elements/p-4d0861e9.system.js +0 -1
  381. package/dist/zonos-elements/p-54ef8ff3.entry.js +0 -1
  382. package/dist/zonos-elements/p-6444a4b9.entry.js +0 -1
  383. package/dist/zonos-elements/p-65f4af1a.system.entry.js +0 -1
  384. package/dist/zonos-elements/p-661bc488.entry.js +0 -1
  385. package/dist/zonos-elements/p-6c47083f.entry.js +0 -1
  386. package/dist/zonos-elements/p-6d454281.entry.js +0 -1
  387. package/dist/zonos-elements/p-7748735d.entry.js +0 -1
  388. package/dist/zonos-elements/p-78886ed6.system.entry.js +0 -1
  389. package/dist/zonos-elements/p-8ebc0b64.js +0 -1
  390. package/dist/zonos-elements/p-a6f2e282.system.js +0 -1
  391. package/dist/zonos-elements/p-b035f9e5.system.js +0 -1
  392. package/dist/zonos-elements/p-b1ffb37b.entry.js +0 -1
  393. package/dist/zonos-elements/p-bd02a65c.entry.js +0 -1
  394. package/dist/zonos-elements/p-bea31a7b.system.entry.js +0 -1
  395. package/dist/zonos-elements/p-cfe4a318.js +0 -1
  396. package/dist/zonos-elements/p-e4a2a1b0.system.entry.js +0 -1
  397. package/dist/zonos-elements/p-f2733cc7.js +0 -1
  398. package/dist/zonos-elements/p-f342e7c7.entry.js +0 -1
  399. /package/dist/cjs/{index-3ead02fe.js → index-72767498.js} +0 -0
  400. /package/dist/esm/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
  401. /package/dist/esm-es5/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
  402. /package/dist/zonos-elements/{p-4d8545e1.js → p-58127116.js} +0 -0
  403. /package/dist/zonos-elements/{p-4d39efb6.system.js → p-d1ab0823.system.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-b88b5671.js');
4
- const localization = require('./localization-d43e1540.js');
3
+ const zonosStore = require('./zonosStore-5d94dabb.js');
4
+ const localization = require('./localization-2c9f5765.js');
5
5
 
6
6
  /**
7
7
  * Submit a gtag event if the gtag function is available.
@@ -0,0 +1,289 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-72767498.js');
6
+ const cart = require('./cart-b8bbf22d.js');
7
+ const localization = require('./localization-2c9f5765.js');
8
+ const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
9
+ const zonosStore = require('./zonosStore-5d94dabb.js');
10
+ const classes = require('./classes-b7918f56.js');
11
+ const getBorderRadius = require('./getBorderRadius-b252096d.js');
12
+ const isDarkColor = require('./isDarkColor-168002d6.js');
13
+
14
+ const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}";
15
+ const ZonosAddressStyle0 = zonosAddressCss;
16
+
17
+ const ZonosAddress = class {
18
+ constructor(hostRef) {
19
+ index.registerInstance(this, hostRef);
20
+ this.type = undefined;
21
+ this.titleText = undefined;
22
+ this.defaultAddress = null;
23
+ this.stripe = window.Zonos.stripe;
24
+ this.isDirtyAddress = false;
25
+ }
26
+ getStripeAddressInstance() {
27
+ if (this.type === 'billing') {
28
+ return {
29
+ stripeAddressElement: cart.stripeStore.stripeBillingAddressElement,
30
+ stripeAddressEventData: cart.stripeStore.stripeBillingAddressEventData,
31
+ stripeElements: cart.stripeStore.stripeElementsForBillingAddress,
32
+ };
33
+ }
34
+ return {
35
+ stripeAddressElement: cart.stripeStore.stripeAddressElement,
36
+ stripeAddressEventData: cart.stripeStore.stripeAddressEventData,
37
+ stripeElements: cart.stripeStore.stripeElements,
38
+ };
39
+ }
40
+ updateAddressEventData({ event, type, }) {
41
+ switch (type) {
42
+ case 'billing':
43
+ cart.stripeStore.stripeBillingAddressEventData = event;
44
+ break;
45
+ default:
46
+ cart.stripeStore.stripeAddressEventData = event;
47
+ break;
48
+ }
49
+ // only prefetch if the address type is shipping
50
+ void cart.stripeStorePrefetchLandedCost();
51
+ }
52
+ updateAddressElement({ stripeAddressElement, type, }) {
53
+ if (type === 'shipping') {
54
+ cart.stripeStore.stripeAddressElement = stripeAddressElement;
55
+ return;
56
+ }
57
+ cart.stripeStore.stripeBillingAddressElement = stripeAddressElement;
58
+ }
59
+ async watchInitStripe() {
60
+ var _a, _b;
61
+ this.stripe = window.Zonos.stripe;
62
+ const { stripeAddressEventData, stripeElements } = this.getStripeAddressInstance();
63
+ if (!this.stripe || !stripeElements) {
64
+ localization.logError("Stripe is not initialized. Couldn't load stripe element.");
65
+ return;
66
+ }
67
+ const phone = (_a = this.defaultAddress) === null || _a === void 0 ? void 0 : _a.phone;
68
+ if (!phone) {
69
+ // remove phone from default address if it's not provided, stripe
70
+ // will throw error if key phone exist and its value is empty or 'undefined'.
71
+ (_b = this.defaultAddress) === null || _b === void 0 ? true : delete _b.phone;
72
+ }
73
+ const shippableCountries = localization.localizationStore.shippingZoneCountries;
74
+ const shippingZone = shippableCountries
75
+ ? Object.values(shippableCountries).map(country => country.code)
76
+ : [];
77
+ const addressElement = stripeElements.create('address', {
78
+ allowedCountries: this.type === 'shipping' ? shippingZone : [],
79
+ contacts: this.defaultAddress ? [this.defaultAddress] : [],
80
+ defaultValues: {
81
+ address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
82
+ localization.localizationStore.selectedCountryCode ||
83
+ 'AL' }),
84
+ firstName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.firstName,
85
+ lastName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.lastName,
86
+ phone: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.phone,
87
+ },
88
+ display: {
89
+ name: 'split',
90
+ },
91
+ fields: {
92
+ phone: 'always',
93
+ },
94
+ mode: this.type,
95
+ validation: {
96
+ phone: {
97
+ required: 'always',
98
+ },
99
+ },
100
+ });
101
+ addressElement.mount(this.el.querySelector('.zonos--address-component'));
102
+ addressElement.on('change', event => {
103
+ const eventValue = event.value;
104
+ if (!this.isDirtyAddress && eventValue.address.line1.length >= 3) {
105
+ this.isDirtyAddress = true;
106
+ // stripe element started with just address line 1, so scroll bar is not yet available. Wait for a moment before scrolling
107
+ setTimeout(() => {
108
+ // scroll directly into view if it's mobile
109
+ if (isCheckoutMobile.isCheckoutMobile()) {
110
+ this.el.scrollIntoView({ behavior: 'smooth', block: 'end' });
111
+ }
112
+ else {
113
+ // scroll into the end of the page so the address placeholder won't be hidden
114
+ const yOffset = this.type === 'shipping' ? 100 : 600;
115
+ const parentWrapper = this.el.closest('.zonos--group');
116
+ const y = this.el.getBoundingClientRect().top + yOffset;
117
+ parentWrapper === null || parentWrapper === void 0 ? void 0 : parentWrapper.scrollTo({ behavior: 'smooth', top: y });
118
+ }
119
+ }, 600);
120
+ }
121
+ this.updateAddressEventData({
122
+ event: Object.assign(Object.assign({}, event), { elementMode: this.type, elementType: 'address', empty: false, value: Object.assign(Object.assign({}, eventValue), { firstName: eventValue.firstName || eventValue.name.split(' ')[0], lastName: eventValue.lastName || eventValue.name.split(' ').pop() }) }),
123
+ type: this.type,
124
+ });
125
+ });
126
+ this.updateAddressElement({
127
+ stripeAddressElement: addressElement,
128
+ type: this.type,
129
+ });
130
+ }
131
+ disconnectedCallback() {
132
+ // destroy the stripe element when this component is removed from the DOM, so that we can re-create the new one with previous value
133
+ const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
134
+ stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.destroy();
135
+ }
136
+ componentDidLoad() {
137
+ const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
138
+ this.isDirtyAddress =
139
+ !!stripeAddressEventData &&
140
+ stripeAddressEventData.value.address.line1.length > 0;
141
+ // @Watch doesn't get trigger on initial load
142
+ void this.watchInitStripe();
143
+ }
144
+ render() {
145
+ // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
146
+ return (index.h(index.Host, { key: 'b2aa1ee3f16ae4ebcce83b599c97aa80f09dc9d3', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: 'e37392d0add0ab8541f78131abdf9082fd2455b4', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'd28d1908ee2f525455b0680e25cff3040093ad74', class: "zonos--address-component" })));
147
+ }
148
+ get el() { return index.getElement(this); }
149
+ static get watchers() { return {
150
+ "stripe": ["watchInitStripe"]
151
+ }; }
152
+ };
153
+ ZonosAddress.style = ZonosAddressStyle0;
154
+
155
+ const colorPrefixes = [
156
+ 'blue',
157
+ 'cyan',
158
+ 'green',
159
+ 'orange',
160
+ 'purple',
161
+ 'red',
162
+ 'gray',
163
+ 'glass',
164
+ ];
165
+
166
+ const zonosCheckboxCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{display:-ms-inline-flexbox;display:inline-flex}:host label{display:-ms-inline-flexbox;display:inline-flex;position:relative;gap:var(--amino-space-8);-ms-flex-align:center;align-items:center}:host label.disabled{cursor:not-allowed;opacity:0.6}:host input[type=checkbox]{opacity:0;position:absolute;left:0;width:0;height:0;top:0;z-index:-99999}:host svg{opacity:0}:host .checkmark-container{height:var(--size);width:var(--size);background-color:transparent;border:1.5px solid var(--amino-gray-400);position:relative;border-radius:var(--border-radius, var(--amino-radius-4))}:host .checkmark{opacity:0;position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;-webkit-transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);-webkit-transform:scale(0.4);transform:scale(0.4);background-color:var(--background-color);border-radius:var(--border-radius, var(--amino-radius-4))}:host input[type=checkbox]:checked~.checkmark-container .checkmark{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";
167
+ const ZonosCheckboxStyle0 = zonosCheckboxCss;
168
+
169
+ const ZonosCheckbox = class {
170
+ constructor(hostRef) {
171
+ index.registerInstance(this, hostRef);
172
+ this.checkboxSelected = index.createEvent(this, "checkboxSelected", 7);
173
+ this.backgroundColor = 'blue';
174
+ this.label = undefined;
175
+ this.isChecked = false;
176
+ this.isDisabled = false;
177
+ this.size = 12;
178
+ this.fontSize = 'base';
179
+ this.borderStyle = undefined;
180
+ }
181
+ render() {
182
+ const isBackgroundVariable = colorPrefixes.includes(this.backgroundColor);
183
+ const backgroundColor = isBackgroundVariable
184
+ ? `var(--amino-${this.backgroundColor}-600)`
185
+ : this.backgroundColor;
186
+ const checkmarkColor = isBackgroundVariable
187
+ ? // use lighter color if the color is amino variable
188
+ `var(--amino-${this.backgroundColor}-200)`
189
+ : // if it's not an amino variable, use white if the background is dark, and dark if the background is light
190
+ !isDarkColor.isDarkColor(backgroundColor)
191
+ ? 'var(--amino-gray-800)'
192
+ : 'var(--amino-gray-0)';
193
+ const borderStyle = getBorderRadius.getBorderRadius(this.borderStyle, '4px');
194
+ return (index.h(index.Host, { key: '86ab50028bec3f6a230b3a9492d06c1b2ce250fe', class: classes.classes(['zonos--elements zonos--checkbox']), style: {
195
+ '--background-color': backgroundColor,
196
+ '--border-radius': borderStyle,
197
+ '--font-family': zonosStore.zonosStoreFontFamily(),
198
+ '--size': `${this.size}px`,
199
+ } }, index.h("label", { key: '88e87bb45739707a4e3da6d378ba491899dad76c', class: classes.classes([this.isDisabled && 'disabled']) }, index.h("input", { key: 'c877ba4a2bd43aa67c394136ef4b3c71096e75aa', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
200
+ this.checkboxSelected.emit(e.target.checked);
201
+ }, type: "checkbox" }), index.h("span", { key: '0f40603a3cf90c38f37b05d7bfd8ed54623b07f4', class: "checkmark-container" }, index.h("svg", { key: '67945bb82cc05997bb40aeef14c5c0fd452a68af', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.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 && (index.h("zonos-text", { size: this.fontSize }, this.label)))));
202
+ }
203
+ };
204
+ ZonosCheckbox.style = ZonosCheckboxStyle0;
205
+
206
+ const zonosCollapseCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
207
+ const ZonosCollapseStyle0 = zonosCollapseCss;
208
+
209
+ const ZonosCollapse = class {
210
+ constructor(hostRef) {
211
+ index.registerInstance(this, hostRef);
212
+ this.collapsed = false;
213
+ this.collapseSize = 0;
214
+ this.height = this.el.scrollHeight;
215
+ }
216
+ getElementHeight() {
217
+ const fullHeight = `${this.height}px`;
218
+ const collapsedHeight = `${this.collapseSize}px`;
219
+ return this.collapsed ? collapsedHeight : fullHeight;
220
+ }
221
+ componentDidLoad() {
222
+ this.height = this.el.scrollHeight;
223
+ }
224
+ componentDidRender() {
225
+ var _a, _b, _c;
226
+ (_c = (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('iframe')) === null || _b === void 0 ? void 0 : _b.contentWindow) === null || _c === void 0 ? void 0 : _c.addEventListener('resize', () => {
227
+ this.height = this.el.scrollHeight;
228
+ });
229
+ }
230
+ render() {
231
+ this.height = this.el.scrollHeight;
232
+ return (index.h(index.Host, { key: '372c80d0d5b8d2c693b2c74bd6652430c8e4a5bb', class: 'zonos--elements zonos--collapse', style: {
233
+ '--font-family': zonosStore.zonosStoreFontFamily(),
234
+ height: this.getElementHeight(),
235
+ } }, index.h("div", { key: 'babd12279d1ac54092a1cff83e8e5b8ed5e81008' }, index.h("iframe", { key: '6d3a7845d560ba587829ba68033cd92ec8d2af5b', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: 'f295e17fd3178eb44dc7c0c51f87a80694fd04d7' }))));
236
+ }
237
+ get el() { return index.getElement(this); }
238
+ };
239
+ ZonosCollapse.style = ZonosCollapseStyle0;
240
+
241
+ const zonosLinkAuthenticationCss = ".sc-zonos-link-authentication-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:var(--amino-space-16)}";
242
+ const ZonosLinkAuthenticationStyle0 = zonosLinkAuthenticationCss;
243
+
244
+ const ZonosLinkAuthentication = class {
245
+ constructor(hostRef) {
246
+ index.registerInstance(this, hostRef);
247
+ this.titleText = undefined;
248
+ this.stripe = cart.stripeStore.stripe;
249
+ }
250
+ watchInitStripe() {
251
+ if (!this.stripe || !cart.stripeStore.stripeElements) {
252
+ return;
253
+ }
254
+ // Create and mount the Authentication Element in ${type} mode
255
+ const linkAuthenticationElement = cart.stripeStore.stripeLinkElement ||
256
+ cart.stripeStore.stripeElements.create('linkAuthentication');
257
+ const linkAuthenticationElementContainer = this.el.querySelector('.zonos--link-authentication-component');
258
+ if (!linkAuthenticationElementContainer) {
259
+ // eslint-disable-next-line no-console
260
+ console.error('Cannot find container element for linkAuthenticationElement');
261
+ return;
262
+ }
263
+ linkAuthenticationElement.mount(linkAuthenticationElementContainer);
264
+ linkAuthenticationElement.on('change', event => {
265
+ cart.stripeStore.stripeLinkEventData = event;
266
+ // run prefetch landed cost when address is changed
267
+ void cart.stripeStorePrefetchLandedCost();
268
+ });
269
+ cart.stripeStore.stripeLinkElement = linkAuthenticationElement;
270
+ }
271
+ componentDidLoad() {
272
+ // @Watch doesn't get trigger on initial load
273
+ this.watchInitStripe();
274
+ }
275
+ render() {
276
+ // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
277
+ return (index.h(index.Host, { key: 'aec893e026a60bcbf81e93a3c63a842f97437dcc', class: "zonos--link-authentication zonos--elements" }, index.h("zonos-text", { key: '93c2c462d3a108364d2dfbc4aeab058f87bcc7b3', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: '0098e20d87cce7547fc1abf26859c0d3765407cd', class: "zonos--link-authentication-component" })));
278
+ }
279
+ get el() { return index.getElement(this); }
280
+ static get watchers() { return {
281
+ "stripe": ["watchInitStripe"]
282
+ }; }
283
+ };
284
+ ZonosLinkAuthentication.style = ZonosLinkAuthenticationStyle0;
285
+
286
+ exports.zonos_address = ZonosAddress;
287
+ exports.zonos_checkbox = ZonosCheckbox;
288
+ exports.zonos_collapse = ZonosCollapse;
289
+ exports.zonos_link_authentication = ZonosLinkAuthentication;
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-72767498.js');
6
+ const zonosStore = require('./zonosStore-5d94dabb.js');
7
+ const classes = require('./classes-b7918f56.js');
8
+
9
+ const zonosBadgeCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
10
+ const ZonosBadgeStyle0 = zonosBadgeCss;
11
+
12
+ const ZonosBadge = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ this.bold = false;
16
+ this.badgeColor = 'gray';
17
+ this.icon = undefined;
18
+ this.iconRight = false;
19
+ this.size = 'default';
20
+ this.rounded = false;
21
+ }
22
+ render() {
23
+ return (index.h(index.Host, { key: '0f502b63322730f508fd7c92f231573b1dfbfd6b', class: classes.classes(['zonos--elements zonos--badge']), style: {
24
+ '--font-family': zonosStore.zonosStoreFontFamily(),
25
+ } }, index.h("div", { key: '4ee3f0b623067625ddd79336a1854f5ab796b3b1', class: classes.classes([
26
+ 'zonos--badge-content',
27
+ this.badgeColor,
28
+ this.rounded && 'rounded',
29
+ this.iconRight && 'icon-right',
30
+ this.size,
31
+ this.bold && 'bold',
32
+ ]) }, this.icon, index.h("zonos-text", { key: 'e5bdf974408416811f7666fc453ca47db58fa43f' }, index.h("slot", { key: 'd953b60fefe2c25aea529b9de41938cfd96a285b' })))));
33
+ }
34
+ };
35
+ ZonosBadge.style = ZonosBadgeStyle0;
36
+
37
+ const zonosTooltipCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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:var(--amino-space-12);background-color:var(--amino-gray-1200);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(--amino-radius-4);z-index:100;-webkit-box-shadow:var(--amino-v3-shadow-large);box-shadow:var(--amino-v3-shadow-large)}:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";
38
+ const ZonosTooltipStyle0 = zonosTooltipCss;
39
+
40
+ const ZonosTooltip = class {
41
+ constructor(hostRef) {
42
+ index.registerInstance(this, hostRef);
43
+ this.label = '';
44
+ this.subtitle = '';
45
+ this.showTooltip = false;
46
+ }
47
+ render() {
48
+ return (index.h(index.Host, { key: '684561bebf9385c7e6bcca7de37e7ee5084c9692', class: "zonos--elements" }, index.h("div", { key: 'c116738f39d25b856b268ece410a33f91046c739', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '4073ed0766b4efaa0c25fa7febdbad4c42714dca' }), index.h("div", { key: '8c6b180577830aaaceb629819535dd930fc49e02', class: classes.classes([
49
+ this.showTooltip && 'zonos--show-tooltip',
50
+ 'zonos--tooltip-content',
51
+ ]) }, index.h("zonos-text", { key: '7c018a9d5a7db939b59624dcc77029a5a8d621af', color: "gray-0", size: "s", type: "boldLabel" }, this.label), index.h("zonos-text", { key: 'c1f09eaf9cb1084ecf47334903b9ca8b944502b7', color: "gray-0", size: "xs" }, this.subtitle)))));
52
+ }
53
+ };
54
+ ZonosTooltip.style = ZonosTooltipStyle0;
55
+
56
+ exports.zonos_badge = ZonosBadge;
57
+ exports.zonos_tooltip = ZonosTooltip;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3ead02fe.js');
6
- const zonosStore = require('./zonosStore-b88b5671.js');
5
+ const index = require('./index-72767498.js');
6
+ const zonosStore = require('./zonosStore-5d94dabb.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
@@ -20,7 +20,6 @@ const ZonosBanner = class {
20
20
  };
21
21
  this.bannerTitle = undefined;
22
22
  this.intent = undefined;
23
- this.class = '';
24
23
  this.hasContent = false;
25
24
  }
26
25
  render() {
@@ -32,13 +31,9 @@ const ZonosBanner = class {
32
31
  index.h("slot", { onSlotchange: this.handleSlotChange }),
33
32
  ].filter(Boolean);
34
33
  const textColor = color === 'gray' ? 'gray-1200' : `${color}-800`;
35
- return (index.h("div", { class: classes.classes(['zonos--container']) }, index.h("div", { class: "zonos--icon-wrapper" }, index.h("svg", { color: primaryColor, fill: "none", height: "20", viewBox: "0 0 24 24", width: "20", xmlns: "https://www.w3.org/2000/svg" }, index.h("path", { "clip-rule": "evenodd", d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z", "data-is-secondary-color": "true", fill: secondaryColor, "fill-rule": "evenodd" }), index.h("path", { "clip-rule": "evenodd", d: "M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z", fill: "currentColor", "fill-rule": "evenodd" }))), index.h("div", { class: "zonos--header-wrapper" }, index.h("zonos-text", { color: textColor, type: "label", weight: 600 }, header)), content && (index.h("div", { class: "zonos--content-wrapper" }, index.h("zonos-text", { color: textColor }, content)))));
34
+ return (index.h("div", { class: classes.classes(['zonos--container']) }, index.h("div", { class: "zonos--icon-wrapper" }, index.h("svg", { color: primaryColor, fill: "none", height: "20", viewBox: "0 0 24 24", width: "20", xmlns: "https://www.w3.org/2000/svg" }, index.h("path", { "clip-rule": "evenodd", d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z", "data-is-secondary-color": "true", fill: secondaryColor, "fill-rule": "evenodd" }), index.h("path", { "clip-rule": "evenodd", d: "M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z", fill: "currentColor", "fill-rule": "evenodd" }))), index.h("div", { class: "zonos--header-wrapper" }, index.h("zonos-text", { textColor: textColor, type: "label", weight: 600 }, header)), content && (index.h("div", { class: "zonos--content-wrapper" }, index.h("zonos-text", { textColor: textColor }, content)))));
36
35
  };
37
- const baseClass = classes.classes([
38
- 'zonos--elements zonos--banner',
39
- this.class,
40
- this.intent,
41
- ]);
36
+ const baseClass = classes.classes(['zonos--elements zonos--banner', this.intent]);
42
37
  const font = zonosStore.zonosStoreFontFamily();
43
38
  switch (this.intent) {
44
39
  case 'error':
@@ -2,12 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-3ead02fe.js');
6
- const zonosStore = require('./zonosStore-b88b5671.js');
5
+ const index = require('./index-72767498.js');
6
+ const zonosStore = require('./zonosStore-5d94dabb.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-cd7ef574.js');
8
+ const getBorderRadius = require('./getBorderRadius-b252096d.js');
9
9
  const isColorVariable = require('./isColorVariable-41cacd82.js');
10
- const isDarkColor = require('./isDarkColor-5eda1323.js');
10
+ const isDarkColor = require('./isDarkColor-168002d6.js');
11
11
 
12
12
  /**
13
13
  * Get theme for button text based on background color
@@ -23,7 +23,7 @@ const getButtonTheme = (overrideBackground) => {
23
23
  return buttonTheme;
24
24
  };
25
25
 
26
- const zonosButtonCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--amino-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color)}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}";
26
+ const zonosButtonCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--amino-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--amino-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--amino-radius-4);width:24px}";
27
27
  const ZonosButtonStyle0 = zonosButtonCss;
28
28
 
29
29
  const ZonosButton = class {
@@ -35,8 +35,7 @@ const ZonosButton = class {
35
35
  this.handleSlotChange = () => {
36
36
  this.hasContent = true;
37
37
  };
38
- this.class = '';
39
- this.color = undefined;
38
+ this.buttonColor = undefined;
40
39
  this.backgroundColor = undefined;
41
40
  this.borderStyle = undefined;
42
41
  this.isDisabled = false;
@@ -74,21 +73,21 @@ const ZonosButton = class {
74
73
  * So need to re-assign the variant prop with the default value if the value is `undefined` here.
75
74
  */
76
75
  const variant = this.variant || 'standard';
77
- const color = this.color && isColorVariable.isColorVariable(this.color)
78
- ? `var(--amino-${this.color})`
79
- : this.color;
76
+ const color = this.buttonColor && isColorVariable.isColorVariable(this.buttonColor)
77
+ ? `var(--amino-${this.buttonColor})`
78
+ : this.buttonColor;
80
79
  // use override background if it exists, otherwise use color from setting
81
80
  const overrideBackground = this.backgroundColor || zonosStore.zonosStore.appearance.colorSecondary;
82
81
  // only set theme for button to change text color if variant is standard and override background is set
83
82
  const buttonTheme = variant === 'standard' ? getButtonTheme(overrideBackground) : undefined;
84
83
  const borderStyle = getBorderRadius.getBorderRadius(this.borderStyle);
85
84
  const spinnerColor = buttonTheme === 'LIGHT' ? 'white' : 'black';
86
- return (index.h(index.Host, { key: 'e1ad2eb31ad09c8671debc2e32d83af21085b912', class: classes.classes(['zonos--elements', this.class]), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
85
+ return (index.h(index.Host, { key: '817142c1d229333aee0b38864788346d2749d3d1', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
87
86
  '--background-color': overrideBackground,
88
87
  '--border-radius': borderStyle,
89
88
  '--color': color,
90
89
  '--font-family': zonosStore.zonosStoreFontFamily(),
91
- } }, index.h("button", { key: '0a087bf98251899711a71d69a89473479fc78c4f', class: classes.classes([
90
+ } }, index.h("button", { key: '04bff1f932154f54b4af51b2fac053d40efc354f', class: classes.classes([
92
91
  this.hasIcon && 'has-icon',
93
92
  this.hasContent && 'has-content',
94
93
  this.noBackground && 'no-background',
@@ -101,7 +100,7 @@ const ZonosButton = class {
101
100
  overrideBackground &&
102
101
  variant === 'standard' &&
103
102
  'override-background',
104
- ]), disabled: disabled }, this.loading && (index.h("div", { class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { color: spinnerColor, size: 16 }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: 'd80e58786f16bff52592a759679290a3a5ed0954', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
103
+ ]), disabled: disabled }, this.loading && (index.h("div", { class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: 'fd9bd0e9f89c3c9ab6dc9d0ac7a123542a1f5023', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
105
104
  }
106
105
  static get watchers() { return {
107
106
  "icon": ["iconChangeHandler"]
@@ -109,6 +108,33 @@ const ZonosButton = class {
109
108
  };
110
109
  ZonosButton.style = ZonosButtonStyle0;
111
110
 
111
+ const zonosIconCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--width);height:var(--height);fill:var(--color);color:var(--color)}";
112
+ const ZonosIconStyle0 = zonosIconCss;
113
+
114
+ const ZonosIcon = class {
115
+ constructor(hostRef) {
116
+ index.registerInstance(this, hostRef);
117
+ this.autoHeight = false;
118
+ this.iconColor = 'gray-1200';
119
+ this.content = undefined;
120
+ this.size = 24;
121
+ }
122
+ render() {
123
+ if (!this.content || !this.el.shadowRoot) {
124
+ return null;
125
+ }
126
+ this.el.shadowRoot.innerHTML = this.content;
127
+ return (index.h(index.Host, { class: "zonos--elements", style: {
128
+ '--color': `var(--amino-${this.iconColor})`,
129
+ '--font-family': zonosStore.zonosStoreFontFamily(),
130
+ '--height': `${this.autoHeight ? 'auto' : `${this.size}px`}`,
131
+ '--width': `${this.size}px`,
132
+ } }));
133
+ }
134
+ get el() { return index.getElement(this); }
135
+ };
136
+ ZonosIcon.style = ZonosIconStyle0;
137
+
112
138
  const zonosSpinnerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--amino-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--amino-spinner-track-black)}:host(.white) circle{stroke:var(--amino-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--amino-spinner-track-white)}:host(.info) circle{stroke:var(--amino-blue-600)}:host(.info) circle.track{stroke:var(--amino-blue-100)}:host(.success) circle{stroke:var(--amino-green-600)}:host(.success) circle.track{stroke:var(--amino-green-100)}:host(.danger) circle{stroke:var(--amino-red-600)}:host(.danger) circle.track{stroke:var(--amino-red-100)}:host(.warning) circle{stroke:var(--amino-orange-600)}:host(.warning) circle.track{stroke:var(--amino-orange-100)}";
113
139
  const ZonosSpinnerStyle0 = zonosSpinnerCss;
114
140
 
@@ -116,13 +142,13 @@ const ZonosSpinner = class {
116
142
  constructor(hostRef) {
117
143
  index.registerInstance(this, hostRef);
118
144
  this.size = 32;
119
- this.color = undefined;
145
+ this.spinnerColor = undefined;
120
146
  }
121
147
  render() {
122
148
  if (!this.el.shadowRoot) {
123
149
  return null;
124
150
  }
125
- return (index.h(index.Host, { class: classes.classes(['zonos--elements', this.color]), style: {
151
+ return (index.h(index.Host, { class: classes.classes(['zonos--elements', this.spinnerColor]), style: {
126
152
  '--size': `${this.size}px`,
127
153
  } }, index.h("svg", { viewBox: "0 0 50 50" }, index.h("circle", { class: "track", cx: "25", cy: "25", fill: "none", id: "loading-spinner-circle", r: "20", "stroke-width": "5" }), index.h("circle", { cx: "25", cy: "25", fill: "none", id: "loading-spinner-circle", r: "20", "stroke-width": "5" }))));
128
154
  }
@@ -131,4 +157,5 @@ const ZonosSpinner = class {
131
157
  ZonosSpinner.style = ZonosSpinnerStyle0;
132
158
 
133
159
  exports.zonos_button = ZonosButton;
160
+ exports.zonos_icon = ZonosIcon;
134
161
  exports.zonos_spinner = ZonosSpinner;