@justifi/webcomponents 4.2.1-rc.4 → 4.4.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 (380) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Api-11362403.js → Api-7303478d.js} +3 -2
  3. package/dist/cjs/Api-7303478d.js.map +1 -0
  4. package/dist/cjs/business-form-schema-63b311b2.js +132 -0
  5. package/dist/cjs/business-form-schema-63b311b2.js.map +1 -0
  6. package/dist/cjs/form-control-select_2.cjs.entry.js +61 -0
  7. package/dist/cjs/form-control-select_2.cjs.entry.js.map +1 -0
  8. package/dist/cjs/{index-34312a38.js → index-83b2ec02.js} +136 -20
  9. package/dist/cjs/index-83b2ec02.js.map +1 -0
  10. package/dist/cjs/{index.esm-bcf90c56.js → index.esm-7e12ce07.js} +301 -14
  11. package/dist/cjs/index.esm-7e12ce07.js.map +1 -0
  12. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -3
  13. package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -1
  14. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +5 -5
  15. package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -1
  16. package/dist/cjs/justifi-business-address-form.cjs.entry.js +37 -0
  17. package/dist/cjs/justifi-business-address-form.cjs.entry.js.map +1 -0
  18. package/dist/cjs/justifi-business-form.cjs.entry.js +751 -0
  19. package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -0
  20. package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js +148 -0
  21. package/dist/cjs/justifi-business-generic-info_3.cjs.entry.js.map +1 -0
  22. package/dist/cjs/justifi-card-form.cjs.entry.js +8 -3
  23. package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -1
  24. package/dist/cjs/justifi-payment-form.cjs.entry.js +24 -7
  25. package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
  26. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +22 -17
  27. package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
  28. package/dist/cjs/justifi-payments-list.cjs.entry.js +75 -4038
  29. package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
  30. package/dist/cjs/justifi-payouts-list.cjs.entry.js +113 -0
  31. package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -0
  32. package/dist/cjs/loader.cjs.js +3 -12
  33. package/dist/cjs/loader.cjs.js.map +1 -1
  34. package/dist/cjs/select-input_2.cjs.entry.js +6 -6
  35. package/dist/cjs/select-input_2.cjs.entry.js.map +1 -1
  36. package/dist/cjs/{state-options-efeaa587.js → state-options-83b52cd1.js} +1 -1
  37. package/dist/{esm/state-options-188acc34.js.map → cjs/state-options-83b52cd1.js.map} +1 -1
  38. package/dist/cjs/utils-4ee7e080.js +3979 -0
  39. package/dist/cjs/utils-4ee7e080.js.map +1 -0
  40. package/dist/cjs/webcomponents.cjs.js +3 -6
  41. package/dist/cjs/webcomponents.cjs.js.map +1 -1
  42. package/dist/collection/api/Api.js +3 -2
  43. package/dist/collection/api/Api.js.map +1 -1
  44. package/dist/collection/api/Payout.js +33 -0
  45. package/dist/collection/api/Payout.js.map +1 -0
  46. package/dist/collection/api/index.js +1 -0
  47. package/dist/collection/api/index.js.map +1 -1
  48. package/dist/collection/api/mockData/MockPayments.js +1 -1
  49. package/dist/collection/collection-manifest.json +18 -12
  50. package/dist/collection/components/bank-account-form/bank-account-form.js +38 -10
  51. package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -1
  52. package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -0
  53. package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
  54. package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +1 -1
  55. package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +3 -3
  56. package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
  57. package/dist/collection/components/billing-form/billing-form.css +212 -39
  58. package/dist/collection/components/billing-form/billing-form.js +16 -10
  59. package/dist/collection/components/billing-form/billing-form.js.map +1 -1
  60. package/dist/collection/components/billing-form/test/billing-form.spec.js +51 -24
  61. package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -1
  62. package/dist/collection/components/{business-address/business-address-schema.js → business-form/business-address/business-address-form-schema.js} +2 -2
  63. package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +1 -0
  64. package/dist/collection/components/business-form/business-address/business-address-form.css +2532 -0
  65. package/dist/collection/components/business-form/business-address/business-address-form.js +98 -0
  66. package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -0
  67. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +10 -0
  68. package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +1 -0
  69. package/dist/collection/components/business-form/business-address/test/business-address.spec.js +72 -0
  70. package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -0
  71. package/dist/collection/components/business-form/business-form-schema.js +149 -0
  72. package/dist/collection/components/business-form/business-form-schema.js.map +1 -0
  73. package/dist/collection/components/business-form/business-form.css +2532 -0
  74. package/dist/collection/components/business-form/business-form.js +76 -0
  75. package/dist/collection/components/business-form/business-form.js.map +1 -0
  76. package/dist/collection/components/{business-info/business-info.css → business-form/business-generic-info/business-generic-info.css} +745 -530
  77. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +79 -0
  78. package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -0
  79. package/dist/collection/components/business-form/business-owners/business-owners.css +2489 -0
  80. package/dist/collection/components/business-form/business-owners/business-owners.js +120 -0
  81. package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -0
  82. package/dist/collection/components/business-form/business-representative/business-representative-schema.js +2 -0
  83. package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -0
  84. package/dist/collection/components/business-form/business-representative/business-representative.css +2489 -0
  85. package/dist/collection/components/business-form/business-representative/business-representative.js +76 -0
  86. package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -0
  87. package/dist/collection/components/business-form/businessForm.stories.js +115 -0
  88. package/dist/collection/components/business-form/businessForm.stories.js.map +1 -0
  89. package/dist/collection/components/card-form/card-form.js +38 -10
  90. package/dist/collection/components/card-form/card-form.js.map +1 -1
  91. package/dist/collection/components/card-form/card-form.stories.js +5 -2
  92. package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
  93. package/dist/collection/components/card-form/test/card-form.e2e.js +1 -1
  94. package/dist/collection/components/card-form/test/card-form.spec.js +3 -3
  95. package/dist/collection/components/{business-address/business-address.css → form/form-control-select.css} +344 -1212
  96. package/dist/collection/components/form/form-control-select.js +168 -0
  97. package/dist/collection/components/form/form-control-select.js.map +1 -0
  98. package/dist/collection/components/form/form-control-text.css +1794 -0
  99. package/dist/collection/components/form/form-control-text.js +152 -0
  100. package/dist/collection/components/form/form-control-text.js.map +1 -0
  101. package/dist/collection/components/form/form.js +85 -0
  102. package/dist/collection/components/form/form.js.map +1 -0
  103. package/dist/collection/components/payment-form/payment-form.css +220 -45
  104. package/dist/collection/components/payment-form/payment-form.js +47 -7
  105. package/dist/collection/components/payment-form/payment-form.js.map +1 -1
  106. package/dist/collection/components/payment-form/payment-form.stories.js +3 -2
  107. package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
  108. package/dist/collection/components/payment-form/payment-method-selector.css +348 -145
  109. package/dist/collection/components/payment-form/payment-method-selector.js +5 -3
  110. package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -1
  111. package/dist/collection/components/payment-form/test/payment-form.e2e.js +1 -1
  112. package/dist/collection/components/payment-form/test/payment-form.spec.js +4 -3
  113. package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -1
  114. package/dist/collection/components/payment-method-form/get-computed-theme.js +2 -0
  115. package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -1
  116. package/dist/collection/components/payment-method-form/payment-method-form.js +19 -11
  117. package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
  118. package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
  119. package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +3 -3
  120. package/dist/collection/components/payment-method-form/theme.js.map +1 -1
  121. package/dist/collection/components/payments-list/example.js +12 -0
  122. package/dist/collection/components/payments-list/payments-list.css +7954 -1
  123. package/dist/collection/components/payments-list/payments-list.js +104 -27
  124. package/dist/collection/components/payments-list/payments-list.js.map +1 -1
  125. package/dist/collection/components/payments-list/payments-list.stories.js +78 -0
  126. package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -0
  127. package/dist/collection/components/payments-list/test/payments-list.spec.js +82 -18
  128. package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
  129. package/dist/collection/components/payouts-list/payouts-list.css +7983 -0
  130. package/dist/collection/components/payouts-list/payouts-list.js +181 -0
  131. package/dist/collection/components/payouts-list/payouts-list.js.map +1 -0
  132. package/dist/collection/components/payouts-list/payouts-list.stories.js +69 -0
  133. package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -0
  134. package/dist/collection/components/select-input/select-input.css +344 -141
  135. package/dist/collection/components/select-input/select-input.js +5 -4
  136. package/dist/collection/components/select-input/select-input.js.map +1 -1
  137. package/dist/collection/components/select-input/test/select-input.spec.js +72 -28
  138. package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -1
  139. package/dist/collection/components/text-input/test/text-input.spec.js +47 -5
  140. package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -1
  141. package/dist/collection/components/text-input/text-input.css +344 -141
  142. package/dist/collection/components/text-input/text-input.js +2 -2
  143. package/dist/collection/components/text-input/text-input.js.map +1 -1
  144. package/dist/collection/utils/utils.js +7 -2
  145. package/dist/collection/utils/utils.js.map +1 -1
  146. package/dist/components/Api.js +2 -1
  147. package/dist/components/Api.js.map +1 -1
  148. package/dist/components/billing-form.js +2 -2
  149. package/dist/components/billing-form.js.map +1 -1
  150. package/dist/components/business-address-form.js +65 -0
  151. package/dist/components/business-address-form.js.map +1 -0
  152. package/dist/components/business-generic-info.js +190 -0
  153. package/dist/components/business-generic-info.js.map +1 -0
  154. package/dist/components/business-owners.js +102 -0
  155. package/dist/components/business-owners.js.map +1 -0
  156. package/dist/components/business-representative.js +75 -0
  157. package/dist/components/business-representative.js.map +1 -0
  158. package/dist/components/{justifi-business-info.d.ts → form-control-select.d.ts} +4 -4
  159. package/dist/components/form-control-select.js +8 -0
  160. package/dist/components/form-control-select.js.map +1 -0
  161. package/dist/components/form-control-select2.js +53 -0
  162. package/dist/components/form-control-select2.js.map +1 -0
  163. package/dist/components/form-control-text.d.ts +11 -0
  164. package/dist/components/form-control-text.js +8 -0
  165. package/dist/components/form-control-text.js.map +1 -0
  166. package/dist/components/form-control-text2.js +51 -0
  167. package/dist/components/form-control-text2.js.map +1 -0
  168. package/dist/components/index.esm.js +298 -14
  169. package/dist/components/index.esm.js.map +1 -1
  170. package/dist/components/justifi-bank-account-form.js +7 -2
  171. package/dist/components/justifi-bank-account-form.js.map +1 -1
  172. package/dist/components/justifi-business-address-form.d.ts +11 -0
  173. package/dist/components/justifi-business-address-form.js +8 -0
  174. package/dist/components/justifi-business-address-form.js.map +1 -0
  175. package/dist/components/justifi-business-form.d.ts +11 -0
  176. package/dist/components/justifi-business-form.js +802 -0
  177. package/dist/components/justifi-business-form.js.map +1 -0
  178. package/dist/components/justifi-business-generic-info.d.ts +11 -0
  179. package/dist/components/justifi-business-generic-info.js +8 -0
  180. package/dist/components/justifi-business-generic-info.js.map +1 -0
  181. package/dist/components/justifi-business-owners.d.ts +11 -0
  182. package/dist/components/justifi-business-owners.js +8 -0
  183. package/dist/components/justifi-business-owners.js.map +1 -0
  184. package/dist/components/justifi-business-representative.d.ts +11 -0
  185. package/dist/components/justifi-business-representative.js +8 -0
  186. package/dist/components/justifi-business-representative.js.map +1 -0
  187. package/dist/components/justifi-card-form.js +7 -2
  188. package/dist/components/justifi-card-form.js.map +1 -1
  189. package/dist/components/justifi-payment-form.js +23 -4
  190. package/dist/components/justifi-payment-form.js.map +1 -1
  191. package/dist/components/justifi-payments-list.js +78 -4038
  192. package/dist/components/justifi-payments-list.js.map +1 -1
  193. package/dist/components/justifi-payouts-list.d.ts +11 -0
  194. package/dist/components/justifi-payouts-list.js +134 -0
  195. package/dist/components/justifi-payouts-list.js.map +1 -0
  196. package/dist/components/payment-method-form.js +21 -16
  197. package/dist/components/payment-method-form.js.map +1 -1
  198. package/dist/components/payment-method-selector.js +1 -1
  199. package/dist/components/payment-method-selector.js.map +1 -1
  200. package/dist/components/select-input2.js +3 -3
  201. package/dist/components/select-input2.js.map +1 -1
  202. package/dist/components/state-options.js.map +1 -1
  203. package/dist/components/text-input2.js +2 -2
  204. package/dist/components/text-input2.js.map +1 -1
  205. package/dist/components/utils.js +3972 -0
  206. package/dist/components/utils.js.map +1 -0
  207. package/dist/esm/{Api-a07f0057.js → Api-436dfa09.js} +3 -2
  208. package/dist/esm/Api-436dfa09.js.map +1 -0
  209. package/dist/esm/business-form-schema-30c48693.js +128 -0
  210. package/dist/esm/business-form-schema-30c48693.js.map +1 -0
  211. package/dist/esm/form-control-select_2.entry.js +56 -0
  212. package/dist/esm/form-control-select_2.entry.js.map +1 -0
  213. package/dist/esm/{index-044f93fc.js → index-c8f391de.js} +136 -20
  214. package/dist/esm/index-c8f391de.js.map +1 -0
  215. package/dist/esm/{index.esm-5624a5ed.js → index.esm-be2cd327.js} +299 -15
  216. package/dist/esm/index.esm-be2cd327.js.map +1 -0
  217. package/dist/esm/justifi-bank-account-form.entry.js +8 -3
  218. package/dist/esm/justifi-bank-account-form.entry.js.map +1 -1
  219. package/dist/esm/justifi-billing-form_2.entry.js +5 -5
  220. package/dist/esm/justifi-billing-form_2.entry.js.map +1 -1
  221. package/dist/esm/justifi-business-address-form.entry.js +33 -0
  222. package/dist/esm/justifi-business-address-form.entry.js.map +1 -0
  223. package/dist/esm/justifi-business-form.entry.js +747 -0
  224. package/dist/esm/justifi-business-form.entry.js.map +1 -0
  225. package/dist/esm/justifi-business-generic-info_3.entry.js +142 -0
  226. package/dist/esm/justifi-business-generic-info_3.entry.js.map +1 -0
  227. package/dist/esm/justifi-card-form.entry.js +8 -3
  228. package/dist/esm/justifi-card-form.entry.js.map +1 -1
  229. package/dist/esm/justifi-payment-form.entry.js +21 -4
  230. package/dist/esm/justifi-payment-form.entry.js.map +1 -1
  231. package/dist/esm/justifi-payment-method-form.entry.js +22 -17
  232. package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
  233. package/dist/esm/justifi-payments-list.entry.js +75 -4038
  234. package/dist/esm/justifi-payments-list.entry.js.map +1 -1
  235. package/dist/esm/justifi-payouts-list.entry.js +109 -0
  236. package/dist/esm/justifi-payouts-list.entry.js.map +1 -0
  237. package/dist/esm/loader.js +4 -13
  238. package/dist/esm/loader.js.map +1 -1
  239. package/dist/esm/select-input_2.entry.js +6 -6
  240. package/dist/esm/select-input_2.entry.js.map +1 -1
  241. package/dist/esm/{state-options-188acc34.js → state-options-ece00aa2.js} +1 -1
  242. package/dist/esm/state-options-ece00aa2.js.map +1 -0
  243. package/dist/esm/utils-e7782126.js +3972 -0
  244. package/dist/esm/utils-e7782126.js.map +1 -0
  245. package/dist/esm/webcomponents.js +4 -7
  246. package/dist/esm/webcomponents.js.map +1 -1
  247. package/dist/types/api/Payout.d.ts +62 -0
  248. package/dist/types/api/index.d.ts +1 -0
  249. package/dist/types/components/business-form/business-address/business-address-form.d.ts +9 -0
  250. package/dist/types/components/{business-info/business-info-schema.d.ts → business-form/business-form-schema.d.ts} +55 -4
  251. package/dist/types/components/business-form/business-form.d.ts +14 -0
  252. package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +16 -0
  253. package/dist/types/components/business-form/business-owners/business-owners.d.ts +32 -0
  254. package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +15 -0
  255. package/dist/types/components/business-form/business-representative/business-representative.d.ts +12 -0
  256. package/dist/types/components/business-form/businessForm.stories.d.ts +21 -0
  257. package/dist/types/components/form/form-control-select.d.ts +16 -0
  258. package/dist/types/components/form/form-control-text.d.ts +12 -0
  259. package/dist/types/components/form/form.d.ts +21 -0
  260. package/dist/types/components/payment-form/payment-form.d.ts +2 -0
  261. package/dist/types/components/payment-method-form/theme.d.ts +2 -0
  262. package/dist/types/components/payments-list/payments-list.d.ts +38 -5
  263. package/dist/types/components/payments-list/payments-list.stories.d.ts +17 -0
  264. package/dist/types/components/payouts-list/payouts-list.d.ts +45 -0
  265. package/dist/types/components/payouts-list/payouts-list.stories.d.ts +16 -0
  266. package/dist/types/components.d.ts +339 -26
  267. package/dist/types/stencil-public-runtime.d.ts +14 -2
  268. package/dist/types/utils/utils.d.ts +1 -0
  269. package/dist/webcomponents/p-0fd4aae2.js +2 -0
  270. package/dist/webcomponents/p-0fd4aae2.js.map +1 -0
  271. package/dist/webcomponents/p-1953797f.entry.js +2 -0
  272. package/dist/webcomponents/p-1953797f.entry.js.map +1 -0
  273. package/dist/webcomponents/p-1a1f2196.js +2 -0
  274. package/dist/webcomponents/p-1a1f2196.js.map +1 -0
  275. package/dist/webcomponents/p-23e9c7d4.entry.js +2 -0
  276. package/dist/webcomponents/p-23e9c7d4.entry.js.map +1 -0
  277. package/dist/webcomponents/p-309a886f.entry.js +2 -0
  278. package/dist/webcomponents/p-309a886f.entry.js.map +1 -0
  279. package/dist/webcomponents/p-33d69eb5.entry.js +2 -0
  280. package/dist/webcomponents/p-33d69eb5.entry.js.map +1 -0
  281. package/dist/webcomponents/p-3a80a2ec.entry.js +2 -0
  282. package/dist/webcomponents/p-3a80a2ec.entry.js.map +1 -0
  283. package/dist/webcomponents/p-45fea6a8.entry.js +2 -0
  284. package/dist/webcomponents/p-45fea6a8.entry.js.map +1 -0
  285. package/dist/webcomponents/{p-0ea23153.js → p-47bc59b5.js} +1 -1
  286. package/dist/webcomponents/p-47bc59b5.js.map +1 -0
  287. package/dist/webcomponents/p-7041a637.entry.js +2 -0
  288. package/dist/webcomponents/p-7041a637.entry.js.map +1 -0
  289. package/dist/webcomponents/p-79456add.js +2 -0
  290. package/dist/webcomponents/p-79456add.js.map +1 -0
  291. package/dist/webcomponents/{p-1f151d49.js → p-af080b21.js} +2 -2
  292. package/dist/webcomponents/p-af080b21.js.map +1 -0
  293. package/dist/webcomponents/p-bc969904.js +3 -0
  294. package/dist/webcomponents/p-bc969904.js.map +1 -0
  295. package/dist/webcomponents/p-cd097ce9.entry.js +2 -0
  296. package/dist/webcomponents/p-cd097ce9.entry.js.map +1 -0
  297. package/dist/webcomponents/p-d5bc9f22.entry.js +2 -0
  298. package/dist/webcomponents/p-d5bc9f22.entry.js.map +1 -0
  299. package/dist/webcomponents/p-d5cadc78.entry.js +2 -0
  300. package/dist/webcomponents/p-d5cadc78.entry.js.map +1 -0
  301. package/dist/webcomponents/p-dd1ebc0b.entry.js +2 -0
  302. package/dist/webcomponents/p-dd1ebc0b.entry.js.map +1 -0
  303. package/dist/webcomponents/p-e05e0c6b.entry.js +2 -0
  304. package/dist/webcomponents/p-e05e0c6b.entry.js.map +1 -0
  305. package/dist/webcomponents/webcomponents.css +1 -1
  306. package/dist/webcomponents/webcomponents.esm.js +1 -1
  307. package/dist/webcomponents/webcomponents.esm.js.map +1 -1
  308. package/loader/index.d.ts +1 -1
  309. package/package.json +12 -14
  310. package/CHANGELOG.md +0 -196
  311. package/changelog-template.hbs +0 -10
  312. package/dist/cjs/Api-11362403.js.map +0 -1
  313. package/dist/cjs/Payment-ac4dea02.js +0 -73
  314. package/dist/cjs/Payment-ac4dea02.js.map +0 -1
  315. package/dist/cjs/index-34312a38.js.map +0 -1
  316. package/dist/cjs/index.esm-bcf90c56.js.map +0 -1
  317. package/dist/cjs/justifi-business-address.cjs.entry.js +0 -69
  318. package/dist/cjs/justifi-business-address.cjs.entry.js.map +0 -1
  319. package/dist/cjs/justifi-business-info.cjs.entry.js +0 -174
  320. package/dist/cjs/justifi-business-info.cjs.entry.js.map +0 -1
  321. package/dist/cjs/state-options-efeaa587.js.map +0 -1
  322. package/dist/collection/components/business-address/business-address-schema.js.map +0 -1
  323. package/dist/collection/components/business-address/business-address.js +0 -100
  324. package/dist/collection/components/business-address/business-address.js.map +0 -1
  325. package/dist/collection/components/business-address/test/business-address.e2e.js +0 -10
  326. package/dist/collection/components/business-address/test/business-address.e2e.js.map +0 -1
  327. package/dist/collection/components/business-address/test/business-address.spec.js +0 -18
  328. package/dist/collection/components/business-address/test/business-address.spec.js.map +0 -1
  329. package/dist/collection/components/business-info/business-info-schema.js +0 -94
  330. package/dist/collection/components/business-info/business-info-schema.js.map +0 -1
  331. package/dist/collection/components/business-info/business-info.js +0 -168
  332. package/dist/collection/components/business-info/business-info.js.map +0 -1
  333. package/dist/components/Payment.js +0 -71
  334. package/dist/components/Payment.js.map +0 -1
  335. package/dist/components/justifi-business-address.d.ts +0 -11
  336. package/dist/components/justifi-business-address.js +0 -99
  337. package/dist/components/justifi-business-address.js.map +0 -1
  338. package/dist/components/justifi-business-info.js +0 -207
  339. package/dist/components/justifi-business-info.js.map +0 -1
  340. package/dist/esm/Api-a07f0057.js.map +0 -1
  341. package/dist/esm/Payment-c86e1e84.js +0 -71
  342. package/dist/esm/Payment-c86e1e84.js.map +0 -1
  343. package/dist/esm/index-044f93fc.js.map +0 -1
  344. package/dist/esm/index.esm-5624a5ed.js.map +0 -1
  345. package/dist/esm/justifi-business-address.entry.js +0 -65
  346. package/dist/esm/justifi-business-address.entry.js.map +0 -1
  347. package/dist/esm/justifi-business-info.entry.js +0 -170
  348. package/dist/esm/justifi-business-info.entry.js.map +0 -1
  349. package/dist/esm/polyfills/css-shim.js +0 -1
  350. package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -56
  351. package/dist/types/components/business-address/business-address.d.ts +0 -11
  352. package/dist/types/components/business-info/business-info.d.ts +0 -20
  353. package/dist/types/components/card-form/card-form.d.ts +0 -62
  354. package/dist/webcomponents/p-0969db8f.entry.js +0 -2
  355. package/dist/webcomponents/p-0969db8f.entry.js.map +0 -1
  356. package/dist/webcomponents/p-0ea23153.js.map +0 -1
  357. package/dist/webcomponents/p-1ca0646b.js +0 -2
  358. package/dist/webcomponents/p-1ca0646b.js.map +0 -1
  359. package/dist/webcomponents/p-1f151d49.js.map +0 -1
  360. package/dist/webcomponents/p-255b1284.entry.js +0 -2
  361. package/dist/webcomponents/p-255b1284.entry.js.map +0 -1
  362. package/dist/webcomponents/p-2b8c281e.entry.js +0 -2
  363. package/dist/webcomponents/p-2b8c281e.entry.js.map +0 -1
  364. package/dist/webcomponents/p-3aa91155.js +0 -3
  365. package/dist/webcomponents/p-3aa91155.js.map +0 -1
  366. package/dist/webcomponents/p-90c0d9e1.entry.js +0 -2
  367. package/dist/webcomponents/p-90c0d9e1.entry.js.map +0 -1
  368. package/dist/webcomponents/p-bd5352d6.entry.js +0 -2
  369. package/dist/webcomponents/p-bd5352d6.entry.js.map +0 -1
  370. package/dist/webcomponents/p-c903cc5a.entry.js +0 -2
  371. package/dist/webcomponents/p-c903cc5a.entry.js.map +0 -1
  372. package/dist/webcomponents/p-d87b0711.entry.js +0 -2
  373. package/dist/webcomponents/p-d87b0711.entry.js.map +0 -1
  374. package/dist/webcomponents/p-dbf7100f.entry.js +0 -2
  375. package/dist/webcomponents/p-dbf7100f.entry.js.map +0 -1
  376. package/dist/webcomponents/p-e0054bc3.js +0 -2
  377. package/dist/webcomponents/p-e0054bc3.js.map +0 -1
  378. package/dist/webcomponents/p-f30d1567.entry.js +0 -2
  379. package/dist/webcomponents/p-f30d1567.entry.js.map +0 -1
  380. /package/dist/types/components/{business-address/business-address-schema.d.ts → business-form/business-address/business-address-form-schema.d.ts} +0 -0
@@ -890,10 +890,10 @@ class Schema {
890
890
  }
891
891
  return result;
892
892
  }
893
- _cast(rawValue, _options) {
893
+ _cast(rawValue, options) {
894
894
  let value = rawValue === undefined ? rawValue : this.transforms.reduce((prevValue, fn) => fn.call(this, prevValue, rawValue, this), rawValue);
895
895
  if (value === undefined) {
896
- value = this.getDefault();
896
+ value = this.getDefault(options);
897
897
  }
898
898
  return value;
899
899
  }
@@ -1052,18 +1052,18 @@ class Schema {
1052
1052
  throw err;
1053
1053
  }
1054
1054
  }
1055
- _getDefault() {
1055
+ _getDefault(options) {
1056
1056
  let defaultValue = this.spec.default;
1057
1057
  if (defaultValue == null) {
1058
1058
  return defaultValue;
1059
1059
  }
1060
- return typeof defaultValue === 'function' ? defaultValue.call(this) : clone(defaultValue);
1060
+ return typeof defaultValue === 'function' ? defaultValue.call(this, options) : clone(defaultValue);
1061
1061
  }
1062
1062
  getDefault(options
1063
1063
  // If schema is defaulted we know it's at least not undefined
1064
1064
  ) {
1065
1065
  let schema = this.resolve(options || {});
1066
- return schema._getDefault();
1066
+ return schema._getDefault(options);
1067
1067
  }
1068
1068
  default(def) {
1069
1069
  if (arguments.length === 0) {
@@ -1203,8 +1203,9 @@ class Schema {
1203
1203
  next.internalTests.typeError = createValidation({
1204
1204
  message,
1205
1205
  name: 'typeError',
1206
+ skipAbsent: true,
1206
1207
  test(value) {
1207
- if (!isAbsent(value) && !this.schema._typeCheck(value)) return this.createError({
1208
+ if (!this.schema._typeCheck(value)) return this.createError({
1208
1209
  params: {
1209
1210
  type: this.schema.type
1210
1211
  }
@@ -1312,6 +1313,98 @@ for (const method of ['validate', 'validateSync']) Schema.prototype[`${method}At
1312
1313
  for (const alias of ['equals', 'is']) Schema.prototype[alias] = Schema.prototype.oneOf;
1313
1314
  for (const alias of ['not', 'nope']) Schema.prototype[alias] = Schema.prototype.notOneOf;
1314
1315
 
1316
+ const returnsTrue = () => true;
1317
+ function create$8(spec) {
1318
+ return new MixedSchema(spec);
1319
+ }
1320
+ class MixedSchema extends Schema {
1321
+ constructor(spec) {
1322
+ super(typeof spec === 'function' ? {
1323
+ type: 'mixed',
1324
+ check: spec
1325
+ } : Object.assign({
1326
+ type: 'mixed',
1327
+ check: returnsTrue
1328
+ }, spec));
1329
+ }
1330
+ }
1331
+ create$8.prototype = MixedSchema.prototype;
1332
+
1333
+ function create$7() {
1334
+ return new BooleanSchema();
1335
+ }
1336
+ class BooleanSchema extends Schema {
1337
+ constructor() {
1338
+ super({
1339
+ type: 'boolean',
1340
+ check(v) {
1341
+ if (v instanceof Boolean) v = v.valueOf();
1342
+ return typeof v === 'boolean';
1343
+ }
1344
+ });
1345
+ this.withMutation(() => {
1346
+ this.transform((value, _raw, ctx) => {
1347
+ if (ctx.spec.coerce && !ctx.isType(value)) {
1348
+ if (/^(true|1)$/i.test(String(value))) return true;
1349
+ if (/^(false|0)$/i.test(String(value))) return false;
1350
+ }
1351
+ return value;
1352
+ });
1353
+ });
1354
+ }
1355
+ isTrue(message = boolean.isValue) {
1356
+ return this.test({
1357
+ message,
1358
+ name: 'is-value',
1359
+ exclusive: true,
1360
+ params: {
1361
+ value: 'true'
1362
+ },
1363
+ test(value) {
1364
+ return isAbsent(value) || value === true;
1365
+ }
1366
+ });
1367
+ }
1368
+ isFalse(message = boolean.isValue) {
1369
+ return this.test({
1370
+ message,
1371
+ name: 'is-value',
1372
+ exclusive: true,
1373
+ params: {
1374
+ value: 'false'
1375
+ },
1376
+ test(value) {
1377
+ return isAbsent(value) || value === false;
1378
+ }
1379
+ });
1380
+ }
1381
+ default(def) {
1382
+ return super.default(def);
1383
+ }
1384
+ defined(msg) {
1385
+ return super.defined(msg);
1386
+ }
1387
+ optional() {
1388
+ return super.optional();
1389
+ }
1390
+ required(msg) {
1391
+ return super.required(msg);
1392
+ }
1393
+ notRequired() {
1394
+ return super.notRequired();
1395
+ }
1396
+ nullable() {
1397
+ return super.nullable();
1398
+ }
1399
+ nonNullable(msg) {
1400
+ return super.nonNullable(msg);
1401
+ }
1402
+ strip(v) {
1403
+ return super.strip(v);
1404
+ }
1405
+ }
1406
+ create$7.prototype = BooleanSchema.prototype;
1407
+
1315
1408
  // Taken from HTML spec: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address
1316
1409
  let rEmail =
1317
1410
  // eslint-disable-next-line
@@ -1596,7 +1689,7 @@ class ObjectSchema extends Schema {
1596
1689
  let value = super._cast(_value, options);
1597
1690
 
1598
1691
  //should ignore nulls here
1599
- if (value === undefined) return this.getDefault();
1692
+ if (value === undefined) return this.getDefault(options);
1600
1693
  if (!this._typeCheck(value)) return value;
1601
1694
  let fields = this.fields;
1602
1695
  let strip = (_options$stripUnknown = options.stripUnknown) != null ? _options$stripUnknown : this.spec.noUnknown;
@@ -1701,11 +1794,13 @@ class ObjectSchema extends Schema {
1701
1794
  const target = nextFields[field];
1702
1795
  nextFields[field] = target === undefined ? schemaOrRef : target;
1703
1796
  }
1704
- return next.withMutation(s => s.setFields(nextFields, this._excludedEdges));
1797
+ return next.withMutation(s =>
1798
+ // XXX: excludes here is wrong
1799
+ s.setFields(nextFields, [...this._excludedEdges, ...schema._excludedEdges]));
1705
1800
  }
1706
- _getDefault() {
1801
+ _getDefault(options) {
1707
1802
  if ('default' in this.spec) {
1708
- return super._getDefault();
1803
+ return super._getDefault(options);
1709
1804
  }
1710
1805
 
1711
1806
  // if there is no default set invent one
@@ -1714,8 +1809,16 @@ class ObjectSchema extends Schema {
1714
1809
  }
1715
1810
  let dft = {};
1716
1811
  this._nodes.forEach(key => {
1812
+ var _innerOptions;
1717
1813
  const field = this.fields[key];
1718
- dft[key] = field && 'getDefault' in field ? field.getDefault() : undefined;
1814
+ let innerOptions = options;
1815
+ if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
1816
+ innerOptions = Object.assign({}, innerOptions, {
1817
+ parent: innerOptions.value,
1818
+ value: innerOptions.value[key]
1819
+ });
1820
+ }
1821
+ dft[key] = field && 'getDefault' in field ? field.getDefault(innerOptions) : undefined;
1719
1822
  });
1720
1823
  return dft;
1721
1824
  }
@@ -1829,9 +1932,9 @@ class ObjectSchema extends Schema {
1829
1932
  let base = super.describe(options);
1830
1933
  base.fields = {};
1831
1934
  for (const [key, value] of Object.entries(this.fields)) {
1832
- var _innerOptions;
1935
+ var _innerOptions2;
1833
1936
  let innerOptions = options;
1834
- if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
1937
+ if ((_innerOptions2 = innerOptions) != null && _innerOptions2.value) {
1835
1938
  innerOptions = Object.assign({}, innerOptions, {
1836
1939
  parent: innerOptions.value,
1837
1940
  value: innerOptions.value[key]
@@ -1844,7 +1947,191 @@ class ObjectSchema extends Schema {
1844
1947
  }
1845
1948
  create$3.prototype = ObjectSchema.prototype;
1846
1949
 
1950
+ function create$2(type) {
1951
+ return new ArraySchema(type);
1952
+ }
1953
+ class ArraySchema extends Schema {
1954
+ constructor(type) {
1955
+ super({
1956
+ type: 'array',
1957
+ spec: {
1958
+ types: type
1959
+ },
1960
+ check(v) {
1961
+ return Array.isArray(v);
1962
+ }
1963
+ });
1964
+
1965
+ // `undefined` specifically means uninitialized, as opposed to "no subtype"
1966
+ this.innerType = void 0;
1967
+ this.innerType = type;
1968
+ }
1969
+ _cast(_value, _opts) {
1970
+ const value = super._cast(_value, _opts);
1971
+
1972
+ // should ignore nulls here
1973
+ if (!this._typeCheck(value) || !this.innerType) {
1974
+ return value;
1975
+ }
1976
+ let isChanged = false;
1977
+ const castArray = value.map((v, idx) => {
1978
+ const castElement = this.innerType.cast(v, Object.assign({}, _opts, {
1979
+ path: `${_opts.path || ''}[${idx}]`
1980
+ }));
1981
+ if (castElement !== v) {
1982
+ isChanged = true;
1983
+ }
1984
+ return castElement;
1985
+ });
1986
+ return isChanged ? castArray : value;
1987
+ }
1988
+ _validate(_value, options = {}, panic, next) {
1989
+ var _options$recursive;
1990
+ // let sync = options.sync;
1991
+ // let path = options.path;
1992
+ let innerType = this.innerType;
1993
+ // let endEarly = options.abortEarly ?? this.spec.abortEarly;
1994
+ let recursive = (_options$recursive = options.recursive) != null ? _options$recursive : this.spec.recursive;
1995
+ super._validate(_value, options, panic, (arrayErrors, value) => {
1996
+ var _options$originalValu2;
1997
+ if (!recursive || !innerType || !this._typeCheck(value)) {
1998
+ next(arrayErrors, value);
1999
+ return;
2000
+ }
2001
+
2002
+ // #950 Ensure that sparse array empty slots are validated
2003
+ let tests = new Array(value.length);
2004
+ for (let index = 0; index < value.length; index++) {
2005
+ var _options$originalValu;
2006
+ tests[index] = innerType.asNestedTest({
2007
+ options,
2008
+ index,
2009
+ parent: value,
2010
+ parentPath: options.path,
2011
+ originalParent: (_options$originalValu = options.originalValue) != null ? _options$originalValu : _value
2012
+ });
2013
+ }
2014
+ this.runTests({
2015
+ value,
2016
+ tests,
2017
+ originalValue: (_options$originalValu2 = options.originalValue) != null ? _options$originalValu2 : _value,
2018
+ options
2019
+ }, panic, innerTypeErrors => next(innerTypeErrors.concat(arrayErrors), value));
2020
+ });
2021
+ }
2022
+ clone(spec) {
2023
+ const next = super.clone(spec);
2024
+ // @ts-expect-error readonly
2025
+ next.innerType = this.innerType;
2026
+ return next;
2027
+ }
2028
+
2029
+ /** Parse an input JSON string to an object */
2030
+ json() {
2031
+ return this.transform(parseJson);
2032
+ }
2033
+ concat(schema) {
2034
+ let next = super.concat(schema);
2035
+
2036
+ // @ts-expect-error readonly
2037
+ next.innerType = this.innerType;
2038
+ if (schema.innerType)
2039
+ // @ts-expect-error readonly
2040
+ next.innerType = next.innerType ?
2041
+ // @ts-expect-error Lazy doesn't have concat and will break
2042
+ next.innerType.concat(schema.innerType) : schema.innerType;
2043
+ return next;
2044
+ }
2045
+ of(schema) {
2046
+ // FIXME: this should return a new instance of array without the default to be
2047
+ let next = this.clone();
2048
+ if (!isSchema(schema)) throw new TypeError('`array.of()` sub-schema must be a valid yup schema not: ' + printValue(schema));
2049
+
2050
+ // @ts-expect-error readonly
2051
+ next.innerType = schema;
2052
+ next.spec = Object.assign({}, next.spec, {
2053
+ types: schema
2054
+ });
2055
+ return next;
2056
+ }
2057
+ length(length, message = array.length) {
2058
+ return this.test({
2059
+ message,
2060
+ name: 'length',
2061
+ exclusive: true,
2062
+ params: {
2063
+ length
2064
+ },
2065
+ skipAbsent: true,
2066
+ test(value) {
2067
+ return value.length === this.resolve(length);
2068
+ }
2069
+ });
2070
+ }
2071
+ min(min, message) {
2072
+ message = message || array.min;
2073
+ return this.test({
2074
+ message,
2075
+ name: 'min',
2076
+ exclusive: true,
2077
+ params: {
2078
+ min
2079
+ },
2080
+ skipAbsent: true,
2081
+ // FIXME(ts): Array<typeof T>
2082
+ test(value) {
2083
+ return value.length >= this.resolve(min);
2084
+ }
2085
+ });
2086
+ }
2087
+ max(max, message) {
2088
+ message = message || array.max;
2089
+ return this.test({
2090
+ message,
2091
+ name: 'max',
2092
+ exclusive: true,
2093
+ params: {
2094
+ max
2095
+ },
2096
+ skipAbsent: true,
2097
+ test(value) {
2098
+ return value.length <= this.resolve(max);
2099
+ }
2100
+ });
2101
+ }
2102
+ ensure() {
2103
+ return this.default(() => []).transform((val, original) => {
2104
+ // We don't want to return `null` for nullable schema
2105
+ if (this._typeCheck(val)) return val;
2106
+ return original == null ? [] : [].concat(original);
2107
+ });
2108
+ }
2109
+ compact(rejector) {
2110
+ let reject = !rejector ? v => !!v : (v, i, a) => !rejector(v, i, a);
2111
+ return this.transform(values => values != null ? values.filter(reject) : values);
2112
+ }
2113
+ describe(options) {
2114
+ let base = super.describe(options);
2115
+ if (this.innerType) {
2116
+ var _innerOptions;
2117
+ let innerOptions = options;
2118
+ if ((_innerOptions = innerOptions) != null && _innerOptions.value) {
2119
+ innerOptions = Object.assign({}, innerOptions, {
2120
+ parent: innerOptions.value,
2121
+ value: innerOptions.value[0]
2122
+ });
2123
+ }
2124
+ base.innerType = this.innerType.describe(innerOptions);
2125
+ }
2126
+ return base;
2127
+ }
2128
+ }
2129
+ create$2.prototype = ArraySchema.prototype;
2130
+
2131
+ exports.create$2 = create$2;
1847
2132
  exports.create$3 = create$3;
1848
2133
  exports.create$6 = create$6;
2134
+ exports.create$7 = create$7;
2135
+ exports.create$8 = create$8;
1849
2136
 
1850
- //# sourceMappingURL=index.esm-bcf90c56.js.map
2137
+ //# sourceMappingURL=index.esm-7e12ce07.js.map