@justifi/webcomponents 4.2.2 → 4.5.0

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 (603) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Api-11362403.js → Api-d2df6e84.js} +17 -4
  3. package/dist/cjs/Api-d2df6e84.js.map +1 -0
  4. package/dist/cjs/{Payment-ac4dea02.js → Payout-4906a445.js} +44 -1
  5. package/dist/cjs/Payout-4906a445.js.map +1 -0
  6. package/dist/cjs/business-form-schema-725ec6f5.js +150 -0
  7. package/dist/cjs/business-form-schema-725ec6f5.js.map +1 -0
  8. package/dist/cjs/form-control-datepart_2.cjs.entry.js +107 -0
  9. package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -0
  10. package/dist/cjs/form-control-monetary.cjs.entry.js +65 -0
  11. package/dist/cjs/form-control-monetary.cjs.entry.js.map +1 -0
  12. package/dist/cjs/form-control-number_3.cjs.entry.js +148 -0
  13. package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -0
  14. package/dist/cjs/form-control-select.cjs.entry.js +47 -0
  15. package/dist/cjs/form-control-select.cjs.entry.js.map +1 -0
  16. package/dist/cjs/{index-34312a38.js → index-4ffc90c0.js} +145 -20
  17. package/dist/cjs/index-4ffc90c0.js.map +1 -0
  18. package/dist/cjs/index-5a880722.js +3233 -0
  19. package/dist/cjs/index-5a880722.js.map +1 -0
  20. package/dist/cjs/{index.esm-bcf90c56.js → index.esm-84a0a7a8.js} +283 -14
  21. package/dist/cjs/index.esm-84a0a7a8.js.map +1 -0
  22. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js +396 -0
  23. package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +1 -0
  24. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -3
  25. package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -1
  26. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -1
  28. package/dist/cjs/justifi-business-form.cjs.entry.js +833 -0
  29. package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -0
  30. package/dist/cjs/justifi-business-list.cjs.entry.js +189 -0
  31. package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -0
  32. package/dist/cjs/justifi-card-form.cjs.entry.js +8 -3
  33. package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -1
  34. package/dist/cjs/justifi-details.cjs.entry.js +30 -0
  35. package/dist/cjs/justifi-details.cjs.entry.js.map +1 -0
  36. package/dist/cjs/justifi-payment-details.cjs.entry.js +63 -0
  37. package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -0
  38. package/dist/cjs/justifi-payment-form.cjs.entry.js +25 -7
  39. package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
  40. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +26 -19
  41. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
  42. package/dist/cjs/justifi-payments-list.cjs.entry.js +78 -4039
  43. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
  44. package/dist/cjs/justifi-payout-details.cjs.entry.js +61 -0
  45. package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -0
  46. package/dist/cjs/justifi-payouts-list.cjs.entry.js +123 -0
  47. package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -0
  48. package/dist/cjs/justifi-proceeds-list.cjs.entry.js +156 -0
  49. package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -0
  50. package/dist/cjs/justifi-table.cjs.entry.js +68 -0
  51. package/dist/cjs/justifi-table.cjs.entry.js.map +1 -0
  52. package/dist/cjs/loader.cjs.js +3 -12
  53. package/dist/cjs/loader.cjs.js.map +1 -1
  54. package/dist/cjs/select-input_2.cjs.entry.js +6 -6
  55. package/dist/cjs/select-input_2.cjs.entry.js.map +1 -1
  56. package/dist/cjs/{state-options-efeaa587.js → state-options-83b52cd1.js} +1 -1
  57. package/dist/{esm/state-options-188acc34.js.map → cjs/state-options-83b52cd1.js.map} +1 -1
  58. package/dist/cjs/table-utils-617126e5.js +13 -0
  59. package/dist/cjs/table-utils-617126e5.js.map +1 -0
  60. package/dist/cjs/utils-0fd61dbd.js +3918 -0
  61. package/dist/cjs/utils-0fd61dbd.js.map +1 -0
  62. package/dist/cjs/utils-a5b5bfdf.js +35 -0
  63. package/dist/cjs/utils-a5b5bfdf.js.map +1 -0
  64. package/dist/cjs/webcomponents.cjs.js +3 -6
  65. package/dist/cjs/webcomponents.cjs.js.map +1 -1
  66. package/dist/collection/api/Api.js +17 -4
  67. package/dist/collection/api/Api.js.map +1 -1
  68. package/dist/collection/api/Business.js +50 -0
  69. package/dist/collection/api/Business.js.map +1 -0
  70. package/dist/collection/api/Payment.js.map +1 -1
  71. package/dist/collection/api/Payout.js +42 -0
  72. package/dist/collection/api/Payout.js.map +1 -0
  73. package/dist/collection/api/Proceed.js +42 -0
  74. package/dist/collection/api/Proceed.js.map +1 -0
  75. package/dist/collection/api/index.js +1 -0
  76. package/dist/collection/api/index.js.map +1 -1
  77. package/dist/collection/api/mockData/MockPayments.js +1 -1
  78. package/dist/collection/api/shared.js +2 -0
  79. package/dist/collection/api/shared.js.map +1 -0
  80. package/dist/collection/collection-manifest.json +30 -12
  81. package/dist/collection/components/bank-account-form/bank-account-form.js +38 -10
  82. package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -1
  83. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -0
  84. package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
  85. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +1 -1
  86. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +3 -3
  87. package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
  88. package/dist/collection/components/billing-form/billing-form.css +212 -39
  89. package/dist/collection/components/billing-form/billing-form.js +16 -10
  90. package/dist/collection/components/billing-form/billing-form.js.map +1 -1
  91. package/dist/collection/components/billing-form/test/billing-form.spec.js +51 -24
  92. package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -1
  93. package/dist/collection/components/business-form/additional-questions/additional-questions.js +59 -0
  94. package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -0
  95. package/dist/collection/components/{business-address/business-address-schema.js → business-form/business-address/business-address-form-schema.js} +2 -2
  96. package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +1 -0
  97. package/dist/collection/components/business-form/business-address/business-address-form.css +2532 -0
  98. package/dist/collection/components/business-form/business-address/business-address-form.js +98 -0
  99. package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -0
  100. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +10 -0
  101. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +1 -0
  102. package/dist/collection/components/business-form/business-address/test/business-address.spec.js +76 -0
  103. package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -0
  104. package/dist/collection/components/business-form/business-form-schema.js +160 -0
  105. package/dist/collection/components/business-form/business-form-schema.js.map +1 -0
  106. package/dist/collection/components/business-form/business-form.css +7772 -0
  107. package/dist/collection/components/business-form/business-form.js +153 -0
  108. package/dist/collection/components/business-form/business-form.js.map +1 -0
  109. package/dist/collection/components/business-form/business-form.stories.js +115 -0
  110. package/dist/collection/components/business-form/business-form.stories.js.map +1 -0
  111. package/dist/collection/components/{business-info/business-info.css → business-form/business-generic-info/business-generic-info.css} +745 -530
  112. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +72 -0
  113. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -0
  114. package/dist/collection/components/business-form/business-owners/business-owners.css +7772 -0
  115. package/dist/collection/components/business-form/business-owners/business-owners.js +131 -0
  116. package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -0
  117. package/dist/collection/components/business-form/business-representative/business-representative-schema.js +2 -0
  118. package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -0
  119. package/dist/collection/components/business-form/business-representative/business-representative.css +2489 -0
  120. package/dist/collection/components/business-form/business-representative/business-representative.js +71 -0
  121. package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -0
  122. package/dist/collection/components/business-form/test/business-form.spec.js +44 -0
  123. package/dist/collection/components/business-form/test/business-form.spec.js.map +1 -0
  124. package/dist/collection/components/business-list/business-list.css +576 -0
  125. package/dist/collection/components/business-list/business-list.js +209 -0
  126. package/dist/collection/components/business-list/business-list.js.map +1 -0
  127. package/dist/collection/components/business-list/business-list.stories.js +68 -0
  128. package/dist/collection/components/business-list/business-list.stories.js.map +1 -0
  129. package/dist/collection/components/business-list/example.js +12 -0
  130. package/dist/collection/components/card-form/card-form.js +38 -10
  131. package/dist/collection/components/card-form/card-form.js.map +1 -1
  132. package/dist/collection/components/card-form/card-form.stories.js +5 -2
  133. package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
  134. package/dist/collection/components/card-form/test/card-form.e2e.js +1 -1
  135. package/dist/collection/components/card-form/test/card-form.spec.js +3 -3
  136. package/dist/collection/components/details/details.css +7983 -0
  137. package/dist/collection/components/details/details.js +66 -0
  138. package/dist/collection/components/details/details.js.map +1 -0
  139. package/dist/collection/components/details/utils.js +10 -0
  140. package/dist/collection/components/details/utils.js.map +1 -0
  141. package/dist/collection/components/form/form-control-datepart.js +233 -0
  142. package/dist/collection/components/form/form-control-datepart.js.map +1 -0
  143. package/dist/collection/components/form/form-control-monetary.js +186 -0
  144. package/dist/collection/components/form/form-control-monetary.js.map +1 -0
  145. package/dist/collection/components/form/form-control-number-masked.js +217 -0
  146. package/dist/collection/components/form/form-control-number-masked.js.map +1 -0
  147. package/dist/collection/components/form/form-control-number.css +1818 -0
  148. package/dist/collection/components/form/form-control-number.js +194 -0
  149. package/dist/collection/components/form/form-control-number.js.map +1 -0
  150. package/dist/collection/components/{business-address/business-address.css → form/form-control-select.css} +350 -1212
  151. package/dist/collection/components/form/form-control-select.js +200 -0
  152. package/dist/collection/components/form/form-control-select.js.map +1 -0
  153. package/dist/collection/components/form/form-control-text.css +1801 -0
  154. package/dist/collection/components/form/form-control-text.js +194 -0
  155. package/dist/collection/components/form/form-control-text.js.map +1 -0
  156. package/dist/collection/components/form/form.js +93 -0
  157. package/dist/collection/components/form/form.js.map +1 -0
  158. package/dist/collection/components/legal-address-form/legal-address-form-schema.js +11 -0
  159. package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +1 -0
  160. package/dist/collection/components/legal-address-form/legal-address-form.css +2489 -0
  161. package/dist/collection/components/legal-address-form/legal-address-form.js +90 -0
  162. package/dist/collection/components/legal-address-form/legal-address-form.js.map +1 -0
  163. package/dist/collection/components/payment-details/example.js +12 -0
  164. package/dist/collection/components/payment-details/payment-details.css +7983 -0
  165. package/dist/collection/components/payment-details/payment-details.js +129 -0
  166. package/dist/collection/components/payment-details/payment-details.js.map +1 -0
  167. package/dist/collection/components/payment-details/payment-details.stories.js +47 -0
  168. package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -0
  169. package/dist/collection/components/payment-form/payment-form.css +220 -45
  170. package/dist/collection/components/payment-form/payment-form.js +47 -7
  171. package/dist/collection/components/payment-form/payment-form.js.map +1 -1
  172. package/dist/collection/components/payment-form/payment-form.stories.js +3 -2
  173. package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
  174. package/dist/collection/components/payment-form/payment-method-selector.css +348 -145
  175. package/dist/collection/components/payment-form/payment-method-selector.js +5 -3
  176. package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -1
  177. package/dist/collection/components/payment-form/test/payment-form.e2e.js +1 -1
  178. package/dist/collection/components/payment-form/test/payment-form.spec.js +4 -3
  179. package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -1
  180. package/dist/collection/components/payment-method-form/get-computed-theme.js +2 -0
  181. package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -1
  182. package/dist/collection/components/payment-method-form/payment-method-form.js +19 -11
  183. package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
  184. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
  185. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +3 -3
  186. package/dist/collection/components/payment-method-form/theme.js.map +1 -1
  187. package/dist/collection/components/payments-list/example.js +12 -0
  188. package/dist/collection/components/payments-list/payments-list.css +574 -1
  189. package/dist/collection/components/payments-list/payments-list.js +130 -27
  190. package/dist/collection/components/payments-list/payments-list.js.map +1 -1
  191. package/dist/collection/components/payments-list/payments-list.stories.js +78 -0
  192. package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -0
  193. package/dist/collection/components/payments-list/test/payments-list.spec.js +31 -18
  194. package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
  195. package/dist/collection/components/payout-details/example.js +12 -0
  196. package/dist/collection/components/payout-details/payout-details.css +7983 -0
  197. package/dist/collection/components/payout-details/payout-details.js +126 -0
  198. package/dist/collection/components/payout-details/payout-details.js.map +1 -0
  199. package/dist/collection/components/payout-details/payout-details.stories.js +47 -0
  200. package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -0
  201. package/dist/collection/components/payouts-list/example.js +12 -0
  202. package/dist/collection/components/payouts-list/payouts-list.css +576 -0
  203. package/dist/collection/components/payouts-list/payouts-list.js +215 -0
  204. package/dist/collection/components/payouts-list/payouts-list.js.map +1 -0
  205. package/dist/collection/components/payouts-list/payouts-list.stories.js +69 -0
  206. package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -0
  207. package/dist/collection/components/proceeds-list/example.js +12 -0
  208. package/dist/collection/components/proceeds-list/proceeds-list.css +576 -0
  209. package/dist/collection/components/proceeds-list/proceeds-list.js +207 -0
  210. package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -0
  211. package/dist/collection/components/proceeds-list/proceeds-list.stories.js +69 -0
  212. package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -0
  213. package/dist/collection/components/select-input/select-input.css +344 -141
  214. package/dist/collection/components/select-input/select-input.js +5 -4
  215. package/dist/collection/components/select-input/select-input.js.map +1 -1
  216. package/dist/collection/components/select-input/test/select-input.spec.js +72 -28
  217. package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -1
  218. package/dist/collection/components/table/table-utils.js +8 -0
  219. package/dist/collection/components/table/table-utils.js.map +1 -0
  220. package/dist/collection/components/table/table.css +8077 -0
  221. package/dist/collection/components/table/table.js +215 -0
  222. package/dist/collection/components/table/table.js.map +1 -0
  223. package/dist/collection/components/table/test/table.spec.js +59 -0
  224. package/dist/collection/components/table/test/table.spec.js.map +1 -0
  225. package/dist/collection/components/text-input/test/text-input.spec.js +47 -5
  226. package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -1
  227. package/dist/collection/components/text-input/text-input.css +344 -141
  228. package/dist/collection/components/text-input/text-input.js +2 -2
  229. package/dist/collection/components/text-input/text-input.js.map +1 -1
  230. package/dist/collection/utils/country-options.js +202 -0
  231. package/dist/collection/utils/country-options.js.map +1 -0
  232. package/dist/collection/utils/phone-masks.js +4 -0
  233. package/dist/collection/utils/phone-masks.js.map +1 -0
  234. package/dist/collection/utils/utils.js +47 -2
  235. package/dist/collection/utils/utils.js.map +1 -1
  236. package/dist/components/Api.js +16 -3
  237. package/dist/components/Api.js.map +1 -1
  238. package/dist/{esm/Payment-c86e1e84.js → components/Payout.js} +44 -2
  239. package/dist/components/Payout.js.map +1 -0
  240. package/dist/components/additional-questions.js +51 -0
  241. package/dist/components/additional-questions.js.map +1 -0
  242. package/dist/components/billing-form.js +2 -2
  243. package/dist/components/billing-form.js.map +1 -1
  244. package/dist/components/business-address-form.js +71 -0
  245. package/dist/components/business-address-form.js.map +1 -0
  246. package/dist/components/business-generic-info.js +216 -0
  247. package/dist/components/business-generic-info.js.map +1 -0
  248. package/dist/components/business-owners.js +118 -0
  249. package/dist/components/business-owners.js.map +1 -0
  250. package/dist/components/business-representative.js +91 -0
  251. package/dist/components/business-representative.js.map +1 -0
  252. package/dist/components/details.js +66 -0
  253. package/dist/components/details.js.map +1 -0
  254. package/dist/components/{justifi-business-info.d.ts → form-control-datepart.d.ts} +4 -4
  255. package/dist/components/form-control-datepart.js +8 -0
  256. package/dist/components/form-control-datepart.js.map +1 -0
  257. package/dist/components/form-control-datepart2.js +97 -0
  258. package/dist/components/form-control-datepart2.js.map +1 -0
  259. package/dist/components/form-control-monetary.d.ts +11 -0
  260. package/dist/components/form-control-monetary.js +8 -0
  261. package/dist/components/form-control-monetary.js.map +1 -0
  262. package/dist/components/form-control-monetary2.js +82 -0
  263. package/dist/components/form-control-monetary2.js.map +1 -0
  264. package/dist/components/form-control-number-masked.d.ts +11 -0
  265. package/dist/components/form-control-number-masked.js +8 -0
  266. package/dist/components/form-control-number-masked.js.map +1 -0
  267. package/dist/components/form-control-number-masked2.js +81 -0
  268. package/dist/components/form-control-number-masked2.js.map +1 -0
  269. package/dist/components/form-control-number.d.ts +11 -0
  270. package/dist/components/form-control-number.js +8 -0
  271. package/dist/components/form-control-number.js.map +1 -0
  272. package/dist/components/form-control-number2.js +70 -0
  273. package/dist/components/form-control-number2.js.map +1 -0
  274. package/dist/components/form-control-select.d.ts +11 -0
  275. package/dist/components/form-control-select.js +8 -0
  276. package/dist/components/form-control-select.js.map +1 -0
  277. package/dist/components/form-control-select2.js +66 -0
  278. package/dist/components/form-control-select2.js.map +1 -0
  279. package/dist/components/form-control-text.d.ts +11 -0
  280. package/dist/components/form-control-text.js +8 -0
  281. package/dist/components/form-control-text.js.map +1 -0
  282. package/dist/components/form-control-text2.js +70 -0
  283. package/dist/components/form-control-text2.js.map +1 -0
  284. package/dist/components/index.d.ts +6 -0
  285. package/dist/components/index.esm.js +281 -14
  286. package/dist/components/index.esm.js.map +1 -1
  287. package/dist/components/index.js +1 -1
  288. package/dist/components/index2.js +3231 -0
  289. package/dist/components/index2.js.map +1 -0
  290. package/dist/components/justifi-additional-questions.d.ts +11 -0
  291. package/dist/components/justifi-additional-questions.js +8 -0
  292. package/dist/components/justifi-additional-questions.js.map +1 -0
  293. package/dist/components/justifi-bank-account-form.js +7 -2
  294. package/dist/components/justifi-bank-account-form.js.map +1 -1
  295. package/dist/components/justifi-business-address-form.d.ts +11 -0
  296. package/dist/components/justifi-business-address-form.js +8 -0
  297. package/dist/components/justifi-business-address-form.js.map +1 -0
  298. package/dist/components/justifi-business-form.d.ts +11 -0
  299. package/dist/components/justifi-business-form.js +920 -0
  300. package/dist/components/justifi-business-form.js.map +1 -0
  301. package/dist/components/justifi-business-generic-info.d.ts +11 -0
  302. package/dist/components/justifi-business-generic-info.js +8 -0
  303. package/dist/components/justifi-business-generic-info.js.map +1 -0
  304. package/dist/components/justifi-business-list.d.ts +11 -0
  305. package/dist/components/justifi-business-list.js +215 -0
  306. package/dist/components/justifi-business-list.js.map +1 -0
  307. package/dist/components/justifi-business-owners.d.ts +11 -0
  308. package/dist/components/justifi-business-owners.js +8 -0
  309. package/dist/components/justifi-business-owners.js.map +1 -0
  310. package/dist/components/justifi-business-representative.d.ts +11 -0
  311. package/dist/components/justifi-business-representative.js +8 -0
  312. package/dist/components/justifi-business-representative.js.map +1 -0
  313. package/dist/components/justifi-card-form.js +7 -2
  314. package/dist/components/justifi-card-form.js.map +1 -1
  315. package/dist/components/justifi-details.d.ts +11 -0
  316. package/dist/components/justifi-details.js +8 -0
  317. package/dist/components/justifi-details.js.map +1 -0
  318. package/dist/components/justifi-legal-address-form.d.ts +11 -0
  319. package/dist/components/justifi-legal-address-form.js +8 -0
  320. package/dist/components/justifi-legal-address-form.js.map +1 -0
  321. package/dist/components/justifi-payment-details.d.ts +11 -0
  322. package/dist/components/justifi-payment-details.js +88 -0
  323. package/dist/components/justifi-payment-details.js.map +1 -0
  324. package/dist/components/justifi-payment-form.js +24 -4
  325. package/dist/components/justifi-payment-form.js.map +1 -1
  326. package/dist/components/justifi-payments-list.js +88 -4041
  327. package/dist/components/justifi-payments-list.js.map +1 -1
  328. package/dist/components/justifi-payout-details.d.ts +11 -0
  329. package/dist/components/justifi-payout-details.js +86 -0
  330. package/dist/components/justifi-payout-details.js.map +1 -0
  331. package/dist/components/justifi-payouts-list.d.ts +11 -0
  332. package/dist/components/justifi-payouts-list.js +149 -0
  333. package/dist/components/justifi-payouts-list.js.map +1 -0
  334. package/dist/components/justifi-proceeds-list.d.ts +11 -0
  335. package/dist/components/justifi-proceeds-list.js +182 -0
  336. package/dist/components/justifi-proceeds-list.js.map +1 -0
  337. package/dist/components/justifi-table.d.ts +11 -0
  338. package/dist/components/justifi-table.js +8 -0
  339. package/dist/components/justifi-table.js.map +1 -0
  340. package/dist/components/legal-address-form.js +271 -0
  341. package/dist/components/legal-address-form.js.map +1 -0
  342. package/dist/components/payment-method-form.js +25 -18
  343. package/dist/components/payment-method-form.js.map +1 -1
  344. package/dist/components/payment-method-selector.js +1 -1
  345. package/dist/components/payment-method-selector.js.map +1 -1
  346. package/dist/components/phone-masks.js +7 -0
  347. package/dist/components/phone-masks.js.map +1 -0
  348. package/dist/components/select-input2.js +3 -3
  349. package/dist/components/select-input2.js.map +1 -1
  350. package/dist/components/state-options.js.map +1 -1
  351. package/dist/components/table.js +94 -0
  352. package/dist/components/table.js.map +1 -0
  353. package/dist/components/text-input2.js +2 -2
  354. package/dist/components/text-input2.js.map +1 -1
  355. package/dist/components/utils.js +3911 -0
  356. package/dist/components/utils.js.map +1 -0
  357. package/dist/esm/{Api-a07f0057.js → Api-a95f17ac.js} +17 -4
  358. package/dist/esm/Api-a95f17ac.js.map +1 -0
  359. package/dist/{components/Payment.js → esm/Payout-9a1f2859.js} +44 -2
  360. package/dist/esm/Payout-9a1f2859.js.map +1 -0
  361. package/dist/esm/business-form-schema-5885d3d6.js +146 -0
  362. package/dist/esm/business-form-schema-5885d3d6.js.map +1 -0
  363. package/dist/esm/form-control-datepart_2.entry.js +102 -0
  364. package/dist/esm/form-control-datepart_2.entry.js.map +1 -0
  365. package/dist/esm/form-control-monetary.entry.js +61 -0
  366. package/dist/esm/form-control-monetary.entry.js.map +1 -0
  367. package/dist/esm/form-control-number_3.entry.js +142 -0
  368. package/dist/esm/form-control-number_3.entry.js.map +1 -0
  369. package/dist/esm/form-control-select.entry.js +43 -0
  370. package/dist/esm/form-control-select.entry.js.map +1 -0
  371. package/dist/esm/index-5ed53c20.js +3231 -0
  372. package/dist/esm/index-5ed53c20.js.map +1 -0
  373. package/dist/esm/{index-044f93fc.js → index-609a2c67.js} +145 -21
  374. package/dist/esm/index-609a2c67.js.map +1 -0
  375. package/dist/esm/{index.esm-5624a5ed.js → index.esm-89fe6af9.js} +282 -15
  376. package/dist/esm/index.esm-89fe6af9.js.map +1 -0
  377. package/dist/esm/justifi-additional-questions_5.entry.js +388 -0
  378. package/dist/esm/justifi-additional-questions_5.entry.js.map +1 -0
  379. package/dist/esm/justifi-bank-account-form.entry.js +8 -3
  380. package/dist/esm/justifi-bank-account-form.entry.js.map +1 -1
  381. package/dist/esm/justifi-billing-form_2.entry.js +5 -5
  382. package/dist/esm/justifi-billing-form_2.entry.js.map +1 -1
  383. package/dist/esm/justifi-business-form.entry.js +829 -0
  384. package/dist/esm/justifi-business-form.entry.js.map +1 -0
  385. package/dist/esm/justifi-business-list.entry.js +185 -0
  386. package/dist/esm/justifi-business-list.entry.js.map +1 -0
  387. package/dist/esm/justifi-card-form.entry.js +8 -3
  388. package/dist/esm/justifi-card-form.entry.js.map +1 -1
  389. package/dist/esm/justifi-details.entry.js +26 -0
  390. package/dist/esm/justifi-details.entry.js.map +1 -0
  391. package/dist/esm/justifi-payment-details.entry.js +59 -0
  392. package/dist/esm/justifi-payment-details.entry.js.map +1 -0
  393. package/dist/esm/justifi-payment-form.entry.js +22 -4
  394. package/dist/esm/justifi-payment-form.entry.js.map +1 -1
  395. package/dist/esm/justifi-payment-method-form.entry.js +26 -19
  396. package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
  397. package/dist/esm/justifi-payments-list.entry.js +78 -4039
  398. package/dist/esm/justifi-payments-list.entry.js.map +1 -1
  399. package/dist/esm/justifi-payout-details.entry.js +57 -0
  400. package/dist/esm/justifi-payout-details.entry.js.map +1 -0
  401. package/dist/esm/justifi-payouts-list.entry.js +119 -0
  402. package/dist/esm/justifi-payouts-list.entry.js.map +1 -0
  403. package/dist/esm/justifi-proceeds-list.entry.js +152 -0
  404. package/dist/esm/justifi-proceeds-list.entry.js.map +1 -0
  405. package/dist/esm/justifi-table.entry.js +64 -0
  406. package/dist/esm/justifi-table.entry.js.map +1 -0
  407. package/dist/esm/loader.js +4 -13
  408. package/dist/esm/loader.js.map +1 -1
  409. package/dist/esm/select-input_2.entry.js +6 -6
  410. package/dist/esm/select-input_2.entry.js.map +1 -1
  411. package/dist/esm/{state-options-188acc34.js → state-options-ece00aa2.js} +1 -1
  412. package/dist/esm/state-options-ece00aa2.js.map +1 -0
  413. package/dist/esm/table-utils-6cdcaa8c.js +11 -0
  414. package/dist/esm/table-utils-6cdcaa8c.js.map +1 -0
  415. package/dist/esm/utils-ad0bbe03.js +3911 -0
  416. package/dist/esm/utils-ad0bbe03.js.map +1 -0
  417. package/dist/esm/utils-cdf0b984.js +28 -0
  418. package/dist/esm/utils-cdf0b984.js.map +1 -0
  419. package/dist/esm/webcomponents.js +4 -7
  420. package/dist/esm/webcomponents.js.map +1 -1
  421. package/dist/types/api/Api.d.ts +1 -1
  422. package/dist/types/api/Business.d.ts +133 -0
  423. package/dist/types/api/Payment.d.ts +1 -0
  424. package/dist/types/api/Payout.d.ts +60 -0
  425. package/dist/types/api/Proceed.d.ts +60 -0
  426. package/dist/types/api/index.d.ts +1 -0
  427. package/dist/types/api/shared.d.ts +11 -0
  428. package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +15 -0
  429. package/dist/types/components/business-form/business-address/business-address-form.d.ts +9 -0
  430. package/dist/types/components/business-form/business-form-schema.d.ts +119 -0
  431. package/dist/types/components/business-form/business-form.d.ts +19 -0
  432. package/dist/types/components/business-form/business-form.stories.d.ts +21 -0
  433. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +15 -0
  434. package/dist/types/components/business-form/business-owners/business-owners.d.ts +33 -0
  435. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +15 -0
  436. package/dist/types/components/business-form/business-representative/business-representative.d.ts +11 -0
  437. package/dist/types/components/business-list/business-list.d.ts +35 -0
  438. package/dist/types/components/business-list/business-list.stories.d.ts +9 -0
  439. package/dist/types/components/details/details.d.ts +7 -0
  440. package/dist/types/components/details/utils.d.ts +19 -0
  441. package/dist/types/components/form/form-control-datepart.d.ts +19 -0
  442. package/dist/types/components/form/form-control-monetary.d.ts +17 -0
  443. package/dist/types/components/form/form-control-number-masked.d.ts +19 -0
  444. package/dist/types/components/form/form-control-number.d.ts +18 -0
  445. package/dist/types/components/form/form-control-select.d.ts +21 -0
  446. package/dist/types/components/form/form-control-text.d.ts +18 -0
  447. package/dist/types/components/form/form.d.ts +22 -0
  448. package/dist/types/components/legal-address-form/legal-address-form-schema.d.ts +17 -0
  449. package/dist/types/components/legal-address-form/legal-address-form.d.ts +16 -0
  450. package/dist/types/components/payment-details/payment-details.d.ts +28 -0
  451. package/dist/types/components/payment-details/payment-details.stories.d.ts +8 -0
  452. package/dist/types/components/payment-form/payment-form.d.ts +2 -0
  453. package/dist/types/components/payment-method-form/theme.d.ts +2 -0
  454. package/dist/types/components/payments-list/payments-list.d.ts +30 -5
  455. package/dist/types/components/payments-list/payments-list.stories.d.ts +10 -0
  456. package/dist/types/components/payout-details/payout-details.d.ts +28 -0
  457. package/dist/types/components/payout-details/payout-details.stories.d.ts +8 -0
  458. package/dist/types/components/payouts-list/payouts-list.d.ts +37 -0
  459. package/dist/types/components/payouts-list/payouts-list.stories.d.ts +9 -0
  460. package/dist/types/components/proceeds-list/proceeds-list.d.ts +37 -0
  461. package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +9 -0
  462. package/dist/types/components/table/table-utils.d.ts +14 -0
  463. package/dist/types/components/table/table.d.ts +28 -0
  464. package/dist/types/components.d.ts +964 -28
  465. package/dist/types/stencil-public-runtime.d.ts +16 -2
  466. package/dist/types/utils/country-options.d.ts +5 -0
  467. package/dist/types/utils/phone-masks.d.ts +3 -0
  468. package/dist/types/utils/utils.d.ts +3 -0
  469. package/dist/webcomponents/p-0237a6bc.entry.js +2 -0
  470. package/dist/webcomponents/p-0237a6bc.entry.js.map +1 -0
  471. package/dist/webcomponents/p-0d6e9f76.entry.js +2 -0
  472. package/dist/webcomponents/p-0d6e9f76.entry.js.map +1 -0
  473. package/dist/webcomponents/p-126146d4.js +2 -0
  474. package/dist/webcomponents/p-126146d4.js.map +1 -0
  475. package/dist/webcomponents/p-239564c6.entry.js +2 -0
  476. package/dist/webcomponents/p-239564c6.entry.js.map +1 -0
  477. package/dist/webcomponents/p-27b15fe8.entry.js +2 -0
  478. package/dist/webcomponents/p-27b15fe8.entry.js.map +1 -0
  479. package/dist/webcomponents/p-2c2cde2d.js +2 -0
  480. package/dist/webcomponents/p-2c2cde2d.js.map +1 -0
  481. package/dist/webcomponents/p-308b6784.js +3 -0
  482. package/dist/webcomponents/p-308b6784.js.map +1 -0
  483. package/dist/webcomponents/p-391b8f1d.entry.js +2 -0
  484. package/dist/webcomponents/p-391b8f1d.entry.js.map +1 -0
  485. package/dist/webcomponents/p-439fc294.entry.js +2 -0
  486. package/dist/webcomponents/p-439fc294.entry.js.map +1 -0
  487. package/dist/webcomponents/{p-0ea23153.js → p-47bc59b5.js} +1 -1
  488. package/dist/webcomponents/p-47bc59b5.js.map +1 -0
  489. package/dist/webcomponents/p-66f010e5.entry.js +2 -0
  490. package/dist/webcomponents/p-66f010e5.entry.js.map +1 -0
  491. package/dist/webcomponents/p-7abb092c.entry.js +2 -0
  492. package/dist/webcomponents/p-7abb092c.entry.js.map +1 -0
  493. package/dist/webcomponents/p-7e3bbe32.entry.js +2 -0
  494. package/dist/webcomponents/p-7e3bbe32.entry.js.map +1 -0
  495. package/dist/webcomponents/p-86464cab.entry.js +2 -0
  496. package/dist/webcomponents/p-86464cab.entry.js.map +1 -0
  497. package/dist/webcomponents/p-8f421dc6.js +2 -0
  498. package/dist/webcomponents/p-8f421dc6.js.map +1 -0
  499. package/dist/webcomponents/p-9346ae33.js +2 -0
  500. package/dist/webcomponents/p-9346ae33.js.map +1 -0
  501. package/dist/webcomponents/p-ab0756ff.js +2 -0
  502. package/dist/webcomponents/p-ab0756ff.js.map +1 -0
  503. package/dist/webcomponents/p-b042bf80.entry.js +2 -0
  504. package/dist/webcomponents/p-b042bf80.entry.js.map +1 -0
  505. package/dist/webcomponents/p-b967262f.entry.js +2 -0
  506. package/dist/webcomponents/p-b967262f.entry.js.map +1 -0
  507. package/dist/webcomponents/p-bf9c2be2.entry.js +2 -0
  508. package/dist/webcomponents/p-bf9c2be2.entry.js.map +1 -0
  509. package/dist/webcomponents/p-c18d876e.entry.js +2 -0
  510. package/dist/webcomponents/p-c18d876e.entry.js.map +1 -0
  511. package/dist/webcomponents/p-c1e4288d.entry.js +2 -0
  512. package/dist/webcomponents/p-c1e4288d.entry.js.map +1 -0
  513. package/dist/webcomponents/p-c46241ba.js +2 -0
  514. package/dist/webcomponents/p-c46241ba.js.map +1 -0
  515. package/dist/webcomponents/p-ccb0e1c5.js +2 -0
  516. package/dist/webcomponents/p-ccb0e1c5.js.map +1 -0
  517. package/dist/webcomponents/p-d1bbf409.entry.js +2 -0
  518. package/dist/webcomponents/p-d1bbf409.entry.js.map +1 -0
  519. package/dist/webcomponents/p-e26d7eea.entry.js +2 -0
  520. package/dist/webcomponents/p-e26d7eea.entry.js.map +1 -0
  521. package/dist/webcomponents/p-e77d8c6e.entry.js +2 -0
  522. package/dist/webcomponents/p-e77d8c6e.entry.js.map +1 -0
  523. package/dist/webcomponents/p-f0acb27e.entry.js +2 -0
  524. package/dist/webcomponents/p-f0acb27e.entry.js.map +1 -0
  525. package/dist/webcomponents/p-f8d49acb.entry.js +2 -0
  526. package/dist/webcomponents/p-f8d49acb.entry.js.map +1 -0
  527. package/dist/webcomponents/p-f9e127a5.js +2 -0
  528. package/dist/webcomponents/p-f9e127a5.js.map +1 -0
  529. package/dist/webcomponents/webcomponents.css +1 -1
  530. package/dist/webcomponents/webcomponents.esm.js +1 -1
  531. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  532. package/loader/index.d.ts +1 -1
  533. package/package.json +16 -16
  534. package/CHANGELOG.md +0 -208
  535. package/changelog-template.hbs +0 -10
  536. package/dist/cjs/Api-11362403.js.map +0 -1
  537. package/dist/cjs/Payment-ac4dea02.js.map +0 -1
  538. package/dist/cjs/index-34312a38.js.map +0 -1
  539. package/dist/cjs/index.esm-bcf90c56.js.map +0 -1
  540. package/dist/cjs/justifi-business-address.cjs.entry.js +0 -69
  541. package/dist/cjs/justifi-business-address.cjs.entry.js.map +0 -1
  542. package/dist/cjs/justifi-business-info.cjs.entry.js +0 -174
  543. package/dist/cjs/justifi-business-info.cjs.entry.js.map +0 -1
  544. package/dist/cjs/state-options-efeaa587.js.map +0 -1
  545. package/dist/collection/components/business-address/business-address-schema.js.map +0 -1
  546. package/dist/collection/components/business-address/business-address.js +0 -100
  547. package/dist/collection/components/business-address/business-address.js.map +0 -1
  548. package/dist/collection/components/business-address/test/business-address.e2e.js +0 -10
  549. package/dist/collection/components/business-address/test/business-address.e2e.js.map +0 -1
  550. package/dist/collection/components/business-address/test/business-address.spec.js +0 -18
  551. package/dist/collection/components/business-address/test/business-address.spec.js.map +0 -1
  552. package/dist/collection/components/business-info/business-info-schema.js +0 -94
  553. package/dist/collection/components/business-info/business-info-schema.js.map +0 -1
  554. package/dist/collection/components/business-info/business-info.js +0 -168
  555. package/dist/collection/components/business-info/business-info.js.map +0 -1
  556. package/dist/components/Payment.js.map +0 -1
  557. package/dist/components/justifi-business-address.d.ts +0 -11
  558. package/dist/components/justifi-business-address.js +0 -99
  559. package/dist/components/justifi-business-address.js.map +0 -1
  560. package/dist/components/justifi-business-info.js +0 -207
  561. package/dist/components/justifi-business-info.js.map +0 -1
  562. package/dist/esm/Api-a07f0057.js.map +0 -1
  563. package/dist/esm/Payment-c86e1e84.js.map +0 -1
  564. package/dist/esm/index-044f93fc.js.map +0 -1
  565. package/dist/esm/index.esm-5624a5ed.js.map +0 -1
  566. package/dist/esm/justifi-business-address.entry.js +0 -65
  567. package/dist/esm/justifi-business-address.entry.js.map +0 -1
  568. package/dist/esm/justifi-business-info.entry.js +0 -170
  569. package/dist/esm/justifi-business-info.entry.js.map +0 -1
  570. package/dist/esm/polyfills/css-shim.js +0 -1
  571. package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -56
  572. package/dist/types/components/business-address/business-address.d.ts +0 -11
  573. package/dist/types/components/business-info/business-info-schema.d.ts +0 -42
  574. package/dist/types/components/business-info/business-info.d.ts +0 -20
  575. package/dist/types/components/card-form/card-form.d.ts +0 -62
  576. package/dist/webcomponents/p-0969db8f.entry.js +0 -2
  577. package/dist/webcomponents/p-0969db8f.entry.js.map +0 -1
  578. package/dist/webcomponents/p-0ea23153.js.map +0 -1
  579. package/dist/webcomponents/p-1ca0646b.js +0 -2
  580. package/dist/webcomponents/p-1ca0646b.js.map +0 -1
  581. package/dist/webcomponents/p-1f151d49.js +0 -2
  582. package/dist/webcomponents/p-1f151d49.js.map +0 -1
  583. package/dist/webcomponents/p-255b1284.entry.js +0 -2
  584. package/dist/webcomponents/p-255b1284.entry.js.map +0 -1
  585. package/dist/webcomponents/p-3aa91155.js +0 -3
  586. package/dist/webcomponents/p-3aa91155.js.map +0 -1
  587. package/dist/webcomponents/p-4ecc9860.entry.js +0 -2
  588. package/dist/webcomponents/p-4ecc9860.entry.js.map +0 -1
  589. package/dist/webcomponents/p-90c0d9e1.entry.js +0 -2
  590. package/dist/webcomponents/p-90c0d9e1.entry.js.map +0 -1
  591. package/dist/webcomponents/p-bd5352d6.entry.js +0 -2
  592. package/dist/webcomponents/p-bd5352d6.entry.js.map +0 -1
  593. package/dist/webcomponents/p-c903cc5a.entry.js +0 -2
  594. package/dist/webcomponents/p-c903cc5a.entry.js.map +0 -1
  595. package/dist/webcomponents/p-d87b0711.entry.js +0 -2
  596. package/dist/webcomponents/p-d87b0711.entry.js.map +0 -1
  597. package/dist/webcomponents/p-dbf7100f.entry.js +0 -2
  598. package/dist/webcomponents/p-dbf7100f.entry.js.map +0 -1
  599. package/dist/webcomponents/p-e0054bc3.js +0 -2
  600. package/dist/webcomponents/p-e0054bc3.js.map +0 -1
  601. package/dist/webcomponents/p-f30d1567.entry.js +0 -2
  602. package/dist/webcomponents/p-f30d1567.entry.js.map +0 -1
  603. /package/dist/types/components/{business-address/business-address-schema.d.ts → business-form/business-address/business-address-form-schema.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"bank-account-form.js","sourceRoot":"","sources":["../../../../src/components/bank-account-form/bank-account-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAgB,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQ/F,MAAM,OAAO,eAAe;;;;;;EAgC1B,YAAY,CAAC,KAAkB;IAC7B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EACxC,CAAC;EAGD,eAAe,CAAC,KAAoB;IAClC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAC3C,CAAC;EAGD,eAAe,CAAC,KAAoB;IAClC,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;EAC3C,CAAC;EAID;;KAEG;EAEH,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAiE;IACjF,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;EACzC,CAAC;EAED;;KAEG;EAEH,KAAK,CAAC,QAAQ;IACZ,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;EAClC,CAAC;EAED;;IAEE;EAEF,KAAK,CAAC,MAAM;IACV,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;EAChC,CAAC;EAED,MAAM;IACJ,OAAO,CACL,mCACE,GAAG,EAAE,EAAE,CAAC,EAAE;QACR,IAAI,EAAE,EAAE;UACN,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;SACpB;MACH,CAAC,mBACc,IAAI,CAAC,YAAY,8BACP,aAAa,+BACX,IAAI,CAAC,oBAAoB,kCACtB,IAAI,CAAC,uBAAuB,yCACrB,IAAI,CAAC,cAAc,IAAI,UAAU,GACtE,CACH,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, Prop, h, EventEmitter, Listen, Method, State } from '@stencil/core';\nimport { CreatePaymentMethodResponse } from '../payment-method-form/payment-method-responses';\nimport { Theme } from '../payment-method-form/theme';\n\n@Component({\n tag: 'justifi-bank-account-form',\n shadow: false,\n})\nexport class BankAccountForm {\n /**\n * When to trigger validation of the form.\n */\n @Prop({ mutable: true }) validationMode: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';\n\n /**\n * URL for the rendered iFrame. End-users need not use this.\n */\n @Prop({ mutable: true }) iframeOrigin?: string;\n\n @State() internalStyleOverrides: Theme;\n\n /**\n * Triggered when iframe has loaded\n * @event justifi-bank-account-form#bankAccountFormReady\n */\n @Event() bankAccountFormReady: EventEmitter<any>;\n\n /**\n * Triggered when the tokenize method is called on the component\n * @event justifi-bank-account-form#bankAccountFormTokenize\n */\n @Event() bankAccountFormTokenize: EventEmitter<{ data: any }>;\n\n /**\n * Triggered when the validate method is called on the component\n * @event justifi-bank-account-form#bankAccountFormValidate\n */\n @Event() bankAccountFormValidate: EventEmitter<{ data: { isValid: boolean } }>;\n\n @Listen('paymentMethodFormReady')\n readyHandler(event: CustomEvent) {\n this.bankAccountFormReady.emit(event);\n }\n\n @Listen('paymentMethodFormTokenize')\n tokenizeHandler(event: { data: any }) {\n this.bankAccountFormTokenize.emit(event);\n }\n\n @Listen('paymentMethodFormValidate')\n validateHandler(event: { data: any }) {\n this.bankAccountFormValidate.emit(event);\n }\n\n private childRef?: HTMLJustifiPaymentMethodFormElement;\n\n /**\n * Makes a tokenization request to the iframe\n */\n @Method()\n async tokenize(...args: Parameters<HTMLJustifiPaymentMethodFormElement['tokenize']>): Promise<CreatePaymentMethodResponse> {\n if (!this.childRef) {\n throw new Error('Cannot call tokenize');\n }\n return this.childRef.tokenize(...args);\n }\n\n /**\n * Runs a validation on the form and shows errors if any\n */\n @Method()\n async validate() {\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.validate();\n }\n\n /**\n * Manually resizes the iframe to fit the contents of the iframe\n */\n @Method()\n async resize(): Promise<void> {\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.resize();\n }\n\n render() {\n return (\n <justifi-payment-method-form\n ref={el => {\n if (el) {\n this.childRef = el;\n }\n }}\n iframe-origin={this.iframeOrigin}\n payment-method-form-type=\"bankAccount\"\n payment-method-form-ready={this.bankAccountFormReady}\n payment-method-form-tokenize={this.bankAccountFormTokenize}\n payment-method-form-validation-mode={this.validationMode || 'onSubmit'}\n />\n );\n }\n}\n"]}
1
+ {"version":3,"file":"bank-account-form.js","sourceRoot":"","sources":["../../../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;MAClB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACzC;IACD,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;EAChC,CAAC;EAED,MAAM;IACJ,OAAO,CACL,mCACE,GAAG,EAAE,EAAE,CAAC,EAAE;QACR,IAAI,EAAE,EAAE;UACN,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;SACpB;MACH,CAAC,mBACc,IAAI,CAAC,YAAY,8BACP,aAAa,+BACX,IAAI,CAAC,oBAAoB,kCACtB,IAAI,CAAC,uBAAuB,yCACrB,IAAI,CAAC,cAAc,IAAI,UAAU,GACtE,CACH,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, Prop, h, EventEmitter, Listen, Method, State } from '@stencil/core';\nimport { CreatePaymentMethodResponse } from '../payment-method-form/payment-method-responses';\nimport { Theme } from '../payment-method-form/theme';\n\n@Component({\n tag: 'justifi-bank-account-form',\n shadow: false,\n})\nexport class BankAccountForm {\n /**\n * When to trigger validation of the form.\n */\n @Prop({ mutable: true }) validationMode: 'onChange' | 'onBlur' | 'onSubmit' | 'onTouched' | 'all';\n\n /**\n * URL for the rendered iFrame. End-users need not use this.\n */\n @Prop({ mutable: true }) iframeOrigin?: string;\n\n @State() internalStyleOverrides: Theme;\n\n /**\n * Triggered when iframe has loaded\n * @event justifi-bank-account-form#bankAccountFormReady\n */\n @Event() bankAccountFormReady: EventEmitter<any>;\n\n /**\n * Triggered when iframe has loaded\n * @event justifi-bank-account-form#ready\n */\n @Event() ready: EventEmitter<any>;\n\n /**\n * Triggered when the tokenize method is called on the component\n * @event justifi-bank-account-form#bankAccountFormTokenize\n */\n @Event() bankAccountFormTokenize: EventEmitter<{ data: any }>;\n\n /**\n * Triggered when the validate method is called on the component\n * @event justifi-bank-account-form#bankAccountFormValidate\n */\n @Event() bankAccountFormValidate: EventEmitter<{ data: { isValid: boolean } }>;\n\n @Listen('paymentMethodFormReady')\n readyHandler(event: CustomEvent) {\n console.warn(`The 'bankAccountFormReady' event is deprecated in the next major release and will be renamed to 'ready'`);\n this.bankAccountFormReady.emit(event);\n this.ready.emit(event);\n }\n\n @Listen('paymentMethodFormTokenize')\n tokenizeHandler(event: { data: any }) {\n console.warn(\n `The 'bankAccountFormTokenize' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`,\n );\n this.bankAccountFormTokenize.emit(event);\n }\n\n @Listen('paymentMethodFormValidate')\n validateHandler(event: { data: any }) {\n console.warn(\n `The 'bankAccountFormValidate' event is deprecated in the next major release. Please refer to the documentation for the migration process and alternative approach. This method will be removed in the future.`,\n );\n this.bankAccountFormValidate.emit(event);\n }\n\n private childRef?: HTMLJustifiPaymentMethodFormElement;\n\n /**\n * Makes a tokenization request to the iframe\n */\n @Method()\n async tokenize(...args: Parameters<HTMLJustifiPaymentMethodFormElement['tokenize']>): Promise<CreatePaymentMethodResponse> {\n if (!this.childRef) {\n throw new Error('Cannot call tokenize');\n }\n return this.childRef.tokenize(...args);\n }\n\n /**\n * Runs a validation on the form and shows errors if any\n */\n @Method()\n async validate() {\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.validate();\n }\n\n /**\n * Manually resizes the iframe to fit the contents of the iframe\n */\n @Method()\n async resize(): Promise<void> {\n if (!this.childRef) {\n throw new Error('Cannot call validate');\n }\n return this.childRef.resize();\n }\n\n render() {\n return (\n <justifi-payment-method-form\n ref={el => {\n if (el) {\n this.childRef = el;\n }\n }}\n iframe-origin={this.iframeOrigin}\n payment-method-form-type=\"bankAccount\"\n payment-method-form-ready={this.bankAccountFormReady}\n payment-method-form-tokenize={this.bankAccountFormTokenize}\n payment-method-form-validation-mode={this.validationMode || 'onSubmit'}\n />\n );\n }\n}\n"]}
@@ -1,5 +1,7 @@
1
1
  const isDev = process.env.NODE_ENV === 'development';
2
2
  const CSSVars = `
3
+ --jfi-load-google-font: 'Roboto Mono:wght@200;400;700;900&family=Agdasima';
4
+ --jfi-layout-font-family: Roboto Mono;
3
5
  --jfi-layout-padding: 4px;
4
6
  --jfi-layout-form-control-spacing-x: .5rem;
5
7
  --jfi-layout-form-control-spacing-y: 1rem;
@@ -1 +1 @@
1
- {"version":3,"file":"bank-account-form.stories.js","sourceRoot":"","sources":["../../../../src/components/bank-account-form/bank-account-form.stories.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC;AACrD,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCf,CAAC;AAEF,eAAe;EACb,KAAK,EAAE,4BAA4B;EACnC,SAAS,EAAE,2BAA2B;EACtC,QAAQ,EAAE;IACR,eAAe,EAAE;MACf,OAAO,EAAE,MAAM;MACf,KAAK,EAAE;QACL,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;QAC7B,QAAQ,EAAE,OAAO;OAClB;KACF;IACD,eAAe,EAAE;MACf,OAAO,EAAE,MAAM;MACf,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,OAAO;OACtB;KACF;GACF;EACD,UAAU,EAAE;IACV,KAAK,CAAC,EAAE,CAAC;QACL,KAAK,EAAE;gBACC,SAAS,EAAE;KACtB;GACF;CACF,CAAC;AAEF,MAAM,mBAAmB,GAAG,KAAK,EAAE,QAA2C,EAAE,EAAE;EAChF,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,QAAQ,EAAE,CAAC;EACxC,OAAO,CAAC,GAAG,CAAC,K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AS,GAAG,GAAG,EAAE;EACrB,gBAAgB,CAAC,sBAAsB,EAAE,WAAW,CAAC,CAAC;AACxD,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;CAgBnB,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAS,EAAE,EAAE;EAC7B,OAAO;;;;UAIC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE;;;;;2BAKV,IAAI,CAAC,iBAAiB,CAAC,IAAI,UAAU;yBACvC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE;;;MAG9C,WAAW;GACd,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxC,MAAM,CAAC,IAAI,GAAG;EACZ,eAAe,EAAE,OAAO;CACzB,CAAC","sourcesContent":["const isDev = process.env.NODE_ENV === 'development';\nconst CSSVars = `\n--jfi-layout-padding: 4px;\n--jfi-layout-form-control-spacing-x: .5rem;\n--jfi-layout-form-control-spacing-y: 1rem;\n--jfi-form-label-font-weight: 700;\n--jfi-form-label-font-family: sans-serif;\n--jfi-form-label-margin: 0 0 .5rem 0;\n--jfi-form-control-background-color: #F4F4F6;\n--jfi-form-control-background-color-hover: #EEEEF5;\n--jfi-form-control-border-color: rgba(0, 0, 0, 0.42);\n--jfi-form-control-border-color-hover: rgba(0, 0, 0, 0.62);\n--jfi-form-control-border-color-focus: #fccc32;\n--jfi-form-control-border-color-error: #C12727;\n--jfi-form-control-border-top-width: 0;\n--jfi-form-control-border-left-width: 0;\n--jfi-form-control-border-bottom-width: 1px;\n--jfi-form-control-border-right-width: 0;\n--jfi-form-control-border-radius: 4px 4px 0 0;\n--jfi-form-control-border-style: solid;\n--jfi-form-control-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n--jfi-form-control-box-shadow-focus: none;\n--jfi-form-control-box-shadow-error-focus: none;\n--jfi-form-control-border-style: solid;\n--jfi-form-control-color: #212529;\n--jfi-form-control-font-size: 1rem;\n--jfi-form-control-font-weight: 400;\n--jfi-form-control-line-height: 2;\n--jfi-form-control-margin: 0;\n--jfi-form-control-padding: .5rem .875rem;\n--jfi-error-message-color: #C12727;\n--jfi-error-message-margin: .25rem 0 0 0;\n--jfi-error-message-font-size: .875rem;\n`;\n\nexport default {\n title: 'Components/BankAccountForm',\n component: 'justifi-bank-account-form',\n argTypes: {\n 'iframe-origin': {\n control: 'text',\n table: {\n disable: isDev ? false : true,\n category: 'props',\n },\n },\n 'css-variables': {\n control: 'text',\n table: {\n category: 'props',\n defaultValue: CSSVars,\n },\n },\n },\n decorators: [\n story => `\n ${story()}\n <script>${addEvents()}</script>\n `,\n ],\n};\n\nconst handleValidateClick = async (bankForm: HTMLJustifiBankAccountFormElement) => {\n const valid = await bankForm.validate();\n console.log(valid);\n};\nconst handleTokenizeClick = async (bankForm: HTMLJustifiBankAccountFormElement, paymentMethodData: any) => {\n const tokenizeResponse = await bankForm.tokenize('CLIENT_ID', paymentMethodData);\n console.log(tokenizeResponse);\n};\nconst handleResizeClick = async (bankForm: HTMLJustifiBankAccountFormElement) => {\n await bankForm.resize();\n};\nconst handleReady = () => {\n console.log('bank account form is ready');\n const bankForm = document.querySelector('justifi-bank-account-form') as HTMLJustifiBankAccountFormElement;\n const validateBtn = document.querySelector('#validate-btn');\n const tokenizeBtn = document.querySelector('#tokenize-btn');\n const resizeBtn = document.querySelector('#resize-btn');\n validateBtn?.addEventListener('click', () => {\n handleValidateClick(bankForm);\n });\n tokenizeBtn?.addEventListener('click', () => {\n handleTokenizeClick(bankForm, {});\n });\n resizeBtn?.addEventListener('click', () => {\n handleResizeClick(bankForm);\n });\n};\n\nconst addEvents = () => {\n addEventListener('bankAccountFormReady', handleReady);\n};\n\nconst FormButtons = `\n <style>\n .button-bar {\n display: flex;\n aligin-items: center;\n padding: 10px;\n }\n .button-bar button {\n margin-right: 10px;\n }\n </style>\n <div class=\"button-bar\">\n <button id=\"validate-btn\">Validate</button>\n <button id=\"tokenize-btn\">Tokenize</button>\n <button id=\"resize-btn\">Resize</button>\n </div>\n`;\n\nconst Template = (args: any) => {\n return `\n <div>\n <style>\n :root {\n ${args['css-variables'] || ''}\n }\n </style>\n <justifi-bank-account-form\n data-testid=\"bank-account-form-iframe\"\n validation-mode='${args['validation-mode'] || 'onSubmit'}'\n iframe-origin='${args['iframe-origin'] || ''}'\n />\n </div>\n ${FormButtons}\n `;\n};\n\nexport const Basic = Template.bind({});\n\nexport const Styled = Template.bind({});\nStyled.args = {\n 'css-variables': CSSVars,\n};\n"]}
1
+ {"version":3,"file":"bank-account-form.stories.js","sourceRoot":"","sources":["../../../../src/components/bank-account-form/bank-account-form.stories.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC;AACrD,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCf,CAAC;AAEF,eAAe;EACb,KAAK,EAAE,4BAA4B;EACnC,SAAS,EAAE,2BAA2B;EACtC,QAAQ,EAAE;IACR,eAAe,EAAE;MACf,OAAO,EAAE,MAAM;MACf,KAAK,EAAE;QACL,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI;QAC7B,QAAQ,EAAE,OAAO;OAClB;KACF;IACD,eAAe,EAAE;MACf,OAAO,EAAE,MAAM;MACf,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO;QACjB,YAAY,EAAE,OAAO;OACtB;KACF;GACF;EACD,UAAU,EAAE;IACV,KAAK,CAAC,EAAE,CAAC;QACL,KAAK,EAAE;gBACC,SAAS,EAAE;KACtB;GACF;CACF,CAAC;AAEF,MAAM,mBAAmB,GAAG,KAAK,EAAE,QAA2C,EAAE,EAAE;EAChF,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AAiB,CAAC,QAAQ,CAAC,CAAC;EAC9B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;EACrB,gBAAgB,CAAC,sBAAsB,EAAE,WAAW,CAAC,CAAC;AACxD,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;CAgBnB,CAAC;AAEF,MAAM,QAAQ,GAAG,CAAC,IAAS,EAAE,EAAE;EAC7B,OAAO;;;;UAIC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE;;;;;2BAKV,IAAI,CAAC,iBAAiB,CAAC,IAAI,UAAU;yBACvC,IAAI,CAAC,eAAe,CAAC,IAAI,EAAE;;;MAG9C,WAAW;GACd,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAEvC,MAAM,CAAC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACxC,MAAM,CAAC,IAAI,GAAG;EACZ,eAAe,EAAE,OAAO;CACzB,CAAC","sourcesContent":["const isDev = process.env.NODE_ENV === 'development';\nconst CSSVars = `\n--jfi-load-google-font: 'Roboto Mono:wght@200;400;700;900&family=Agdasima';\n--jfi-layout-font-family: Roboto Mono;\n--jfi-layout-padding: 4px;\n--jfi-layout-form-control-spacing-x: .5rem;\n--jfi-layout-form-control-spacing-y: 1rem;\n--jfi-form-label-font-weight: 700;\n--jfi-form-label-font-family: sans-serif;\n--jfi-form-label-margin: 0 0 .5rem 0;\n--jfi-form-control-background-color: #F4F4F6;\n--jfi-form-control-background-color-hover: #EEEEF5;\n--jfi-form-control-border-color: rgba(0, 0, 0, 0.42);\n--jfi-form-control-border-color-hover: rgba(0, 0, 0, 0.62);\n--jfi-form-control-border-color-focus: #fccc32;\n--jfi-form-control-border-color-error: #C12727;\n--jfi-form-control-border-top-width: 0;\n--jfi-form-control-border-left-width: 0;\n--jfi-form-control-border-bottom-width: 1px;\n--jfi-form-control-border-right-width: 0;\n--jfi-form-control-border-radius: 4px 4px 0 0;\n--jfi-form-control-border-style: solid;\n--jfi-form-control-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n--jfi-form-control-box-shadow-focus: none;\n--jfi-form-control-box-shadow-error-focus: none;\n--jfi-form-control-border-style: solid;\n--jfi-form-control-color: #212529;\n--jfi-form-control-font-size: 1rem;\n--jfi-form-control-font-weight: 400;\n--jfi-form-control-line-height: 2;\n--jfi-form-control-margin: 0;\n--jfi-form-control-padding: .5rem .875rem;\n--jfi-error-message-color: #C12727;\n--jfi-error-message-margin: .25rem 0 0 0;\n--jfi-error-message-font-size: .875rem;\n`;\n\nexport default {\n title: 'Components/BankAccountForm',\n component: 'justifi-bank-account-form',\n argTypes: {\n 'iframe-origin': {\n control: 'text',\n table: {\n disable: isDev ? false : true,\n category: 'props',\n },\n },\n 'css-variables': {\n control: 'text',\n table: {\n category: 'props',\n defaultValue: CSSVars,\n },\n },\n },\n decorators: [\n story => `\n ${story()}\n <script>${addEvents()}</script>\n `,\n ],\n};\n\nconst handleValidateClick = async (bankForm: HTMLJustifiBankAccountFormElement) => {\n const valid = await bankForm.validate();\n console.log(valid);\n};\nconst handleTokenizeClick = async (bankForm: HTMLJustifiBankAccountFormElement, paymentMethodData: any) => {\n const tokenizeResponse = await bankForm.tokenize('CLIENT_ID', paymentMethodData);\n console.log(tokenizeResponse);\n};\nconst handleResizeClick = async (bankForm: HTMLJustifiBankAccountFormElement) => {\n await bankForm.resize();\n};\nconst handleReady = () => {\n console.log('bank account form is ready');\n const bankForm = document.querySelector('justifi-bank-account-form') as HTMLJustifiBankAccountFormElement;\n const validateBtn = document.querySelector('#validate-btn');\n const tokenizeBtn = document.querySelector('#tokenize-btn');\n const resizeBtn = document.querySelector('#resize-btn');\n validateBtn?.addEventListener('click', () => {\n handleValidateClick(bankForm);\n });\n tokenizeBtn?.addEventListener('click', () => {\n handleTokenizeClick(bankForm, {});\n });\n resizeBtn?.addEventListener('click', () => {\n handleResizeClick(bankForm);\n });\n};\n\nconst addEvents = () => {\n addEventListener('bankAccountFormReady', handleReady);\n};\n\nconst FormButtons = `\n <style>\n .button-bar {\n display: flex;\n aligin-items: center;\n padding: 10px;\n }\n .button-bar button {\n margin-right: 10px;\n }\n </style>\n <div class=\"button-bar\">\n <button id=\"validate-btn\">Validate</button>\n <button id=\"tokenize-btn\">Tokenize</button>\n <button id=\"resize-btn\">Resize</button>\n </div>\n`;\n\nconst Template = (args: any) => {\n return `\n <div>\n <style>\n :root {\n ${args['css-variables'] || ''}\n }\n </style>\n <justifi-bank-account-form\n data-testid=\"bank-account-form-iframe\"\n validation-mode='${args['validation-mode'] || 'onSubmit'}'\n iframe-origin='${args['iframe-origin'] || ''}'\n />\n </div>\n ${FormButtons}\n `;\n};\n\nexport const Basic = Template.bind({});\n\nexport const Styled = Template.bind({});\nStyled.args = {\n 'css-variables': CSSVars,\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { newE2EPage } from '@stencil/core/testing';
1
+ import { newE2EPage } from "@stencil/core/testing";
2
2
  describe('justifi-bank-account-form', () => {
3
3
  it('should emit "bankAccountFormReady" event when "paymentMethodFormReady" event is fired', async () => {
4
4
  const page = await newE2EPage();
@@ -1,6 +1,6 @@
1
- import { newSpecPage } from '@stencil/core/testing';
2
- import { BankAccountForm } from '../bank-account-form';
3
- import { PaymentMethodForm } from '../../payment-method-form/payment-method-form';
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { BankAccountForm } from "../bank-account-form";
3
+ import { PaymentMethodForm } from "../../payment-method-form/payment-method-form";
4
4
  describe('justifi-bank-account-form', () => {
5
5
  it('should pass validationMode prop to justifi-payment-method-form', async () => {
6
6
  const page = await newSpecPage({
@@ -1,4 +1,4 @@
1
- import { object, string } from 'yup';
1
+ import { object, string } from "yup";
2
2
  export const RegExZip = /^\d{5}/;
3
3
  const BillingFormSchema = object({
4
4
  name: string().required('Enter name'),
@@ -1,4 +1,5 @@
1
- :root {
1
+ :root,
2
+ [data-bs-theme=light] {
2
3
  --bs-blue: #0d6efd;
3
4
  --bs-indigo: #6610f2;
4
5
  --bs-purple: #6f42c1;
@@ -38,10 +39,32 @@
38
39
  --bs-danger-rgb: 220, 53, 69;
39
40
  --bs-light-rgb: 248, 249, 250;
40
41
  --bs-dark-rgb: 33, 37, 41;
42
+ --bs-primary-text-emphasis: #052c65;
43
+ --bs-secondary-text-emphasis: #2b2f32;
44
+ --bs-success-text-emphasis: #0a3622;
45
+ --bs-info-text-emphasis: #055160;
46
+ --bs-warning-text-emphasis: #664d03;
47
+ --bs-danger-text-emphasis: #58151c;
48
+ --bs-light-text-emphasis: #495057;
49
+ --bs-dark-text-emphasis: #495057;
50
+ --bs-primary-bg-subtle: #cfe2ff;
51
+ --bs-secondary-bg-subtle: #e2e3e5;
52
+ --bs-success-bg-subtle: #d1e7dd;
53
+ --bs-info-bg-subtle: #cff4fc;
54
+ --bs-warning-bg-subtle: #fff3cd;
55
+ --bs-danger-bg-subtle: #f8d7da;
56
+ --bs-light-bg-subtle: #fcfcfd;
57
+ --bs-dark-bg-subtle: #ced4da;
58
+ --bs-primary-border-subtle: #9ec5fe;
59
+ --bs-secondary-border-subtle: #c4c8cb;
60
+ --bs-success-border-subtle: #a3cfbb;
61
+ --bs-info-border-subtle: #9eeaf9;
62
+ --bs-warning-border-subtle: #ffe69c;
63
+ --bs-danger-border-subtle: #f1aeb5;
64
+ --bs-light-border-subtle: #e9ecef;
65
+ --bs-dark-border-subtle: #adb5bd;
41
66
  --bs-white-rgb: 255, 255, 255;
42
67
  --bs-black-rgb: 0, 0, 0;
43
- --bs-body-color-rgb: 33, 37, 41;
44
- --bs-body-bg-rgb: 255, 255, 255;
45
68
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
46
69
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
47
70
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
@@ -50,7 +73,27 @@
50
73
  --bs-body-font-weight: 400;
51
74
  --bs-body-line-height: 1.5;
52
75
  --bs-body-color: #212529;
76
+ --bs-body-color-rgb: 33, 37, 41;
53
77
  --bs-body-bg: #fff;
78
+ --bs-body-bg-rgb: 255, 255, 255;
79
+ --bs-emphasis-color: #000;
80
+ --bs-emphasis-color-rgb: 0, 0, 0;
81
+ --bs-secondary-color: rgba(33, 37, 41, 0.75);
82
+ --bs-secondary-color-rgb: 33, 37, 41;
83
+ --bs-secondary-bg: #e9ecef;
84
+ --bs-secondary-bg-rgb: 233, 236, 239;
85
+ --bs-tertiary-color: rgba(33, 37, 41, 0.5);
86
+ --bs-tertiary-color-rgb: 33, 37, 41;
87
+ --bs-tertiary-bg: #f8f9fa;
88
+ --bs-tertiary-bg-rgb: 248, 249, 250;
89
+ --bs-heading-color: inherit;
90
+ --bs-link-color: #0d6efd;
91
+ --bs-link-color-rgb: 13, 110, 253;
92
+ --bs-link-decoration: underline;
93
+ --bs-link-hover-color: #0a58ca;
94
+ --bs-link-hover-color-rgb: 10, 88, 202;
95
+ --bs-code-color: #d63384;
96
+ --bs-highlight-bg: #fff3cd;
54
97
  --bs-border-width: 1px;
55
98
  --bs-border-style: solid;
56
99
  --bs-border-color: #dee2e6;
@@ -59,12 +102,74 @@
59
102
  --bs-border-radius-sm: 0.25rem;
60
103
  --bs-border-radius-lg: 0.5rem;
61
104
  --bs-border-radius-xl: 1rem;
62
- --bs-border-radius-2xl: 2rem;
105
+ --bs-border-radius-xxl: 2rem;
106
+ --bs-border-radius-2xl: var(--bs-border-radius-xxl);
63
107
  --bs-border-radius-pill: 50rem;
64
- --bs-link-color: #0d6efd;
65
- --bs-link-hover-color: #0a58ca;
66
- --bs-code-color: #d63384;
67
- --bs-highlight-bg: #fff3cd;
108
+ --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
109
+ --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
110
+ --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
111
+ --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
112
+ --bs-focus-ring-width: 0.25rem;
113
+ --bs-focus-ring-opacity: 0.25;
114
+ --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
115
+ --bs-form-valid-color: #198754;
116
+ --bs-form-valid-border-color: #198754;
117
+ --bs-form-invalid-color: #dc3545;
118
+ --bs-form-invalid-border-color: #dc3545;
119
+ }
120
+
121
+ [data-bs-theme=dark] {
122
+ color-scheme: dark;
123
+ --bs-body-color: #dee2e6;
124
+ --bs-body-color-rgb: 222, 226, 230;
125
+ --bs-body-bg: #212529;
126
+ --bs-body-bg-rgb: 33, 37, 41;
127
+ --bs-emphasis-color: #fff;
128
+ --bs-emphasis-color-rgb: 255, 255, 255;
129
+ --bs-secondary-color: rgba(222, 226, 230, 0.75);
130
+ --bs-secondary-color-rgb: 222, 226, 230;
131
+ --bs-secondary-bg: #343a40;
132
+ --bs-secondary-bg-rgb: 52, 58, 64;
133
+ --bs-tertiary-color: rgba(222, 226, 230, 0.5);
134
+ --bs-tertiary-color-rgb: 222, 226, 230;
135
+ --bs-tertiary-bg: #2b3035;
136
+ --bs-tertiary-bg-rgb: 43, 48, 53;
137
+ --bs-primary-text-emphasis: #6ea8fe;
138
+ --bs-secondary-text-emphasis: #a7acb1;
139
+ --bs-success-text-emphasis: #75b798;
140
+ --bs-info-text-emphasis: #6edff6;
141
+ --bs-warning-text-emphasis: #ffda6a;
142
+ --bs-danger-text-emphasis: #ea868f;
143
+ --bs-light-text-emphasis: #f8f9fa;
144
+ --bs-dark-text-emphasis: #dee2e6;
145
+ --bs-primary-bg-subtle: #031633;
146
+ --bs-secondary-bg-subtle: #161719;
147
+ --bs-success-bg-subtle: #051b11;
148
+ --bs-info-bg-subtle: #032830;
149
+ --bs-warning-bg-subtle: #332701;
150
+ --bs-danger-bg-subtle: #2c0b0e;
151
+ --bs-light-bg-subtle: #343a40;
152
+ --bs-dark-bg-subtle: #1a1d20;
153
+ --bs-primary-border-subtle: #084298;
154
+ --bs-secondary-border-subtle: #41464b;
155
+ --bs-success-border-subtle: #0f5132;
156
+ --bs-info-border-subtle: #087990;
157
+ --bs-warning-border-subtle: #997404;
158
+ --bs-danger-border-subtle: #842029;
159
+ --bs-light-border-subtle: #495057;
160
+ --bs-dark-border-subtle: #343a40;
161
+ --bs-heading-color: inherit;
162
+ --bs-link-color: #6ea8fe;
163
+ --bs-link-hover-color: #8bb9fe;
164
+ --bs-link-color-rgb: 110, 168, 254;
165
+ --bs-link-hover-color-rgb: 139, 185, 254;
166
+ --bs-code-color: #e685b5;
167
+ --bs-border-color: #495057;
168
+ --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
169
+ --bs-form-valid-color: #75b798;
170
+ --bs-form-valid-border-color: #75b798;
171
+ --bs-form-invalid-color: #ea868f;
172
+ --bs-form-invalid-border-color: #ea868f;
68
173
  }
69
174
 
70
175
  .spinner-grow,
@@ -137,98 +242,153 @@
137
242
 
138
243
  .text-bg-primary {
139
244
  color: #fff !important;
140
- background-color: RGBA(13, 110, 253, var(--bs-bg-opacity, 1)) !important;
245
+ background-color: RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important;
141
246
  }
142
247
 
143
248
  .text-bg-secondary {
144
249
  color: #fff !important;
145
- background-color: RGBA(108, 117, 125, var(--bs-bg-opacity, 1)) !important;
250
+ background-color: RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important;
146
251
  }
147
252
 
148
253
  .text-bg-success {
149
254
  color: #fff !important;
150
- background-color: RGBA(25, 135, 84, var(--bs-bg-opacity, 1)) !important;
255
+ background-color: RGBA(var(--bs-success-rgb), var(--bs-bg-opacity, 1)) !important;
151
256
  }
152
257
 
153
258
  .text-bg-info {
154
259
  color: #000 !important;
155
- background-color: RGBA(13, 202, 240, var(--bs-bg-opacity, 1)) !important;
260
+ background-color: RGBA(var(--bs-info-rgb), var(--bs-bg-opacity, 1)) !important;
156
261
  }
157
262
 
158
263
  .text-bg-warning {
159
264
  color: #000 !important;
160
- background-color: RGBA(255, 193, 7, var(--bs-bg-opacity, 1)) !important;
265
+ background-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;
161
266
  }
162
267
 
163
268
  .text-bg-danger {
164
269
  color: #fff !important;
165
- background-color: RGBA(220, 53, 69, var(--bs-bg-opacity, 1)) !important;
270
+ background-color: RGBA(var(--bs-danger-rgb), var(--bs-bg-opacity, 1)) !important;
166
271
  }
167
272
 
168
273
  .text-bg-light {
169
274
  color: #000 !important;
170
- background-color: RGBA(248, 249, 250, var(--bs-bg-opacity, 1)) !important;
275
+ background-color: RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1)) !important;
171
276
  }
172
277
 
173
278
  .text-bg-dark {
174
279
  color: #fff !important;
175
- background-color: RGBA(33, 37, 41, var(--bs-bg-opacity, 1)) !important;
280
+ background-color: RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important;
176
281
  }
177
282
 
178
283
  .link-primary {
179
- color: #0d6efd !important;
284
+ color: RGBA(var(--bs-primary-rgb), var(--bs-link-opacity, 1)) !important;
285
+ text-decoration-color: RGBA(var(--bs-primary-rgb), var(--bs-link-underline-opacity, 1)) !important;
180
286
  }
181
287
  .link-primary:hover, .link-primary:focus {
182
- color: #0a58ca !important;
288
+ color: RGBA(10, 88, 202, var(--bs-link-opacity, 1)) !important;
289
+ text-decoration-color: RGBA(10, 88, 202, var(--bs-link-underline-opacity, 1)) !important;
183
290
  }
184
291
 
185
292
  .link-secondary {
186
- color: #6c757d !important;
293
+ color: RGBA(var(--bs-secondary-rgb), var(--bs-link-opacity, 1)) !important;
294
+ text-decoration-color: RGBA(var(--bs-secondary-rgb), var(--bs-link-underline-opacity, 1)) !important;
187
295
  }
188
296
  .link-secondary:hover, .link-secondary:focus {
189
- color: #565e64 !important;
297
+ color: RGBA(86, 94, 100, var(--bs-link-opacity, 1)) !important;
298
+ text-decoration-color: RGBA(86, 94, 100, var(--bs-link-underline-opacity, 1)) !important;
190
299
  }
191
300
 
192
301
  .link-success {
193
- color: #198754 !important;
302
+ color: RGBA(var(--bs-success-rgb), var(--bs-link-opacity, 1)) !important;
303
+ text-decoration-color: RGBA(var(--bs-success-rgb), var(--bs-link-underline-opacity, 1)) !important;
194
304
  }
195
305
  .link-success:hover, .link-success:focus {
196
- color: #146c43 !important;
306
+ color: RGBA(20, 108, 67, var(--bs-link-opacity, 1)) !important;
307
+ text-decoration-color: RGBA(20, 108, 67, var(--bs-link-underline-opacity, 1)) !important;
197
308
  }
198
309
 
199
310
  .link-info {
200
- color: #0dcaf0 !important;
311
+ color: RGBA(var(--bs-info-rgb), var(--bs-link-opacity, 1)) !important;
312
+ text-decoration-color: RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important;
201
313
  }
202
314
  .link-info:hover, .link-info:focus {
203
- color: #3dd5f3 !important;
315
+ color: RGBA(61, 213, 243, var(--bs-link-opacity, 1)) !important;
316
+ text-decoration-color: RGBA(61, 213, 243, var(--bs-link-underline-opacity, 1)) !important;
204
317
  }
205
318
 
206
319
  .link-warning {
207
- color: #ffc107 !important;
320
+ color: RGBA(var(--bs-warning-rgb), var(--bs-link-opacity, 1)) !important;
321
+ text-decoration-color: RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important;
208
322
  }
209
323
  .link-warning:hover, .link-warning:focus {
210
- color: #ffcd39 !important;
324
+ color: RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important;
325
+ text-decoration-color: RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important;
211
326
  }
212
327
 
213
328
  .link-danger {
214
- color: #dc3545 !important;
329
+ color: RGBA(var(--bs-danger-rgb), var(--bs-link-opacity, 1)) !important;
330
+ text-decoration-color: RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important;
215
331
  }
216
332
  .link-danger:hover, .link-danger:focus {
217
- color: #b02a37 !important;
333
+ color: RGBA(176, 42, 55, var(--bs-link-opacity, 1)) !important;
334
+ text-decoration-color: RGBA(176, 42, 55, var(--bs-link-underline-opacity, 1)) !important;
218
335
  }
219
336
 
220
337
  .link-light {
221
- color: #f8f9fa !important;
338
+ color: RGBA(var(--bs-light-rgb), var(--bs-link-opacity, 1)) !important;
339
+ text-decoration-color: RGBA(var(--bs-light-rgb), var(--bs-link-underline-opacity, 1)) !important;
222
340
  }
223
341
  .link-light:hover, .link-light:focus {
224
- color: #f9fafb !important;
342
+ color: RGBA(249, 250, 251, var(--bs-link-opacity, 1)) !important;
343
+ text-decoration-color: RGBA(249, 250, 251, var(--bs-link-underline-opacity, 1)) !important;
225
344
  }
226
345
 
227
346
  .link-dark {
228
- color: #212529 !important;
347
+ color: RGBA(var(--bs-dark-rgb), var(--bs-link-opacity, 1)) !important;
348
+ text-decoration-color: RGBA(var(--bs-dark-rgb), var(--bs-link-underline-opacity, 1)) !important;
229
349
  }
230
350
  .link-dark:hover, .link-dark:focus {
231
- color: #1a1e21 !important;
351
+ color: RGBA(26, 30, 33, var(--bs-link-opacity, 1)) !important;
352
+ text-decoration-color: RGBA(26, 30, 33, var(--bs-link-underline-opacity, 1)) !important;
353
+ }
354
+
355
+ .link-body-emphasis {
356
+ color: RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 1)) !important;
357
+ text-decoration-color: RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 1)) !important;
358
+ }
359
+ .link-body-emphasis:hover, .link-body-emphasis:focus {
360
+ color: RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 0.75)) !important;
361
+ text-decoration-color: RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 0.75)) !important;
362
+ }
363
+
364
+ .focus-ring:focus {
365
+ outline: 0;
366
+ box-shadow: var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color);
367
+ }
368
+
369
+ .icon-link {
370
+ display: inline-flex;
371
+ gap: 0.375rem;
372
+ align-items: center;
373
+ text-decoration-color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 0.5));
374
+ text-underline-offset: 0.25em;
375
+ backface-visibility: hidden;
376
+ }
377
+ .icon-link > .bi {
378
+ flex-shrink: 0;
379
+ width: 1em;
380
+ height: 1em;
381
+ fill: currentcolor;
382
+ transition: 0.2s ease-in-out transform;
383
+ }
384
+ @media (prefers-reduced-motion: reduce) {
385
+ .icon-link > .bi {
386
+ transition: none;
387
+ }
388
+ }
389
+
390
+ .icon-link-hover:hover > .bi, .icon-link-hover:focus-visible > .bi {
391
+ transform: var(--bs-icon-link-transform, translate3d(0.25em, 0, 0));
232
392
  }
233
393
 
234
394
  .ratio {
@@ -368,7 +528,6 @@
368
528
 
369
529
  .visually-hidden,
370
530
  .visually-hidden-focusable:not(:focus):not(:focus-within) {
371
- position: absolute !important;
372
531
  width: 1px !important;
373
532
  height: 1px !important;
374
533
  padding: 0 !important;
@@ -378,6 +537,10 @@
378
537
  white-space: nowrap !important;
379
538
  border: 0 !important;
380
539
  }
540
+ .visually-hidden:not(caption),
541
+ .visually-hidden-focusable:not(:focus):not(:focus-within):not(caption) {
542
+ position: absolute !important;
543
+ }
381
544
 
382
545
  .stretched-link::after {
383
546
  position: absolute;
@@ -398,7 +561,7 @@
398
561
  .vr {
399
562
  display: inline-block;
400
563
  align-self: stretch;
401
- width: 1px;
564
+ width: var(--bs-border-width);
402
565
  min-height: 1em;
403
566
  background-color: currentcolor;
404
567
  opacity: 0.25;
@@ -433,7 +596,7 @@ hr {
433
596
  margin: 1rem 0;
434
597
  color: inherit;
435
598
  border: 0;
436
- border-top: 1px solid;
599
+ border-top: var(--bs-border-width) solid;
437
600
  opacity: 0.25;
438
601
  }
439
602
 
@@ -442,6 +605,7 @@ h6, h5, h4, h3, h2, h1 {
442
605
  margin-bottom: 0.5rem;
443
606
  font-weight: 500;
444
607
  line-height: 1.2;
608
+ color: var(--bs-heading-color);
445
609
  }
446
610
 
447
611
  h1 {
@@ -568,11 +732,11 @@ sup {
568
732
  }
569
733
 
570
734
  a {
571
- color: var(--bs-link-color);
735
+ color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
572
736
  text-decoration: underline;
573
737
  }
574
738
  a:hover {
575
- color: var(--bs-link-hover-color);
739
+ --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
576
740
  }
577
741
 
578
742
  a:not([href]):not([class]), a:not([href]):not([class]):hover {
@@ -639,7 +803,7 @@ table {
639
803
  caption {
640
804
  padding-top: 0.5rem;
641
805
  padding-bottom: 0.5rem;
642
- color: #6c757d;
806
+ color: var(--bs-secondary-color);
643
807
  text-align: left;
644
808
  }
645
809
 
@@ -763,8 +927,8 @@ legend + * {
763
927
  }
764
928
 
765
929
  [type=search] {
766
- outline-offset: -2px;
767
930
  -webkit-appearance: textfield;
931
+ outline-offset: -2px;
768
932
  }
769
933
 
770
934
  /* rtl:raw:
@@ -809,6 +973,15 @@ progress {
809
973
  display: none !important;
810
974
  }
811
975
 
976
+ :root {
977
+ --bs-breakpoint-xs: 0;
978
+ --bs-breakpoint-sm: 576px;
979
+ --bs-breakpoint-md: 768px;
980
+ --bs-breakpoint-lg: 992px;
981
+ --bs-breakpoint-xl: 1200px;
982
+ --bs-breakpoint-xxl: 1400px;
983
+ }
984
+
812
985
  .row {
813
986
  --bs-gutter-x: 1.5rem;
814
987
  --bs-gutter-y: 0;
@@ -1,6 +1,6 @@
1
- import { Host, h } from '@stencil/core';
2
- import BillingFormSchema from './billing-form-schema';
3
- import StateOptions from './state-options';
1
+ import { Host, h } from "@stencil/core";
2
+ import BillingFormSchema from "./billing-form-schema";
3
+ import StateOptions from "./state-options";
4
4
  /**
5
5
  * @exportedPart label: Label for inputs
6
6
  * @exportedPart input: The input fields
@@ -79,7 +79,7 @@ export class BillingForm {
79
79
  return {
80
80
  "legend": {
81
81
  "type": "string",
82
- "mutable": false,
82
+ "mutable": true,
83
83
  "complexType": {
84
84
  "original": "string",
85
85
  "resolved": "string",
@@ -116,11 +116,13 @@ export class BillingForm {
116
116
  }],
117
117
  "references": {
118
118
  "Promise": {
119
- "location": "global"
119
+ "location": "global",
120
+ "id": "global::Promise"
120
121
  },
121
122
  "BillingFormFields": {
122
123
  "location": "import",
123
- "path": "./billing-form-schema"
124
+ "path": "./billing-form-schema",
125
+ "id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
124
126
  }
125
127
  },
126
128
  "return": "Promise<void>"
@@ -139,11 +141,13 @@ export class BillingForm {
139
141
  "parameters": [],
140
142
  "references": {
141
143
  "Promise": {
142
- "location": "global"
144
+ "location": "global",
145
+ "id": "global::Promise"
143
146
  },
144
147
  "ValidationError": {
145
148
  "location": "import",
146
- "path": "yup"
149
+ "path": "yup",
150
+ "id": "../node_modules/yup/index.d.ts::ValidationError"
147
151
  }
148
152
  },
149
153
  "return": "Promise<{ isValid: boolean; }>"
@@ -159,11 +163,13 @@ export class BillingForm {
159
163
  "parameters": [],
160
164
  "references": {
161
165
  "Promise": {
162
- "location": "global"
166
+ "location": "global",
167
+ "id": "global::Promise"
163
168
  },
164
169
  "BillingFormFields": {
165
170
  "location": "import",
166
- "path": "./billing-form-schema"
171
+ "path": "./billing-form-schema",
172
+ "id": "src/components/billing-form/billing-form-schema.ts::BillingFormFields"
167
173
  }
168
174
  },
169
175
  "return": "Promise<BillingFormFields>"
@@ -1 +1 @@
1
- {"version":3,"file":"billing-form.js","sourceRoot":"","sources":["../../../../src/components/billing-form/billing-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAA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YACjB,oBACE,IAAI,EAAC,eAAe,EACpB,KAAK,EAAC,OAAO,EACb,OAAO,EAAE,YAAY,EACrB,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,aAAa,EAC9C,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,aAAa,GAC7C,CACE;UACN,WAAK,KAAK,EAAC,QAAQ;YACjB,kBAAY,IAAI,EAAC,qBAAqB,EAAC,KAAK,EAAC,KAAK,EAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,GAAI,CAC5J,CACF,CACG,CACN,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, State, Listen, Method, Prop } from '@stencil/core';\nimport { ValidationError } from 'yup';\nimport BillingFormSchema, { BillingFormFields } from './billing-form-schema';\nimport StateOptions from './state-options';\n\n/**\n * @exportedPart label: Label for inputs\n * @exportedPart input: The input fields\n * @exportedPart input-invalid: Invalid state for inputs\n */\n@Component({\n tag: 'justifi-billing-form',\n styleUrl: 'billing-form.scss',\n shadow: true,\n})\nexport class BillingForm {\n /**\n * (Optional) A label for the form.\n */\n @Prop() legend?: string;\n @State() billingFields: BillingFormFields = {\n name: '',\n address_line1: '',\n address_line2: '',\n address_city: '',\n address_state: '',\n address_postal_code: '',\n };\n\n @State() billingFieldsErrors: any = {};\n\n @Listen('fieldReceivedInput')\n setFormValue(event) {\n const data = event.detail;\n const billingFieldsClone = { ...this.billingFields };\n if (data.name) {\n billingFieldsClone[data.name] = data.value;\n this.billingFields = billingFieldsClone;\n }\n }\n\n /**\n * Method for filling the form with provided data\n * @argument {BillingFormFields} fields - The fields to fill the form with\n */\n @Method()\n async fill(fields: BillingFormFields) {\n this.billingFields = { ...fields };\n }\n\n /**\n * Run validation on the form\n */\n @Method()\n async validate() {\n const newErrors = {};\n let isValid: boolean = true;\n\n try {\n await BillingFormSchema.validate(this.billingFields, { abortEarly: false });\n } catch (err) {\n isValid = false;\n err.inner.map((item: ValidationError) => {\n newErrors[item.path] = item.message;\n });\n }\n\n this.billingFieldsErrors = newErrors;\n\n return { isValid: isValid };\n }\n\n /**\n * Returns the values of the form as an object\n * @returns {Promise<BillingFormFields>} The values of the form\n */\n @Method()\n async getValues(): Promise<BillingFormFields> {\n return this.billingFields;\n }\n\n legendBlock = (<legend>{this.legend}</legend>);\n render() {\n return (\n <Host exportparts=\"label,input,input-invalid\">\n <fieldset>\n {this.legend && this.legendBlock}\n <div class=\"row gy-3\">\n <div class=\"col-12\">\n <text-input name=\"name\" label=\"Full Name\" defaultValue={this.billingFields.name} error={this.billingFieldsErrors.name} />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_line1\" label=\"Street Address\" defaultValue={this.billingFields.address_line1} error={this.billingFieldsErrors.address_line1} />\n </div>\n <div class=\"col-12\">\n <text-input\n name=\"address_line2\"\n label=\"Apartment, Suite, etc. (optional)\"\n defaultValue={this.billingFields.address_line2}\n error={this.billingFieldsErrors.address_line2}\n />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_city\" label=\"City\" defaultValue={this.billingFields.address_city} error={this.billingFieldsErrors.address_city} />\n </div>\n <div class=\"col-12\">\n <select-input\n name=\"address_state\"\n label=\"State\"\n options={StateOptions}\n defaultValue={this.billingFields.address_state}\n error={this.billingFieldsErrors.address_state}\n />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_postal_code\" label=\"ZIP\" defaultValue={this.billingFields.address_postal_code} error={this.billingFieldsErrors.address_postal_code} />\n </div>\n </div>\n </fieldset>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"billing-form.js","sourceRoot":"","sources":["../../../../src/components/billing-form/billing-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE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AAC,YAAY,GAAI,CACxI;UACN,WAAK,KAAK,EAAC,QAAQ;YACjB,oBACE,IAAI,EAAC,eAAe,EACpB,KAAK,EAAC,OAAO,EACb,OAAO,EAAE,YAAY,EACrB,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,aAAa,EAC9C,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,aAAa,GAC7C,CACE;UACN,WAAK,KAAK,EAAC,QAAQ;YACjB,kBAAY,IAAI,EAAC,qBAAqB,EAAC,KAAK,EAAC,KAAK,EAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,mBAAmB,EAAE,KAAK,EAAE,IAAI,CAAC,mBAAmB,CAAC,mBAAmB,GAAI,CAC5J,CACF,CACG,CACN,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, State, Listen, Method, Prop } from '@stencil/core';\nimport { ValidationError } from 'yup';\nimport BillingFormSchema, { BillingFormFields } from './billing-form-schema';\nimport StateOptions from './state-options';\n\n/**\n * @exportedPart label: Label for inputs\n * @exportedPart input: The input fields\n * @exportedPart input-invalid: Invalid state for inputs\n */\n@Component({\n tag: 'justifi-billing-form',\n styleUrl: 'billing-form.scss',\n shadow: true,\n})\nexport class BillingForm {\n /**\n * (Optional) A label for the form.\n */\n @Prop({ mutable: true }) legend?: string;\n @State() billingFields: BillingFormFields = {\n name: '',\n address_line1: '',\n address_line2: '',\n address_city: '',\n address_state: '',\n address_postal_code: '',\n };\n\n @State() billingFieldsErrors: any = {};\n\n @Listen('fieldReceivedInput')\n setFormValue(event) {\n const data = event.detail;\n const billingFieldsClone = { ...this.billingFields };\n if (data.name) {\n billingFieldsClone[data.name] = data.value;\n this.billingFields = billingFieldsClone;\n }\n }\n\n /**\n * Method for filling the form with provided data\n * @argument {BillingFormFields} fields - The fields to fill the form with\n */\n @Method()\n async fill(fields: BillingFormFields) {\n this.billingFields = { ...fields };\n }\n\n /**\n * Run validation on the form\n */\n @Method()\n async validate() {\n const newErrors = {};\n let isValid: boolean = true;\n\n try {\n await BillingFormSchema.validate(this.billingFields, { abortEarly: false });\n } catch (err) {\n isValid = false;\n err.inner.map((item: ValidationError) => {\n newErrors[item.path] = item.message;\n });\n }\n\n this.billingFieldsErrors = newErrors;\n\n return { isValid: isValid };\n }\n\n /**\n * Returns the values of the form as an object\n * @returns {Promise<BillingFormFields>} The values of the form\n */\n @Method()\n async getValues(): Promise<BillingFormFields> {\n return this.billingFields;\n }\n\n legendBlock = (<legend>{this.legend}</legend>);\n render() {\n return (\n <Host exportparts=\"label,input,input-invalid\">\n <fieldset>\n {this.legend && this.legendBlock}\n <div class=\"row gy-3\">\n <div class=\"col-12\">\n <text-input name=\"name\" label=\"Full Name\" defaultValue={this.billingFields.name} error={this.billingFieldsErrors.name} />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_line1\" label=\"Street Address\" defaultValue={this.billingFields.address_line1} error={this.billingFieldsErrors.address_line1} />\n </div>\n <div class=\"col-12\">\n <text-input\n name=\"address_line2\"\n label=\"Apartment, Suite, etc. (optional)\"\n defaultValue={this.billingFields.address_line2}\n error={this.billingFieldsErrors.address_line2}\n />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_city\" label=\"City\" defaultValue={this.billingFields.address_city} error={this.billingFieldsErrors.address_city} />\n </div>\n <div class=\"col-12\">\n <select-input\n name=\"address_state\"\n label=\"State\"\n options={StateOptions}\n defaultValue={this.billingFields.address_state}\n error={this.billingFieldsErrors.address_state}\n />\n </div>\n <div class=\"col-12\">\n <text-input name=\"address_postal_code\" label=\"ZIP\" defaultValue={this.billingFields.address_postal_code} error={this.billingFieldsErrors.address_postal_code} />\n </div>\n </div>\n </fieldset>\n </Host>\n );\n }\n}\n"]}