@zonos/elements 1.3.18-alpha.0 → 1.3.18-alpha.2

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 (305) hide show
  1. package/dist/cjs/{cart-d25723e7.js → cart-941a31dd.js} +562 -12
  2. package/dist/cjs/{getBorderRadius-44b3eca1.js → getBorderRadius-bcb309a8.js} +1 -1
  3. package/dist/cjs/{index-654a6001.js → index-b071017b.js} +4 -1
  4. package/dist/cjs/{isDarkColor-01f45d3f.js → isDarkColor-b0393089.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{submitGtag-484eaf9d.js → submitGtag-9210b4fe.js} +2 -2
  7. package/dist/cjs/zonos-address_8.cjs.entry.js +22 -11
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +22 -11
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +7 -7
  12. package/dist/cjs/{zonos-cart-items_9.cjs.entry.js → zonos-cart-items_11.cjs.entry.js} +224 -14
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +36 -10
  14. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  17. package/dist/cjs/zonos-country-select_3.cjs.entry.js +11 -11
  18. package/dist/cjs/zonos-elements.cjs.js +2 -2
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
  20. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  21. package/dist/cjs/zonos-input.cjs.entry.js +7 -7
  22. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
  26. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
  27. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  28. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  29. package/dist/cjs/{zonosStore-d8bb0bda.js → zonosStore-7c6205ca.js} +2 -1
  30. package/dist/collection/collection-manifest.json +2 -0
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +2 -1
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/ChevronUpIcon.svg +23 -0
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/empty-item.jpeg +0 -0
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.css +105 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +101 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +6 -3
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +1 -1
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +43 -6
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +18 -2
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -2
  42. package/dist/collection/components/common/zonos-button/zonos-button.css +12 -0
  43. package/dist/collection/components/common/zonos-button/zonos-button.js +43 -8
  44. package/dist/collection/components/common/zonos-confirm-dialog/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  45. package/dist/collection/components/common/zonos-confirm-dialog/assets/HelpDuotoneIcon.svg +4 -0
  46. package/dist/collection/components/common/zonos-confirm-dialog/assets/WarningDuotoneIcon.svg +4 -0
  47. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +125 -0
  48. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +322 -0
  49. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  50. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  51. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -4
  52. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +38 -4
  53. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  54. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  55. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  56. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  57. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  58. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  59. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  60. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  61. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
  62. package/dist/collection/components/main/zonos-controller.js +3 -3
  63. package/dist/collection/components/store/checkout/cart.js +55 -5
  64. package/dist/collection/components/store/checkout/stripe.js +6 -2
  65. package/dist/collection/components/store/hello/localization.js +12 -2
  66. package/dist/collection/components/store/translationStore/strings.arabic.js +24 -0
  67. package/dist/collection/components/store/translationStore/strings.base.js +24 -0
  68. package/dist/collection/components/store/translationStore/strings.chinese.js +24 -0
  69. package/dist/collection/components/store/translationStore/strings.danish.js +24 -0
  70. package/dist/collection/components/store/translationStore/strings.dutch.js +24 -0
  71. package/dist/collection/components/store/translationStore/strings.french.js +24 -0
  72. package/dist/collection/components/store/translationStore/strings.german.js +24 -0
  73. package/dist/collection/components/store/translationStore/strings.hebrew.js +24 -0
  74. package/dist/collection/components/store/translationStore/strings.indonesian.js +24 -0
  75. package/dist/collection/components/store/translationStore/strings.italian.js +24 -0
  76. package/dist/collection/components/store/translationStore/strings.japanese.js +24 -0
  77. package/dist/collection/components/store/translationStore/strings.korean.js +24 -0
  78. package/dist/collection/components/store/translationStore/strings.norwegian.js +24 -0
  79. package/dist/collection/components/store/translationStore/strings.polish.js +24 -0
  80. package/dist/collection/components/store/translationStore/strings.portuguese.js +24 -0
  81. package/dist/collection/components/store/translationStore/strings.russian.js +24 -0
  82. package/dist/collection/components/store/translationStore/strings.spanish.js +24 -0
  83. package/dist/collection/components/store/translationStore/strings.swedish.js +24 -0
  84. package/dist/collection/components/store/translationStore/strings.turkish.js +24 -0
  85. package/dist/collection/components/store/translationStore/strings.vietnamese.js +24 -0
  86. package/dist/collection/components/store/zonosStore.js +1 -0
  87. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  88. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  89. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  90. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +1 -1
  91. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +6 -1
  92. package/dist/collection/scripts/zonosBase.js +2 -1
  93. package/dist/collection/types/checkout/RestrictProduct.js +1 -0
  94. package/dist/collection/types/generated/graphql.customer.types.js +40 -0
  95. package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
  96. package/dist/components/stripe.js +79 -10
  97. package/dist/components/submitGtag.js +1 -1
  98. package/dist/components/trackConversionEvent.js +1 -1
  99. package/dist/components/translationStore.js +480 -0
  100. package/dist/components/zonos-address2.js +1 -1
  101. package/dist/components/zonos-button2.js +20 -8
  102. package/dist/components/zonos-cart-items2.js +2 -1
  103. package/dist/components/zonos-cart-restricted-items.d.ts +11 -0
  104. package/dist/components/zonos-cart-restricted-items.js +6 -0
  105. package/dist/components/zonos-cart-restricted-items2.js +135 -0
  106. package/dist/components/zonos-cart-subtotal2.js +6 -3
  107. package/dist/components/zonos-checkout-finish2.js +1 -1
  108. package/dist/components/zonos-checkout-payment2.js +1 -1
  109. package/dist/components/zonos-checkout.js +77 -38
  110. package/dist/components/zonos-component.js +1 -1
  111. package/dist/components/zonos-confirm-dialog.d.ts +11 -0
  112. package/dist/components/zonos-confirm-dialog.js +6 -0
  113. package/dist/components/zonos-confirm-dialog2.js +161 -0
  114. package/dist/components/zonos-controller.js +2 -2
  115. package/dist/components/zonos-country-select2.js +3 -3
  116. package/dist/components/zonos-custom-message2.js +2 -2
  117. package/dist/components/zonos-customer-info2.js +19 -3
  118. package/dist/components/zonos-dialog2.js +17 -5
  119. package/dist/components/zonos-hello-dialog-footer2.js +2 -2
  120. package/dist/components/zonos-hello-dialog2.js +4 -4
  121. package/dist/components/zonos-hello.js +1 -1
  122. package/dist/components/zonos-input2.js +4 -4
  123. package/dist/components/zonos-language-select2.js +3 -3
  124. package/dist/components/zonos-link-authentication2.js +1 -1
  125. package/dist/components/zonos-logo.js +2 -2
  126. package/dist/components/zonos-payment2.js +1 -1
  127. package/dist/components/zonos-review2.js +3 -2
  128. package/dist/components/zonos-select-dialog-header2.js +2 -2
  129. package/dist/components/zonos-shipping2.js +1 -1
  130. package/dist/components/zonos-tooltip2.js +2 -2
  131. package/dist/components/zonos-v-stack2.js +2 -2
  132. package/dist/components/zonosStore.js +1 -0
  133. package/dist/esm/{cart-02f5c2ea.js → cart-cc593c2b.js} +562 -13
  134. package/dist/esm/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  135. package/dist/esm/{index-e063389c.js → index-3b46f3c3.js} +4 -1
  136. package/dist/esm/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
  137. package/dist/esm/loader.js +3 -3
  138. package/dist/esm/{submitGtag-ba38e1ac.js → submitGtag-e50f903f.js} +2 -2
  139. package/dist/esm/zonos-address_8.entry.js +22 -11
  140. package/dist/esm/zonos-badge_2.entry.js +4 -4
  141. package/dist/esm/zonos-banner.entry.js +2 -2
  142. package/dist/esm/zonos-button_3.entry.js +22 -11
  143. package/dist/esm/zonos-card_2.entry.js +7 -7
  144. package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_11.entry.js} +223 -15
  145. package/dist/esm/zonos-checkout.entry.js +36 -10
  146. package/dist/esm/zonos-component.entry.js +2 -2
  147. package/dist/esm/zonos-controller.entry.js +6 -6
  148. package/dist/esm/zonos-country-flag.entry.js +5 -5
  149. package/dist/esm/zonos-country-select_3.entry.js +11 -11
  150. package/dist/esm/zonos-elements.js +3 -3
  151. package/dist/esm/zonos-hello-dialog.entry.js +8 -8
  152. package/dist/esm/zonos-hello.entry.js +5 -5
  153. package/dist/esm/zonos-input.entry.js +7 -7
  154. package/dist/esm/zonos-link.entry.js +1 -1
  155. package/dist/esm/zonos-logo.entry.js +4 -4
  156. package/dist/esm/zonos-notification.entry.js +2 -2
  157. package/dist/esm/zonos-payment.entry.js +6 -6
  158. package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
  159. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  160. package/dist/esm/zonos-text.entry.js +2 -2
  161. package/dist/esm/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +2 -1
  162. package/dist/esm-es5/cart-cc593c2b.js +1 -0
  163. package/dist/esm-es5/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  164. package/dist/esm-es5/{index-e063389c.js → index-3b46f3c3.js} +1 -1
  165. package/dist/esm-es5/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
  166. package/dist/esm-es5/loader.js +1 -1
  167. package/dist/esm-es5/{submitGtag-ba38e1ac.js → submitGtag-e50f903f.js} +1 -1
  168. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  169. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  170. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  171. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  172. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  173. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -0
  174. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  175. package/dist/esm-es5/zonos-component.entry.js +1 -1
  176. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  177. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  178. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  179. package/dist/esm-es5/zonos-elements.js +1 -1
  180. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  181. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  182. package/dist/esm-es5/zonos-input.entry.js +1 -1
  183. package/dist/esm-es5/zonos-link.entry.js +1 -1
  184. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  185. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  186. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  187. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  188. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  189. package/dist/esm-es5/zonos-text.entry.js +1 -1
  190. package/dist/esm-es5/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +1 -1
  191. package/dist/scripts/loadZonos.js +1 -1
  192. package/dist/scripts/zonos.js +1 -1
  193. package/dist/scripts/zonosBase.js +1 -1
  194. package/dist/types/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.d.ts +14 -0
  195. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +11 -1
  196. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -0
  197. package/dist/types/components/common/zonos-button/zonos-button.d.ts +7 -1
  198. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +60 -0
  199. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +6 -1
  200. package/dist/types/components/store/checkout/cart.d.ts +38 -4
  201. package/dist/types/components/store/translationStore/strings.arabic.d.ts +24 -0
  202. package/dist/types/components/store/translationStore/strings.base.d.ts +24 -0
  203. package/dist/types/components/store/translationStore/strings.chinese.d.ts +24 -0
  204. package/dist/types/components/store/translationStore/strings.danish.d.ts +24 -0
  205. package/dist/types/components/store/translationStore/strings.dutch.d.ts +24 -0
  206. package/dist/types/components/store/translationStore/strings.french.d.ts +24 -0
  207. package/dist/types/components/store/translationStore/strings.german.d.ts +24 -0
  208. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +24 -0
  209. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +24 -0
  210. package/dist/types/components/store/translationStore/strings.italian.d.ts +24 -0
  211. package/dist/types/components/store/translationStore/strings.japanese.d.ts +24 -0
  212. package/dist/types/components/store/translationStore/strings.korean.d.ts +24 -0
  213. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +24 -0
  214. package/dist/types/components/store/translationStore/strings.polish.d.ts +24 -0
  215. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +24 -0
  216. package/dist/types/components/store/translationStore/strings.russian.d.ts +24 -0
  217. package/dist/types/components/store/translationStore/strings.spanish.d.ts +24 -0
  218. package/dist/types/components/store/translationStore/strings.swedish.d.ts +24 -0
  219. package/dist/types/components/store/translationStore/strings.turkish.d.ts +24 -0
  220. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +24 -0
  221. package/dist/types/components/store/translationStore.d.ts +1 -1
  222. package/dist/types/components/store/zonosStore.d.ts +4 -0
  223. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  224. package/dist/types/components.d.ts +163 -5
  225. package/dist/types/scripts/zonosBase.d.ts +21 -2
  226. package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
  227. package/dist/types/types/checkout/RestrictProduct.d.ts +7 -0
  228. package/dist/types/types/generated/graphql.customer.types.d.ts +54 -0
  229. package/dist/types/types/generated/graphql.customer.types.ts +66 -1
  230. package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -1
  231. package/dist/types/types/generated/graphql.frontend.types.ts +2 -1
  232. package/dist/zonos-elements/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  233. package/dist/zonos-elements/assets/HelpDuotoneIcon.svg +4 -0
  234. package/dist/zonos-elements/assets/WarningDuotoneIcon.svg +4 -0
  235. package/dist/zonos-elements/{p-d7acc81c.entry.js → p-020a9b86.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-905d842b.entry.js → p-04030a48.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-fe246229.system.entry.js → p-0d0f9694.system.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-0267a969.entry.js → p-0e892292.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-57adc7f8.entry.js → p-0fac99e7.entry.js} +1 -1
  240. package/dist/zonos-elements/p-1795c760.system.entry.js +1 -0
  241. package/dist/zonos-elements/{p-771fbeb3.system.js → p-1b9442f6.system.js} +1 -1
  242. package/dist/zonos-elements/{p-1ba4cf64.entry.js → p-24ac1c6f.entry.js} +1 -1
  243. package/dist/zonos-elements/p-26a60a6e.entry.js +1 -0
  244. package/dist/zonos-elements/{p-835c8928.entry.js → p-281b8bdf.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-a889c1bc.entry.js → p-2af19b63.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-582d8b27.entry.js → p-2ced091f.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-909a331c.js → p-2f759d82.js} +1 -1
  248. package/dist/zonos-elements/p-32744531.entry.js +1 -0
  249. package/dist/zonos-elements/{p-532995a4.system.entry.js → p-35ac375a.system.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-9da0562e.system.entry.js → p-3bc88c3c.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-36a461a6.system.entry.js → p-3e26d7b3.system.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-9ec93319.entry.js → p-498a0e18.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-572a4de2.system.entry.js → p-4caaaaeb.system.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-79f3c4f5.system.js → p-58e730b6.system.js} +1 -1
  255. package/dist/zonos-elements/{p-e7b4b756.entry.js → p-597b75f3.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-6ece23b9.entry.js → p-5e783394.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-87badea9.system.js → p-62ecfbcc.system.js} +1 -1
  258. package/dist/zonos-elements/{p-f99eb5e7.entry.js → p-6366e7e3.entry.js} +1 -1
  259. package/dist/zonos-elements/p-693b9985.js +1 -0
  260. package/dist/zonos-elements/{p-bf32179a.system.entry.js → p-6eda6199.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-6dec476d.system.entry.js → p-7c8ee4b9.system.entry.js} +1 -1
  262. package/dist/zonos-elements/{p-305f27c7.entry.js → p-80442f16.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-cf0f8e32.entry.js → p-80ea85b8.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-679877b1.system.entry.js → p-8171d013.system.entry.js} +1 -1
  265. package/dist/zonos-elements/{p-83cc2936.js → p-8c0b4a61.js} +1 -1
  266. package/dist/zonos-elements/{p-4dca5484.system.entry.js → p-8cd6633a.system.entry.js} +1 -1
  267. package/dist/zonos-elements/p-8da16d53.system.js +1 -0
  268. package/dist/zonos-elements/p-96b8c9ba.system.entry.js +1 -0
  269. package/dist/zonos-elements/{p-f124e659.system.entry.js → p-98a0b694.system.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-fd49d864.entry.js → p-9aab3ad7.entry.js} +1 -1
  271. package/dist/zonos-elements/{p-ad088d46.system.entry.js → p-9e8d38f7.system.entry.js} +1 -1
  272. package/dist/zonos-elements/{p-83fecb2a.entry.js → p-9e9c318b.entry.js} +1 -1
  273. package/dist/zonos-elements/{p-e108e5ed.system.entry.js → p-a47382ae.system.entry.js} +1 -1
  274. package/dist/zonos-elements/{p-47e00966.system.entry.js → p-b98cdf39.system.entry.js} +1 -1
  275. package/dist/zonos-elements/{p-3638e2ed.entry.js → p-bd9b2165.entry.js} +1 -1
  276. package/dist/zonos-elements/{p-ff403840.entry.js → p-c20e5430.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-13ddaf31.js → p-ce347974.js} +1 -1
  278. package/dist/zonos-elements/{p-f71489e5.system.entry.js → p-d0bc8902.system.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-17e265c3.system.entry.js → p-d7a939df.system.entry.js} +1 -1
  280. package/dist/zonos-elements/p-d7b8c1c1.system.entry.js +1 -0
  281. package/dist/zonos-elements/{p-163ff5b5.system.js → p-d99232c5.system.js} +1 -1
  282. package/dist/zonos-elements/p-dd0fd351.entry.js +1 -0
  283. package/dist/zonos-elements/p-e015cb0e.js +1 -0
  284. package/dist/zonos-elements/p-e0bf9666.system.js +1 -0
  285. package/dist/zonos-elements/{p-b98bdbcc.system.entry.js → p-e13bfbda.system.entry.js} +1 -1
  286. package/dist/zonos-elements/{p-239cc943.system.entry.js → p-e1fbd05d.system.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-0265da6f.js → p-e553dd19.js} +1 -1
  288. package/dist/zonos-elements/p-e6fa0ebc.system.js +1 -0
  289. package/dist/zonos-elements/{p-5e33aab7.system.entry.js → p-f6546bf4.system.entry.js} +1 -1
  290. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  291. package/dist/zonos-elements/zonos-elements.js +1 -1
  292. package/package.json +13 -13
  293. package/dist/esm-es5/cart-02f5c2ea.js +0 -1
  294. package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
  295. package/dist/zonos-elements/p-154aaf95.system.js +0 -1
  296. package/dist/zonos-elements/p-168e5b5f.system.js +0 -1
  297. package/dist/zonos-elements/p-1b8082dd.entry.js +0 -1
  298. package/dist/zonos-elements/p-246133d3.entry.js +0 -1
  299. package/dist/zonos-elements/p-54004793.system.entry.js +0 -1
  300. package/dist/zonos-elements/p-54a32fd7.entry.js +0 -1
  301. package/dist/zonos-elements/p-5d13795a.system.entry.js +0 -1
  302. package/dist/zonos-elements/p-981bf71a.js +0 -1
  303. package/dist/zonos-elements/p-e0e66004.system.js +0 -1
  304. package/dist/zonos-elements/p-ed7d251d.system.entry.js +0 -1
  305. package/dist/zonos-elements/p-f1962041.js +0 -1
@@ -0,0 +1,322 @@
1
+ import { h, Host, } from "@stencil/core";
2
+ import { translate } from "../../store/translationStore";
3
+ import { getZonosStoreTheme, zonosStore, zonosStoreFontFamily, } from "../../store/zonosStore";
4
+ import { classes } from "../../utils/classes";
5
+ import { getBorderRadius } from "../../utils/getBorderRadius";
6
+ // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
7
+ import ExclamationMarkDuotoneIcon from "./assets/ExclamationMarkDuotoneIcon.svg";
8
+ // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
9
+ import HelpDuotoneIcon from "./assets/HelpDuotoneIcon.svg";
10
+ // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
11
+ import WarningDuotoneIcon from "./assets/WarningDuotoneIcon.svg";
12
+ export class ZonosConfirmDialog {
13
+ constructor() {
14
+ this.clickOutsideDialogHandler = (event) => {
15
+ if (event.target === event.currentTarget && !this.noClickOutside) {
16
+ this.closeDialogHandler();
17
+ }
18
+ };
19
+ this.dialogTitle = translate('Are you sure?');
20
+ this.dialogIntent = 'info';
21
+ this.dialogSubtitle = '';
22
+ this.submitBtnColor = undefined;
23
+ this.dialogConfirmBtnText = undefined;
24
+ this.dialogCancelBtnText = undefined;
25
+ this.isMobile = false;
26
+ this.dialogOpen = false;
27
+ this.noClickOutside = false;
28
+ }
29
+ handleKeyDown(ev) {
30
+ if (ev.key === 'Escape') {
31
+ this.closeDialogHandler();
32
+ }
33
+ }
34
+ focusDialog() {
35
+ if (this.dialogOpen) {
36
+ setTimeout(() => {
37
+ var _a, _b;
38
+ // Focus on a non tabable element (tabIndex=-1), so we will be able to tab to other tabable elements
39
+ (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.zonos--backdrop')) === null || _b === void 0 ? void 0 : _b.focus();
40
+ }, 100);
41
+ }
42
+ }
43
+ confirmDialogHandler() {
44
+ // Only do the action if the dialog is open
45
+ if (!this.dialogOpen) {
46
+ return;
47
+ }
48
+ // Emit confirm event
49
+ this.confirmClicked.emit();
50
+ }
51
+ closeDialogHandler() {
52
+ // Only do the action if the dialog is open
53
+ if (!this.dialogOpen) {
54
+ return;
55
+ }
56
+ // Emit cancel event
57
+ this.cancelClicked.emit();
58
+ }
59
+ renderIcon() {
60
+ switch (this.dialogIntent) {
61
+ case 'info':
62
+ return (h("zonos-icon", { content: HelpDuotoneIcon, iconColor: 'blue-800' }));
63
+ case 'danger':
64
+ return (h("zonos-icon", { content: ExclamationMarkDuotoneIcon, iconColor: 'red-800' }));
65
+ case 'warn':
66
+ return (h("zonos-icon", { content: WarningDuotoneIcon, iconColor: 'orange-800' }));
67
+ }
68
+ }
69
+ getButtonConfirmVariant() {
70
+ switch (this.dialogIntent) {
71
+ case 'warn':
72
+ return 'warning';
73
+ case 'danger':
74
+ return 'danger';
75
+ default:
76
+ return 'primary';
77
+ }
78
+ }
79
+ render() {
80
+ this.focusDialog();
81
+ const borderStyle = getBorderRadius();
82
+ // Get theme for the update dialog, inherit from the theme, no from this component theme
83
+ const theme = getZonosStoreTheme(zonosStore.appearance.theme);
84
+ return (h(Host, { key: '9adab1c77e8087cfbb92a52e66d12f1b1917bf7e', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-theme": theme, style: {
85
+ '--border-radius': borderStyle,
86
+ '--font-family': zonosStoreFontFamily(),
87
+ } }, h("div", { key: 'c5b40120ff7b3c4684eb65fb5ef6f8ffa157f98f', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'c7cf4d2839cb42a064b4303bdefdfe4fed116b2a', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '30256495401f4967371e923055dfe9efed8cb6b7', class: "zonos--confirm-dialog", onBlur: () => {
88
+ this.focusDialog();
89
+ } }, h("div", { key: '6121ab29b80d233f9ca47aaf66725fe91ae6827c', class: "wrapper" }, h("div", { key: '8fbb75eca3ee163b57c60159d5c5374382f3fa33', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '56376add713778af1df087c0f9f4b8d90065caa2', class: "content" }, h("div", { key: '4f31ad7d42127c5350a64b86ae12fde42a350422', class: "title" }, h("zonos-text", { key: '7a5dc82d3f2250c1b3a3403e116736cedcf63f51', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '87b04af2b1984a8cf205b6fa0acf0320f56342e7', class: "subtitle" }, h("zonos-text", { key: '53d0157655b1d8193a0f698e41442b676d9e0ca6', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '4b410f4a4079a25549bef228c3b9a81a64fe20e2', class: "footer" }, h("zonos-button", { key: '5a8ffb99756bd142605c564df381bfb9e72d5d78', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText), h("zonos-button", { key: '61c2b8272202f316ec09441ab64428c557073c9d', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
90
+ }
91
+ static get is() { return "zonos-confirm-dialog"; }
92
+ static get encapsulation() { return "shadow"; }
93
+ static get originalStyleUrls() {
94
+ return {
95
+ "$": ["zonos-confirm-dialog.scss"]
96
+ };
97
+ }
98
+ static get styleUrls() {
99
+ return {
100
+ "$": ["zonos-confirm-dialog.css"]
101
+ };
102
+ }
103
+ static get assetsDirs() { return ["assets"]; }
104
+ static get properties() {
105
+ return {
106
+ "dialogTitle": {
107
+ "type": "string",
108
+ "mutable": false,
109
+ "complexType": {
110
+ "original": "string",
111
+ "resolved": "string",
112
+ "references": {}
113
+ },
114
+ "required": false,
115
+ "optional": false,
116
+ "docs": {
117
+ "tags": [{
118
+ "name": "default",
119
+ "text": "\"Are you sure?\""
120
+ }],
121
+ "text": "Dialog title text"
122
+ },
123
+ "attribute": "dialog-title",
124
+ "reflect": false,
125
+ "defaultValue": "translate('Are you sure?')"
126
+ },
127
+ "dialogIntent": {
128
+ "type": "string",
129
+ "mutable": false,
130
+ "complexType": {
131
+ "original": "'info' | 'danger' | 'warn'",
132
+ "resolved": "\"danger\" | \"info\" | \"warn\"",
133
+ "references": {}
134
+ },
135
+ "required": false,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [{
139
+ "name": "default",
140
+ "text": "\"info\""
141
+ }],
142
+ "text": "Dialog intent (for icon and button color)"
143
+ },
144
+ "attribute": "dialog-intent",
145
+ "reflect": false,
146
+ "defaultValue": "'info'"
147
+ },
148
+ "dialogSubtitle": {
149
+ "type": "string",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "string",
153
+ "resolved": "string",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [{
160
+ "name": "default",
161
+ "text": "\"\" No subtitle"
162
+ }],
163
+ "text": "Dialog subtitle text"
164
+ },
165
+ "attribute": "dialog-subtitle",
166
+ "reflect": false,
167
+ "defaultValue": "''"
168
+ },
169
+ "submitBtnColor": {
170
+ "type": "string",
171
+ "mutable": false,
172
+ "complexType": {
173
+ "original": "string",
174
+ "resolved": "string | undefined",
175
+ "references": {}
176
+ },
177
+ "required": false,
178
+ "optional": true,
179
+ "docs": {
180
+ "tags": [],
181
+ "text": "Submit button main color"
182
+ },
183
+ "attribute": "submit-btn-color",
184
+ "reflect": false
185
+ },
186
+ "dialogConfirmBtnText": {
187
+ "type": "string",
188
+ "mutable": false,
189
+ "complexType": {
190
+ "original": "string",
191
+ "resolved": "string",
192
+ "references": {}
193
+ },
194
+ "required": true,
195
+ "optional": false,
196
+ "docs": {
197
+ "tags": [],
198
+ "text": "Confirm button text"
199
+ },
200
+ "attribute": "dialog-confirm-btn-text",
201
+ "reflect": false
202
+ },
203
+ "dialogCancelBtnText": {
204
+ "type": "string",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "string",
208
+ "resolved": "string",
209
+ "references": {}
210
+ },
211
+ "required": true,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "Cancel button text"
216
+ },
217
+ "attribute": "dialog-cancel-btn-text",
218
+ "reflect": false
219
+ },
220
+ "isMobile": {
221
+ "type": "boolean",
222
+ "mutable": false,
223
+ "complexType": {
224
+ "original": "boolean",
225
+ "resolved": "boolean",
226
+ "references": {}
227
+ },
228
+ "required": false,
229
+ "optional": false,
230
+ "docs": {
231
+ "tags": [],
232
+ "text": "Whether or not the dialog is open"
233
+ },
234
+ "attribute": "is-mobile",
235
+ "reflect": false,
236
+ "defaultValue": "false"
237
+ },
238
+ "dialogOpen": {
239
+ "type": "boolean",
240
+ "mutable": false,
241
+ "complexType": {
242
+ "original": "boolean",
243
+ "resolved": "boolean",
244
+ "references": {}
245
+ },
246
+ "required": false,
247
+ "optional": false,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": "Whether or not the dialog is open"
251
+ },
252
+ "attribute": "dialog-open",
253
+ "reflect": false,
254
+ "defaultValue": "false"
255
+ },
256
+ "noClickOutside": {
257
+ "type": "boolean",
258
+ "mutable": false,
259
+ "complexType": {
260
+ "original": "boolean",
261
+ "resolved": "boolean",
262
+ "references": {}
263
+ },
264
+ "required": false,
265
+ "optional": false,
266
+ "docs": {
267
+ "tags": [{
268
+ "name": "default",
269
+ "text": "false"
270
+ }],
271
+ "text": "Whether or not to close the dialog when clicking outside of it"
272
+ },
273
+ "attribute": "no-click-outside",
274
+ "reflect": false,
275
+ "defaultValue": "false"
276
+ }
277
+ };
278
+ }
279
+ static get events() {
280
+ return [{
281
+ "method": "confirmClicked",
282
+ "name": "confirmClicked",
283
+ "bubbles": true,
284
+ "cancelable": true,
285
+ "composed": true,
286
+ "docs": {
287
+ "tags": [],
288
+ "text": "Event to emit when the \"Confirm\" button is clicked"
289
+ },
290
+ "complexType": {
291
+ "original": "void",
292
+ "resolved": "void",
293
+ "references": {}
294
+ }
295
+ }, {
296
+ "method": "cancelClicked",
297
+ "name": "cancelClicked",
298
+ "bubbles": true,
299
+ "cancelable": true,
300
+ "composed": true,
301
+ "docs": {
302
+ "tags": [],
303
+ "text": "Event to emit when the \"Cancel\" button is clicked"
304
+ },
305
+ "complexType": {
306
+ "original": "void",
307
+ "resolved": "void",
308
+ "references": {}
309
+ }
310
+ }];
311
+ }
312
+ static get elementRef() { return "el"; }
313
+ static get listeners() {
314
+ return [{
315
+ "name": "keydown",
316
+ "method": "handleKeyDown",
317
+ "target": "document",
318
+ "capture": false,
319
+ "passive": false
320
+ }];
321
+ }
322
+ }
@@ -35,9 +35,9 @@ export class ZonosCountrySelect {
35
35
  const filteredCountries = this.inputValue
36
36
  ? fuseObject.map(country => country.item)
37
37
  : countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
38
- return (h(Host, { key: '1b37f326e23e3afaba1428cc23add2e5c425f0b9', class: "zonos--elements", style: {
38
+ return (h(Host, { key: '67675ff9b37f110026ced223509104eb8ad805c0', class: "zonos--elements", style: {
39
39
  '--font-family': zonosStoreFontFamily(),
40
- } }, h("div", { key: '966ab933f1bcd754e64fc43dc2013f6cde0f043b', class: "zonos--country-select" }, h("zonos-v-stack", { key: '77d6412871658e9fc8e59df130d3b95df68c5e0b', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '17d0413090d9637aa17234d19a3549b9828a3a86', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: '08aa6bd77273095d0b1753c6b423a283b638cc69', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: 'e1e770226aa2ad9c74681d8291797ff676217f09', 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", { textColor: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
40
+ } }, h("div", { key: '83d69dde89f0fafadf344ca0be017f43c468f154', class: "zonos--country-select" }, h("zonos-v-stack", { key: '8262345817217ba3f27ecf433ff56712b8018ae7', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '80ef94a9a2b1d7bdd835a9b31b09663f28b0532a', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: 'd3151d1287ee98b697e35f1f755694b250f089a3', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: 'f98ff12368e49125f7fc2409f84bcbaef2143809', 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", { textColor: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
41
41
  }
42
42
  static get is() { return "zonos-country-select"; }
43
43
  static get encapsulation() { return "shadow"; }
@@ -8,9 +8,9 @@ export class ZonosCustomMessage {
8
8
  }
9
9
  render() {
10
10
  const messageWithLinks = formatStringWithLinks(this.message);
11
- return (h(Host, { key: 'c2cec226eb9236205d0c4b234bb393e4663d982f', class: "zonos--elements", style: {
11
+ return (h(Host, { key: '7d3c45852c97272a3606321dad09c6433dfc664c', class: "zonos--elements", style: {
12
12
  '--font-family': zonosStoreFontFamily(),
13
- } }, this.message && (h("zonos-card", { key: '51814b00b14061891914753a950b6a3dc852c0f0', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '4f7298eb552d9f0e1b6ded333c298df3d4fbbee2', class: "zonos--flex-message" }, h("zonos-icon", { key: '0a1fb171e1365a845e1e0855466058ced6c57f12', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'dd714a4f1fd3e1ebe55586c5c8c6941928eb2862', innerHTML: messageWithLinks }))))));
13
+ } }, this.message && (h("zonos-card", { key: '53b64b2faea9d06fd66365f80efe3b9d26aab5b6', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '2bfc437f100084a1e661bf823e20be72a0ab616d', class: "zonos--flex-message" }, h("zonos-icon", { key: '5c0f5da248ddb25a69a3db46b85e8e0e4d481101', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'aabbcc00b1b50d29a3e6f48938b50c7b64d250dc', innerHTML: messageWithLinks }))))));
14
14
  }
15
15
  static get is() { return "zonos-custom-message"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -44,9 +44,6 @@
44
44
  left: 0;
45
45
  top: 0;
46
46
  background: var(--zonos-elements-backdrop-color);
47
- z-index: -999;
48
- opacity: 0;
49
- visibility: hidden;
50
47
  position: fixed;
51
48
  }
52
49
  :host .zonos--loading {
@@ -80,7 +77,7 @@
80
77
  background: var(--zonos-elements-gray-0);
81
78
  max-width: 90vw;
82
79
  max-height: 90vh;
83
- min-height: 500px;
80
+ min-height: var(--min-height, auto);
84
81
  height: var(--height, auto);
85
82
  width: var(--width, auto);
86
83
  border-radius: var(--border-radius, var(--zonos-elements-radius-10));
@@ -11,6 +11,10 @@ export class ZonosDialog {
11
11
  return this.mobile || window.innerWidth <= 768;
12
12
  };
13
13
  this.closeButtonHandler = () => {
14
+ // Only do the action if the dialog is open
15
+ if (!this.open) {
16
+ return;
17
+ }
14
18
  this.closeDialog.emit();
15
19
  };
16
20
  this.clickOutsideDialogHandler = (event) => {
@@ -22,6 +26,7 @@ export class ZonosDialog {
22
26
  this.headerText = '';
23
27
  this.width = '460px';
24
28
  this.height = undefined;
29
+ this.minHeight = undefined;
25
30
  this.noHeader = false;
26
31
  this.noBodyPadding = false;
27
32
  this.noBorder = false;
@@ -35,6 +40,11 @@ export class ZonosDialog {
35
40
  handleWindowResize() {
36
41
  this.isMobile = this.isMobileMode();
37
42
  }
43
+ handleKeyDown(ev) {
44
+ if (ev.key === 'Escape') {
45
+ this.closeButtonHandler();
46
+ }
47
+ }
38
48
  componentDidLoad() {
39
49
  this.isMobile = this.isMobileMode();
40
50
  }
@@ -49,7 +59,7 @@ export class ZonosDialog {
49
59
  const borderStyle = getBorderRadius({
50
60
  overrideBorderStyle: this.borderStyle,
51
61
  });
52
- return (h(Host, { key: '48eb2701a74a7973d3502fd1fdc65ce85a6d71ed', class: classes([
62
+ return (h(Host, { key: 'b27bdee33f67e2209dfbd9621b95633f4af726b2', class: classes([
53
63
  'zonos--elements',
54
64
  this.open && 'open',
55
65
  this.isLoading && 'is-loading',
@@ -59,11 +69,12 @@ export class ZonosDialog {
59
69
  '--border-radius': borderStyle,
60
70
  '--font-family': zonosStoreFontFamily(),
61
71
  '--height': this.height || 'initial',
72
+ '--min-height': this.minHeight || '500px',
62
73
  '--width': this.width,
63
- } }, h("div", { key: 'b408d792740d8854bab8ea60bd50ce894a75a836', class: "zonos--backdrop" }), h("div", { key: '04affcf48e0b209fa8dacc74039dad536ed9cd9b', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: 'c615792a60b2fa51a74af265b7c944a64e9ff18d', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '78d3b571f75c6037fdd694b4621fb9eae48d8ce0', class: "zonos--loading" }, h("zonos-spinner", { key: 'bd96037d5fe1717ebeae5b1ba27b96aa9ec9253d', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: 'cc057cbed99107d7d234d08d38e67cbf0140dc66', class: "zonos--header" }, this.headerText && (h("h3", { key: '587fff6b04981f1c24b44736b3b40044480f68ba', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '9a1944508996cd8ccb87f68ae175564528af3c4c', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { key: 'b563c1939c32489b63516cd4dd14df58a32a08cf', class: classes([
74
+ } }, h("div", { key: 'ca94e3347d10460973663685d9b8c0048418cb86', class: "zonos--backdrop" }), h("div", { key: 'e766937dc1899141ed7beb07e9f13a60066880a1', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: '41c43bb5cf011a3a810c6116c4300ad7a713c787', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '5ca28c9f3b1f6f0742484ef5414ba60f16e1faa7', class: "zonos--loading" }, h("zonos-spinner", { key: 'e0131cd9fd3fa7a9c502e7a55b75b8c76be86fc3', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '2ef2237cb4518980eb3a5c97cc1a1ea2c87444be', class: "zonos--header" }, this.headerText && (h("h3", { key: '751e1be4417cc733dffa8a683d3f4c8774ee83f5', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '720f9250c88e0097d839276ab0d2319e31fc170b', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), h("div", { key: 'd64547b7d802a4b14e64454ae329dbb6d88f1cfd', class: classes([
64
75
  'zonos--body',
65
76
  this.noBodyPadding && 'zonos--no-body-padding',
66
- ]) }, h("slot", { key: '39d66d136f630afbac7ced146d3a8ac60d3c9672' })), h("slot", { key: '5bace66c84150024d0203f89fbf8f5c263cb7472', name: "dialog-footer" })))));
77
+ ]) }, h("slot", { key: '96d1683414cc4a947a36c6ae28e5afb781be4dae' })), h("slot", { key: '06b8ff1ad17f74e28fc4980fbc4594dde5e4573f', name: "dialog-footer" })))));
67
78
  }
68
79
  static get is() { return "zonos-dialog"; }
69
80
  static get encapsulation() { return "shadow"; }
@@ -152,11 +163,28 @@ export class ZonosDialog {
152
163
  "optional": true,
153
164
  "docs": {
154
165
  "tags": [],
155
- "text": "The height of the dialog (max-wdith still 90vh)"
166
+ "text": "The height of the dialog (max-width still 90vh)"
156
167
  },
157
168
  "attribute": "height",
158
169
  "reflect": false
159
170
  },
171
+ "minHeight": {
172
+ "type": "string",
173
+ "mutable": false,
174
+ "complexType": {
175
+ "original": "string",
176
+ "resolved": "string | undefined",
177
+ "references": {}
178
+ },
179
+ "required": false,
180
+ "optional": true,
181
+ "docs": {
182
+ "tags": [],
183
+ "text": "The min height of the dialog"
184
+ },
185
+ "attribute": "min-height",
186
+ "reflect": false
187
+ },
160
188
  "noHeader": {
161
189
  "type": "boolean",
162
190
  "mutable": false,
@@ -356,6 +384,12 @@ export class ZonosDialog {
356
384
  "target": "window",
357
385
  "capture": false,
358
386
  "passive": true
387
+ }, {
388
+ "name": "keydown",
389
+ "method": "handleKeyDown",
390
+ "target": "document",
391
+ "capture": false,
392
+ "passive": false
359
393
  }];
360
394
  }
361
395
  }
@@ -17,17 +17,17 @@ export class ZonosInput {
17
17
  this.inputChange.emit(newValue);
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: '97f9a886695c81bf72ffa5cc4b7afc26e40a2694', class: classes([
20
+ return (h(Host, { key: 'c032eae81e9183b73ed9f12ca3397786e499d8a7', class: classes([
21
21
  'zonos--input zonos--elements',
22
22
  this.inputSize,
23
23
  this.isError && 'has-error',
24
24
  ]), style: {
25
25
  '--border-radius': getBorderRadius(),
26
26
  '--font-family': zonosStoreFontFamily(),
27
- } }, h("div", { key: 'ffc96e546684499a5272dd0f5b4b087b1f717353', class: classes([
27
+ } }, h("div", { key: '54177758c126bf8d4043cc5e3dd92f0aa6e2c838', class: classes([
28
28
  'zonos--label-wrapper',
29
29
  this.isDisabled && 'disabled',
30
- ]) }, h("input", { key: '162556990fe4c93fc9400f7cf947d8fdbeffd2f1', class: classes([
30
+ ]) }, h("input", { key: '10f853e84c278aa9d9a050548801ea366583836d', class: classes([
31
31
  'zonos--floated-input',
32
32
  !!this.inputLabel && 'has-label',
33
33
  this.inputValue && 'has-content',
@@ -35,7 +35,7 @@ export class ZonosInput {
35
35
  ]), disabled: this.isDisabled, onInput: e => {
36
36
  const input = e.target;
37
37
  this.inputChange.emit(input.value);
38
- }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '9b73d42d50090f1ac761ccf27bd606d474cd8d53', class: "zonos--floated-label", "data-label": this.inputLabel }))));
38
+ }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '0f9a9fcb308f4117ec0f08a07d4de8d6f5c4fb03', class: "zonos--floated-label", "data-label": this.inputLabel }))));
39
39
  }
40
40
  static get is() { return "zonos-input"; }
41
41
  static get encapsulation() { return "shadow"; }
@@ -16,9 +16,9 @@ export class ZonosLanguageSelect {
16
16
  }
17
17
  render() {
18
18
  const { selectedLocale } = localizationStore;
19
- return (h(Host, { key: 'e1943addb44b8e06d5b4534865f403a721175cdd', class: "zonos--elements", style: {
19
+ return (h(Host, { key: 'e719b6e5e5d52ec572525ba02c78989bfe6c6b91', class: "zonos--elements", style: {
20
20
  '--font-family': zonosStoreFontFamily(),
21
- } }, h("div", { key: '888a410d444424f4ffb06dd28e5151bca9269de2', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '59aa5ae5e685f65baa1c7b1a19c1000ab8cdac74', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '854c44fefe28f22fdd37b251d482ca6db46b0895', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
21
+ } }, h("div", { key: '5a2d7fe751fe92455f7e56bf02360ef9992baffb', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: 'b37d91ffc91949aac8dda2d2ec94acbdfadfcdf4', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '881a00e8bd3e4358a5c1784bd957a81917863134', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
22
22
  }
23
23
  static get is() { return "zonos-language-select"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -10,11 +10,11 @@ export class ZonosLogo {
10
10
  const filterColor = this.theme === 'DARK'
11
11
  ? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
12
12
  : 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
13
- return (h(Host, { key: 'c68b772cba1e8562b48a58bace45e0643bd18dcf', class: classes(['zonos--elements zonos--logo']), style: {
13
+ return (h(Host, { key: 'c790c72d413c586a873c5046a1aee797c1f0af36', class: classes(['zonos--elements zonos--logo']), style: {
14
14
  '--filter-color': filterColor,
15
15
  '--font-family': zonosStoreFontFamily(),
16
16
  '--width': this.width,
17
- } }, h("img", { key: 'a3a48b9f4dc2401d543afe0d2334b5bd57aad4d6', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
17
+ } }, h("img", { key: '68efd2097a0d8488308de0b50bef30cc67deb6fa', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
18
18
  }
19
19
  static get is() { return "zonos-logo"; }
20
20
  static get encapsulation() { return "shadow"; }
@@ -8,9 +8,9 @@ export class ZonosSelectDialogHeader {
8
8
  this.label = '';
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: '7b7a5a39307cfacdfda4dd622d9b7e052013f80e', class: "zonos--elements", style: {
11
+ return (h(Host, { key: '6bbc81e8045153c49da17c4b999bc1992aa9f01d', class: "zonos--elements", style: {
12
12
  '--font-family': zonosStoreFontFamily(),
13
- } }, h("zonos-v-stack", { key: '3b4152d041961241d48acfdfefe421b487fc63c1', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '9b72b53159ef2ea9ef3ac2682da24e6b2bc0f71b', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '9aee88932746e76c819d1e40ed45ba3c44a74a0a', type: "boldLabel" }, this.label), h("zonos-button", { key: '5e794ef5039bbff4f8cd52bb942a8f6c655adbe7', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: 'ee4e5657d5034a4068b52d1f4e3a8971ccbee626' }))));
13
+ } }, h("zonos-v-stack", { key: 'c0184343c6cefd3c996695964800d242d1673ee1', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: 'ae13d39c8a0917df33aec34a10853892d9470a9c', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '32e9af076b72f63cb1ec0c92b7e77d3196572106', type: "boldLabel" }, this.label), h("zonos-button", { key: 'eb4d2f0cef4a2b0eafe628c19d0fcbac4f3493e6', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '98a6f0e4f44e74208b5e446ad8066b74b1f7beaa' }))));
14
14
  }
15
15
  static get is() { return "zonos-select-dialog-header"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -7,10 +7,10 @@ export class ZonosTooltip {
7
7
  this.showTooltip = false;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '39503dadb0422477303a6715a744478d765e6ecf', class: "zonos--elements" }, h("div", { key: '834be19e46353d018bf827327f418d3e82502cf5', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '7c8f731f548d1bcf750615be450d93004e83a369' }), h("div", { key: 'b7f02a3057f2d2f6eeb65715e64783b48cab71ea', class: classes([
10
+ return (h(Host, { key: 'dd98e35a2295dd72209775ce1e63d6f653913466', class: "zonos--elements" }, h("div", { key: '4bee5ca82e3a493826b723f620baa6d7cf7af63a', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '1320496e6caed5f16d940f0e5119d5f19186f565' }), h("div", { key: '2a9b891c672d03cdbe8babf59312942e101704a7', class: classes([
11
11
  this.showTooltip && 'zonos--show-tooltip',
12
12
  'zonos--tooltip-content',
13
- ]) }, h("zonos-text", { key: 'f65ede18a38c299d389403400a4ae00a0387e2cb', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: 'eb69da57b2e4f0e9be31801101c079618ac30148', size: "xs", textColor: "gray-0" }, this.subtitle)))));
13
+ ]) }, h("zonos-text", { key: '0146fad3f70fa07e9eb644b26d6dd65963a70c3d', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '36e76d4624927255679107ee47022b7314479441', size: "xs", textColor: "gray-0" }, this.subtitle)))));
14
14
  }
15
15
  static get is() { return "zonos-tooltip"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -7,9 +7,9 @@ export class VStack {
7
7
  this.spacing = 24;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'd6e16e46c900ee9e15cb1664a1f07133b9e82135', style: {
10
+ return (h(Host, { key: '3d0753111d525b29e1f36684c89b7216ee0b323f', style: {
11
11
  '--font-family': zonosStoreFontFamily(),
12
- } }, h("div", { key: 'f634995e617314160ecf5a432958207a43a40201', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'aa7bca0df7412bb0b8913e02ffd3617a511b9c8c' }))));
12
+ } }, h("div", { key: '95b732681743abc1b08b1b8bc722855c3c8e967a', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'b93347c5fb986a70f9f1d67ce2216bba84db7ba4' }))));
13
13
  }
14
14
  static get is() { return "zonos-v-stack"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -10,7 +10,7 @@ export class ZonosComponent {
10
10
  return format(this.first, this.middle, this.last);
11
11
  }
12
12
  render() {
13
- return h("div", { key: '589c084e9acc84525aa5db6036d13741ed656e26' }, "Hello, World! I'm ", this.getText());
13
+ return h("div", { key: 'b51f2edddb50f8f6a868da28c73218fe6955d2e5' }, "Hello, World! I'm ", this.getText());
14
14
  }
15
15
  static get is() { return "zonos-component"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -17,9 +17,9 @@ export class ZonosHelloDialogFooter {
17
17
  const primaryColor = (_a = this.appearanceSettings) === null || _a === void 0 ? void 0 : _a.colorPrimary;
18
18
  const footerTheme = primaryColor && isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
19
19
  const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
20
- return (h(Host, { key: '73782964897f8b09fd603de0bdbaa8348a4117c7', class: "zonos--elements" }, h("div", { key: 'bbb22af415fd9ba14900eca3e7c1b07d5bb9e831', class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
20
+ return (h(Host, { key: '714c0ccdaab553158a4990e24e471e0a0be64655', class: "zonos--elements" }, h("div", { key: '4c177b9120aee7ccdc242bb656399e1597b35f28', class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
21
21
  '--primary-color': (_c = this.appearanceSettings) === null || _c === void 0 ? void 0 : _c.colorPrimary,
22
- } }, h("a", { key: 'c4b098b21f8a6905f87457bfcfb5d1e0dee64470', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '64d86210a96b229ddfa932bb92678ab608eb59b9', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: "gray-1200", size: 108 })), h("div", { key: 'be711084541626184d7c742a8df88c1bf61c30e4', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: '2f1370424b58f393a81c2c0b71669d38782cf17e', buttonColor: "gray-1200", icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: "gray-1200" }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: '724e7897179be3d852a661a7109a264bb32b01b8', buttonColor: "gray-1200", icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
22
+ } }, h("a", { key: 'cb2b3ffb8a637825c76d4b33d71fa38d20a19220', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'affb176b938a399d51ccb6ae4fb5906e31ea2ff0', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: "gray-1200", size: 108 })), h("div", { key: '4aa0ce039d196d804b26df7e2b8608252da2a478', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: '088259ecd3d2271fb9a4042126886c7f4fe3a9ba', buttonColor: "gray-1200", icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: "gray-1200" }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: 'e20dcd573266b53341e9f21bab3b34672d4d96a1', buttonColor: "gray-1200", icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
23
23
  }
24
24
  static get is() { return "zonos-hello-dialog-footer"; }
25
25
  static get encapsulation() { return "shadow"; }