@justifi/webcomponents 4.2.2 → 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 -208
  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-3aa91155.js +0 -3
  363. package/dist/webcomponents/p-3aa91155.js.map +0 -1
  364. package/dist/webcomponents/p-4ecc9860.entry.js +0 -2
  365. package/dist/webcomponents/p-4ecc9860.entry.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
@@ -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,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEhF,OAAO,iBAAwC,MAAM,uBAAuB,CAAC;AAC7E,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C;;;;GAIG;AAMH,MAAM,OAAO,WAAW;;IAkEtB,gBAAW,GAAG,CAAC,kBAAS,IAAI,CAAC,MAAM,CAAU,CAAC,CAAC;;yBA7DH;MAC1C,IAA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AAC,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,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEhF,OAAO,iBAAwC,MAAM,uBAAuB,CAAC;AAC7E,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAE3C;;;;GAIG;AAMH,MAAM,OAAO,WAAW;;IAkEtB,gBAAW,GAAG,CAAC,kBAAS,IAA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AAQ;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"]}
@@ -1,31 +1,58 @@
1
- import { newSpecPage } from '@stencil/core/testing';
2
- import { BillingForm } from '../billing-form';
3
- describe('Billing Form', () => {
4
- it('renders', async () => {
1
+ import { newSpecPage } from "@stencil/core/testing";
2
+ import { BillingForm } from "../billing-form";
3
+ describe('justifi-billing-form', () => {
4
+ it('fills the form', async () => {
5
5
  const page = await newSpecPage({
6
6
  components: [BillingForm],
7
- html: `<justifi-billing-form />`,
7
+ html: `<justifi-billing-form></justifi-billing-form>`,
8
8
  });
9
- expect(page.root).toEqualHtml(`
10
- <justifi-billing-form>
11
- <mock:shadow-root>
12
- <fieldset>
13
- <text-input defaultvalue="" label="Street Address" name="address_line1"></text-input>
14
- <text-input defaultvalue="" label="Apartment, Suite, etc. (optional)" name="address_line2"></text-input>
15
- <text-input defaultvalue="" label="City" name="address_city"></text-input>
16
- <select-input defaultvalue="" label="State" name="address_state"></select-input>
17
- <text-input defaultvalue="" label="ZIP" name="address_postal_code"></text-input>
18
- </fieldset>
19
- </mock:shadow-root>
20
- </justifi-billing-form>
21
- `);
9
+ const instance = page.rootInstance;
10
+ const fields = {
11
+ name: 'John Doe',
12
+ address_line1: 'Street Address',
13
+ address_line2: 'Apartment Address',
14
+ address_city: 'New York',
15
+ address_state: 'NY',
16
+ address_postal_code: '10000',
17
+ };
18
+ await instance.fill(fields);
19
+ expect(instance.billingFields).toEqual(fields);
22
20
  });
23
- it('has a validate method and is calllable', () => {
24
- const billingForm = new BillingForm();
25
- expect(billingForm.validate).toBeDefined();
26
- const validateSpy = jest.spyOn(billingForm, 'validate');
27
- billingForm.validate();
28
- expect(validateSpy).toHaveBeenCalled();
21
+ it('validates the form', async () => {
22
+ const page = await newSpecPage({
23
+ components: [BillingForm],
24
+ html: `<justifi-billing-form></justifi-billing-form>`,
25
+ });
26
+ const instance = page.rootInstance;
27
+ const fields = {
28
+ name: 'John Doe',
29
+ address_line1: 'Street Address',
30
+ address_line2: 'Apartment Address',
31
+ address_city: 'New York',
32
+ address_state: 'NY',
33
+ address_postal_code: '10000',
34
+ };
35
+ await instance.fill(fields);
36
+ const { isValid } = await instance.validate();
37
+ expect(isValid).toBe(true); // Assuming provided fields pass the validation
38
+ });
39
+ it('gets values of the form', async () => {
40
+ const page = await newSpecPage({
41
+ components: [BillingForm],
42
+ html: `<justifi-billing-form></justifi-billing-form>`,
43
+ });
44
+ const instance = page.rootInstance;
45
+ const fields = {
46
+ name: 'John Doe',
47
+ address_line1: 'Street Address',
48
+ address_line2: 'Apartment Address',
49
+ address_city: 'New York',
50
+ address_state: 'NY',
51
+ address_postal_code: '10000',
52
+ };
53
+ await instance.fill(fields);
54
+ const values = await instance.getValues();
55
+ expect(values).toEqual(fields);
29
56
  });
30
57
  });
31
58
  //# sourceMappingURL=billing-form.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"billing-form.spec.js","sourceRoot":"","sources":["../../../../../src/components/billing-form/test/billing-form.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;EAC5B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,WAAW,CAAC;MACzB,IAAI,EAAE,0BAA0B;KACjC,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;KAY7B,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;EACH,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;IAChD,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;IACtC,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;IAE3C,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACxD,WAAW,CAAC,QAAQ,EAAE,CAAC;IACvB,MAAM,CAAC,WAAW,CAAC,CAAC,gBAAgB,EAAE,CAAC;EACzC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { BillingForm } from '../billing-form';\n\ndescribe('Billing Form', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [BillingForm],\n html: `<justifi-billing-form />`,\n });\n expect(page.root).toEqualHtml(`\n <justifi-billing-form>\n <mock:shadow-root>\n <fieldset>\n <text-input defaultvalue=\"\" label=\"Street Address\" name=\"address_line1\"></text-input>\n <text-input defaultvalue=\"\" label=\"Apartment, Suite, etc. (optional)\" name=\"address_line2\"></text-input>\n <text-input defaultvalue=\"\" label=\"City\" name=\"address_city\"></text-input>\n <select-input defaultvalue=\"\" label=\"State\" name=\"address_state\"></select-input>\n <text-input defaultvalue=\"\" label=\"ZIP\" name=\"address_postal_code\"></text-input>\n </fieldset>\n </mock:shadow-root>\n </justifi-billing-form>\n `);\n });\n it('has a validate method and is calllable', () => {\n const billingForm = new BillingForm();\n expect(billingForm.validate).toBeDefined();\n\n const validateSpy = jest.spyOn(billingForm, 'validate');\n billingForm.validate();\n expect(validateSpy).toHaveBeenCalled();\n });\n});\n"]}
1
+ {"version":3,"file":"billing-form.spec.js","sourceRoot":"","sources":["../../../../../src/components/billing-form/test/billing-form.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;EACpC,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE;IAC9B,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,WAAW,CAAC;MACzB,IAAI,EAAE,+CAA+C;KACtD,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAQ,IAAI,CAAC,YAAY,CAAC;IAExC,MAAM,MAAM,GAAG;MACb,IAAI,EAAE,UAAU;MAChB,aAAa,EAAE,gBAAgB;MAC/B,aAAa,EAAE,mBAAmB;MAClC,YAAY,EAAE,UAAU;MACxB,aAAa,EAAE,IAAI;MACnB,mBAAmB,EAAE,OAAO;KAC7B,CAAC;IAEF,MAAM,QAAQ,CAAC,IAAI,CAAC,MAAM,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CAAC;IAC5B,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,SAAS,EAAE,CAAC;IAE1C,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;EACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { BillingForm } from '../billing-form';\n\ndescribe('justifi-billing-form', () => {\n it('fills the form', async () => {\n const page = await newSpecPage({\n components: [BillingForm],\n html: `<justifi-billing-form></justifi-billing-form>`,\n });\n\n const instance: any = page.rootInstance;\n\n const fields = {\n name: 'John Doe',\n address_line1: 'Street Address',\n address_line2: 'Apartment Address',\n address_city: 'New York',\n address_state: 'NY',\n address_postal_code: '10000',\n };\n\n await instance.fill(fields);\n expect(instance.billingFields).toEqual(fields);\n });\n\n it('validates the form', async () => {\n const page = await newSpecPage({\n components: [BillingForm],\n html: `<justifi-billing-form></justifi-billing-form>`,\n });\n\n const instance: any = page.rootInstance;\n\n const fields = {\n name: 'John Doe',\n address_line1: 'Street Address',\n address_line2: 'Apartment Address',\n address_city: 'New York',\n address_state: 'NY',\n address_postal_code: '10000',\n };\n\n await instance.fill(fields);\n const { isValid } = await instance.validate();\n\n expect(isValid).toBe(true); // Assuming provided fields pass the validation\n });\n\n it('gets values of the form', async () => {\n const page = await newSpecPage({\n components: [BillingForm],\n html: `<justifi-billing-form></justifi-billing-form>`,\n });\n\n const instance: any = page.rootInstance;\n\n const fields = {\n name: 'John Doe',\n address_line1: 'Street Address',\n address_line2: 'Apartment Address',\n address_city: 'New York',\n address_state: 'NY',\n address_postal_code: '10000',\n };\n\n await instance.fill(fields);\n const values = await instance.getValues();\n\n expect(values).toEqual(fields);\n });\n});\n"]}
@@ -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 BusinessAddressFormSchema = object({
4
4
  line1: string().required('Enter street address'),
@@ -11,4 +11,4 @@ const BusinessAddressFormSchema = object({
11
11
  .min(5, 'Enter a valid ZIP')
12
12
  });
13
13
  export default BusinessAddressFormSchema;
14
- //# sourceMappingURL=business-address-schema.js.map
14
+ //# sourceMappingURL=business-address-form-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business-address-form-schema.js","sourceRoot":"","sources":["../../../../../src/components/business-form/business-address/business-address-form-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAErC,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC;AAWjC,MAAM,yBAAyB,GAAG,MAAM,CAAC;EACvC,KAAK,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;EAChD,KAAK,EAAE,MAAM,EAAE;EACf,IAAI,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;EACrC,KAAK,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;EACxC,WAAW,EAAE,MAAM,EAAE;KAClB,QAAQ,CAAC,WAAW,CAAC;KACrB,OAAO,CAAC,QAAQ,EAAE,mBAAmB,CAAC;KACtC,GAAG,CAAC,CAAC,EAAE,mBAAmB,CAAC;CAC/B,CAAC,CAAC;AAEH,eAAe,yBAAyB,CAAC","sourcesContent":["import { object, string } from 'yup';\n\nexport const RegExZip = /^\\d{5}/;\n\nexport interface BusinessAddressFormFields {\n line1: string;\n line2?: string;\n city: string;\n state: string;\n postal_code: string;\n country: string;\n}\n\nconst BusinessAddressFormSchema = object({\n line1: string().required('Enter street address'),\n line2: string(),\n city: string().required('Enter city'),\n state: string().required('Choose state'),\n postal_code: string()\n .required('Enter ZIP')\n .matches(RegExZip, 'Enter a valid ZIP')\n .min(5, 'Enter a valid ZIP')\n});\n\nexport default BusinessAddressFormSchema;"]}