@gusto/embedded-react-sdk 0.35.0-rc.4 → 0.36.0-rc.1

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 (625) hide show
  1. package/CHANGELOG.md +20 -11
  2. package/README.md +2 -0
  3. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  4. package/dist/UNSTABLE_Hooks.js +48 -6
  5. package/dist/UNSTABLE_Hooks.js.map +1 -1
  6. package/dist/components/Base/Base.d.ts +8 -9
  7. package/dist/components/Base/Base.js +123 -102
  8. package/dist/components/Base/Base.js.map +1 -1
  9. package/dist/components/Base/index.d.ts +1 -1
  10. package/dist/components/Base/useBase.d.ts +3 -7
  11. package/dist/components/Base/useBase.js.map +1 -1
  12. package/dist/components/Base/useBaseSubmit.d.ts +3 -5
  13. package/dist/components/Base/useBaseSubmit.js +27 -50
  14. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  15. package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
  16. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +17 -16
  17. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  18. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
  19. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +46 -36
  20. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  21. package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
  22. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +21 -20
  23. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  24. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +3 -1
  25. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +20 -19
  26. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  27. package/dist/components/Common/Fields/SelectField/SelectField.d.ts +3 -1
  28. package/dist/components/Common/Fields/SelectField/SelectField.js +19 -18
  29. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  30. package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +2 -0
  31. package/dist/components/Common/Fields/SwitchField/SwitchField.js +19 -18
  32. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  33. package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
  34. package/dist/components/Common/Fields/TextInputField/TextInputField.js +10 -9
  35. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  36. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
  37. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  38. package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -14
  39. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  40. package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -19
  41. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  42. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +2 -2
  43. package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
  44. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  45. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -10
  46. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  47. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -11
  48. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  49. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
  50. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  51. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
  52. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  53. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -5
  54. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -9
  55. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  56. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
  57. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  58. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -14
  59. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  60. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -5
  61. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
  62. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  63. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -5
  64. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -11
  65. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  66. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
  67. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  68. package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -5
  69. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -13
  70. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  71. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +12 -15
  72. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  73. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
  74. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  75. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -8
  76. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  77. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
  78. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  79. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -5
  80. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  81. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  82. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +5 -5
  83. package/dist/components/Company/FederalTaxes/Actions.js +8 -11
  84. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  85. package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -19
  86. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  87. package/dist/components/Company/FederalTaxes/Form.js +6 -8
  88. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  89. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -5
  90. package/dist/components/Company/Industry/Actions.js +8 -11
  91. package/dist/components/Company/Industry/Actions.js.map +1 -1
  92. package/dist/components/Company/Industry/Context.js +5 -5
  93. package/dist/components/Company/Industry/Edit.js +10 -14
  94. package/dist/components/Company/Industry/Edit.js.map +1 -1
  95. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -11
  96. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  97. package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
  98. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  99. package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
  100. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  101. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -5
  102. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -9
  103. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  104. package/dist/components/Company/Locations/LocationsList/List.js +17 -19
  105. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  106. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
  107. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  108. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -5
  109. package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
  110. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  111. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
  112. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  113. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
  114. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  115. package/dist/components/Company/OnboardingOverview/context.js +5 -5
  116. package/dist/components/Company/PaySchedule/PaySchedule.js +60 -63
  117. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  118. package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -13
  119. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  120. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  121. package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
  122. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  123. package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
  124. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  125. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -5
  126. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -8
  127. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  128. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -5
  129. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -9
  130. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  131. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -8
  132. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  133. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -5
  134. package/dist/components/Contractor/Address/Address.js +3 -7
  135. package/dist/components/Contractor/Address/Address.js.map +1 -1
  136. package/dist/components/Contractor/Address/Form.js +6 -8
  137. package/dist/components/Contractor/Address/Form.js.map +1 -1
  138. package/dist/components/Contractor/Address/useAddress.js +5 -5
  139. package/dist/components/Contractor/ContractorList/index.js +29 -30
  140. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  141. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  142. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  143. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -14
  144. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  145. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  146. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  147. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
  148. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  149. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +12 -14
  150. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  151. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  152. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
  153. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  154. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -4
  155. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  156. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
  157. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  158. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
  159. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  160. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +2 -4
  161. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  162. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +2 -5
  163. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  164. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  165. package/dist/components/Contractor/Profile/useContractorProfile.js +33 -31
  166. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  167. package/dist/components/Contractor/Submit/Submit.js +20 -22
  168. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  169. package/dist/components/Employee/Compensation/Actions.js +12 -14
  170. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  171. package/dist/components/Employee/Compensation/Edit.js +27 -28
  172. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  173. package/dist/components/Employee/Compensation/List.js +23 -25
  174. package/dist/components/Employee/Compensation/List.js.map +1 -1
  175. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +12 -12
  176. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +13 -13
  177. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +13 -13
  178. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
  179. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  180. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -7
  181. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  182. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -9
  183. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  184. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
  185. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  186. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
  187. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  188. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +5 -5
  189. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
  190. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  191. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +9 -11
  192. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  193. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  194. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  195. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +5 -5
  196. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
  197. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  198. package/dist/components/Employee/EmployeeList/Actions.js +6 -9
  199. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  200. package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -7
  201. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  202. package/dist/components/Employee/EmployeeList/Head.js +5 -8
  203. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  204. package/dist/components/Employee/EmployeeList/List.js +16 -17
  205. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  206. package/dist/components/Employee/EmployeeList/useEmployeeList.js +5 -5
  207. package/dist/components/Employee/FederalTaxes/Actions.js +7 -10
  208. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  209. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -13
  210. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  211. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +42 -42
  212. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
  213. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +5 -5
  214. package/dist/components/Employee/Landing/Landing.js +14 -15
  215. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  216. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  217. package/dist/components/Employee/PaymentMethod/Actions.js +8 -11
  218. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  219. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
  220. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  221. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -10
  222. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  223. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
  224. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  225. package/dist/components/Employee/PaymentMethod/Split.js +9 -10
  226. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  227. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -5
  228. package/dist/components/Employee/Profile/Actions.js +8 -11
  229. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  230. package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -17
  231. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  232. package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
  233. package/dist/components/Employee/Profile/HomeAddress.js +45 -44
  234. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  235. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -13
  236. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  237. package/dist/components/Employee/Profile/Profile.js +30 -29
  238. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  239. package/dist/components/Employee/Profile/useProfile.js +5 -5
  240. package/dist/components/Employee/StateTaxes/Actions.js +8 -11
  241. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  242. package/dist/components/Employee/StateTaxes/StateTaxes.js +50 -50
  243. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
  244. package/dist/components/Employee/StateTaxes/useStateTaxes.js +5 -5
  245. package/dist/components/Employee/Taxes/Actions.js +8 -11
  246. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  247. package/dist/components/Employee/Taxes/FederalForm.js +10 -13
  248. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  249. package/dist/components/Employee/Taxes/Taxes.js +53 -53
  250. package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
  251. package/dist/components/Employee/Taxes/useTaxes.js +5 -5
  252. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +11 -0
  253. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +123 -0
  254. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -0
  255. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +11 -0
  256. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +89 -0
  257. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -0
  258. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +2 -0
  259. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +30 -0
  260. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -0
  261. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +23 -0
  262. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +70 -0
  263. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -0
  264. package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +3 -0
  265. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +7 -0
  266. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +165 -0
  267. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -0
  268. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.test.d.ts +1 -0
  269. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +9 -0
  270. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +86 -0
  271. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -0
  272. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +20 -0
  273. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +100 -0
  274. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -0
  275. package/dist/components/Employee/Terminations/TerminationsData.d.ts +6 -0
  276. package/dist/components/Employee/Terminations/index.d.ts +8 -0
  277. package/dist/components/Employee/Terminations/types.d.ts +1 -0
  278. package/dist/components/Employee/index.d.ts +7 -0
  279. package/dist/components/Employee/index.js +34 -28
  280. package/dist/components/Employee/index.js.map +1 -1
  281. package/dist/components/Flow/Flow.js +20 -23
  282. package/dist/components/Flow/Flow.js.map +1 -1
  283. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
  284. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  285. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
  286. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  287. package/dist/components/InformationRequests/InformationRequests.js +34 -35
  288. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  289. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +41 -41
  290. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  291. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -10
  292. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  293. package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +2 -0
  294. package/dist/components/Payroll/Dismissal/DismissalFlow.js +32 -0
  295. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -0
  296. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +16 -0
  297. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +52 -0
  298. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -0
  299. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +6 -0
  300. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +69 -0
  301. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -0
  302. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +9 -0
  303. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +50 -0
  304. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -0
  305. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/index.d.ts +3 -0
  306. package/dist/components/Payroll/Dismissal/dismissalStateMachine.d.ts +6 -0
  307. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +51 -0
  308. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -0
  309. package/dist/components/Payroll/Dismissal/dismissalStateMachine.test.d.ts +1 -0
  310. package/dist/components/Payroll/Dismissal/index.d.ts +3 -0
  311. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +25 -23
  312. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  313. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  314. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +19 -18
  315. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  316. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +3 -0
  317. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +32 -24
  318. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  319. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +45 -45
  320. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  321. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
  322. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +75 -68
  323. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  324. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js +8 -0
  325. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js.map +1 -0
  326. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +0 -1
  327. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +5 -9
  328. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  329. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +4 -4
  330. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +2 -2
  331. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  332. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +1 -0
  333. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +1 -0
  334. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  335. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -9
  336. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  337. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -14
  338. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  339. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
  340. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  341. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  342. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +186 -159
  343. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  344. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -3
  345. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +71 -71
  346. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  347. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +3 -2
  348. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +8 -8
  349. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -1
  350. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +5 -3
  351. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +76 -70
  352. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  353. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +47 -42
  354. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  355. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +4 -2
  356. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +235 -196
  357. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  358. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +19 -21
  359. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  360. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -0
  361. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +12 -0
  362. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -0
  363. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
  364. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  365. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -0
  366. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +21 -0
  367. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -0
  368. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  369. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +95 -64
  370. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  371. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +53 -47
  372. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  373. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +38 -40
  374. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  375. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +25 -23
  376. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  377. package/dist/components/Payroll/PayrollList/PayrollList.js +40 -32
  378. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  379. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
  380. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +110 -95
  381. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  382. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +12 -8
  383. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  384. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +2 -3
  385. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  386. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +4 -4
  387. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
  388. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  389. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
  390. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  391. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
  392. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  393. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
  394. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  395. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
  396. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  397. package/dist/components/Payroll/Transition/TransitionFlow.d.ts +2 -0
  398. package/dist/components/Payroll/Transition/TransitionFlow.js +38 -0
  399. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -0
  400. package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +19 -0
  401. package/dist/components/Payroll/Transition/TransitionFlowComponents.js +54 -0
  402. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -0
  403. package/dist/components/Payroll/Transition/index.d.ts +3 -0
  404. package/dist/components/Payroll/Transition/transitionStateMachine.d.ts +6 -0
  405. package/dist/components/Payroll/Transition/transitionStateMachine.js +58 -0
  406. package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -0
  407. package/dist/components/Payroll/Transition/transitionStateMachine.test.d.ts +1 -0
  408. package/dist/components/Payroll/TransitionCreation/TransitionCreation.d.ts +2 -0
  409. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +92 -0
  410. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -0
  411. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +2 -0
  412. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +109 -0
  413. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -0
  414. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js +8 -0
  415. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +1 -0
  416. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +28 -0
  417. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +21 -0
  418. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -0
  419. package/dist/components/Payroll/TransitionCreation/index.d.ts +3 -0
  420. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +8 -0
  421. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +83 -0
  422. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -0
  423. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +16 -0
  424. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +100 -0
  425. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -0
  426. package/dist/components/Payroll/TransitionPayrollAlert/index.d.ts +2 -0
  427. package/dist/components/Payroll/helpers.d.ts +2 -1
  428. package/dist/components/Payroll/helpers.js +98 -87
  429. package/dist/components/Payroll/helpers.js.map +1 -1
  430. package/dist/components/Payroll/index.d.ts +6 -0
  431. package/dist/components/Payroll/index.js +32 -26
  432. package/dist/components/Payroll/index.js.map +1 -1
  433. package/dist/components/Payroll/payrollTypes.d.ts +21 -0
  434. package/dist/components/Payroll/payrollTypes.js +27 -0
  435. package/dist/components/Payroll/payrollTypes.js.map +1 -0
  436. package/dist/components/Payroll/usePreparedPayrollData.js +6 -7
  437. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  438. package/dist/components/UNSTABLE_Hooks/collectErrors.d.ts +6 -0
  439. package/dist/components/UNSTABLE_Hooks/collectErrors.js +9 -0
  440. package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +1 -0
  441. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +8 -0
  442. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +13 -0
  443. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -0
  444. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +10 -0
  445. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js +13 -0
  446. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -0
  447. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +23 -0
  448. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js +24 -0
  449. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -0
  450. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +26 -0
  451. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +24 -0
  452. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +1 -0
  453. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.d.ts +53 -0
  454. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +34 -0
  455. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +1 -0
  456. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts +1 -0
  457. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +3 -0
  458. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +14 -0
  459. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -0
  460. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.test.d.ts +1 -0
  461. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +9 -0
  462. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +29 -0
  463. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -0
  464. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +9 -0
  465. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +29 -0
  466. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
  467. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +12 -0
  468. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +35 -0
  469. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -0
  470. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +10 -0
  471. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +35 -0
  472. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -0
  473. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +10 -0
  474. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +35 -0
  475. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -0
  476. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +9 -0
  477. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +29 -0
  478. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -0
  479. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +11 -0
  480. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +33 -0
  481. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -0
  482. package/dist/components/UNSTABLE_Hooks/form/fields/index.d.ts +15 -0
  483. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +2 -0
  484. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js +8 -0
  485. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -0
  486. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.d.ts +18 -0
  487. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js +10 -0
  488. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +1 -0
  489. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts +1 -0
  490. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +14 -0
  491. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +6 -0
  492. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +14 -0
  493. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +1 -0
  494. package/dist/components/UNSTABLE_Hooks/form/types.d.ts +27 -0
  495. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +2 -0
  496. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +17 -0
  497. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -0
  498. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +4 -0
  499. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +9 -0
  500. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -0
  501. package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +5 -0
  502. package/dist/components/UNSTABLE_Hooks/form/withOptions.js +7 -0
  503. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -0
  504. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +5 -0
  505. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +149 -0
  506. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -0
  507. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +97 -0
  508. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +121 -0
  509. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -0
  510. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +34 -0
  511. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js +50 -0
  512. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -0
  513. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +7 -0
  514. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +104 -0
  515. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +259 -0
  516. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -0
  517. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +5 -0
  518. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +112 -0
  519. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -0
  520. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +39 -0
  521. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +45 -0
  522. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
  523. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +23 -0
  524. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +46 -0
  525. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -0
  526. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +7 -0
  527. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +77 -0
  528. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +153 -0
  529. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
  530. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +5 -0
  531. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +69 -0
  532. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -0
  533. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +10 -0
  534. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js +14 -0
  535. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -0
  536. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +7 -0
  537. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +68 -0
  538. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +129 -0
  539. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
  540. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +25 -0
  541. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +24 -0
  542. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -0
  543. package/dist/components/UNSTABLE_Hooks/index.d.ts +9 -0
  544. package/dist/components/UNSTABLE_Hooks/types.d.ts +49 -0
  545. package/dist/components/UNSTABLE_Hooks/useErrorHandling.d.ts +9 -0
  546. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js +12 -0
  547. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +1 -0
  548. package/dist/components/UNSTABLE_Hooks/useErrorHandling.test.d.ts +1 -0
  549. package/dist/contexts/ApiProvider/ApiProvider.js +11 -11
  550. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  551. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +43 -50
  552. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  553. package/dist/contexts/ObservabilityProvider/index.d.ts +1 -1
  554. package/dist/contexts/ObservabilityProvider/sanitization.d.ts +0 -14
  555. package/dist/contexts/ObservabilityProvider/sanitization.js +51 -51
  556. package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -1
  557. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +0 -3
  558. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -1
  559. package/dist/helpers/requiredIf.d.ts +13 -0
  560. package/dist/helpers/requiredIf.js +8 -0
  561. package/dist/helpers/requiredIf.js.map +1 -0
  562. package/dist/i18n/I18n.js +13 -13
  563. package/dist/i18n/I18n.js.map +1 -1
  564. package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js +18 -0
  565. package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js.map +1 -0
  566. package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js +12 -0
  567. package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js.map +1 -0
  568. package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js +20 -0
  569. package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js.map +1 -0
  570. package/dist/i18n/en/Payroll.Dismissal.json.js +22 -0
  571. package/dist/i18n/en/Payroll.Dismissal.json.js.map +1 -0
  572. package/dist/i18n/en/Payroll.OffCycleCreation.json.js +15 -11
  573. package/dist/i18n/en/Payroll.OffCycleCreation.json.js.map +1 -1
  574. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +1 -1
  575. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +20 -18
  576. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  577. package/dist/i18n/en/Payroll.PayrollList.json.js +20 -18
  578. package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
  579. package/dist/i18n/en/Payroll.Transition.json.js +8 -0
  580. package/dist/i18n/en/Payroll.Transition.json.js.map +1 -0
  581. package/dist/i18n/en/Payroll.TransitionCreation.json.js +26 -0
  582. package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +1 -0
  583. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +18 -0
  584. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -0
  585. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +58 -0
  586. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +1 -0
  587. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +34 -0
  588. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +1 -0
  589. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +24 -0
  590. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +1 -0
  591. package/dist/i18n/en/common.json.d.ts +2 -1
  592. package/dist/i18n/en/common.json.js +9 -9
  593. package/dist/index.d.ts +3 -2
  594. package/dist/index.js +14 -13
  595. package/dist/models/WA_RISK_CODES.d.ts +5 -2866
  596. package/dist/models/WA_RISK_CODES.js.map +1 -1
  597. package/dist/shared/constants.d.ts +32 -0
  598. package/dist/shared/constants.js +83 -65
  599. package/dist/shared/constants.js.map +1 -1
  600. package/dist/style.css +1 -1
  601. package/dist/types/i18next.d.ts +279 -1
  602. package/dist/types/observability.d.ts +31 -65
  603. package/dist/types/sdkError.d.ts +97 -0
  604. package/dist/types/sdkError.js +95 -0
  605. package/dist/types/sdkError.js.map +1 -0
  606. package/dist/types/sdkError.test.d.ts +1 -0
  607. package/docs/reference/endpoint-inventory.json +212 -14
  608. package/package.json +16 -16
  609. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts +0 -6
  610. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js +0 -70
  611. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js.map +0 -1
  612. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +0 -7
  613. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js +0 -6
  614. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +0 -1
  615. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.d.ts +0 -9
  616. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js +0 -40
  617. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js.map +0 -1
  618. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/index.d.ts +0 -5
  619. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.d.ts +0 -2
  620. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js +0 -12
  621. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js.map +0 -1
  622. package/dist/components/Payroll/UNSTABLE_PayrollHooks/index.d.ts +0 -2
  623. package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +0 -5
  624. package/dist/contexts/ObservabilityProvider/observabilityUtils.js +0 -45
  625. package/dist/contexts/ObservabilityProvider/observabilityUtils.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioGroupHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { BaseFieldProps, ValidationMessages } from '../types'\nimport { useFieldsMetadata } from '../useFieldsMetadata'\nimport { useFieldErrorMessage } from '../useFieldErrorMessage'\nimport { getFieldWithOptions } from '../getFieldWithOptions'\nimport { RadioGroupField } from '@/components/Common'\nimport type { RadioGroupProps } from '@/components/Common/UI/RadioGroup/RadioGroupTypes'\n\nexport interface RadioGroupHookFieldProps<\n TErrorCode extends string = never,\n TEntry = unknown,\n> extends BaseFieldProps {\n name: string\n validationMessages?: ValidationMessages<TErrorCode>\n getOptionLabel?: (entry: TEntry) => string\n FieldComponent?: ComponentType<RadioGroupProps>\n}\n\nexport function RadioGroupHookField<TErrorCode extends string, TEntry = unknown>({\n name,\n label,\n description,\n validationMessages,\n getOptionLabel,\n FieldComponent,\n}: RadioGroupHookFieldProps<TErrorCode, TEntry>) {\n const metadata = useFieldsMetadata()\n const fieldMetadata = getFieldWithOptions<TEntry>(metadata, name)\n const errorMessage = useFieldErrorMessage(name, validationMessages)\n\n const defaultOptions = fieldMetadata?.options ?? []\n const options =\n getOptionLabel && fieldMetadata?.entries\n ? fieldMetadata.entries.map((entry, index) => ({\n value: defaultOptions[index]?.value ?? '',\n label: getOptionLabel(entry),\n }))\n : defaultOptions\n\n return (\n <RadioGroupField\n name={name}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n options={options}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["RadioGroupHookField","name","label","description","validationMessages","getOptionLabel","FieldComponent","metadata","useFieldsMetadata","fieldMetadata","getFieldWithOptions","errorMessage","useFieldErrorMessage","defaultOptions","options","entry","index","jsx","RadioGroupField"],"mappings":";;;;;AAkBO,SAASA,EAAiE;AAAA,EAC/E,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AACF,GAAiD;AAC/C,QAAMC,IAAWC,EAAA,GACXC,IAAgBC,EAA4BH,GAAUN,CAAI,GAC1DU,IAAeC,EAAqBX,GAAMG,CAAkB,GAE5DS,IAAiBJ,GAAe,WAAW,CAAA,GAC3CK,IACJT,KAAkBI,GAAe,UAC7BA,EAAc,QAAQ,IAAI,CAACM,GAAOC,OAAW;AAAA,IAC3C,OAAOH,EAAeG,CAAK,GAAG,SAAS;AAAA,IACvC,OAAOX,EAAeU,CAAK;AAAA,EAAA,EAC3B,IACFF;AAEN,SACE,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAjB;AAAA,MACA,OAAAC;AAAA,MACA,aAAAC;AAAA,MACA,cAAAQ;AAAA,MACA,YAAYF,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,SAAAK;AAAA,MACA,gBAAAR;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -0,0 +1,10 @@
1
+ import { ComponentType } from 'react';
2
+ import { BaseFieldProps, ValidationMessages } from '../types';
3
+ import { SelectProps } from '../../../Common/UI/Select/SelectTypes';
4
+ export interface SelectHookFieldProps<TErrorCode extends string = never, TEntry = unknown> extends BaseFieldProps {
5
+ name: string;
6
+ validationMessages?: ValidationMessages<TErrorCode>;
7
+ getOptionLabel?: (entry: TEntry) => string;
8
+ FieldComponent?: ComponentType<SelectProps>;
9
+ }
10
+ export declare function SelectHookField<TErrorCode extends string, TEntry = unknown>({ name, label, description, validationMessages, getOptionLabel, FieldComponent, }: SelectHookFieldProps<TErrorCode, TEntry>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { useFieldsMetadata as f } from "../useFieldsMetadata.js";
3
+ import { useFieldErrorMessage as F } from "../useFieldErrorMessage.js";
4
+ import { getFieldWithOptions as M } from "../getFieldWithOptions.js";
5
+ import { SelectField as b } from "../../../Common/Fields/SelectField/SelectField.js";
6
+ function R({
7
+ name: t,
8
+ label: s,
9
+ description: r,
10
+ validationMessages: a,
11
+ getOptionLabel: i,
12
+ FieldComponent: d
13
+ }) {
14
+ const l = f(), e = M(l, t), n = F(t, a), o = e?.options ?? [], m = i && e?.entries ? e.entries.map((p, u) => ({
15
+ value: o[u]?.value ?? "",
16
+ label: i(p)
17
+ })) : o;
18
+ return /* @__PURE__ */ c(
19
+ b,
20
+ {
21
+ name: t,
22
+ label: s,
23
+ description: r,
24
+ errorMessage: n,
25
+ isRequired: e?.isRequired,
26
+ isDisabled: e?.isDisabled,
27
+ options: m,
28
+ FieldComponent: d
29
+ }
30
+ );
31
+ }
32
+ export {
33
+ R as SelectHookField
34
+ };
35
+ //# sourceMappingURL=SelectHookField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/SelectHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { BaseFieldProps, ValidationMessages } from '../types'\nimport { useFieldsMetadata } from '../useFieldsMetadata'\nimport { useFieldErrorMessage } from '../useFieldErrorMessage'\nimport { getFieldWithOptions } from '../getFieldWithOptions'\nimport { SelectField } from '@/components/Common'\nimport type { SelectProps } from '@/components/Common/UI/Select/SelectTypes'\n\nexport interface SelectHookFieldProps<\n TErrorCode extends string = never,\n TEntry = unknown,\n> extends BaseFieldProps {\n name: string\n validationMessages?: ValidationMessages<TErrorCode>\n getOptionLabel?: (entry: TEntry) => string\n FieldComponent?: ComponentType<SelectProps>\n}\n\nexport function SelectHookField<TErrorCode extends string, TEntry = unknown>({\n name,\n label,\n description,\n validationMessages,\n getOptionLabel,\n FieldComponent,\n}: SelectHookFieldProps<TErrorCode, TEntry>) {\n const metadata = useFieldsMetadata()\n const fieldMetadata = getFieldWithOptions<TEntry>(metadata, name)\n const errorMessage = useFieldErrorMessage(name, validationMessages)\n\n const defaultOptions = fieldMetadata?.options ?? []\n const options =\n getOptionLabel && fieldMetadata?.entries\n ? fieldMetadata.entries.map((entry, index) => ({\n value: defaultOptions[index]?.value ?? '',\n label: getOptionLabel(entry),\n }))\n : defaultOptions\n\n return (\n <SelectField\n name={name}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n options={options}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["SelectHookField","name","label","description","validationMessages","getOptionLabel","FieldComponent","metadata","useFieldsMetadata","fieldMetadata","getFieldWithOptions","errorMessage","useFieldErrorMessage","defaultOptions","options","entry","index","jsx","SelectField"],"mappings":";;;;;AAkBO,SAASA,EAA6D;AAAA,EAC3E,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AACF,GAA6C;AAC3C,QAAMC,IAAWC,EAAA,GACXC,IAAgBC,EAA4BH,GAAUN,CAAI,GAC1DU,IAAeC,EAAqBX,GAAMG,CAAkB,GAE5DS,IAAiBJ,GAAe,WAAW,CAAA,GAC3CK,IACJT,KAAkBI,GAAe,UAC7BA,EAAc,QAAQ,IAAI,CAACM,GAAOC,OAAW;AAAA,IAC3C,OAAOH,EAAeG,CAAK,GAAG,SAAS;AAAA,IACvC,OAAOX,EAAeU,CAAK;AAAA,EAAA,EAC3B,IACFF;AAEN,SACE,gBAAAI;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAjB;AAAA,MACA,OAAAC;AAAA,MACA,aAAAC;AAAA,MACA,cAAAQ;AAAA,MACA,YAAYF,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,SAAAK;AAAA,MACA,gBAAAR;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -0,0 +1,9 @@
1
+ import { ComponentType } from 'react';
2
+ import { BaseFieldProps, ValidationMessages } from '../types';
3
+ import { SwitchProps } from '../../../Common/UI/Switch/SwitchTypes';
4
+ export interface SwitchHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {
5
+ name: string;
6
+ validationMessages?: ValidationMessages<TErrorCode>;
7
+ FieldComponent?: ComponentType<SwitchProps>;
8
+ }
9
+ export declare function SwitchHookField<TErrorCode extends string>({ name, label, description, validationMessages, FieldComponent, }: SwitchHookFieldProps<TErrorCode>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { useFieldsMetadata as m } from "../useFieldsMetadata.js";
3
+ import { useFieldErrorMessage as l } from "../useFieldErrorMessage.js";
4
+ import { SwitchField as c } from "../../../Common/Fields/SwitchField/SwitchField.js";
5
+ function M({
6
+ name: e,
7
+ label: t,
8
+ description: r,
9
+ validationMessages: o,
10
+ FieldComponent: s
11
+ }) {
12
+ const i = m()[e], a = l(e, o);
13
+ return /* @__PURE__ */ d(
14
+ c,
15
+ {
16
+ name: e,
17
+ label: t,
18
+ description: r,
19
+ errorMessage: a,
20
+ isRequired: i?.isRequired,
21
+ isDisabled: i?.isDisabled,
22
+ FieldComponent: s
23
+ }
24
+ );
25
+ }
26
+ export {
27
+ M as SwitchHookField
28
+ };
29
+ //# sourceMappingURL=SwitchHookField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/SwitchHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { BaseFieldProps, ValidationMessages } from '../types'\nimport { useFieldsMetadata } from '../useFieldsMetadata'\nimport { useFieldErrorMessage } from '../useFieldErrorMessage'\nimport { SwitchField } from '@/components/Common'\nimport type { SwitchProps } from '@/components/Common/UI/Switch/SwitchTypes'\n\nexport interface SwitchHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {\n name: string\n validationMessages?: ValidationMessages<TErrorCode>\n FieldComponent?: ComponentType<SwitchProps>\n}\n\nexport function SwitchHookField<TErrorCode extends string>({\n name,\n label,\n description,\n validationMessages,\n FieldComponent,\n}: SwitchHookFieldProps<TErrorCode>) {\n const metadata = useFieldsMetadata()\n const fieldMetadata = metadata[name]\n const errorMessage = useFieldErrorMessage(name, validationMessages)\n\n return (\n <SwitchField\n name={name}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["SwitchHookField","name","label","description","validationMessages","FieldComponent","fieldMetadata","useFieldsMetadata","errorMessage","useFieldErrorMessage","jsx","SwitchField"],"mappings":";;;;AAaO,SAASA,EAA2C;AAAA,EACzD,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,gBAAAC;AACF,GAAqC;AAEnC,QAAMC,IADWC,EAAA,EACcN,CAAI,GAC7BO,IAAeC,EAAqBR,GAAMG,CAAkB;AAElE,SACE,gBAAAM;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAV;AAAA,MACA,OAAAC;AAAA,MACA,aAAAC;AAAA,MACA,cAAAK;AAAA,MACA,YAAYF,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,gBAAAD;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -0,0 +1,11 @@
1
+ import { ComponentType } from 'react';
2
+ import { BaseFieldProps, ValidationMessages } from '../types';
3
+ import { TextInputProps } from '../../../Common/UI/TextInput/TextInputTypes';
4
+ export interface TextInputHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {
5
+ name: string;
6
+ validationMessages?: ValidationMessages<TErrorCode>;
7
+ transform?: (value: string) => string;
8
+ placeholder?: string;
9
+ FieldComponent?: ComponentType<TextInputProps>;
10
+ }
11
+ export declare function TextInputHookField<TErrorCode extends string>({ name, label, description, validationMessages, transform, placeholder, FieldComponent, }: TextInputHookFieldProps<TErrorCode>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { useFieldsMetadata as l } from "../useFieldsMetadata.js";
3
+ import { useFieldErrorMessage as p } from "../useFieldErrorMessage.js";
4
+ import { TextInputField as f } from "../../../Common/Fields/TextInputField/TextInputField.js";
5
+ function b({
6
+ name: e,
7
+ label: r,
8
+ description: i,
9
+ validationMessages: o,
10
+ transform: s,
11
+ placeholder: a,
12
+ FieldComponent: d
13
+ }) {
14
+ const t = l()[e], m = p(e, o);
15
+ return /* @__PURE__ */ u(
16
+ f,
17
+ {
18
+ name: e,
19
+ label: r,
20
+ description: i,
21
+ errorMessage: m,
22
+ isRequired: t?.isRequired,
23
+ isDisabled: t?.isDisabled,
24
+ transform: s,
25
+ placeholder: a,
26
+ FieldComponent: d
27
+ }
28
+ );
29
+ }
30
+ export {
31
+ b as TextInputHookField
32
+ };
33
+ //# sourceMappingURL=TextInputHookField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextInputHookField.js","sources":["../../../../../src/components/UNSTABLE_Hooks/form/fields/TextInputHookField.tsx"],"sourcesContent":["import type { ComponentType } from 'react'\nimport type { BaseFieldProps, ValidationMessages } from '../types'\nimport { useFieldsMetadata } from '../useFieldsMetadata'\nimport { useFieldErrorMessage } from '../useFieldErrorMessage'\nimport { TextInputField } from '@/components/Common'\nimport type { TextInputProps } from '@/components/Common/UI/TextInput/TextInputTypes'\n\nexport interface TextInputHookFieldProps<TErrorCode extends string = never> extends BaseFieldProps {\n name: string\n validationMessages?: ValidationMessages<TErrorCode>\n transform?: (value: string) => string\n placeholder?: string\n FieldComponent?: ComponentType<TextInputProps>\n}\n\nexport function TextInputHookField<TErrorCode extends string>({\n name,\n label,\n description,\n validationMessages,\n transform,\n placeholder,\n FieldComponent,\n}: TextInputHookFieldProps<TErrorCode>) {\n const metadata = useFieldsMetadata()\n const fieldMetadata = metadata[name]\n const errorMessage = useFieldErrorMessage(name, validationMessages)\n\n return (\n <TextInputField\n name={name}\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={fieldMetadata?.isRequired}\n isDisabled={fieldMetadata?.isDisabled}\n transform={transform}\n placeholder={placeholder}\n FieldComponent={FieldComponent}\n />\n )\n}\n"],"names":["TextInputHookField","name","label","description","validationMessages","transform","placeholder","FieldComponent","fieldMetadata","useFieldsMetadata","errorMessage","useFieldErrorMessage","jsx","TextInputField"],"mappings":";;;;AAeO,SAASA,EAA8C;AAAA,EAC5D,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,oBAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,gBAAAC;AACF,GAAwC;AAEtC,QAAMC,IADWC,EAAA,EACcR,CAAI,GAC7BS,IAAeC,EAAqBV,GAAMG,CAAkB;AAElE,SACE,gBAAAQ;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAAZ;AAAA,MACA,OAAAC;AAAA,MACA,aAAAC;AAAA,MACA,cAAAO;AAAA,MACA,YAAYF,GAAe;AAAA,MAC3B,YAAYA,GAAe;AAAA,MAC3B,WAAAH;AAAA,MACA,aAAAC;AAAA,MACA,gBAAAC;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -0,0 +1,15 @@
1
+ import "./types/i18next.d.ts"
2
+ export { TextInputHookField, type TextInputHookFieldProps } from './TextInputHookField';
3
+ export { SelectHookField, type SelectHookFieldProps } from './SelectHookField';
4
+ export { CheckboxHookField, type CheckboxHookFieldProps } from './CheckboxHookField';
5
+ export { NumberInputHookField, type NumberInputHookFieldProps } from './NumberInputHookField';
6
+ export { DatePickerHookField, type DatePickerHookFieldProps } from './DatePickerHookField';
7
+ export { RadioGroupHookField, type RadioGroupHookFieldProps } from './RadioGroupHookField';
8
+ export { SwitchHookField, type SwitchHookFieldProps } from './SwitchHookField';
9
+ export type { TextInputProps } from '../../../Common/UI/TextInput/TextInputTypes';
10
+ export type { SelectProps, SelectOption } from '../../../Common/UI/Select/SelectTypes';
11
+ export type { CheckboxProps } from '../../../Common/UI/Checkbox/CheckboxTypes';
12
+ export type { NumberInputProps } from '../../../Common/UI/NumberInput/NumberInputTypes';
13
+ export type { DatePickerProps } from '../../../Common/UI/DatePicker/DatePickerTypes';
14
+ export type { RadioGroupProps, RadioGroupOption, } from '../../../Common/UI/RadioGroup/RadioGroupTypes';
15
+ export type { SwitchProps } from '../../../Common/UI/Switch/SwitchTypes';
@@ -0,0 +1,2 @@
1
+ import { FieldMetadataWithOptions, FieldsMetadata } from './types';
2
+ export declare function getFieldWithOptions<TEntry = unknown>(metadata: FieldsMetadata, name: string): FieldMetadataWithOptions<TEntry> | undefined;
@@ -0,0 +1,8 @@
1
+ function o(t, n) {
2
+ const i = t[n];
3
+ if (i && "options" in i) return i;
4
+ }
5
+ export {
6
+ o as getFieldWithOptions
7
+ };
8
+ //# sourceMappingURL=getFieldWithOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFieldWithOptions.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/getFieldWithOptions.ts"],"sourcesContent":["import type { FieldMetadataWithOptions, FieldsMetadata } from './types'\n\nexport function getFieldWithOptions<TEntry = unknown>(\n metadata: FieldsMetadata,\n name: string,\n): FieldMetadataWithOptions<TEntry> | undefined {\n const field = metadata[name]\n if (field && 'options' in field) return field as FieldMetadataWithOptions<TEntry>\n return undefined\n}\n"],"names":["getFieldWithOptions","metadata","name","field"],"mappings":"AAEO,SAASA,EACdC,GACAC,GAC8C;AAC9C,QAAMC,IAAQF,EAASC,CAAI;AAC3B,MAAIC,KAAS,aAAaA,EAAO,QAAOA;AAE1C;"}
@@ -0,0 +1,18 @@
1
+ import { FieldValues, UseFormReturn } from 'react-hook-form';
2
+ import { ZodTypeAny } from 'zod';
3
+ /**
4
+ * Creates a typed getter that returns the current form values parsed through
5
+ * the Zod schema. The result matches what `handleSubmit` would provide to its
6
+ * valid callback — all preprocessing transforms (e.g. string→boolean coercion)
7
+ * are applied.
8
+ *
9
+ * Returns `undefined` when the current form state does not satisfy the schema
10
+ * (e.g. required fields are empty, cross-field rules fail). This is safe to call
11
+ * at any time — it never throws.
12
+ *
13
+ * **Side effects:** None. `getValues()` is a synchronous read from react-hook-form's
14
+ * internal store — it does not trigger re-renders, mutate form state, or update
15
+ * validation errors. `safeParse()` is a pure validation/transform that creates
16
+ * a new object without mutating the input.
17
+ */
18
+ export declare function createGetFormSubmissionValues<TFormData extends FieldValues, TFormOutputs>(formMethods: UseFormReturn<TFormData, unknown, TFormOutputs>, schema: ZodTypeAny): () => TFormOutputs | undefined;
@@ -0,0 +1,10 @@
1
+ function r(s, t) {
2
+ return () => {
3
+ const e = t.safeParse(s.getValues());
4
+ return e.success ? e.data : void 0;
5
+ };
6
+ }
7
+ export {
8
+ r as createGetFormSubmissionValues
9
+ };
10
+ //# sourceMappingURL=getFormSubmissionValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFormSubmissionValues.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/getFormSubmissionValues.ts"],"sourcesContent":["import type { FieldValues, UseFormReturn } from 'react-hook-form'\nimport type { ZodTypeAny } from 'zod'\n\n/**\n * Creates a typed getter that returns the current form values parsed through\n * the Zod schema. The result matches what `handleSubmit` would provide to its\n * valid callback — all preprocessing transforms (e.g. string→boolean coercion)\n * are applied.\n *\n * Returns `undefined` when the current form state does not satisfy the schema\n * (e.g. required fields are empty, cross-field rules fail). This is safe to call\n * at any time — it never throws.\n *\n * **Side effects:** None. `getValues()` is a synchronous read from react-hook-form's\n * internal store — it does not trigger re-renders, mutate form state, or update\n * validation errors. `safeParse()` is a pure validation/transform that creates\n * a new object without mutating the input.\n */\nexport function createGetFormSubmissionValues<TFormData extends FieldValues, TFormOutputs>(\n formMethods: UseFormReturn<TFormData, unknown, TFormOutputs>,\n schema: ZodTypeAny,\n): () => TFormOutputs | undefined {\n return () => {\n const result = schema.safeParse(formMethods.getValues())\n return result.success ? (result.data as TFormOutputs) : undefined\n }\n}\n"],"names":["createGetFormSubmissionValues","formMethods","schema","result"],"mappings":"AAkBO,SAASA,EACdC,GACAC,GACgC;AAChC,SAAO,MAAM;AACX,UAAMC,IAASD,EAAO,UAAUD,EAAY,WAAW;AACvD,WAAOE,EAAO,UAAWA,EAAO,OAAwB;AAAA,EAC1D;AACF;"}
@@ -0,0 +1,14 @@
1
+ import "./types/i18next.d.ts"
2
+ export type { FieldMetadata, FieldMetadataWithOptions, FieldsMetadata, ValidationMessages, BaseFieldProps, HookFieldProps, } from './types';
3
+ export { withOptions } from './withOptions';
4
+ export type { FormFieldsMetadataContextValue } from './FormFieldsMetadataContext';
5
+ export { FormFieldsMetadataProvider } from './FormFieldsMetadataProvider';
6
+ export { SDKFormProvider } from './SDKFormProvider';
7
+ export { useFieldsMetadata } from './useFieldsMetadata';
8
+ export { useFieldErrorMessage } from './useFieldErrorMessage';
9
+ export { deriveFieldsMetadata } from './deriveFieldsMetadata';
10
+ export { composeFormSchema } from './composeFormSchema';
11
+ export { resolveRequiredFields, filterRequiredFields, type RequiredFields, } from './resolveRequiredFields';
12
+ export { composeSubmitHandler } from './composeSubmitHandler';
13
+ export { createGetFormSubmissionValues } from './getFormSubmissionValues';
14
+ export { TextInputHookField, type TextInputHookFieldProps, SelectHookField, type SelectHookFieldProps, CheckboxHookField, type CheckboxHookFieldProps, NumberInputHookField, type NumberInputHookFieldProps, DatePickerHookField, type DatePickerHookFieldProps, RadioGroupHookField, type RadioGroupHookFieldProps, type TextInputProps, type SelectProps, type SelectOption, type CheckboxProps, type NumberInputProps, type DatePickerProps, type RadioGroupProps, type RadioGroupOption, SwitchHookField, type SwitchHookFieldProps, type SwitchProps, } from './fields';
@@ -0,0 +1,6 @@
1
+ export type RequiredFields<T> = T[] | {
2
+ create?: T[];
3
+ update?: T[];
4
+ };
5
+ export declare function resolveRequiredFields<T>(requiredFields: RequiredFields<T> | undefined, mode: 'create' | 'update'): T[];
6
+ export declare function filterRequiredFields<T>(requiredFields: RequiredFields<T> | undefined, exclude: T): RequiredFields<T> | undefined;
@@ -0,0 +1,14 @@
1
+ function f(t, a) {
2
+ return t ? Array.isArray(t) ? t : (a === "create" ? t.create : t.update) ?? [] : [];
3
+ }
4
+ function n(t, a) {
5
+ return t && (Array.isArray(t) ? t.filter((r) => r !== a) : {
6
+ ...t.create && { create: t.create.filter((r) => r !== a) },
7
+ ...t.update && { update: t.update.filter((r) => r !== a) }
8
+ });
9
+ }
10
+ export {
11
+ n as filterRequiredFields,
12
+ f as resolveRequiredFields
13
+ };
14
+ //# sourceMappingURL=resolveRequiredFields.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveRequiredFields.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/resolveRequiredFields.ts"],"sourcesContent":["export type RequiredFields<T> = T[] | { create?: T[]; update?: T[] }\n\nexport function resolveRequiredFields<T>(\n requiredFields: RequiredFields<T> | undefined,\n mode: 'create' | 'update',\n): T[] {\n if (!requiredFields) return []\n if (Array.isArray(requiredFields)) return requiredFields\n return (mode === 'create' ? requiredFields.create : requiredFields.update) ?? []\n}\n\nexport function filterRequiredFields<T>(\n requiredFields: RequiredFields<T> | undefined,\n exclude: T,\n): RequiredFields<T> | undefined {\n if (!requiredFields) return requiredFields\n if (Array.isArray(requiredFields)) return requiredFields.filter(f => f !== exclude)\n return {\n ...(requiredFields.create && { create: requiredFields.create.filter(f => f !== exclude) }),\n ...(requiredFields.update && { update: requiredFields.update.filter(f => f !== exclude) }),\n }\n}\n"],"names":["resolveRequiredFields","requiredFields","mode","filterRequiredFields","exclude","f"],"mappings":"AAEO,SAASA,EACdC,GACAC,GACK;AACL,SAAKD,IACD,MAAM,QAAQA,CAAc,IAAUA,KAClCC,MAAS,WAAWD,EAAe,SAASA,EAAe,WAAW,CAAA,IAFlD,CAAA;AAG9B;AAEO,SAASE,EACdF,GACAG,GAC+B;AAC/B,SAAKH,MACD,MAAM,QAAQA,CAAc,IAAUA,EAAe,OAAO,CAAAI,MAAKA,MAAMD,CAAO,IAC3E;AAAA,IACL,GAAIH,EAAe,UAAU,EAAE,QAAQA,EAAe,OAAO,OAAO,CAAAI,MAAKA,MAAMD,CAAO,EAAA;AAAA,IACtF,GAAIH,EAAe,UAAU,EAAE,QAAQA,EAAe,OAAO,OAAO,CAAAI,MAAKA,MAAMD,CAAO,EAAA;AAAA,EAAE;AAE5F;"}
@@ -0,0 +1,27 @@
1
+ import { default as React } from 'react';
2
+ export interface FieldMetadata {
3
+ name: string;
4
+ isRequired?: boolean;
5
+ isDisabled?: boolean;
6
+ hasRedactedValue?: boolean;
7
+ }
8
+ export interface FieldMetadataWithOptions<TEntry = unknown> extends FieldMetadata {
9
+ options: Array<{
10
+ label: string;
11
+ value: string;
12
+ }>;
13
+ entries?: TEntry[];
14
+ }
15
+ export type FieldsMetadata = {
16
+ [key: string]: FieldMetadata | FieldMetadataWithOptions;
17
+ };
18
+ /** Maps every error code a schema field can produce to a partner-supplied display string. */
19
+ export type ValidationMessages<TErrorCode extends string> = Record<TErrorCode, string>;
20
+ export interface BaseFieldProps {
21
+ label: string;
22
+ description?: React.ReactNode;
23
+ }
24
+ /** Strips `name` from a HookField props type for domain-specific field components that bind `name` internally. */
25
+ export type HookFieldProps<TProps extends {
26
+ name: string;
27
+ }> = Omit<TProps, 'name'>;
@@ -0,0 +1,2 @@
1
+ import { ValidationMessages } from './types';
2
+ export declare function useFieldErrorMessage<TErrorCode extends string>(fieldName: string, validationMessages?: ValidationMessages<TErrorCode>): string | undefined;
@@ -0,0 +1,17 @@
1
+ import { useFormContext as i } from "react-hook-form";
2
+ import { useFormFieldsMetadataContext as m } from "./FormFieldsMetadataContext.js";
3
+ function E(o, e) {
4
+ const {
5
+ formState: { errors: t }
6
+ } = i(), { errors: n } = m(), r = t[o]?.message;
7
+ if (r && e?.[r])
8
+ return e[r];
9
+ for (const f of n) {
10
+ const s = f.fieldErrors.find((d) => d.field === o);
11
+ if (s?.message) return s.message;
12
+ }
13
+ }
14
+ export {
15
+ E as useFieldErrorMessage
16
+ };
17
+ //# sourceMappingURL=useFieldErrorMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFieldErrorMessage.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useFieldErrorMessage.ts"],"sourcesContent":["import { useFormContext } from 'react-hook-form'\nimport { useFormFieldsMetadataContext } from './FormFieldsMetadataContext'\nimport type { ValidationMessages } from './types'\n\nexport function useFieldErrorMessage<TErrorCode extends string>(\n fieldName: string,\n validationMessages?: ValidationMessages<TErrorCode>,\n): string | undefined {\n const {\n formState: { errors },\n } = useFormContext()\n const { errors: sdkErrors } = useFormFieldsMetadataContext()\n\n const errorCode = errors[fieldName]?.message as TErrorCode | undefined\n if (errorCode && validationMessages?.[errorCode]) {\n return validationMessages[errorCode]\n }\n\n for (const sdkError of sdkErrors) {\n const fieldError = sdkError.fieldErrors.find(fe => fe.field === fieldName)\n if (fieldError?.message) return fieldError.message\n }\n\n return undefined\n}\n"],"names":["useFieldErrorMessage","fieldName","validationMessages","errors","useFormContext","sdkErrors","useFormFieldsMetadataContext","errorCode","sdkError","fieldError","fe"],"mappings":";;AAIO,SAASA,EACdC,GACAC,GACoB;AACpB,QAAM;AAAA,IACJ,WAAW,EAAE,QAAAC,EAAA;AAAA,EAAO,IAClBC,EAAA,GACE,EAAE,QAAQC,EAAA,IAAcC,EAAA,GAExBC,IAAYJ,EAAOF,CAAS,GAAG;AACrC,MAAIM,KAAaL,IAAqBK,CAAS;AAC7C,WAAOL,EAAmBK,CAAS;AAGrC,aAAWC,KAAYH,GAAW;AAChC,UAAMI,IAAaD,EAAS,YAAY,KAAK,CAAAE,MAAMA,EAAG,UAAUT,CAAS;AACzE,QAAIQ,GAAY,QAAS,QAAOA,EAAW;AAAA,EAC7C;AAGF;"}
@@ -0,0 +1,4 @@
1
+ import { FieldMetadata, FieldMetadataWithOptions, FieldsMetadata } from './types';
2
+ export declare function useFieldsMetadata<TFieldsMetadata extends {
3
+ [K in keyof TFieldsMetadata]: FieldMetadata | FieldMetadataWithOptions;
4
+ } = FieldsMetadata>(): TFieldsMetadata;
@@ -0,0 +1,9 @@
1
+ import { useFormFieldsMetadataContext as e } from "./FormFieldsMetadataContext.js";
2
+ function o() {
3
+ const { metadata: t } = e();
4
+ return t;
5
+ }
6
+ export {
7
+ o as useFieldsMetadata
8
+ };
9
+ //# sourceMappingURL=useFieldsMetadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFieldsMetadata.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/useFieldsMetadata.ts"],"sourcesContent":["import type { FieldMetadata, FieldMetadataWithOptions, FieldsMetadata } from './types'\nimport { useFormFieldsMetadataContext } from './FormFieldsMetadataContext'\n\nexport function useFieldsMetadata<\n TFieldsMetadata extends {\n [K in keyof TFieldsMetadata]: FieldMetadata | FieldMetadataWithOptions\n } = FieldsMetadata,\n>(): TFieldsMetadata {\n const { metadata } = useFormFieldsMetadataContext()\n return metadata as TFieldsMetadata\n}\n"],"names":["useFieldsMetadata","metadata","useFormFieldsMetadataContext"],"mappings":";AAGO,SAASA,IAIK;AACnB,QAAM,EAAE,UAAAC,EAAA,IAAaC,EAAA;AACrB,SAAOD;AACT;"}
@@ -0,0 +1,5 @@
1
+ import { FieldMetadata, FieldMetadataWithOptions } from './types';
2
+ export declare function withOptions<TEntry = unknown>(base: FieldMetadata, options: Array<{
3
+ label: string;
4
+ value: string;
5
+ }>, entries?: TEntry[]): FieldMetadataWithOptions<TEntry>;
@@ -0,0 +1,7 @@
1
+ function n(r, t, i) {
2
+ return i !== void 0 ? { ...r, options: t, entries: i } : { ...r, options: t };
3
+ }
4
+ export {
5
+ n as withOptions
6
+ };
7
+ //# sourceMappingURL=withOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withOptions.js","sources":["../../../../src/components/UNSTABLE_Hooks/form/withOptions.ts"],"sourcesContent":["import type { FieldMetadata, FieldMetadataWithOptions } from './types'\n\nexport function withOptions<TEntry = unknown>(\n base: FieldMetadata,\n options: Array<{ label: string; value: string }>,\n entries?: TEntry[],\n): FieldMetadataWithOptions<TEntry> {\n if (entries !== undefined) {\n return { ...base, options, entries }\n }\n return { ...base, options }\n}\n"],"names":["withOptions","base","options","entries"],"mappings":"AAEO,SAASA,EACdC,GACAC,GACAC,GACkC;AAClC,SAAIA,MAAY,SACP,EAAE,GAAGF,GAAM,SAAAC,GAAS,SAAAC,EAAA,IAEtB,EAAE,GAAGF,GAAM,SAAAC,EAAA;AACpB;"}
@@ -0,0 +1,5 @@
1
+ import { UseCompensationFormProps } from './useCompensationForm';
2
+ import { BaseComponentInterface } from '../../../Base';
3
+ export interface CompensationFormProps extends UseCompensationFormProps, Omit<BaseComponentInterface, 'defaultValues'> {
4
+ }
5
+ export declare function CompensationForm({ FallbackComponent, ...props }: CompensationFormProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,149 @@
1
+ import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
+ import { useTranslation as R, Trans as C } from "react-i18next";
3
+ import { SDKFormProvider as D } from "../../form/SDKFormProvider.js";
4
+ import { useCompensationForm as f } from "./useCompensationForm.js";
5
+ import { useComponentContext as b } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
+ import { BaseBoundaries as L, BaseLayout as d } from "../../../Base/Base.js";
7
+ import "../../../Base/useBase.js";
8
+ import { Form as M } from "../../../Common/Form/Form.js";
9
+ import { ActionsLayout as U } from "../../../Common/ActionsLayout/ActionsLayout.js";
10
+ import { FLSA_OVERTIME_SALARY_LIMIT as T, componentEvents as r } from "../../../../shared/constants.js";
11
+ import { useI18n as I, useComponentDictionary as S } from "../../../../i18n/I18n.js";
12
+ import g from "../../../../hooks/useNumberFormatter.js";
13
+ function W({ onEvent: n, dictionary: l, ...E }) {
14
+ I("UNSTABLE.CompensationForm"), S("UNSTABLE.CompensationForm", l);
15
+ const { t: e } = R("UNSTABLE.CompensationForm"), m = b(), c = g("currency"), o = f({ ...E, requiredFields: ["startDate"] });
16
+ if (o.isLoading)
17
+ return /* @__PURE__ */ t(d, { isLoading: !0, error: o.errorHandling.errors });
18
+ const { Fields: i } = o.form, p = async () => {
19
+ const a = await o.actions.onSubmit({
20
+ onJobCreated: (s) => {
21
+ n(r.EMPLOYEE_JOB_CREATED, s);
22
+ },
23
+ onJobUpdated: (s) => {
24
+ n(r.EMPLOYEE_JOB_UPDATED, s);
25
+ },
26
+ onCompensationUpdated: (s) => {
27
+ n(r.EMPLOYEE_COMPENSATION_UPDATED, s);
28
+ }
29
+ });
30
+ a && n(r.EMPLOYEE_COMPENSATION_DONE, a.data);
31
+ };
32
+ return /* @__PURE__ */ t(d, { error: o.errorHandling.errors, children: /* @__PURE__ */ t(D, { formHookResult: o, children: /* @__PURE__ */ u(
33
+ M,
34
+ {
35
+ onSubmit: (a) => {
36
+ a.preventDefault(), p();
37
+ },
38
+ children: [
39
+ /* @__PURE__ */ t(m.Heading, { as: "h2", children: o.status.mode === "create" ? e("addTitle") : e("editTitle") }),
40
+ i.StartDate && /* @__PURE__ */ t(
41
+ i.StartDate,
42
+ {
43
+ label: e("startDateLabel"),
44
+ validationMessages: {
45
+ REQUIRED: e("fieldValidations.startDate.REQUIRED")
46
+ }
47
+ }
48
+ ),
49
+ /* @__PURE__ */ t(
50
+ i.JobTitle,
51
+ {
52
+ label: e("jobTitle"),
53
+ validationMessages: {
54
+ REQUIRED: e("fieldValidations.jobTitle.REQUIRED")
55
+ }
56
+ }
57
+ ),
58
+ i.FlsaStatus && /* @__PURE__ */ t(
59
+ i.FlsaStatus,
60
+ {
61
+ label: e("employeeClassification"),
62
+ description: /* @__PURE__ */ t(
63
+ C,
64
+ {
65
+ t: e,
66
+ i18nKey: "classificationLink",
67
+ components: {
68
+ ClassificationLink: /* @__PURE__ */ t(m.Link, {})
69
+ }
70
+ }
71
+ ),
72
+ getOptionLabel: (a) => e(`flsaStatusLabels.${a}`, a),
73
+ validationMessages: {
74
+ REQUIRED: e("fieldValidations.flsaStatus.REQUIRED")
75
+ }
76
+ }
77
+ ),
78
+ /* @__PURE__ */ t(
79
+ i.Rate,
80
+ {
81
+ label: e("amount"),
82
+ validationMessages: {
83
+ REQUIRED: e("fieldValidations.rate.REQUIRED"),
84
+ RATE_MINIMUM: e("fieldValidations.rate.RATE_MINIMUM"),
85
+ RATE_EXEMPT_THRESHOLD: e("fieldValidations.rate.RATE_EXEMPT_THRESHOLD", {
86
+ limit: c(T)
87
+ })
88
+ }
89
+ }
90
+ ),
91
+ /* @__PURE__ */ t(
92
+ i.PaymentUnit,
93
+ {
94
+ label: e("paymentUnitLabel"),
95
+ description: e("paymentUnitDescription"),
96
+ getOptionLabel: (a) => e(`paymentUnitOptions.${a}`, a),
97
+ validationMessages: {
98
+ REQUIRED: e("fieldValidations.paymentUnit.REQUIRED")
99
+ }
100
+ }
101
+ ),
102
+ i.AdjustForMinimumWage && /* @__PURE__ */ t(
103
+ i.AdjustForMinimumWage,
104
+ {
105
+ label: e("adjustForMinimumWage"),
106
+ description: e("adjustForMinimumWageDescription")
107
+ }
108
+ ),
109
+ i.MinimumWageId && /* @__PURE__ */ t(
110
+ i.MinimumWageId,
111
+ {
112
+ label: e("minimumWageLabel"),
113
+ description: e("minimumWageDescription"),
114
+ validationMessages: {
115
+ REQUIRED: e("fieldValidations.minimumWageId.REQUIRED")
116
+ }
117
+ }
118
+ ),
119
+ i.TwoPercentShareholder && /* @__PURE__ */ t(i.TwoPercentShareholder, { label: e("twoPercentStakeholderLabel") }),
120
+ i.StateWcCovered && /* @__PURE__ */ t(
121
+ i.StateWcCovered,
122
+ {
123
+ label: e("stateWcCoveredLabel"),
124
+ description: e("stateWcCoveredDescription"),
125
+ getOptionLabel: (a) => e(a === "yes" ? "stateWcCoveredYes" : "stateWcCoveredNo")
126
+ }
127
+ ),
128
+ i.StateWcClassCode && /* @__PURE__ */ t(
129
+ i.StateWcClassCode,
130
+ {
131
+ label: e("stateWcClassCodeLabel"),
132
+ description: e("stateWcClassCodeDescription"),
133
+ validationMessages: {
134
+ REQUIRED: e("fieldValidations.stateWcClassCode.REQUIRED")
135
+ }
136
+ }
137
+ ),
138
+ /* @__PURE__ */ t(U, { children: /* @__PURE__ */ t(m.Button, { type: "submit", isLoading: o.status.isPending, children: e("saveNewJobCta") }) })
139
+ ]
140
+ }
141
+ ) }) });
142
+ }
143
+ function j({ FallbackComponent: n, ...l }) {
144
+ return /* @__PURE__ */ t(L, { componentName: "UNSTABLE.CompensationForm", FallbackComponent: n, children: /* @__PURE__ */ t(W, { ...l }) });
145
+ }
146
+ export {
147
+ j as CompensationForm
148
+ };
149
+ //# sourceMappingURL=CompensationForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompensationForm.js","sources":["../../../../../src/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { SDKFormProvider } from '../../form/SDKFormProvider'\nimport { useCompensationForm } from './useCompensationForm'\nimport type { UseCompensationFormProps } from './useCompensationForm'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { BaseBoundaries, BaseLayout, type BaseComponentInterface } from '@/components/Base'\nimport { Form } from '@/components/Common/Form'\nimport { ActionsLayout } from '@/components/Common'\nimport { componentEvents, FLSA_OVERTIME_SALARY_LIMIT } from '@/shared/constants'\nimport { useComponentDictionary, useI18n } from '@/i18n'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\n\nexport interface CompensationFormProps\n extends UseCompensationFormProps, Omit<BaseComponentInterface, 'defaultValues'> {}\n\nfunction CompensationFormRoot({ onEvent, dictionary, ...hookProps }: CompensationFormProps) {\n useI18n('UNSTABLE.CompensationForm')\n useComponentDictionary('UNSTABLE.CompensationForm', dictionary)\n const { t } = useTranslation('UNSTABLE.CompensationForm')\n const Components = useComponentContext()\n const formatCurrency = useNumberFormatter('currency')\n const compensation = useCompensationForm({ ...hookProps, requiredFields: ['startDate'] })\n\n if (compensation.isLoading) {\n return <BaseLayout isLoading error={compensation.errorHandling.errors} />\n }\n\n const { Fields } = compensation.form\n\n const handleSubmit = async () => {\n const result = await compensation.actions.onSubmit({\n onJobCreated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_CREATED, job)\n },\n onJobUpdated: job => {\n onEvent(componentEvents.EMPLOYEE_JOB_UPDATED, job)\n },\n onCompensationUpdated: comp => {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_UPDATED, comp)\n },\n })\n if (result) {\n onEvent(componentEvents.EMPLOYEE_COMPENSATION_DONE, result.data)\n }\n }\n\n return (\n <BaseLayout error={compensation.errorHandling.errors}>\n <SDKFormProvider formHookResult={compensation}>\n <Form\n onSubmit={e => {\n e.preventDefault()\n void handleSubmit()\n }}\n >\n <Components.Heading as=\"h2\">\n {compensation.status.mode === 'create' ? t('addTitle') : t('editTitle')}\n </Components.Heading>\n\n {Fields.StartDate && (\n <Fields.StartDate\n label={t('startDateLabel')}\n validationMessages={{\n REQUIRED: t('fieldValidations.startDate.REQUIRED'),\n }}\n />\n )}\n\n <Fields.JobTitle\n label={t('jobTitle')}\n validationMessages={{\n REQUIRED: t('fieldValidations.jobTitle.REQUIRED'),\n }}\n />\n\n {Fields.FlsaStatus && (\n <Fields.FlsaStatus\n label={t('employeeClassification')}\n description={\n <Trans\n t={t}\n i18nKey=\"classificationLink\"\n components={{\n ClassificationLink: <Components.Link />,\n }}\n />\n }\n getOptionLabel={status => t(`flsaStatusLabels.${status}`, status)}\n validationMessages={{\n REQUIRED: t('fieldValidations.flsaStatus.REQUIRED'),\n }}\n />\n )}\n\n <Fields.Rate\n label={t('amount')}\n validationMessages={{\n REQUIRED: t('fieldValidations.rate.REQUIRED'),\n RATE_MINIMUM: t('fieldValidations.rate.RATE_MINIMUM'),\n RATE_EXEMPT_THRESHOLD: t('fieldValidations.rate.RATE_EXEMPT_THRESHOLD', {\n limit: formatCurrency(FLSA_OVERTIME_SALARY_LIMIT),\n }),\n }}\n />\n\n <Fields.PaymentUnit\n label={t('paymentUnitLabel')}\n description={t('paymentUnitDescription')}\n getOptionLabel={unit => t(`paymentUnitOptions.${unit}`, unit)}\n validationMessages={{\n REQUIRED: t('fieldValidations.paymentUnit.REQUIRED'),\n }}\n />\n\n {Fields.AdjustForMinimumWage && (\n <Fields.AdjustForMinimumWage\n label={t('adjustForMinimumWage')}\n description={t('adjustForMinimumWageDescription')}\n />\n )}\n\n {Fields.MinimumWageId && (\n <Fields.MinimumWageId\n label={t('minimumWageLabel')}\n description={t('minimumWageDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.minimumWageId.REQUIRED'),\n }}\n />\n )}\n\n {Fields.TwoPercentShareholder && (\n <Fields.TwoPercentShareholder label={t('twoPercentStakeholderLabel')} />\n )}\n\n {Fields.StateWcCovered && (\n <Fields.StateWcCovered\n label={t('stateWcCoveredLabel')}\n description={t('stateWcCoveredDescription')}\n getOptionLabel={key =>\n key === 'yes' ? t('stateWcCoveredYes') : t('stateWcCoveredNo')\n }\n />\n )}\n\n {Fields.StateWcClassCode && (\n <Fields.StateWcClassCode\n label={t('stateWcClassCodeLabel')}\n description={t('stateWcClassCodeDescription')}\n validationMessages={{\n REQUIRED: t('fieldValidations.stateWcClassCode.REQUIRED'),\n }}\n />\n )}\n\n <ActionsLayout>\n <Components.Button type=\"submit\" isLoading={compensation.status.isPending}>\n {t('saveNewJobCta')}\n </Components.Button>\n </ActionsLayout>\n </Form>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n\nexport function CompensationForm({ FallbackComponent, ...props }: CompensationFormProps) {\n return (\n <BaseBoundaries componentName=\"UNSTABLE.CompensationForm\" FallbackComponent={FallbackComponent}>\n <CompensationFormRoot {...props} />\n </BaseBoundaries>\n )\n}\n"],"names":["CompensationFormRoot","onEvent","dictionary","hookProps","useI18n","useComponentDictionary","t","useTranslation","Components","useComponentContext","formatCurrency","useNumberFormatter","compensation","useCompensationForm","BaseLayout","Fields","handleSubmit","result","job","componentEvents","comp","jsx","SDKFormProvider","jsxs","Form","e","Trans","status","FLSA_OVERTIME_SALARY_LIMIT","unit","key","ActionsLayout","CompensationForm","FallbackComponent","props","BaseBoundaries"],"mappings":";;;;;;;;;;;;AAeA,SAASA,EAAqB,EAAE,SAAAC,GAAS,YAAAC,GAAY,GAAGC,KAAoC;AAC1F,EAAAC,EAAQ,2BAA2B,GACnCC,EAAuB,6BAA6BH,CAAU;AAC9D,QAAM,EAAE,GAAAI,EAAA,IAAMC,EAAe,2BAA2B,GAClDC,IAAaC,EAAA,GACbC,IAAiBC,EAAmB,UAAU,GAC9CC,IAAeC,EAAoB,EAAE,GAAGV,GAAW,gBAAgB,CAAC,WAAW,GAAG;AAExF,MAAIS,EAAa;AACf,6BAAQE,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAa,cAAc,QAAQ;AAGzE,QAAM,EAAE,QAAAG,MAAWH,EAAa,MAE1BI,IAAe,YAAY;AAC/B,UAAMC,IAAS,MAAML,EAAa,QAAQ,SAAS;AAAA,MACjD,cAAc,CAAAM,MAAO;AACnB,QAAAjB,EAAQkB,EAAgB,sBAAsBD,CAAG;AAAA,MACnD;AAAA,MACA,cAAc,CAAAA,MAAO;AACnB,QAAAjB,EAAQkB,EAAgB,sBAAsBD,CAAG;AAAA,MACnD;AAAA,MACA,uBAAuB,CAAAE,MAAQ;AAC7B,QAAAnB,EAAQkB,EAAgB,+BAA+BC,CAAI;AAAA,MAC7D;AAAA,IAAA,CACD;AACD,IAAIH,KACFhB,EAAQkB,EAAgB,4BAA4BF,EAAO,IAAI;AAAA,EAEnE;AAEA,SACE,gBAAAI,EAACP,KAAW,OAAOF,EAAa,cAAc,QAC5C,UAAA,gBAAAS,EAACC,GAAA,EAAgB,gBAAgBV,GAC/B,UAAA,gBAAAW;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,UAAU,CAAAC,MAAK;AACb,QAAAA,EAAE,eAAA,GACGT,EAAA;AAAA,MACP;AAAA,MAEA,UAAA;AAAA,QAAA,gBAAAK,EAACb,EAAW,SAAX,EAAmB,IAAG,MACpB,UAAAI,EAAa,OAAO,SAAS,WAAWN,EAAE,UAAU,IAAIA,EAAE,WAAW,GACxE;AAAA,QAECS,EAAO,aACN,gBAAAM;AAAA,UAACN,EAAO;AAAA,UAAP;AAAA,YACC,OAAOT,EAAE,gBAAgB;AAAA,YACzB,oBAAoB;AAAA,cAClB,UAAUA,EAAE,qCAAqC;AAAA,YAAA;AAAA,UACnD;AAAA,QAAA;AAAA,QAIJ,gBAAAe;AAAA,UAACN,EAAO;AAAA,UAAP;AAAA,YACC,OAAOT,EAAE,UAAU;AAAA,YACnB,oBAAoB;AAAA,cAClB,UAAUA,EAAE,oCAAoC;AAAA,YAAA;AAAA,UAClD;AAAA,QAAA;AAAA,QAGDS,EAAO,cACN,gBAAAM;AAAA,UAACN,EAAO;AAAA,UAAP;AAAA,YACC,OAAOT,EAAE,wBAAwB;AAAA,YACjC,aACE,gBAAAe;AAAA,cAACK;AAAA,cAAA;AAAA,gBACC,GAAApB;AAAA,gBACA,SAAQ;AAAA,gBACR,YAAY;AAAA,kBACV,oBAAoB,gBAAAe,EAACb,EAAW,MAAX,CAAA,CAAgB;AAAA,gBAAA;AAAA,cACvC;AAAA,YAAA;AAAA,YAGJ,gBAAgB,CAAAmB,MAAUrB,EAAE,oBAAoBqB,CAAM,IAAIA,CAAM;AAAA,YAChE,oBAAoB;AAAA,cAClB,UAAUrB,EAAE,sCAAsC;AAAA,YAAA;AAAA,UACpD;AAAA,QAAA;AAAA,QAIJ,gBAAAe;AAAA,UAACN,EAAO;AAAA,UAAP;AAAA,YACC,OAAOT,EAAE,QAAQ;AAAA,YACjB,oBAAoB;AAAA,cAClB,UAAUA,EAAE,gCAAgC;AAAA,cAC5C,cAAcA,EAAE,oCAAoC;AAAA,cACpD,uBAAuBA,EAAE,+CAA+C;AAAA,gBACtE,OAAOI,EAAekB,CAA0B;AAAA,cAAA,CACjD;AAAA,YAAA;AAAA,UACH;AAAA,QAAA;AAAA,QAGF,gBAAAP;AAAA,UAACN,EAAO;AAAA,UAAP;AAAA,YACC,OAAOT,EAAE,kBAAkB;AAAA,YAC3B,aAAaA,EAAE,wBAAwB;AAAA,YACvC,gBAAgB,CAAAuB,MAAQvB,EAAE,sBAAsBuB,CAAI,IAAIA,CAAI;AAAA,YAC5D,oBAAoB;AAAA,cAClB,UAAUvB,EAAE,uCAAuC;AAAA,YAAA;AAAA,UACrD;AAAA,QAAA;AAAA,QAGDS,EAAO,wBACN,gBAAAM;AAAA,UAACN,EAAO;AAAA,UAAP;AAAA,YACC,OAAOT,EAAE,sBAAsB;AAAA,YAC/B,aAAaA,EAAE,iCAAiC;AAAA,UAAA;AAAA,QAAA;AAAA,QAInDS,EAAO,iBACN,gBAAAM;AAAA,UAACN,EAAO;AAAA,UAAP;AAAA,YACC,OAAOT,EAAE,kBAAkB;AAAA,YAC3B,aAAaA,EAAE,wBAAwB;AAAA,YACvC,oBAAoB;AAAA,cAClB,UAAUA,EAAE,yCAAyC;AAAA,YAAA;AAAA,UACvD;AAAA,QAAA;AAAA,QAIHS,EAAO,yBACN,gBAAAM,EAACN,EAAO,uBAAP,EAA6B,OAAOT,EAAE,4BAA4B,GAAG;AAAA,QAGvES,EAAO,kBACN,gBAAAM;AAAA,UAACN,EAAO;AAAA,UAAP;AAAA,YACC,OAAOT,EAAE,qBAAqB;AAAA,YAC9B,aAAaA,EAAE,2BAA2B;AAAA,YAC1C,gBAAgB,OACEA,EAAhBwB,MAAQ,QAAU,sBAAyB,kBAAN;AAAA,UAAwB;AAAA,QAAA;AAAA,QAKlEf,EAAO,oBACN,gBAAAM;AAAA,UAACN,EAAO;AAAA,UAAP;AAAA,YACC,OAAOT,EAAE,uBAAuB;AAAA,YAChC,aAAaA,EAAE,6BAA6B;AAAA,YAC5C,oBAAoB;AAAA,cAClB,UAAUA,EAAE,4CAA4C;AAAA,YAAA;AAAA,UAC1D;AAAA,QAAA;AAAA,QAIJ,gBAAAe,EAACU,GAAA,EACC,UAAA,gBAAAV,EAACb,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWI,EAAa,OAAO,WAC7D,UAAAN,EAAE,eAAe,GACpB,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAEJ,EAAA,CACF;AAEJ;AAEO,SAAS0B,EAAiB,EAAE,mBAAAC,GAAmB,GAAGC,KAAgC;AACvF,SACE,gBAAAb,EAACc,KAAe,eAAc,6BAA4B,mBAAAF,GACxD,UAAA,gBAAAZ,EAACrB,GAAA,EAAsB,GAAGkC,EAAA,CAAO,EAAA,CACnC;AAEJ;"}