@zonos/elements 1.3.5-alpha.0 → 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 (420) 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-f038cf46.js → cart-b8bbf22d.js} +71 -22
  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/isCheckoutMobile-f491ca7c.js +8 -0
  7. package/dist/cjs/{isDarkColor-5eda1323.js → isDarkColor-168002d6.js} +1 -1
  8. package/dist/cjs/loader.cjs.js +5 -3
  9. package/dist/cjs/{localization-d43e1540.js → localization-2c9f5765.js} +366 -1
  10. package/dist/cjs/{submitGtag-42f29b3a.js → submitGtag-792fe45d.js} +2 -8
  11. package/dist/cjs/zonos-address_4.cjs.entry.js +289 -0
  12. package/dist/cjs/zonos-badge_2.cjs.entry.js +57 -0
  13. package/dist/cjs/zonos-banner.cjs.entry.js +4 -9
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +161 -0
  15. package/dist/cjs/zonos-card_2.cjs.entry.js +26 -14
  16. package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_9.cjs.entry.js} +84 -92
  17. package/dist/cjs/zonos-checkout.cjs.entry.js +23 -26
  18. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
  20. package/dist/cjs/zonos-country-flag.cjs.entry.js +40 -0
  21. package/dist/cjs/{zonos-country-flag_4.cjs.entry.js → zonos-country-select_3.cjs.entry.js} +29 -55
  22. package/dist/cjs/zonos-elements.cjs.js +6 -4
  23. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -8
  24. package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
  25. package/dist/cjs/zonos-logo.cjs.entry.js +32 -0
  26. package/dist/cjs/zonos-notification.cjs.entry.js +5 -6
  27. package/dist/cjs/zonos-payment.cjs.entry.js +7 -7
  28. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +45 -0
  29. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +4 -4
  30. package/dist/cjs/zonos-text.cjs.entry.js +4 -6
  31. package/dist/cjs/{zonosStore-b88b5671.js → zonosStore-5d94dabb.js} +1 -1
  32. package/dist/collection/collection-manifest.json +6 -1
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -5
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/chevronDownIcon.svg +1 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/globe.svg +3 -0
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIcon.svg +5 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +126 -0
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +60 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +5 -1
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +2 -2
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +18 -23
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +11 -15
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +14 -1
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +13 -5
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +7 -0
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -3
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +5 -1
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +2 -2
  50. package/dist/collection/components/common/zonos-badge/zonos-badge.js +7 -26
  51. package/dist/collection/components/common/zonos-banner/zonos-banner.js +2 -25
  52. package/dist/collection/components/common/zonos-button/zonos-button.css +20 -2
  53. package/dist/collection/components/common/zonos-button/zonos-button.js +19 -34
  54. package/dist/collection/components/common/zonos-card/zonos-card.js +2 -20
  55. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.css +82 -0
  56. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +218 -0
  57. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  58. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +1 -20
  59. package/dist/collection/components/common/zonos-country-select/assets/greenCheckDuotone.svg +4 -0
  60. package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +11 -10
  61. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +7 -11
  62. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  63. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  64. package/dist/collection/components/common/zonos-icon/zonos-icon.js +4 -4
  65. package/dist/collection/components/common/zonos-language-select/assets/greenCheckDuotone.svg +4 -0
  66. package/dist/collection/components/common/zonos-language-select/zonos-language-select.css +61 -0
  67. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +58 -0
  68. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -21
  69. package/dist/collection/components/common/zonos-notification/zonos-notification.js +3 -26
  70. package/dist/collection/components/common/zonos-select-dialog-header/assets/removeIcon.svg +1 -0
  71. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css +45 -0
  72. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +68 -0
  73. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
  74. package/dist/collection/components/common/zonos-spinner/zonos-spinner.css +41 -35
  75. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -4
  76. package/dist/collection/components/common/zonos-text/zonos-text.js +4 -24
  77. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.css +55 -0
  78. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +72 -0
  79. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -21
  80. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  81. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/globe.svg +3 -0
  82. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +10 -0
  83. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +27 -5
  84. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +16 -2
  85. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +11 -5
  86. package/dist/collection/components/main/zonos-controller.js +1 -1
  87. package/dist/collection/components/store/checkout/cart.js +3 -1
  88. package/dist/collection/components/store/checkout/stripe.js +36 -10
  89. package/dist/collection/components/store/hello/localization.js +5 -1
  90. package/dist/collection/components/store/translationStore/strings.arabic.js +18 -0
  91. package/dist/collection/components/store/translationStore/strings.base.js +18 -0
  92. package/dist/collection/components/store/translationStore/strings.chinese.js +18 -0
  93. package/dist/collection/components/store/translationStore/strings.danish.js +18 -0
  94. package/dist/collection/components/store/translationStore/strings.dutch.js +18 -0
  95. package/dist/collection/components/store/translationStore/strings.french.js +18 -0
  96. package/dist/collection/components/store/translationStore/strings.german.js +18 -0
  97. package/dist/collection/components/store/translationStore/strings.hebrew.js +18 -0
  98. package/dist/collection/components/store/translationStore/strings.indonesian.js +18 -0
  99. package/dist/collection/components/store/translationStore/strings.italian.js +18 -0
  100. package/dist/collection/components/store/translationStore/strings.japanese.js +18 -0
  101. package/dist/collection/components/store/translationStore/strings.korean.js +18 -0
  102. package/dist/collection/components/store/translationStore/strings.norwegian.js +18 -0
  103. package/dist/collection/components/store/translationStore/strings.polish.js +18 -0
  104. package/dist/collection/components/store/translationStore/strings.portuguese.js +18 -0
  105. package/dist/collection/components/store/translationStore/strings.russian.js +18 -0
  106. package/dist/collection/components/store/translationStore/strings.spanish.js +18 -0
  107. package/dist/collection/components/store/translationStore/strings.swedish.js +18 -0
  108. package/dist/collection/components/store/translationStore/strings.turkish.js +18 -0
  109. package/dist/collection/components/store/translationStore/strings.vietnamese.js +18 -0
  110. package/dist/collection/components/stripe/zonos-address/zonos-address.js +81 -21
  111. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  112. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  113. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +19 -1
  114. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +11 -5
  115. package/dist/collection/components/utils/getBorderRadius.js +7 -3
  116. package/dist/collection/types/ILanguage.js +22 -0
  117. package/dist/collection/types/generated/graphql.customer.types.js +13 -0
  118. package/dist/collection/types/index.js +0 -1
  119. package/dist/collection/types/styles/Color.js +9 -0
  120. package/dist/components/ILanguage.js +24 -0
  121. package/dist/components/getBorderRadius.js +7 -3
  122. package/dist/components/index.js +0 -1
  123. package/dist/components/isCheckoutMobile.js +6 -0
  124. package/dist/components/isDarkColor.js +1 -1
  125. package/dist/components/localization.js +365 -1
  126. package/dist/components/{cart.js → stripe.js} +280 -229
  127. package/dist/components/submitGtag.js +1 -1
  128. package/dist/components/zonos-address2.js +83 -23
  129. package/dist/components/zonos-badge2.js +8 -10
  130. package/dist/components/zonos-banner2.js +3 -9
  131. package/dist/components/zonos-button2.js +20 -18
  132. package/dist/components/zonos-card2.js +3 -5
  133. package/dist/components/zonos-cart-items2.js +1 -1
  134. package/dist/components/zonos-cart-subtotal2.js +14 -8
  135. package/dist/components/zonos-checkbox.d.ts +11 -0
  136. package/dist/components/zonos-checkbox.js +6 -0
  137. package/dist/components/zonos-checkbox2.js +87 -0
  138. package/dist/components/zonos-checkout-finish2.js +3 -3
  139. package/dist/components/zonos-checkout-footer.d.ts +11 -0
  140. package/dist/components/zonos-checkout-footer.js +6 -0
  141. package/dist/components/zonos-checkout-footer2.js +109 -0
  142. package/dist/components/zonos-checkout-payment2.js +4 -4
  143. package/dist/components/zonos-checkout.js +83 -62
  144. package/dist/components/zonos-collapse2.js +3 -3
  145. package/dist/components/zonos-component.js +1 -1
  146. package/dist/components/zonos-controller.js +4 -4
  147. package/dist/components/zonos-country-flag2.js +3 -5
  148. package/dist/components/zonos-country-select2.js +26 -19
  149. package/dist/components/zonos-custom-message2.js +3 -3
  150. package/dist/components/zonos-customer-info2.js +31 -11
  151. package/dist/components/zonos-dialog2.js +4 -4
  152. package/dist/components/zonos-hello-dialog-footer2.js +23 -10
  153. package/dist/components/zonos-hello-dialog2.js +41 -23
  154. package/dist/components/zonos-hello.js +31 -19
  155. package/dist/components/zonos-icon2.js +4 -4
  156. package/dist/components/zonos-language-select.d.ts +11 -0
  157. package/dist/components/zonos-language-select.js +6 -0
  158. package/dist/components/zonos-language-select2.js +87 -0
  159. package/dist/components/zonos-link-authentication2.js +2 -2
  160. package/dist/components/zonos-logo.js +44 -1
  161. package/dist/components/zonos-notification2.js +4 -6
  162. package/dist/components/zonos-payment2.js +2 -2
  163. package/dist/components/zonos-review2.js +7 -11
  164. package/dist/components/zonos-select-dialog-header.d.ts +11 -0
  165. package/dist/components/zonos-select-dialog-header.js +6 -0
  166. package/dist/components/zonos-select-dialog-header2.js +71 -0
  167. package/dist/components/zonos-shipping-rich-radio2.js +2 -2
  168. package/dist/components/zonos-shipping2.js +4 -4
  169. package/dist/components/zonos-spinner2.js +4 -4
  170. package/dist/components/zonos-text2.js +4 -7
  171. package/dist/components/zonos-tooltip.d.ts +11 -0
  172. package/dist/components/zonos-tooltip.js +6 -0
  173. package/dist/components/zonos-tooltip2.js +48 -0
  174. package/dist/components/zonos-v-stack2.js +4 -6
  175. package/dist/components/zonosStore.js +1 -1
  176. package/dist/esm/ILanguage-97790bee.js +24 -0
  177. package/dist/esm/app-globals-0f993ce5.js +3 -0
  178. package/dist/esm/{cart-ba9b0d4c.js → cart-bc3bb22e.js} +72 -21
  179. package/dist/esm/getBorderRadius-e9736f7e.js +20 -0
  180. package/dist/esm/index.js +1 -6
  181. package/dist/esm/isCheckoutMobile-8846dccb.js +6 -0
  182. package/dist/esm/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
  183. package/dist/esm/loader.js +6 -4
  184. package/dist/esm/{localization-5d83fde2.js → localization-d8f6453b.js} +366 -2
  185. package/dist/esm/{submitGtag-a7d07aec.js → submitGtag-bebe2cb0.js} +3 -8
  186. package/dist/esm/zonos-address_4.entry.js +282 -0
  187. package/dist/esm/zonos-badge_2.entry.js +52 -0
  188. package/dist/esm/zonos-banner.entry.js +4 -9
  189. package/dist/esm/zonos-button_3.entry.js +155 -0
  190. package/dist/esm/zonos-card_2.entry.js +26 -14
  191. package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_9.entry.js} +82 -89
  192. package/dist/esm/zonos-checkout.entry.js +20 -23
  193. package/dist/esm/zonos-component.entry.js +2 -2
  194. package/dist/esm/zonos-controller.entry.js +7 -7
  195. package/dist/esm/zonos-country-flag.entry.js +36 -0
  196. package/dist/esm/{zonos-country-flag_4.entry.js → zonos-country-select_3.entry.js} +30 -55
  197. package/dist/esm/zonos-elements.js +7 -5
  198. package/dist/esm/zonos-hello-dialog.entry.js +13 -8
  199. package/dist/esm/zonos-hello.entry.js +3 -3
  200. package/dist/esm/zonos-logo.entry.js +28 -0
  201. package/dist/esm/zonos-notification.entry.js +5 -6
  202. package/dist/esm/zonos-payment.entry.js +7 -7
  203. package/dist/esm/zonos-select-dialog-header_2.entry.js +40 -0
  204. package/dist/esm/zonos-shipping-rich-radio.entry.js +4 -4
  205. package/dist/esm/zonos-text.entry.js +4 -6
  206. package/dist/esm/{zonosStore-e59617f8.js → zonosStore-e6c7be3a.js} +1 -1
  207. package/dist/esm-es5/ILanguage-97790bee.js +1 -0
  208. package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
  209. package/dist/esm-es5/cart-bc3bb22e.js +1 -0
  210. package/dist/esm-es5/getBorderRadius-e9736f7e.js +1 -0
  211. package/dist/esm-es5/index.js +0 -1
  212. package/dist/esm-es5/isCheckoutMobile-8846dccb.js +1 -0
  213. package/dist/esm-es5/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
  214. package/dist/esm-es5/loader.js +1 -1
  215. package/dist/esm-es5/localization-d8f6453b.js +1 -0
  216. package/dist/esm-es5/submitGtag-bebe2cb0.js +1 -0
  217. package/dist/esm-es5/zonos-address_4.entry.js +1 -0
  218. package/dist/esm-es5/zonos-badge_2.entry.js +1 -0
  219. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  220. package/dist/esm-es5/zonos-button_3.entry.js +1 -0
  221. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  222. package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -0
  223. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  224. package/dist/esm-es5/zonos-component.entry.js +1 -1
  225. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  226. package/dist/esm-es5/zonos-country-flag.entry.js +1 -0
  227. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -0
  228. package/dist/esm-es5/zonos-elements.js +1 -1
  229. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  230. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  231. package/dist/esm-es5/zonos-logo.entry.js +1 -0
  232. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  233. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  234. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -0
  235. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  236. package/dist/esm-es5/zonos-text.entry.js +1 -1
  237. package/dist/esm-es5/{zonosStore-e59617f8.js → zonosStore-e6c7be3a.js} +1 -1
  238. package/dist/scripts/insertTranslations.js +1 -0
  239. package/dist/scripts/loadZonos.js +1 -1
  240. package/dist/scripts/zonos.js +1 -1
  241. package/dist/scripts/zonosBase.js +1 -1
  242. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
  243. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +7 -0
  244. package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +1 -5
  245. package/dist/types/components/common/zonos-banner/zonos-banner.d.ts +0 -4
  246. package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -5
  247. package/dist/types/components/common/zonos-card/zonos-card.d.ts +0 -4
  248. package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +42 -0
  249. package/dist/types/components/common/zonos-country-flag/zonos-country-flag.d.ts +0 -4
  250. package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +1 -1
  251. package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +1 -1
  252. package/dist/types/components/common/zonos-language-select/zonos-language-select.d.ts +9 -0
  253. package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +0 -4
  254. package/dist/types/components/common/zonos-notification/zonos-notification.d.ts +0 -4
  255. package/dist/types/components/common/zonos-select-dialog-header/zonos-select-dialog-header.d.ts +12 -0
  256. package/dist/types/components/common/zonos-spinner/zonos-spinner.d.ts +1 -1
  257. package/dist/types/components/common/zonos-text/zonos-text.d.ts +1 -5
  258. package/dist/types/components/common/zonos-tooltip/zonos-tooltip.d.ts +12 -0
  259. package/dist/types/components/common/zonos-v-stack/zonos-v-stack.d.ts +0 -4
  260. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.d.ts +5 -0
  261. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +2 -0
  262. package/dist/types/components/store/checkout/stripe.d.ts +9 -0
  263. package/dist/types/components/store/hello/localization.d.ts +2 -1
  264. package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -0
  265. package/dist/types/components/store/translationStore/strings.base.d.ts +18 -0
  266. package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -0
  267. package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -0
  268. package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -0
  269. package/dist/types/components/store/translationStore/strings.french.d.ts +18 -0
  270. package/dist/types/components/store/translationStore/strings.german.d.ts +18 -0
  271. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -0
  272. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -0
  273. package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -0
  274. package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -0
  275. package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -0
  276. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -0
  277. package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -0
  278. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -0
  279. package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -0
  280. package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -0
  281. package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -0
  282. package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -0
  283. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -0
  284. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +7 -0
  285. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  286. package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +18 -2
  287. package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
  288. package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
  289. package/dist/types/components/utils/checkout/isCheckoutMobile.d.ts +1 -1
  290. package/dist/types/components/utils/getBorderRadius.d.ts +1 -1
  291. package/dist/types/components.d.ts +242 -116
  292. package/dist/types/types/ILanguage.d.ts +81 -0
  293. package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -3
  294. package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +13 -0
  295. package/dist/types/types/generated/graphql.customer.types.d.ts +16 -4
  296. package/dist/types/types/generated/graphql.customer.types.ts +21 -4
  297. package/dist/types/types/generated/graphql.frontend.types.d.ts +6 -6
  298. package/dist/types/types/generated/graphql.frontend.types.ts +14 -4
  299. package/dist/types/types/index.d.ts +1 -1
  300. package/dist/types/types/styles/Color.d.ts +2 -0
  301. package/dist/zonos-elements/index.esm.js +0 -1
  302. package/dist/zonos-elements/{p-eb96f893.system.entry.js → p-00d63df1.system.entry.js} +1 -1
  303. package/dist/zonos-elements/p-04f63cea.entry.js +1 -0
  304. package/dist/zonos-elements/{p-7cae86a0.system.entry.js → p-06652d87.system.entry.js} +1 -1
  305. package/dist/zonos-elements/p-066c5893.system.js +1 -0
  306. package/dist/zonos-elements/p-0c7480a5.entry.js +1 -0
  307. package/dist/zonos-elements/p-16ad90ca.js +1 -0
  308. package/dist/zonos-elements/p-16b74c31.system.js +1 -0
  309. package/dist/zonos-elements/{p-0024f8c2.js → p-17550a10.js} +1 -1
  310. package/dist/zonos-elements/p-1d16a6fb.js +1 -0
  311. package/dist/zonos-elements/p-1ea68e3b.entry.js +1 -0
  312. package/dist/zonos-elements/{p-28d7b75d.entry.js → p-1ed530cc.entry.js} +1 -1
  313. package/dist/zonos-elements/p-289c8b1a.system.entry.js +1 -0
  314. package/dist/zonos-elements/{p-8970e202.system.entry.js → p-2a00c270.system.entry.js} +1 -1
  315. package/dist/zonos-elements/{p-be23cc91.system.entry.js → p-32bca9c8.system.entry.js} +1 -1
  316. package/dist/zonos-elements/p-37f53a79.entry.js +1 -0
  317. package/dist/zonos-elements/p-394cf1cf.js +1 -0
  318. package/dist/zonos-elements/p-3ef27745.js +1 -0
  319. package/dist/zonos-elements/{p-7beaee33.system.entry.js → p-458fd100.system.entry.js} +1 -1
  320. package/dist/zonos-elements/{p-e8da4463.js → p-47fac33f.js} +1 -1
  321. package/dist/zonos-elements/p-49a764e9.system.entry.js +1 -0
  322. package/dist/zonos-elements/p-4fafb2a5.system.entry.js +1 -0
  323. package/dist/zonos-elements/p-4fb71a93.js +1 -0
  324. package/dist/zonos-elements/{p-dc09ca69.system.js → p-50287643.system.js} +1 -1
  325. package/dist/zonos-elements/p-50ea2036.system.js +1 -0
  326. package/dist/zonos-elements/p-5276c61b.system.entry.js +1 -0
  327. package/dist/zonos-elements/p-56ba5cbf.system.js +1 -0
  328. package/dist/zonos-elements/{p-5a0264e8.system.entry.js → p-5a113c3d.system.entry.js} +1 -1
  329. package/dist/zonos-elements/p-6308b347.entry.js +1 -0
  330. package/dist/zonos-elements/p-63d1b1fe.entry.js +1 -0
  331. package/dist/zonos-elements/p-7347ee7c.system.entry.js +1 -0
  332. package/dist/zonos-elements/p-7a6144b1.entry.js +1 -0
  333. package/dist/zonos-elements/p-7dd8e8ba.system.entry.js +1 -0
  334. package/dist/zonos-elements/p-81a54668.js +1 -0
  335. package/dist/zonos-elements/p-8c26a080.system.js +1 -0
  336. package/dist/zonos-elements/p-96aabe02.entry.js +1 -0
  337. package/dist/zonos-elements/p-9cbbf261.system.entry.js +1 -0
  338. package/dist/zonos-elements/p-a33745e9.entry.js +1 -0
  339. package/dist/zonos-elements/{p-5d91e45c.entry.js → p-a4de3fb2.entry.js} +1 -1
  340. package/dist/zonos-elements/p-a682fd38.system.entry.js +1 -0
  341. package/dist/zonos-elements/p-abe7524f.system.js +1 -0
  342. package/dist/zonos-elements/p-aed0098c.system.js +1 -0
  343. package/dist/zonos-elements/{p-73174d0c.system.entry.js → p-b81a0577.system.entry.js} +1 -1
  344. package/dist/zonos-elements/p-ba1a111a.system.entry.js +1 -0
  345. package/dist/zonos-elements/p-ba43275e.entry.js +1 -0
  346. package/dist/zonos-elements/p-bd6a2095.entry.js +1 -0
  347. package/dist/zonos-elements/{p-f82e000f.system.entry.js → p-c4321084.system.entry.js} +1 -1
  348. package/dist/zonos-elements/{p-824ebf9d.entry.js → p-cdf114a2.entry.js} +1 -1
  349. package/dist/zonos-elements/p-d5ae3cbb.system.entry.js +1 -0
  350. package/dist/zonos-elements/p-d5d7c8f5.entry.js +1 -0
  351. package/dist/zonos-elements/p-dd7729fd.system.entry.js +1 -0
  352. package/dist/zonos-elements/p-de339fb6.entry.js +1 -0
  353. package/dist/zonos-elements/p-e1255160.js +1 -0
  354. package/dist/zonos-elements/p-e8a9bc56.entry.js +1 -0
  355. package/dist/zonos-elements/{p-7f68c103.system.js → p-e99d79d9.system.js} +1 -1
  356. package/dist/zonos-elements/p-ec25f180.entry.js +1 -0
  357. package/dist/zonos-elements/p-f49dfd06.system.js +1 -0
  358. package/dist/zonos-elements/{p-1165b6e5.entry.js → p-f6f5f644.entry.js} +1 -1
  359. package/dist/zonos-elements/p-fcc4f140.system.js +1 -0
  360. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  361. package/dist/zonos-elements/zonos-elements.js +1 -1
  362. package/package.json +17 -18
  363. package/dist/cjs/zonos-address_2.cjs.entry.js +0 -141
  364. package/dist/cjs/zonos-badge.cjs.entry.js +0 -38
  365. package/dist/cjs/zonos-button_2.cjs.entry.js +0 -130
  366. package/dist/cjs/zonos-icon.cjs.entry.js +0 -35
  367. package/dist/collection/components/common/zonos-country-select/assets/arrowLeftBlue.svg +0 -1
  368. package/dist/components/zonos-logo2.js +0 -48
  369. package/dist/esm/getBorderRadius-9e4cb3b1.js +0 -16
  370. package/dist/esm/zonos-address_2.entry.js +0 -136
  371. package/dist/esm/zonos-badge.entry.js +0 -34
  372. package/dist/esm/zonos-button_2.entry.js +0 -125
  373. package/dist/esm/zonos-icon.entry.js +0 -31
  374. package/dist/esm-es5/cart-ba9b0d4c.js +0 -1
  375. package/dist/esm-es5/getBorderRadius-9e4cb3b1.js +0 -1
  376. package/dist/esm-es5/localization-5d83fde2.js +0 -1
  377. package/dist/esm-es5/submitGtag-a7d07aec.js +0 -1
  378. package/dist/esm-es5/zonos-address_2.entry.js +0 -1
  379. package/dist/esm-es5/zonos-badge.entry.js +0 -1
  380. package/dist/esm-es5/zonos-button_2.entry.js +0 -1
  381. package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
  382. package/dist/esm-es5/zonos-country-flag_4.entry.js +0 -1
  383. package/dist/esm-es5/zonos-icon.entry.js +0 -1
  384. package/dist/zonos-elements/p-027abb50.entry.js +0 -1
  385. package/dist/zonos-elements/p-12c19be6.system.entry.js +0 -1
  386. package/dist/zonos-elements/p-12ecf765.system.js +0 -1
  387. package/dist/zonos-elements/p-1c00ffea.system.entry.js +0 -1
  388. package/dist/zonos-elements/p-21793192.entry.js +0 -1
  389. package/dist/zonos-elements/p-245997d9.js +0 -1
  390. package/dist/zonos-elements/p-26edde4d.system.entry.js +0 -1
  391. package/dist/zonos-elements/p-39d12bf0.entry.js +0 -1
  392. package/dist/zonos-elements/p-3d965e88.entry.js +0 -1
  393. package/dist/zonos-elements/p-410045c5.system.entry.js +0 -1
  394. package/dist/zonos-elements/p-59343e23.system.js +0 -1
  395. package/dist/zonos-elements/p-7748735d.entry.js +0 -1
  396. package/dist/zonos-elements/p-839f6cd9.entry.js +0 -1
  397. package/dist/zonos-elements/p-83bb8727.system.entry.js +0 -1
  398. package/dist/zonos-elements/p-8ebc0b64.js +0 -1
  399. package/dist/zonos-elements/p-9f3cad08.entry.js +0 -1
  400. package/dist/zonos-elements/p-a6f2e282.system.js +0 -1
  401. package/dist/zonos-elements/p-afed9236.entry.js +0 -1
  402. package/dist/zonos-elements/p-b035f9e5.system.js +0 -1
  403. package/dist/zonos-elements/p-b1ffb37b.entry.js +0 -1
  404. package/dist/zonos-elements/p-b87fa3a1.js +0 -1
  405. package/dist/zonos-elements/p-bd02a65c.entry.js +0 -1
  406. package/dist/zonos-elements/p-be4bc6bc.entry.js +0 -1
  407. package/dist/zonos-elements/p-bea31a7b.system.entry.js +0 -1
  408. package/dist/zonos-elements/p-c3d75f4f.system.js +0 -1
  409. package/dist/zonos-elements/p-da2387d2.system.entry.js +0 -1
  410. package/dist/zonos-elements/p-dcf1e1b4.system.entry.js +0 -1
  411. package/dist/zonos-elements/p-ee8b44c0.system.js +0 -1
  412. package/dist/zonos-elements/p-efd1544b.system.entry.js +0 -1
  413. package/dist/zonos-elements/p-f2733cc7.js +0 -1
  414. package/dist/zonos-elements/p-f342e7c7.entry.js +0 -1
  415. package/dist/zonos-elements/p-fdb9568e.entry.js +0 -1
  416. /package/dist/cjs/{index-3ead02fe.js → index-72767498.js} +0 -0
  417. /package/dist/esm/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
  418. /package/dist/esm-es5/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
  419. /package/dist/zonos-elements/{p-4d8545e1.js → p-58127116.js} +0 -0
  420. /package/dist/zonos-elements/{p-4d39efb6.system.js → p-d1ab0823.system.js} +0 -0
@@ -12,8 +12,7 @@ export class ZonosButton {
12
12
  this.handleSlotChange = () => {
13
13
  this.hasContent = true;
14
14
  };
15
- this.class = '';
16
- this.color = undefined;
15
+ this.buttonColor = undefined;
17
16
  this.backgroundColor = undefined;
18
17
  this.borderStyle = undefined;
19
18
  this.isDisabled = false;
@@ -46,35 +45,39 @@ export class ZonosButton {
46
45
  }
47
46
  render() {
48
47
  const disabled = this.loading || this.isDisabled;
49
- const color = this.color && isColorVariable(this.color)
50
- ? `var(--amino-${this.color})`
51
- : this.color;
48
+ /**
49
+ * If the parent component pass in the variant prop with `undefined` value, it would not re-assign the `undefined` value with the default value.
50
+ * So need to re-assign the variant prop with the default value if the value is `undefined` here.
51
+ */
52
+ const variant = this.variant || 'standard';
53
+ const color = this.buttonColor && isColorVariable(this.buttonColor)
54
+ ? `var(--amino-${this.buttonColor})`
55
+ : this.buttonColor;
52
56
  // use override background if it exists, otherwise use color from setting
53
57
  const overrideBackground = this.backgroundColor || zonosStore.appearance.colorSecondary;
54
58
  // only set theme for button to change text color if variant is standard and override background is set
55
- const buttonTheme = this.variant === 'standard'
56
- ? getButtonTheme(overrideBackground)
57
- : undefined;
59
+ const buttonTheme = variant === 'standard' ? getButtonTheme(overrideBackground) : undefined;
58
60
  const borderStyle = getBorderRadius(this.borderStyle);
59
- return (h(Host, { key: 'af41b1035e5ea776d47580647a65997bb41730e3', class: classes(['zonos--elements', this.class]), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
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: {
60
63
  '--background-color': overrideBackground,
61
64
  '--border-radius': borderStyle,
62
65
  '--color': color,
63
66
  '--font-family': zonosStoreFontFamily(),
64
- } }, h("button", { key: 'af3fdc9aa0440cf5a7e49c4c0c76826d7a700d32', class: classes([
67
+ } }, h("button", { key: '04bff1f932154f54b4af51b2fac053d40efc354f', class: classes([
65
68
  this.hasIcon && 'has-icon',
66
69
  this.hasContent && 'has-content',
67
70
  this.noBackground && 'no-background',
68
71
  this.noPaddingLeft && 'no-padding-left',
69
72
  this.noPaddingRight && 'no-padding-right',
70
73
  this.iconRight && 'icon-right',
71
- this.variant,
74
+ variant,
72
75
  this.size,
73
76
  // only override background if variant is set to standard
74
- this.backgroundColor &&
75
- this.variant === 'standard' &&
77
+ overrideBackground &&
78
+ variant === 'standard' &&
76
79
  'override-background',
77
- ]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16 }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '32b6a079ba98ab9d62b5df34ddc15e4ac7a87a8e', 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: 'fd9bd0e9f89c3c9ab6dc9d0ac7a123542a1f5023', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
78
81
  }
79
82
  static get is() { return "zonos-button"; }
80
83
  static get encapsulation() { return "shadow"; }
@@ -90,25 +93,7 @@ export class ZonosButton {
90
93
  }
91
94
  static get properties() {
92
95
  return {
93
- "class": {
94
- "type": "string",
95
- "mutable": false,
96
- "complexType": {
97
- "original": "string",
98
- "resolved": "string",
99
- "references": {}
100
- },
101
- "required": false,
102
- "optional": false,
103
- "docs": {
104
- "tags": [],
105
- "text": "css class for the component"
106
- },
107
- "attribute": "class",
108
- "reflect": false,
109
- "defaultValue": "''"
110
- },
111
- "color": {
96
+ "buttonColor": {
112
97
  "type": "string",
113
98
  "mutable": false,
114
99
  "complexType": {
@@ -128,7 +113,7 @@ export class ZonosButton {
128
113
  "tags": [],
129
114
  "text": "The color of the button text and svg"
130
115
  },
131
- "attribute": "color",
116
+ "attribute": "button-color",
132
117
  "reflect": false
133
118
  },
134
119
  "backgroundColor": {
@@ -5,7 +5,6 @@ import { classes } from "../../utils/classes";
5
5
  export class ZonosCard {
6
6
  constructor() {
7
7
  this.actions = undefined;
8
- this.class = undefined;
9
8
  this.footerActions = undefined;
10
9
  this.footerContent = undefined;
11
10
  this.footerHeight = undefined;
@@ -13,9 +12,9 @@ export class ZonosCard {
13
12
  this.spacing = '24px';
14
13
  }
15
14
  render() {
16
- return (h(Host, { key: 'f2f7929742862b9806ddc568155e7cddf954252e', style: {
15
+ return (h(Host, { key: '8581e04d45e7061bff02485ad9a9a22920b5fe84', style: {
17
16
  '--font-family': zonosStoreFontFamily(),
18
- } }, h("div", { key: 'ce3568d7ded3cfb9acb0f4ff3d4184a17b88f33b', class: classes(['styled-card', this.class]), 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: '3cc9f896df1899da73eab80dfbb3aac3a0046956' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
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: {
19
18
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
20
19
  padding: this.spacing,
21
20
  } }, h("div", null, this.footerContent), h("h-stack", { spacing: 8 }, this.footerActions))))));
@@ -54,23 +53,6 @@ export class ZonosCard {
54
53
  "text": "The actions to display in the header of the card"
55
54
  }
56
55
  },
57
- "class": {
58
- "type": "string",
59
- "mutable": false,
60
- "complexType": {
61
- "original": "string",
62
- "resolved": "string | undefined",
63
- "references": {}
64
- },
65
- "required": false,
66
- "optional": true,
67
- "docs": {
68
- "tags": [],
69
- "text": "The CSS class to apply to the card element"
70
- },
71
- "attribute": "class",
72
- "reflect": false
73
- },
74
56
  "footerActions": {
75
57
  "type": "unknown",
76
58
  "mutable": false,
@@ -0,0 +1,82 @@
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-flex;
36
+ }
37
+ :host label {
38
+ display: inline-flex;
39
+ position: relative;
40
+ gap: var(--amino-space-8);
41
+ align-items: center;
42
+ }
43
+ :host label.disabled {
44
+ cursor: not-allowed;
45
+ opacity: 0.6;
46
+ }
47
+ :host input[type=checkbox] {
48
+ opacity: 0;
49
+ position: absolute;
50
+ left: 0;
51
+ width: 0;
52
+ height: 0;
53
+ top: 0;
54
+ z-index: -99999;
55
+ }
56
+ :host svg {
57
+ opacity: 0;
58
+ }
59
+ :host .checkmark-container {
60
+ height: var(--size);
61
+ width: var(--size);
62
+ background-color: transparent;
63
+ border: 1.5px solid var(--amino-gray-400);
64
+ position: relative;
65
+ border-radius: var(--border-radius, var(--amino-radius-4));
66
+ }
67
+ :host .checkmark {
68
+ opacity: 0;
69
+ position: absolute;
70
+ top: -1.5px;
71
+ left: -1.5px;
72
+ right: -1.5px;
73
+ bottom: -1.5px;
74
+ transition: 0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
75
+ transform: scale(0.4);
76
+ background-color: var(--background-color);
77
+ border-radius: var(--border-radius, var(--amino-radius-4));
78
+ }
79
+ :host input[type=checkbox]:checked ~ .checkmark-container .checkmark {
80
+ opacity: 1;
81
+ transform: scale(1);
82
+ }
@@ -0,0 +1,218 @@
1
+ import { h, Host, } from "@stencil/core";
2
+ import { zonosStoreFontFamily } from "../../store/zonosStore";
3
+ import { classes } from "../../utils/classes";
4
+ import { getBorderRadius } from "../../utils/getBorderRadius";
5
+ import { isDarkColor } from "../../utils/isDarkColor";
6
+ import { colorPrefixes } from "../../../types/styles/Color";
7
+ export class ZonosCheckbox {
8
+ constructor() {
9
+ this.backgroundColor = 'blue';
10
+ this.label = undefined;
11
+ this.isChecked = false;
12
+ this.isDisabled = false;
13
+ this.size = 12;
14
+ this.fontSize = 'base';
15
+ this.borderStyle = undefined;
16
+ }
17
+ render() {
18
+ const isBackgroundVariable = colorPrefixes.includes(this.backgroundColor);
19
+ const backgroundColor = isBackgroundVariable
20
+ ? `var(--amino-${this.backgroundColor}-600)`
21
+ : this.backgroundColor;
22
+ const checkmarkColor = isBackgroundVariable
23
+ ? // use lighter color if the color is amino variable
24
+ `var(--amino-${this.backgroundColor}-200)`
25
+ : // if it's not an amino variable, use white if the background is dark, and dark if the background is light
26
+ !isDarkColor(backgroundColor)
27
+ ? 'var(--amino-gray-800)'
28
+ : 'var(--amino-gray-0)';
29
+ const borderStyle = getBorderRadius(this.borderStyle, '4px');
30
+ return (h(Host, { key: '86ab50028bec3f6a230b3a9492d06c1b2ce250fe', class: classes(['zonos--elements zonos--checkbox']), style: {
31
+ '--background-color': backgroundColor,
32
+ '--border-radius': borderStyle,
33
+ '--font-family': zonosStoreFontFamily(),
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 => {
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)))));
38
+ }
39
+ static get is() { return "zonos-checkbox"; }
40
+ static get encapsulation() { return "shadow"; }
41
+ static get originalStyleUrls() {
42
+ return {
43
+ "$": ["zonos-checkbox.scss"]
44
+ };
45
+ }
46
+ static get styleUrls() {
47
+ return {
48
+ "$": ["zonos-checkbox.css"]
49
+ };
50
+ }
51
+ static get properties() {
52
+ return {
53
+ "backgroundColor": {
54
+ "type": "string",
55
+ "mutable": false,
56
+ "complexType": {
57
+ "original": "| CheckboxColorPrefix\n | (string & { _placeholder?: never })",
58
+ "resolved": "\"blue\" | \"cyan\" | \"gray\" | \"green\" | \"orange\" | \"purple\" | \"red\" | string & { _placeholder?: undefined; }",
59
+ "references": {
60
+ "CheckboxColorPrefix": {
61
+ "location": "import",
62
+ "path": "src/types/styles/Color",
63
+ "id": "src/types/styles/Color.ts::CheckboxColorPrefix"
64
+ }
65
+ }
66
+ },
67
+ "required": false,
68
+ "optional": false,
69
+ "docs": {
70
+ "tags": [],
71
+ "text": "background color of the checkbox"
72
+ },
73
+ "attribute": "background-color",
74
+ "reflect": false,
75
+ "defaultValue": "'blue'"
76
+ },
77
+ "label": {
78
+ "type": "string",
79
+ "mutable": false,
80
+ "complexType": {
81
+ "original": "string",
82
+ "resolved": "string | undefined",
83
+ "references": {}
84
+ },
85
+ "required": false,
86
+ "optional": true,
87
+ "docs": {
88
+ "tags": [],
89
+ "text": "The label of the checkbox"
90
+ },
91
+ "attribute": "label",
92
+ "reflect": false
93
+ },
94
+ "isChecked": {
95
+ "type": "boolean",
96
+ "mutable": false,
97
+ "complexType": {
98
+ "original": "boolean",
99
+ "resolved": "boolean",
100
+ "references": {}
101
+ },
102
+ "required": false,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [],
106
+ "text": "Whether or not the checkbox is checked"
107
+ },
108
+ "attribute": "is-checked",
109
+ "reflect": false,
110
+ "defaultValue": "false"
111
+ },
112
+ "isDisabled": {
113
+ "type": "boolean",
114
+ "mutable": false,
115
+ "complexType": {
116
+ "original": "boolean",
117
+ "resolved": "boolean",
118
+ "references": {}
119
+ },
120
+ "required": false,
121
+ "optional": false,
122
+ "docs": {
123
+ "tags": [],
124
+ "text": "Whether or not the checkbox is disabled"
125
+ },
126
+ "attribute": "is-disabled",
127
+ "reflect": false,
128
+ "defaultValue": "false"
129
+ },
130
+ "size": {
131
+ "type": "number",
132
+ "mutable": false,
133
+ "complexType": {
134
+ "original": "12 | 16 | 24",
135
+ "resolved": "12 | 16 | 24",
136
+ "references": {}
137
+ },
138
+ "required": false,
139
+ "optional": false,
140
+ "docs": {
141
+ "tags": [],
142
+ "text": "Size of the checkbox"
143
+ },
144
+ "attribute": "size",
145
+ "reflect": false,
146
+ "defaultValue": "12"
147
+ },
148
+ "fontSize": {
149
+ "type": "string",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "Size",
153
+ "resolved": "\"2xl\" | \"3xl\" | \"base\" | \"l\" | \"s\" | \"xl\" | \"xs\"",
154
+ "references": {
155
+ "Size": {
156
+ "location": "import",
157
+ "path": "src/types/styles/Text",
158
+ "id": "src/types/styles/Text.ts::Size"
159
+ }
160
+ }
161
+ },
162
+ "required": false,
163
+ "optional": false,
164
+ "docs": {
165
+ "tags": [],
166
+ "text": "Font size of the checkbox text"
167
+ },
168
+ "attribute": "font-size",
169
+ "reflect": false,
170
+ "defaultValue": "'base'"
171
+ },
172
+ "borderStyle": {
173
+ "type": "string",
174
+ "mutable": false,
175
+ "complexType": {
176
+ "original": "ElementsUiStyle",
177
+ "resolved": "\"ROUNDED\" | \"SHARP\" | undefined",
178
+ "references": {
179
+ "ElementsUiStyle": {
180
+ "location": "import",
181
+ "path": "src/types",
182
+ "id": "src/types/index.ts::ElementsUiStyle"
183
+ }
184
+ }
185
+ },
186
+ "required": false,
187
+ "optional": true,
188
+ "docs": {
189
+ "tags": [{
190
+ "name": "default",
191
+ "text": "ROUNDED"
192
+ }],
193
+ "text": "The border style of the button"
194
+ },
195
+ "attribute": "border-style",
196
+ "reflect": false
197
+ }
198
+ };
199
+ }
200
+ static get events() {
201
+ return [{
202
+ "method": "checkboxSelected",
203
+ "name": "checkboxSelected",
204
+ "bubbles": true,
205
+ "cancelable": true,
206
+ "composed": true,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": "Event to emit when the checkbox is changed"
210
+ },
211
+ "complexType": {
212
+ "original": "boolean",
213
+ "resolved": "boolean",
214
+ "references": {}
215
+ }
216
+ }];
217
+ }
218
+ }
@@ -23,10 +23,10 @@ export class ZonosCollapse {
23
23
  }
24
24
  render() {
25
25
  this.height = this.el.scrollHeight;
26
- return (h(Host, { key: 'fb0d16e7e638d45b3469d7f7d26cd3f3ce9bf318', class: 'zonos--elements zonos--collapse', style: {
26
+ return (h(Host, { key: '372c80d0d5b8d2c693b2c74bd6652430c8e4a5bb', class: 'zonos--elements zonos--collapse', style: {
27
27
  '--font-family': zonosStoreFontFamily(),
28
28
  height: this.getElementHeight(),
29
- } }, h("div", { key: '9da00237f8f14edd9c5bf4b68da545b8c7ab4786' }, h("iframe", { key: '402e19d6e96d019a4eccd49af6afdac428c9fae9', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'de6751ac4955c073cc34188ebe22fabed38f780d' }))));
29
+ } }, h("div", { key: 'babd12279d1ac54092a1cff83e8e5b8ed5e81008' }, h("iframe", { key: '6d3a7845d560ba587829ba68033cd92ec8d2af5b', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'f295e17fd3178eb44dc7c0c51f87a80694fd04d7' }))));
30
30
  }
31
31
  static get is() { return "zonos-collapse"; }
32
32
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,6 @@ import { classes } from "../../utils/classes";
5
5
  const FLAG_URL = process.env.NEXT_PUBLIC_FLAG_URL;
6
6
  export class ZonosCountryFlag {
7
7
  constructor() {
8
- this.class = '';
9
8
  this.countryCode = localizationStore.selectedCountryCode;
10
9
  this.size = undefined;
11
10
  }
@@ -23,7 +22,7 @@ export class ZonosCountryFlag {
23
22
  }
24
23
  : {
25
24
  '--font-family': font,
26
- } }, h("div", { class: classes([`flag-container`, this.class]) }, h("div", { class: "flag-icon", style: { backgroundImage: `url(${flagUrl})` } }))));
25
+ } }, h("div", { class: classes([`flag-container`]) }, h("div", { class: "flag-icon", style: { backgroundImage: `url(${flagUrl})` } }))));
27
26
  }
28
27
  static get is() { return "zonos-country-flag"; }
29
28
  static get encapsulation() { return "shadow"; }
@@ -39,24 +38,6 @@ export class ZonosCountryFlag {
39
38
  }
40
39
  static get properties() {
41
40
  return {
42
- "class": {
43
- "type": "string",
44
- "mutable": false,
45
- "complexType": {
46
- "original": "string",
47
- "resolved": "string | undefined",
48
- "references": {}
49
- },
50
- "required": false,
51
- "optional": true,
52
- "docs": {
53
- "tags": [],
54
- "text": "The class name for the flag"
55
- },
56
- "attribute": "class",
57
- "reflect": false,
58
- "defaultValue": "''"
59
- },
60
41
  "countryCode": {
61
42
  "type": "string",
62
43
  "mutable": false,
@@ -0,0 +1,4 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>
4
+ </svg>
@@ -32,22 +32,23 @@
32
32
  }
33
33
 
34
34
  :host .zonos--country-select {
35
- max-height: 60vh;
36
- }
37
- :host .zonos--country-select .zonos--country-select-header {
38
35
  position: relative;
39
- text-align: center;
40
36
  }
41
- :host .zonos--country-select .zonos--country-select-header .zonos--country-select-back {
42
- position: absolute;
43
- top: -3px;
44
- left: 0px;
37
+ :host .zonos--country-select .zonos--country-select-header {
38
+ position: sticky;
39
+ top: 0;
40
+ background: var(--amino-surface-color);
41
+ z-index: 11;
45
42
  }
46
43
  :host .zonos--country-select .zonos--country-select-input {
47
44
  padding: var(--amino-space-8);
48
45
  border-radius: var(--amino-radius-4);
49
46
  border: var(--amino-border);
50
47
  }
48
+ :host .zonos--country-select .zonos--country-select-content {
49
+ padding: var(--amino-space-16);
50
+ padding-top: var(--amino-space-0);
51
+ }
51
52
  :host .zonos--country-select .zonos--country-select-country {
52
53
  display: flex;
53
54
  gap: var(--amino-space-16);
@@ -62,7 +63,7 @@
62
63
  :host .zonos--country-select .zonos--country-select-country:hover {
63
64
  background: var(--amino-gray-100);
64
65
  }
65
- :host .zonos--country-select .zonos--country-select-country .zonos--hello-country-flag {
66
+ :host .zonos--country-select .zonos--country-select-country .zonos--country-flag {
66
67
  border-radius: var(--amino-radius-4);
67
68
  width: 24px;
68
69
  height: 18px;
@@ -73,7 +74,7 @@
73
74
  justify-self: center;
74
75
  }
75
76
  @media (max-width: 768px) {
76
- :host .zonos--country-select .zonos--country-select-country .zonos--hello-country-flag {
77
+ :host .zonos--country-select .zonos--country-select-country .zonos--country-flag {
77
78
  border-radius: var(--amino-radius-4);
78
79
  width: 24px;
79
80
  }
@@ -1,27 +1,25 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import Fuse from "fuse.js";
3
3
  import { localizationStore, localizationStoreUpdateSelectedCountryCode, } from "../../store/hello/localization";
4
- import { translate } from "../../store/translationStore";
5
4
  import { zonosStoreFontFamily } from "../../store/zonosStore";
6
5
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
7
- import ArrowLeftBlue from "../../common/zonos-country-select/assets/arrowLeftBlue.svg";
6
+ import GreenCheckDuotoneIcon from "./assets/greenCheckDuotone.svg";
8
7
  export class ZonosCountrySelect {
9
8
  constructor() {
10
9
  this.countrySelected = (countryCode) => {
11
10
  // mutate the selected country code in store
12
11
  void localizationStoreUpdateSelectedCountryCode(countryCode);
13
- this.closeCountrySelect();
12
+ this.handleOnClose();
14
13
  };
15
14
  this.handleInputChange = (event) => {
16
15
  const input = event.target;
17
16
  this.inputValue = input.value;
18
17
  };
19
- this.closeCountrySelect = () => { };
18
+ this.handleOnClose = () => { };
20
19
  this.inputValue = '';
21
20
  }
22
21
  render() {
23
- var _a;
24
- const { selectedCountryCode, shippingZoneCountries } = localizationStore;
22
+ const { shippingZoneCountries } = localizationStore;
25
23
  const countries = shippingZoneCountries
26
24
  ? Object.values(shippingZoneCountries)
27
25
  : [];
@@ -32,11 +30,9 @@ export class ZonosCountrySelect {
32
30
  const filteredCountries = this.inputValue
33
31
  ? fuseObject.map(country => country.item)
34
32
  : countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
35
- return (h(Host, { key: 'ddd9aaea7997423d9e5302158e95fc7614b50138', class: "zonos--elements", style: {
33
+ return (h(Host, { key: 'fb1115a06814daaf8ebb7d9e282fdd1bd944121f', class: "zonos--elements", style: {
36
34
  '--font-family': zonosStoreFontFamily(),
37
- } }, h("div", { key: 'c847863dce4998919ea6ed9fd14490173bc41928', class: "zonos--country-select" }, h("zonos-v-stack", { key: '59601481559a5348d49faa3bb37087464b487d2b' }, h("div", { key: '29ba7a85217df739ac29ede069bbe2dd2b19cfac', class: "zonos--country-select-header" }, h("zonos-button", { key: '02f705c0403182b24e8657791b51c5e67879681d', class: "zonos--country-select-back", color: "blue-600", icon: h("zonos-icon", { color: "blue-600", content: ArrowLeftBlue, size: 18 }), onClick: () => this.closeCountrySelect(), variant: "subtle" }, translate('Back')), h("zonos-text", { key: '1a12fd2978f70e7cff4b8871a90e80e4b511be6a' }, shippingZoneCountries &&
38
- selectedCountryCode &&
39
- ((_a = shippingZoneCountries[selectedCountryCode]) === null || _a === void 0 ? void 0 : _a.displayName))), h("zonos-v-stack", { key: '8c2f3da67b479d618d6837a5811b6cede4fe4517', spacing: 8 }, h("input", { key: '989879f65463f5c118e5f9906127546436d5f40c', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Enter country", value: this.inputValue }), h("div", { key: 'f6ddf1629ad299053f949b8ff36bc126b622bb91' }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: country.code }), h("zonos-text", { color: "gray-800" }, country.displayName))))))))));
35
+ } }, h("div", { key: 'eb9eb7dba8f170c6190fd29e670b002ecb39a849', class: "zonos--country-select" }, h("zonos-v-stack", { key: '4667474f03efbad9fbb0ea4153d16b49a7f2803f', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: 'c2777f838d9d376878e1218868ed8df0d28dc5f2', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: '1e41b3888bce97a94ff88c4b3b3389cc8d4de096', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: 'ba89ae931e2a0e564112d9989d8074674906a297', class: "zonos--country-select-content" }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--country-flag", countryCode: country.code }), h("zonos-text", { color: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
40
36
  }
41
37
  static get is() { return "zonos-country-select"; }
42
38
  static get encapsulation() { return "shadow"; }
@@ -52,7 +48,7 @@ export class ZonosCountrySelect {
52
48
  }
53
49
  static get properties() {
54
50
  return {
55
- "closeCountrySelect": {
51
+ "handleOnClose": {
56
52
  "type": "unknown",
57
53
  "mutable": false,
58
54
  "complexType": {
@@ -6,9 +6,9 @@ export class ZonosCustomMessage {
6
6
  this.message = '';
7
7
  }
8
8
  render() {
9
- return (h(Host, { key: 'eb6b2a907ef77d5e2da0d9cb1bee4b77f814e5cb', class: "zonos--elements", style: {
9
+ return (h(Host, { key: '6c16aa29406415995c2289c2fe3d22dbe08fbd23', class: "zonos--elements", style: {
10
10
  '--font-family': zonosStoreFontFamily(),
11
- } }, h("zonos-card", { key: '9d61e783ca6f87f3a6b478fad97052a2f9f25a8c', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '6aa51eeb08ee08f19ff8764b0ee868a1c4eeacf8', class: "zonos--flex-message" }, h("zonos-icon", { key: 'c2dd91ae7ac5cf7dd8392729f0ecb38edb04c077', content: this.icon }), h("zonos-text", { key: '537f77f41a5285acc29e7b104d9bb3fd65119477' }, this.message)))));
11
+ } }, this.message && (h("zonos-card", { class: "zonos--custom-message", spacing: "12px" }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Custom message", content: this.icon }), h("zonos-text", null, this.message))))));
12
12
  }
13
13
  static get is() { return "zonos-custom-message"; }
14
14
  static get encapsulation() { return "shadow"; }
@@ -48,7 +48,7 @@ export class ZonosDialog {
48
48
  document.body.style.overflow = 'auto';
49
49
  }
50
50
  const borderStyle = getBorderRadius(this.borderStyle);
51
- return (h(Host, { key: '5a331d58bfd2a0414e9577c4f515cfcd0c630ad5', class: classes([
51
+ return (h(Host, { key: 'dd232b16db7f6a6216f91af19c8b735b7eb528c7', class: classes([
52
52
  'zonos--elements',
53
53
  this.open && 'open',
54
54
  this.isLoading && 'is-loading',
@@ -59,10 +59,10 @@ export class ZonosDialog {
59
59
  '--font-family': zonosStoreFontFamily(),
60
60
  '--height': this.height || 'initial',
61
61
  '--width': this.width,
62
- } }, h("div", { key: '74e3ed8fcdf55e3ae11d6be9c1e18691f1115bb9', class: "zonos--backdrop" }), h("div", { key: 'dae7aa8261feeb43d62550832b6b91437da07f9d', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: 'ea919a80d1c0589908af64d48845c5263d1b18f4', class: "zonos--dialog" }, this.isLoading && (h("div", { class: "zonos--loading" }, h("zonos-spinner", { size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { class: "zonos--header" }, this.headerText && (h("h3", { class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { key: '77de036f1fd7ea16936a5521a646df427115e99b', class: classes([
62
+ } }, h("div", { key: '23751fcbfe7a51856589d45feb59ed51ca3f86fa', class: "zonos--backdrop" }), h("div", { key: '3f5af0c470ad69e68b978753ece8d2687c99ab7c', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: 'e137a76e1a3e2cfc6403628fe804eb23d1bb1282', class: "zonos--dialog" }, this.isLoading && (h("div", { class: "zonos--loading" }, h("zonos-spinner", { size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { class: "zonos--header" }, this.headerText && (h("h3", { class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { key: '46e89cdfaffd1190f4916206deb452002f40f24f', class: classes([
63
63
  'zonos--body',
64
64
  this.noBodyPadding && 'zonos--no-body-padding',
65
- ]) }, h("slot", { key: '9da41cdcfe580bb41b672f8185552e29b269e5dd' })), this.footerRightAction && (h("div", { class: "zonos--footer" }, h("div", { class: "zonos--footer-right-action" }, this.footerRightAction)))))));
65
+ ]) }, h("slot", { key: 'e8acb4a5e48ad4a0aeb057799f5abeb56eb8d1ea' })), this.footerRightAction && (h("div", { class: "zonos--footer" }, h("div", { class: "zonos--footer-right-action" }, this.footerRightAction)))))));
66
66
  }
67
67
  static get is() { return "zonos-dialog"; }
68
68
  static get encapsulation() { return "shadow"; }