@sheerid/jslib 1.106.0 → 1.109.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 (246) hide show
  1. package/README.md +104 -0
  2. package/__tests__/__helpers__/renderers.d.ts +7 -0
  3. package/es5/Tmetrix.bundle.js +5 -5
  4. package/es5/messages_ar.bundle.js +5 -5
  5. package/es5/messages_bg.bundle.js +5 -5
  6. package/es5/messages_cs.bundle.js +5 -5
  7. package/es5/messages_da.bundle.js +5 -5
  8. package/es5/messages_de.bundle.js +5 -5
  9. package/es5/messages_el.bundle.js +5 -5
  10. package/es5/messages_en-GB.bundle.js +5 -5
  11. package/es5/messages_es-ES.bundle.js +5 -5
  12. package/es5/messages_es.bundle.js +5 -5
  13. package/es5/messages_fi.bundle.js +5 -5
  14. package/es5/messages_fr-CA.bundle.js +5 -5
  15. package/es5/messages_fr.bundle.js +5 -5
  16. package/es5/messages_ga.bundle.js +5 -5
  17. package/es5/messages_hr.bundle.js +5 -5
  18. package/es5/messages_hu.bundle.js +5 -5
  19. package/es5/messages_id.bundle.js +5 -5
  20. package/es5/messages_it.bundle.js +5 -5
  21. package/es5/messages_iw.bundle.js +5 -5
  22. package/es5/messages_ja.bundle.js +5 -5
  23. package/es5/messages_ko.bundle.js +5 -5
  24. package/es5/messages_lo.bundle.js +5 -5
  25. package/es5/messages_lt.bundle.js +5 -5
  26. package/es5/messages_ms.bundle.js +5 -5
  27. package/es5/messages_nl.bundle.js +5 -5
  28. package/es5/messages_no.bundle.js +5 -5
  29. package/es5/messages_pl.bundle.js +5 -5
  30. package/es5/messages_pt-BR.bundle.js +5 -5
  31. package/es5/messages_pt.bundle.js +5 -5
  32. package/es5/messages_ru.bundle.js +5 -5
  33. package/es5/messages_sk.bundle.js +5 -5
  34. package/es5/messages_sl.bundle.js +5 -5
  35. package/es5/messages_sr.bundle.js +5 -5
  36. package/es5/messages_sv.bundle.js +5 -5
  37. package/es5/messages_th.bundle.js +5 -5
  38. package/es5/messages_tr.bundle.js +5 -5
  39. package/es5/messages_zh-HK.bundle.js +5 -5
  40. package/es5/messages_zh.bundle.js +5 -5
  41. package/es6/{ar-a1aa1b10.es.js → ar-4956061a.es.js} +12 -3
  42. package/es6/{cs-08b05f91.es.js.map → ar-4956061a.es.js.map} +1 -1
  43. package/es6/{bg-81a7792c.es.js → bg-d6354db2.es.js} +12 -3
  44. package/es6/{ar-a1aa1b10.es.js.map → bg-d6354db2.es.js.map} +1 -1
  45. package/es6/{cs-08b05f91.es.js → cs-1de96b4c.es.js} +12 -3
  46. package/es6/{da-3d94f9d8.es.js.map → cs-1de96b4c.es.js.map} +1 -1
  47. package/es6/{da-3d94f9d8.es.js → da-8f1dfa43.es.js} +12 -3
  48. package/es6/{bg-81a7792c.es.js.map → da-8f1dfa43.es.js.map} +1 -1
  49. package/es6/{de-37509c80.es.js → de-1aa4e429.es.js} +12 -3
  50. package/es6/de-1aa4e429.es.js.map +1 -0
  51. package/es6/{el-fe41c0c3.es.js → el-2d5e12dd.es.js} +12 -3
  52. package/es6/el-2d5e12dd.es.js.map +1 -0
  53. package/es6/{en-GB-52e5c64c.es.js → en-GB-20967dc5.es.js} +11 -2
  54. package/es6/{en-GB-52e5c64c.es.js.map → en-GB-20967dc5.es.js.map} +1 -1
  55. package/es6/{es-c9026cd4.es.js → es-8e86100a.es.js} +12 -3
  56. package/es6/es-8e86100a.es.js.map +1 -0
  57. package/es6/{es-ES-c3335e2a.es.js → es-ES-4bd1e82e.es.js} +12 -3
  58. package/es6/{es-ES-c3335e2a.es.js.map → es-ES-4bd1e82e.es.js.map} +1 -1
  59. package/es6/{fi-0c8f6bbc.es.js → fi-1d11aab4.es.js} +12 -3
  60. package/es6/fi-1d11aab4.es.js.map +1 -0
  61. package/es6/{fr-CA-bb35b777.es.js → fr-CA-5adbcd22.es.js} +12 -3
  62. package/es6/{fr-CA-bb35b777.es.js.map → fr-CA-5adbcd22.es.js.map} +1 -1
  63. package/es6/{fr-e5e92540.es.js → fr-d80e65df.es.js} +12 -3
  64. package/es6/fr-d80e65df.es.js.map +1 -0
  65. package/es6/{ga-2a2f70dc.es.js → ga-06830697.es.js} +12 -3
  66. package/es6/ga-06830697.es.js.map +1 -0
  67. package/es6/{hr-cde64c69.es.js → hr-4684ff5d.es.js} +12 -3
  68. package/es6/hr-4684ff5d.es.js.map +1 -0
  69. package/es6/{hu-cc086f07.es.js → hu-7a4f3a78.es.js} +12 -3
  70. package/es6/hu-7a4f3a78.es.js.map +1 -0
  71. package/es6/{id-b81308a9.es.js → id-b6fe2fcd.es.js} +12 -3
  72. package/es6/id-b6fe2fcd.es.js.map +1 -0
  73. package/es6/{it-38113b5f.es.js → it-18fd5526.es.js} +12 -3
  74. package/es6/it-18fd5526.es.js.map +1 -0
  75. package/es6/{iw-86b8d01f.es.js → iw-b1f73ffa.es.js} +12 -3
  76. package/es6/iw-b1f73ffa.es.js.map +1 -0
  77. package/es6/{ja-4b9af9de.es.js → ja-05eb217d.es.js} +12 -3
  78. package/es6/ja-05eb217d.es.js.map +1 -0
  79. package/es6/{ko-0ecf01b8.es.js → ko-6026fe32.es.js} +12 -3
  80. package/es6/ko-6026fe32.es.js.map +1 -0
  81. package/es6/{lo-bb99eab4.es.js → lo-30da01da.es.js} +12 -3
  82. package/es6/lo-30da01da.es.js.map +1 -0
  83. package/es6/{lt-8a75ecd4.es.js → lt-a08f94d6.es.js} +12 -3
  84. package/es6/lt-a08f94d6.es.js.map +1 -0
  85. package/es6/{ms-3e109888.es.js → ms-4b69e218.es.js} +12 -3
  86. package/es6/ms-4b69e218.es.js.map +1 -0
  87. package/es6/{nl-d27731f2.es.js → nl-9acf82f8.es.js} +12 -3
  88. package/es6/nl-9acf82f8.es.js.map +1 -0
  89. package/es6/{no-398365a0.es.js → no-443dff87.es.js} +12 -3
  90. package/es6/no-443dff87.es.js.map +1 -0
  91. package/es6/{pl-03b07ec0.es.js → pl-0b4902db.es.js} +12 -3
  92. package/es6/pl-0b4902db.es.js.map +1 -0
  93. package/es6/{pt-BR-908eb973.es.js → pt-BR-afd2234b.es.js} +12 -3
  94. package/es6/{pt-BR-908eb973.es.js.map → pt-BR-afd2234b.es.js.map} +1 -1
  95. package/es6/{pt-9c0c5121.es.js → pt-eefd6a76.es.js} +12 -3
  96. package/es6/pt-eefd6a76.es.js.map +1 -0
  97. package/es6/{ru-8a2909fe.es.js → ru-55b959b7.es.js} +12 -3
  98. package/es6/ru-55b959b7.es.js.map +1 -0
  99. package/es6/{sk-60396a9f.es.js → sk-1751ddd2.es.js} +12 -3
  100. package/es6/sk-1751ddd2.es.js.map +1 -0
  101. package/es6/{sl-a97ed325.es.js → sl-3d874685.es.js} +12 -3
  102. package/es6/sl-3d874685.es.js.map +1 -0
  103. package/es6/{sr-c53320d0.es.js → sr-9449946e.es.js} +12 -3
  104. package/es6/sr-9449946e.es.js.map +1 -0
  105. package/es6/{sv-9874cc44.es.js → sv-b3117f27.es.js} +12 -3
  106. package/es6/sv-b3117f27.es.js.map +1 -0
  107. package/es6/{th-42342bb0.es.js → th-1fb295d2.es.js} +12 -3
  108. package/es6/th-1fb295d2.es.js.map +1 -0
  109. package/es6/{tr-b5e66c00.es.js → tr-b7aed90b.es.js} +12 -3
  110. package/es6/tr-b7aed90b.es.js.map +1 -0
  111. package/es6/{zh-4ae25b08.es.js → zh-6c863e80.es.js} +12 -3
  112. package/es6/zh-6c863e80.es.js.map +1 -0
  113. package/es6/{zh-HK-56ab15f3.es.js → zh-HK-8bc1767d.es.js} +12 -3
  114. package/es6/zh-HK-8bc1767d.es.js.map +1 -0
  115. package/localized-messages/ar.json +12 -3
  116. package/localized-messages/bg.json +12 -3
  117. package/localized-messages/cs.json +12 -3
  118. package/localized-messages/da.json +12 -3
  119. package/localized-messages/de.json +12 -3
  120. package/localized-messages/el.json +12 -3
  121. package/localized-messages/en-GB.json +11 -2
  122. package/localized-messages/en-US.json +11 -2
  123. package/localized-messages/es-ES.json +12 -3
  124. package/localized-messages/es.json +12 -3
  125. package/localized-messages/fi.json +12 -3
  126. package/localized-messages/fr-CA.json +12 -3
  127. package/localized-messages/fr.json +12 -3
  128. package/localized-messages/ga.json +12 -3
  129. package/localized-messages/hr.json +12 -3
  130. package/localized-messages/hu.json +12 -3
  131. package/localized-messages/id.json +12 -3
  132. package/localized-messages/it.json +12 -3
  133. package/localized-messages/iw.json +12 -3
  134. package/localized-messages/ja.json +12 -3
  135. package/localized-messages/ko.json +12 -3
  136. package/localized-messages/lo.json +12 -3
  137. package/localized-messages/lt.json +12 -3
  138. package/localized-messages/ms.json +12 -3
  139. package/localized-messages/nl.json +12 -3
  140. package/localized-messages/no.json +12 -3
  141. package/localized-messages/pl.json +12 -3
  142. package/localized-messages/pt-BR.json +12 -3
  143. package/localized-messages/pt.json +12 -3
  144. package/localized-messages/ru.json +12 -3
  145. package/localized-messages/sk.json +12 -3
  146. package/localized-messages/sl.json +12 -3
  147. package/localized-messages/sr.json +12 -3
  148. package/localized-messages/sv.json +12 -3
  149. package/localized-messages/th.json +12 -3
  150. package/localized-messages/tr.json +12 -3
  151. package/localized-messages/zh-HK.json +12 -3
  152. package/localized-messages/zh.json +12 -3
  153. package/manifest.json +48 -48
  154. package/package.json +1 -1
  155. package/sheerid-requestOrg.css +5 -5
  156. package/sheerid-requestOrg.css.map +1 -1
  157. package/sheerid-requestOrg.js +15 -15
  158. package/sheerid-requestOrg.js.map +1 -1
  159. package/sheerid-utils.js +9 -9
  160. package/sheerid-utils.js.map +1 -1
  161. package/sheerid.css +5 -5
  162. package/sheerid.css.map +1 -1
  163. package/sheerid.js +18 -18
  164. package/sheerid.js.map +1 -1
  165. package/sheerides6.js +304 -161
  166. package/sheerides6.js.map +1 -1
  167. package/src/components/FieldLabel.d.ts +2 -2
  168. package/src/components/FormFields/Address/AddressComponent.d.ts +3 -7
  169. package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -1
  170. package/src/components/FormFields/BranchOfService/BranchOfServiceComponent.d.ts +1 -1
  171. package/src/components/FormFields/ChangeLocale/ChangeLocaleComponent.d.ts +1 -1
  172. package/src/components/FormFields/City/City.d.ts +2 -2
  173. package/src/components/FormFields/CollegeName/CollegeNameComponent.d.ts +1 -1
  174. package/src/components/FormFields/Company/CompanyComponent.d.ts +1 -1
  175. package/src/components/FormFields/Country/CountryComponent.d.ts +1 -1
  176. package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -1
  177. package/src/components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent.d.ts +1 -1
  178. package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.d.ts +7 -0
  179. package/src/components/FormFields/EBTCardNumber/EBTCardNumberComponent.test.d.ts +1 -0
  180. package/src/components/FormFields/Email/EmailComponent.d.ts +1 -1
  181. package/src/components/FormFields/FirstName/FirstNameComponent.d.ts +1 -1
  182. package/src/components/FormFields/FirstResponderOrganization/FirstResponderOrganizationComponent.d.ts +1 -1
  183. package/src/components/FormFields/FirstResponderStatus/FirstResponderStatusComponent.d.ts +1 -1
  184. package/src/components/FormFields/FormFieldCustom/FormFieldCustom.d.ts +18 -0
  185. package/src/components/FormFields/FormFieldCustom/FormFieldCustom.test.d.ts +1 -0
  186. package/src/components/FormFields/FormFieldLayout/FormFieldLayout.d.ts +14 -0
  187. package/src/components/FormFields/FormFieldText/FormFieldText.d.ts +17 -0
  188. package/src/components/FormFields/FormFieldText/FormFieldText.test.d.ts +1 -0
  189. package/src/components/FormFields/LastName/LastNameComponent.d.ts +1 -1
  190. package/src/components/FormFields/LicensedProfessionalOrganization/LicensedProfessionalOrganizationComponent.d.ts +1 -1
  191. package/src/components/FormFields/LowIncomeOrganization/LowIncomeOrganizationComponent.d.ts +2 -2
  192. package/src/components/FormFields/MedicalProfessionalOrganization/MedicalProfessionalOrganizationComponent.d.ts +1 -1
  193. package/src/components/FormFields/MedicalStatus/MedicalStatusComponent.d.ts +1 -1
  194. package/src/components/FormFields/MemberId/MemberIdComponent.d.ts +1 -1
  195. package/src/components/FormFields/MembershipOrganization/MembershipOrganizationComponent.d.ts +1 -1
  196. package/src/components/FormFields/MilitaryStatus/MilitaryStatusComponent.d.ts +1 -1
  197. package/src/components/FormFields/PhoneNumber/PhoneNumberComponent.d.ts +1 -1
  198. package/src/components/FormFields/SMSCode/SMSCodeComponent.d.ts +1 -1
  199. package/src/components/FormFields/SSN/SSN.d.ts +3 -8
  200. package/src/components/FormFields/State/State.d.ts +1 -1
  201. package/src/components/FormFields/State/StateSelectComponent.d.ts +1 -1
  202. package/src/components/FormFields/Status/StatusComponent.d.ts +1 -1
  203. package/src/components/FormFields/TeacherSchool/TeacherSchoolComponent.d.ts +1 -1
  204. package/src/components/FormInputs/InputText/InputText.d.ts +3 -19
  205. package/src/components/StepMemberPersonalInfo/StepMemberPersonalInfoComponent.d.ts +0 -1
  206. package/src/components/StepMilitaryPersonalInfo/StepCollectMilitaryStatusComponent.d.ts +1 -1
  207. package/src/components/StepPending/ReviewPendingComponent.d.ts +1 -1
  208. package/src/components/TryAgainButtonComponent.d.ts +1 -1
  209. package/src/components/TryAgainButtonComponent.test.d.ts +1 -0
  210. package/src/es6.d.ts +3 -0
  211. package/src/lib/ServerApi/VerificationApiClient.d.ts +2 -1
  212. package/src/lib/installScript/modal.d.ts +3 -3
  213. package/src/lib/types/runtimeTypes.d.ts +5 -2
  214. package/src/lib/types/types.d.ts +30 -6
  215. package/src/lib/utils/strings.d.ts +1 -0
  216. package/src/lib/utils/strings.test.d.ts +1 -0
  217. package/types-reference.zip +0 -0
  218. package/es6/de-37509c80.es.js.map +0 -1
  219. package/es6/el-fe41c0c3.es.js.map +0 -1
  220. package/es6/es-c9026cd4.es.js.map +0 -1
  221. package/es6/fi-0c8f6bbc.es.js.map +0 -1
  222. package/es6/fr-e5e92540.es.js.map +0 -1
  223. package/es6/ga-2a2f70dc.es.js.map +0 -1
  224. package/es6/hr-cde64c69.es.js.map +0 -1
  225. package/es6/hu-cc086f07.es.js.map +0 -1
  226. package/es6/id-b81308a9.es.js.map +0 -1
  227. package/es6/it-38113b5f.es.js.map +0 -1
  228. package/es6/iw-86b8d01f.es.js.map +0 -1
  229. package/es6/ja-4b9af9de.es.js.map +0 -1
  230. package/es6/ko-0ecf01b8.es.js.map +0 -1
  231. package/es6/lo-bb99eab4.es.js.map +0 -1
  232. package/es6/lt-8a75ecd4.es.js.map +0 -1
  233. package/es6/ms-3e109888.es.js.map +0 -1
  234. package/es6/nl-d27731f2.es.js.map +0 -1
  235. package/es6/no-398365a0.es.js.map +0 -1
  236. package/es6/pl-03b07ec0.es.js.map +0 -1
  237. package/es6/pt-9c0c5121.es.js.map +0 -1
  238. package/es6/ru-8a2909fe.es.js.map +0 -1
  239. package/es6/sk-60396a9f.es.js.map +0 -1
  240. package/es6/sl-a97ed325.es.js.map +0 -1
  241. package/es6/sr-c53320d0.es.js.map +0 -1
  242. package/es6/sv-9874cc44.es.js.map +0 -1
  243. package/es6/th-42342bb0.es.js.map +0 -1
  244. package/es6/tr-b5e66c00.es.js.map +0 -1
  245. package/es6/zh-4ae25b08.es.js.map +0 -1
  246. package/es6/zh-HK-56ab15f3.es.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  interface FieldLabelProps {
3
- text: JSX.Element | string | React.ReactNode;
3
+ text: React.ReactNode;
4
4
  htmlForLabel: string;
5
5
  id?: string;
6
6
  displayClasses?: string;
7
7
  isRequired?: boolean;
8
- children?: JSX.Element | any;
8
+ children?: React.ReactNode;
9
9
  }
10
10
  export declare const FieldLabel: React.FC<FieldLabelProps>;
11
11
  export {};
@@ -1,11 +1,7 @@
1
1
  /// <reference types="react-intl" />
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps } from "../../../lib/types/types";
4
- interface PassedProps {
5
- onKeyDown?: Function;
6
- }
7
- export declare const Address: ({ value, isErrored, onChange, intl, onKeyDown, placeholder, }: FormFieldComponentProps & PassedProps) => JSX.Element;
8
- export declare const AddressComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
9
- WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & PassedProps & ReactIntl.InjectedIntlProps>;
4
+ export declare const Address: ({ value, isErrored, onChange, intl, isRequired, onKeyDown, placeholder, label, }: FormFieldComponentProps) => JSX.Element;
5
+ export declare const AddressComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
+ WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & ReactIntl.InjectedIntlProps>;
10
7
  };
11
- export {};
@@ -7,6 +7,6 @@ export declare const BirthDate: {
7
7
  value: string;
8
8
  };
9
9
  };
10
- export declare const BirthDateComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
10
+ export declare const BirthDateComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
11
11
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & InjectedIntlProps>;
12
12
  };
@@ -5,7 +5,7 @@ interface BranchOfServiceComponentProps {
5
5
  organizations: Organization[];
6
6
  }
7
7
  export declare const BranchOfService: ({ autoFocus, onChange, value, isErrored, organizations, verificationService, intl, placeholder, }: FormFieldComponentProps & VerificationServiceProps & BranchOfServiceComponentProps) => JSX.Element;
8
- export declare const BranchOfServiceComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps & BranchOfServiceComponentProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService" | "organizations">, any> & {
8
+ export declare const BranchOfServiceComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps & BranchOfServiceComponentProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService" | "organizations">, any> & {
9
9
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & VerificationServiceProps & BranchOfServiceComponentProps & ReactIntl.InjectedIntlProps>;
10
10
  };
11
11
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { InjectedIntlProps } from "react-intl";
3
3
  import { InputSelectComponentProps } from "../../../lib/types/types";
4
- export declare const ChangeLocaleComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "options">, any> & {
4
+ export declare const ChangeLocaleComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "isRequired" | "options">, any> & {
5
5
  WrappedComponent: React.ComponentType<InputSelectComponentProps & InjectedIntlProps>;
6
6
  };
@@ -5,8 +5,8 @@ interface PassedProps {
5
5
  explanation?: string | JSX.Element;
6
6
  onKeyDown?: Function;
7
7
  }
8
- export declare const City: ({ value, isErrored, onChange, intl, onKeyDown, placeholder, }: FormFieldComponentProps & PassedProps) => JSX.Element;
9
- export declare const CityComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService" | "explanation">, any> & {
8
+ export declare const City: ({ value, isErrored, onChange, intl, isRequired, onKeyDown, placeholder, }: FormFieldComponentProps & PassedProps) => JSX.Element;
9
+ export declare const CityComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService" | "explanation">, any> & {
10
10
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & PassedProps & ReactIntl.InjectedIntlProps>;
11
11
  };
12
12
  export {};
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps, VerificationServiceProps } from "../../../lib/types/types";
4
4
  export declare const CollegeName: ({ onChange, value, isErrored, verificationService, intl, placeholder, isRequired, }: FormFieldComponentProps & VerificationServiceProps) => JSX.Element;
5
- export declare const CollegeNameComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const CollegeNameComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & VerificationServiceProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps, VerificationServiceProps } from "../../../lib/types/types";
4
4
  export declare const Company: ({ onChange, value, isErrored, verificationService, intl, placeholder, }: FormFieldComponentProps & VerificationServiceProps) => JSX.Element;
5
- export declare const CompanyComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const CompanyComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & VerificationServiceProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { InputSelectComponentProps } from "../../../lib/types/types";
4
4
  export declare const Country: ({ value, isErrored, options, onChange, onKeyDown, intl, placeholder, isRequired, }: InputSelectComponentProps) => JSX.Element;
5
- export declare const CountryComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "options">, any> & {
5
+ export declare const CountryComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "isRequired" | "options">, any> & {
6
6
  WrappedComponent: React.ComponentType<InputSelectComponentProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -7,6 +7,6 @@ export declare const DischargeDate: {
7
7
  value: string;
8
8
  };
9
9
  };
10
- export declare const DischargeDateComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
10
+ export declare const DischargeDateComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
11
11
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & InjectedIntlProps>;
12
12
  };
@@ -5,7 +5,7 @@ interface PassedProps {
5
5
  explanation?: string | JSX.Element;
6
6
  }
7
7
  export declare const DriverLicenseNumber: ({ value, isErrored, onChange, explanation, intl, placeholder, isRequired, }: FormFieldComponentProps & PassedProps) => JSX.Element;
8
- export declare const DriverLicenseNumberComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService" | "explanation">, any> & {
8
+ export declare const DriverLicenseNumberComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService" | "explanation">, any> & {
9
9
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & PassedProps & ReactIntl.InjectedIntlProps>;
10
10
  };
11
11
  export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react-intl" />
2
+ import React from "react";
3
+ import { FormFieldComponentProps } from "../../../lib/types/types";
4
+ export declare const EBTCardNumber: ({ value, isErrored, onChange, intl, placeholder, }: FormFieldComponentProps) => JSX.Element;
5
+ export declare const EBTCardNumberComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
+ WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & ReactIntl.InjectedIntlProps>;
7
+ };
@@ -6,7 +6,7 @@ interface PassedProps {
6
6
  onKeyDown?: Function;
7
7
  }
8
8
  export declare const Email: ({ value, isErrored, onChange, explanation, intl, onKeyDown, placeholder, }: FormFieldComponentProps & PassedProps) => JSX.Element;
9
- export declare const EmailComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService" | "explanation">, any> & {
9
+ export declare const EmailComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService" | "explanation">, any> & {
10
10
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & PassedProps & ReactIntl.InjectedIntlProps>;
11
11
  };
12
12
  export {};
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps } from "../../../lib/types/types";
4
4
  export declare const FirstName: ({ value, isErrored, onChange, intl, placeholder, }: FormFieldComponentProps) => JSX.Element;
5
- export declare const FirstNameComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const FirstNameComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps, VerificationServiceProps } from "../../../lib/types/types";
4
4
  export declare const FirstResponderOrganization: ({ onChange, value, isErrored, verificationService, intl, placeholder, }: FormFieldComponentProps & VerificationServiceProps) => JSX.Element;
5
- export declare const FirstResponderOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const FirstResponderOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & VerificationServiceProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { InputSelectComponentProps } from "../../../lib/types/types";
4
4
  export declare const FirstResponderStatus: ({ value, isErrored, options, onChange, placeholder, intl, onKeyDown, }: InputSelectComponentProps) => JSX.Element;
5
- export declare const FirstResponderStatusComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "options">, any> & {
5
+ export declare const FirstResponderStatusComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "isRequired" | "options">, any> & {
6
6
  WrappedComponent: React.ComponentType<InputSelectComponentProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { InjectedIntl } from "react-intl";
3
+ import { FormFieldConfig, VerificationService } from "../../../lib/types/types";
4
+ export interface FormFieldCustomProps {
5
+ config: FormFieldConfig;
6
+ verificationService: VerificationService;
7
+ intl: InjectedIntl;
8
+ }
9
+ export declare const getMessageIdForLabel: (config: FormFieldConfig) => string;
10
+ export declare const getMessageIdForPlaceholder: (config: FormFieldConfig) => string;
11
+ /**
12
+ * Custom form field component.
13
+ * Implementors can render a form field passing in config using setOptions, rather than
14
+ * having to create an entire React project and override component(s).
15
+ */
16
+ export declare const FormFieldCustom: React.ComponentClass<Pick<FormFieldCustomProps, "verificationService" | "config">, any> & {
17
+ WrappedComponent: React.ComponentType<FormFieldCustomProps & ReactIntl.InjectedIntlProps>;
18
+ };
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ export interface FormFieldLayoutProps {
3
+ fieldId: string;
4
+ label: React.ReactNode;
5
+ isRequired: boolean;
6
+ showPlaceholderAndHideLabel?: boolean;
7
+ errorMessage?: React.ReactNode;
8
+ children?: React.ReactNode;
9
+ }
10
+ /**
11
+ * In the JSLIB, a FormField has a label, inline error message, and children like a text input
12
+ * This component provides consistent structure, classnames and some accessibility considerations for all FormFields
13
+ */
14
+ export declare const FormFieldLayout: ({ fieldId, label, errorMessage, isRequired, showPlaceholderAndHideLabel, children, }: FormFieldLayoutProps) => JSX.Element;
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { InputTextProps } from "../../FormInputs/InputText/InputText";
3
+ export interface FormFieldTextComponentProps extends Omit<InputTextProps, "onChange" | "id" | "errorId" | "isErrored"> {
4
+ fieldId: string;
5
+ value: string;
6
+ onChange: (value: string) => void;
7
+ placeholder: string;
8
+ label: React.ReactNode;
9
+ showPlaceholderAndHideLabel?: boolean;
10
+ errorMessage?: React.ReactNode;
11
+ }
12
+ /**
13
+ * Generic text field component.
14
+ * In the JSLIB, a field has a label, inline error message, and an input of some kind.
15
+ */
16
+ export declare const FormFieldText: ({ fieldId, value, onChange, placeholder, label, errorMessage, showPlaceholderAndHideLabel, required, ...inputTextProps }: FormFieldTextComponentProps) => JSX.Element;
17
+ export declare const FormFieldTextComponent: ({ fieldId, value, onChange, placeholder, label, errorMessage, showPlaceholderAndHideLabel, required, ...inputTextProps }: FormFieldTextComponentProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps } from "../../../lib/types/types";
4
4
  export declare const LastName: ({ value, isErrored, onChange, intl, placeholder, }: FormFieldComponentProps) => JSX.Element;
5
- export declare const LastNameComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const LastNameComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps, VerificationServiceProps } from "../../../lib/types/types";
4
4
  export declare const LicensedProfessionalOrganization: ({ value, isErrored, onChange, verificationService, intl, placeholder, }: FormFieldComponentProps & VerificationServiceProps) => JSX.Element;
5
- export declare const LicensedProfessionalOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const LicensedProfessionalOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & VerificationServiceProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react-intl" />
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps, VerificationServiceProps } from "../../../lib/types/types";
4
- export declare const LowIncomeOrganization: ({ value, isErrored, onChange, verificationService, intl, placeholder, }: FormFieldComponentProps & VerificationServiceProps) => JSX.Element;
5
- export declare const LowIncomeOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
4
+ export declare const LowIncomeOrganization: ({ value, isErrored, onChange, verificationService, intl, placeholder, isRequired, }: FormFieldComponentProps & VerificationServiceProps) => JSX.Element;
5
+ export declare const LowIncomeOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & VerificationServiceProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps, VerificationServiceProps } from "../../../lib/types/types";
4
4
  export declare const MedicalProfessionalOrganization: ({ onChange, value, isErrored, verificationService, intl, placeholder, }: FormFieldComponentProps & VerificationServiceProps) => JSX.Element;
5
- export declare const MedicalProfessionalOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const MedicalProfessionalOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & VerificationServiceProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { InputSelectComponentProps } from "../../../lib/types/types";
4
4
  export declare const MedicalStatus: ({ value, isErrored, options, onChange, intl, placeholder, onKeyDown, }: InputSelectComponentProps) => JSX.Element;
5
- export declare const MedicalStatusComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "options">, any> & {
5
+ export declare const MedicalStatusComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "isRequired" | "options">, any> & {
6
6
  WrappedComponent: React.ComponentType<InputSelectComponentProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -6,7 +6,7 @@ interface PassedProps {
6
6
  label?: JSX.Element;
7
7
  }
8
8
  export declare const MemberId: ({ value, isErrored, onChange, explanation, intl, placeholder, isRequired, label, }: FormFieldComponentProps & PassedProps) => JSX.Element;
9
- export declare const MemberIdComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "label" | "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService" | "explanation">, any> & {
9
+ export declare const MemberIdComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService" | "explanation">, any> & {
10
10
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & PassedProps & ReactIntl.InjectedIntlProps>;
11
11
  };
12
12
  export {};
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps, VerificationServiceProps } from "../../../lib/types/types";
4
4
  export declare const MembershipOrganization: ({ value, isErrored, onChange, verificationService, intl, placeholder, }: FormFieldComponentProps & VerificationServiceProps) => JSX.Element;
5
- export declare const MembershipOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const MembershipOrganizationComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & VerificationServiceProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -2,6 +2,6 @@ import React from "react";
2
2
  import { InjectedIntlProps } from "react-intl";
3
3
  import { InputSelectComponentProps } from "../../../lib/types/types";
4
4
  export declare const MilitaryStatus: ({ value, isErrored, options, onChange, intl, placeholder, }: InputSelectComponentProps & InjectedIntlProps) => JSX.Element;
5
- export declare const MilitaryStatusComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "options">, any> & {
5
+ export declare const MilitaryStatusComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "isRequired" | "options">, any> & {
6
6
  WrappedComponent: React.ComponentType<InputSelectComponentProps & InjectedIntlProps>;
7
7
  };
@@ -12,7 +12,7 @@ interface PhoneNumberProps {
12
12
  internationalSupport?: boolean;
13
13
  selectedCountryCode?: string;
14
14
  }
15
- export declare const PhoneNumberComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PhoneNumberProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService" | "explanation" | "onCarrierConsentChange" | "displaySmsConsent" | "requireCarrierConsent" | "carrierConsent" | "internationalSupport" | "selectedCountryCode">, any> & {
15
+ export declare const PhoneNumberComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PhoneNumberProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService" | "explanation" | "onCarrierConsentChange" | "displaySmsConsent" | "requireCarrierConsent" | "carrierConsent" | "internationalSupport" | "selectedCountryCode">, any> & {
16
16
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & PhoneNumberProps & ReactIntl.InjectedIntlProps>;
17
17
  };
18
18
  export {};
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps } from "../../../lib/types/types";
4
4
  export declare const SMSCode: ({ onChange, value, isErrored, errorId, intl, placeholder, }: FormFieldComponentProps) => JSX.Element;
5
- export declare const SMSCodeComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const SMSCodeComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -1,12 +1,7 @@
1
1
  /// <reference types="react-intl" />
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps } from "../../../lib/types/types";
4
- interface PassedProps {
5
- explanation?: React.ReactNode;
6
- label?: React.ReactNode;
7
- }
8
- export declare const SocialSecurity: ({ value, isErrored, onChange, intl, explanation, placeholder, isRequired, label, }: FormFieldComponentProps & PassedProps) => JSX.Element;
9
- export declare const SocialSecurityNumber: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "label" | "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService" | "explanation">, any> & {
10
- WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & PassedProps & ReactIntl.InjectedIntlProps>;
4
+ export declare const SocialSecurity: ({ value, isErrored, onChange, intl, placeholder, }: FormFieldComponentProps<string>) => JSX.Element;
5
+ export declare const SocialSecurityNumber: React.ComponentClass<Pick<FormFieldComponentProps<string>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
+ WrappedComponent: React.ComponentType<FormFieldComponentProps<string> & ReactIntl.InjectedIntlProps>;
11
7
  };
12
- export {};
@@ -6,7 +6,7 @@ interface PassedProps {
6
6
  onKeyDown?: Function;
7
7
  }
8
8
  export declare const State: ({ value, isErrored, onChange, intl, onKeyDown, placeholder, }: FormFieldComponentProps & PassedProps) => JSX.Element;
9
- export declare const StateComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService" | "explanation">, any> & {
9
+ export declare const StateComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & PassedProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService" | "explanation">, any> & {
10
10
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & PassedProps & ReactIntl.InjectedIntlProps>;
11
11
  };
12
12
  export {};
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { InputSelectComponentProps } from "../../../lib/types/types";
4
4
  export declare const StateSelect: ({ value, isErrored, options, onChange, onKeyDown, intl, placeholder, label, isRequired, }: InputSelectComponentProps) => JSX.Element;
5
- export declare const StateSelectComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "options">, any> & {
5
+ export declare const StateSelectComponent: React.ComponentClass<Pick<InputSelectComponentProps, "label" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "isRequired" | "options">, any> & {
6
6
  WrappedComponent: React.ComponentType<InputSelectComponentProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -5,7 +5,7 @@ interface StatusComponentProps extends InputSelectComponentProps {
5
5
  segmentId: string;
6
6
  }
7
7
  export declare const Status: ({ value, isErrored, options, onChange, intl, placeholder, onKeyDown, segmentId, }: StatusComponentProps) => JSX.Element;
8
- export declare const StatusComponent: React.ComponentClass<Pick<StatusComponentProps, "label" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "options" | "segmentId">, any> & {
8
+ export declare const StatusComponent: React.ComponentClass<Pick<StatusComponentProps, "label" | "isErrored" | "onChange" | "onKeyDown" | "placeholder" | "value" | "isRequired" | "options" | "segmentId">, any> & {
9
9
  WrappedComponent: React.ComponentType<StatusComponentProps & ReactIntl.InjectedIntlProps>;
10
10
  };
11
11
  export {};
@@ -2,6 +2,6 @@
2
2
  import React from "react";
3
3
  import { FormFieldComponentProps, VerificationServiceProps } from "../../../lib/types/types";
4
4
  export declare const TeacherSchool: ({ value, isErrored, onChange, verificationService, intl, placeholder, }: FormFieldComponentProps & VerificationServiceProps) => JSX.Element;
5
- export declare const TeacherSchoolComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "errorId" | "isRequired" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "verificationService">, any> & {
5
+ export declare const TeacherSchoolComponent: React.ComponentClass<Pick<FormFieldComponentProps<any> & VerificationServiceProps, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
6
6
  WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & VerificationServiceProps & ReactIntl.InjectedIntlProps>;
7
7
  };
@@ -1,5 +1,4 @@
1
- import React, { AllHTMLAttributes } from "react";
2
- import { InjectedIntlProps } from "react-intl";
1
+ import React, { InputHTMLAttributes } from "react";
3
2
  export declare type InputTextProps = {
4
3
  id: string;
5
4
  isErrored: boolean;
@@ -13,20 +12,5 @@ export declare type InputTextProps = {
13
12
  ariaDescribedBy?: string;
14
13
  ariaLabel?: string;
15
14
  type?: "text" | "email" | "password" | "search" | "url" | "tel";
16
- } & AllHTMLAttributes<HTMLInputElement> & InjectedIntlProps;
17
- export declare const InputTextComponent: React.ComponentClass<Pick<{
18
- id: string;
19
- isErrored: boolean;
20
- className?: string;
21
- hidePlaceholder?: boolean;
22
- onChange?: React.ChangeEventHandler;
23
- onKeyDown?: React.ChangeEventHandler;
24
- ref?: never;
25
- refId?: string;
26
- required?: boolean;
27
- ariaDescribedBy?: string;
28
- ariaLabel?: string;
29
- type?: "text" | "email" | "password" | "search" | "url" | "tel";
30
- } & React.AllHTMLAttributes<HTMLInputElement>, "max" | "required" | "default" | "high" | "low" | "disabled" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "id" | "step" | "color" | "content" | "size" | "wrap" | "multiple" | "height" | "translate" | "width" | "prefix" | "src" | "ref" | "children" | "list" | "dangerouslySetInnerHTML" | "name" | "type" | "isErrored" | "className" | "hidePlaceholder" | "refId" | "ariaDescribedBy" | "ariaLabel" | "onChange" | "onKeyDown" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "value" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">, any> & {
31
- WrappedComponent: React.ComponentType<InputTextProps>;
32
- };
15
+ } & InputHTMLAttributes<HTMLInputElement>;
16
+ export declare const InputTextComponent: ({ id, isErrored, className, hidePlaceholder, refId, required, type, ariaDescribedBy, ariaLabel, ...props }: InputTextProps) => JSX.Element;
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * Step Member Personal Info Component
3
- * TODO - We need to import more from es6
4
3
  */
5
4
  import React from "react";
6
5
  import { InjectedIntl } from "react-intl";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { VerificationService } from "../../es6";
2
+ import { VerificationService } from "../../lib/types/types";
3
3
  interface StepCollectMilitaryStatusComponentProps {
4
4
  verificationService: VerificationService;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { MaxReviewTime, VerificationService, PendingResponse } from "../../es6";
2
+ import { MaxReviewTime, PendingResponse, VerificationService } from "../../lib/types/types";
3
3
  interface ReviewPendingProps {
4
4
  intl: any;
5
5
  logo: JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { VerificationService } from "../lib/types/types";
3
- interface TryAgainButtonComponentProps {
3
+ export interface TryAgainButtonComponentProps {
4
4
  verificationService: VerificationService;
5
5
  }
6
6
  declare const TryAgainButtonComponent: ({ verificationService }: TryAgainButtonComponentProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
package/src/es6.d.ts CHANGED
@@ -53,6 +53,9 @@ export { StateSelectComponent } from "./components/FormFields/State/StateSelectC
53
53
  export { SMSCodeComponent } from "./components/FormFields/SMSCode/SMSCodeComponent";
54
54
  export { SocialSecurityNumber } from "./components/FormFields/SSN/SSN";
55
55
  export { DriverLicenseNumberComponent } from "./components/FormFields/DriverLicenseNumber/DriverLicenseNumberComponent";
56
+ export { FormFieldCustom } from "./components/FormFields/FormFieldCustom/FormFieldCustom";
57
+ export { FormFieldText } from "./components/FormFields/FormFieldText/FormFieldText";
58
+ export { FormFieldLayout } from "./components/FormFields/FormFieldLayout/FormFieldLayout";
56
59
  export { AcceptableUploadsComponent } from "./components/AcceptableUploadsComponent/AcceptableUploadsComponent";
57
60
  export { UploadInfoComponent } from "./components/UploadInfoComponent/UploadInfoComponent";
58
61
  export { PoweredByComponent } from "./components/PoweredBy/PoweredByComponent";
@@ -1,5 +1,5 @@
1
1
  import { fetchExistingVerificationRequest } from "./VerificationApiClient/fetchExistingVerificationRequest";
2
- import { DatabaseId, ErrorResponse, ViewModel, VerificationResponse, VerificationStep, ProgramTheme, MemberPersonalInfoRequest, MemberPersonalInfoViewModel, FirstResponderPersonalInfoRequest, FirstResponderPersonalInfoViewModel, NetworkErrorId, Locale, CollectFieldsResponse } from "../types/types";
2
+ import { DatabaseId, ErrorResponse, ViewModel, VerificationResponse, VerificationStep, ProgramTheme, MemberPersonalInfoRequest, MemberPersonalInfoViewModel, FirstResponderPersonalInfoRequest, FirstResponderPersonalInfoViewModel, NetworkErrorId, LowIncomePersonalInfoRequest, LowIncomePersonalInfoViewModel, Locale, CollectFieldsResponse } from "../types/types";
3
3
  /**
4
4
  * Initiate a new verification attempt with the SheerID REST service.
5
5
  *
@@ -13,6 +13,7 @@ declare function getResendNewEmailCode(verificationId: DatabaseId): Promise<any>
13
13
  export declare function getMockVerificationRequestErrorResponse(errorId: NetworkErrorId): VerificationResponse;
14
14
  export declare const memberViewModelToRequest: (viewModel: MemberPersonalInfoViewModel) => MemberPersonalInfoRequest;
15
15
  export declare const firstResponderViewModelToRequest: (viewModel: FirstResponderPersonalInfoViewModel) => FirstResponderPersonalInfoRequest;
16
+ export declare const lowIncomeViewModelToRequest: (viewModel: LowIncomePersonalInfoViewModel) => LowIncomePersonalInfoRequest;
16
17
  declare function submitStep(stepName: VerificationStep, previousResponse: VerificationResponse, viewModel: ViewModel): Promise<VerificationResponse | ErrorResponse>;
17
18
  /**
18
19
  * EXPERIMENTAL - Check which fields are required and optional for a given view model
@@ -1,4 +1,4 @@
1
- import { ViewModel } from "../types/types";
1
+ import { IframeUserConfiguration, ViewModel } from "../types/types";
2
2
  import Iframe from "./iframe";
3
3
  declare class Modal {
4
4
  verificationUrl: string;
@@ -10,9 +10,9 @@ declare class Modal {
10
10
  closeButtonText: string;
11
11
  closeButton: HTMLButtonElement;
12
12
  stopPropagation: boolean;
13
- constructor(url: string, userConfig: any);
13
+ constructor(url: string, userConfig: IframeUserConfiguration);
14
14
  createCloseBtn(): HTMLButtonElement;
15
- closeModal(historyEventTrigger?: boolean): void;
15
+ closeModal(): void;
16
16
  static createOverlay(): HTMLElement;
17
17
  createWrapper(): HTMLElement;
18
18
  popStateEventHandler: () => void;
@@ -92,6 +92,7 @@ export declare enum SubSegmentEnum {
92
92
  LICENSED_REAL_ESTATE_AGENT = "licensedRealEstateAgent",
93
93
  VETERINARIAN = "Veterinarian",
94
94
  SNAP_BENEFITS = "snapBenefits",
95
+ OTHER_GOVERNMENT_ASSISTANCE = "otherGovernmentAssistance",
95
96
  CHILD_CARE_WORKER = "childCareWorker"
96
97
  }
97
98
  export declare const SubSegments: any;
@@ -121,7 +122,8 @@ export declare enum RecentMoverStatusDefaultMessagesEnum {
121
122
  OTHER_MOVER = "Other Mover"
122
123
  }
123
124
  export declare enum LowIncomeStatusDefaultMessagesEnum {
124
- SNAP_BENEFITS = "Snap Benefits Recipient"
125
+ SNAP_BENEFITS = "Snap Benefits Recipient",
126
+ OTHER_GOVERNMENT_ASSISTANCE = "Other Government Assistance Recipient"
125
127
  }
126
128
  export declare const MilitaryStatusDefaultMessages: any;
127
129
  export declare const FirstResponderStatusDefaultMessages: any;
@@ -148,7 +150,8 @@ export declare enum FieldIdEnum {
148
150
  marketConsentValue = "marketConsentValue",
149
151
  socialSecurityNumber = "socialSecurityNumber",
150
152
  carrierConsentValue = "carrierConsentValue",
151
- driverLicenseNumber = "driverLicenseNumber"
153
+ driverLicenseNumber = "driverLicenseNumber",
154
+ ebtCardNumber = "ebtCardNumber"
152
155
  }
153
156
  export declare const FieldIds: any;
154
157
  export declare enum HookNameEnum {