@gusto/embedded-react-sdk 0.42.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (778) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/README.md +23 -5
  3. package/dist/assets/icons/edit-02.svg.js +10 -0
  4. package/dist/assets/icons/edit-02.svg.js.map +1 -0
  5. package/dist/assets/icons/search-lg.svg.js +10 -0
  6. package/dist/assets/icons/search-lg.svg.js.map +1 -0
  7. package/dist/components/Base/Base.js +3 -2
  8. package/dist/components/Base/Base.js.map +1 -1
  9. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +3 -1
  10. package/dist/components/Common/DataView/DataCards/DataCards.js +55 -45
  11. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  12. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +16 -10
  13. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  14. package/dist/components/Common/DataView/DataTable/DataTable.js +86 -64
  15. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  16. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +1 -1
  17. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  18. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js +52 -0
  19. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js.map +1 -0
  20. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js +18 -0
  21. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js.map +1 -0
  22. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.d.ts +13 -0
  23. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js +12 -0
  24. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js.map +1 -0
  25. package/dist/components/Common/Fields/hooks/fieldElementRegistry.d.ts +21 -0
  26. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js +29 -0
  27. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js.map +1 -0
  28. package/dist/components/Common/Fields/hooks/useField.js +43 -37
  29. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  30. package/dist/components/Common/Flex/Flex.d.ts +2 -1
  31. package/dist/components/Common/Flex/Flex.js +14 -12
  32. package/dist/components/Common/Flex/Flex.js.map +1 -1
  33. package/dist/components/Common/Flex/Flex.module.scss.js +4 -4
  34. package/dist/components/Common/TaxInputs/TaxInputs.js +1 -1
  35. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  36. package/dist/components/Common/UI/Box/Box.module.scss.js +4 -4
  37. package/dist/components/Common/UI/Button/Button.module.scss.js +2 -2
  38. package/dist/components/Common/UI/ComboBox/ComboBox.d.ts +1 -1
  39. package/dist/components/Common/UI/ComboBox/ComboBox.js +26 -25
  40. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  41. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +5 -0
  42. package/dist/components/Common/UI/DatePicker/DatePicker.js +4 -4
  43. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  44. package/dist/components/Common/UI/Dialog/Dialog.js +35 -36
  45. package/dist/components/Common/UI/Dialog/Dialog.js.map +1 -1
  46. package/dist/components/Common/UI/Menu/Menu.js +18 -17
  47. package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
  48. package/dist/components/Common/UI/Menu/MenuTypes.d.ts +5 -0
  49. package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
  50. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +1 -1
  51. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  52. package/dist/components/Common/UI/Select/Select.js +9 -9
  53. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  54. package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +2 -2
  55. package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
  56. package/dist/components/Company/AssignSignatory/AssignSignatory.js +3 -2
  57. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  58. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +8 -6
  59. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  60. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +10 -8
  61. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  62. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +7 -3
  63. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  64. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +8 -6
  65. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  66. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +7 -3
  67. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  68. package/dist/components/Company/AssignSignatory/TitleSelect.js +3 -2
  69. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  70. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +9 -5
  71. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  72. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
  73. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  74. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +11 -9
  75. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  76. package/dist/components/Company/BankAccount/BankAccountForm/context.js +7 -3
  77. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  78. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +12 -10
  79. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  80. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +13 -11
  81. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  82. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -4
  83. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  84. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +7 -5
  85. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  86. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +9 -8
  87. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  88. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +7 -3
  89. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  90. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +4 -3
  91. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  92. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +26 -25
  93. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
  94. package/dist/components/Company/FederalTaxes/Actions.js +9 -7
  95. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  96. package/dist/components/Company/FederalTaxes/FederalTaxes.js +8 -7
  97. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  98. package/dist/components/Company/FederalTaxes/Form.js +4 -2
  99. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  100. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +12 -8
  101. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  102. package/dist/components/Company/Industry/Actions.js +7 -5
  103. package/dist/components/Company/Industry/Actions.js.map +1 -1
  104. package/dist/components/Company/Industry/Context.js +10 -6
  105. package/dist/components/Company/Industry/Context.js.map +1 -1
  106. package/dist/components/Company/Industry/Edit.js +12 -10
  107. package/dist/components/Company/Industry/Edit.js.map +1 -1
  108. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -6
  109. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  110. package/dist/components/Company/Locations/LocationForm/Form.d.ts +6 -1
  111. package/dist/components/Company/Locations/LocationForm/Form.js +29 -27
  112. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  113. package/dist/components/Company/Locations/LocationForm/LocationForm.js +59 -54
  114. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  115. package/dist/components/Company/Locations/LocationForm/index.d.ts +2 -0
  116. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +7 -3
  117. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  118. package/dist/components/Company/Locations/LocationsList/Actions.js +8 -6
  119. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  120. package/dist/components/Company/Locations/LocationsList/List.js +43 -40
  121. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  122. package/dist/components/Company/Locations/LocationsList/List.module.scss.js +8 -0
  123. package/dist/components/Company/Locations/LocationsList/List.module.scss.js.map +1 -0
  124. package/dist/components/Company/Locations/LocationsList/LocationsList.js +3 -2
  125. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  126. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +7 -3
  127. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  128. package/dist/components/Company/OnboardingOverview/Completed.js +14 -12
  129. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  130. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +7 -5
  131. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  132. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +3 -2
  133. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  134. package/dist/components/Company/OnboardingOverview/context.js +7 -3
  135. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  136. package/dist/components/Company/PaySchedule/PayScheduleList.js +4 -3
  137. package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -1
  138. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +53 -52
  139. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  140. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +7 -5
  141. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  142. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +12 -11
  143. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  144. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +67 -63
  145. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  146. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +7 -3
  147. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  148. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.d.ts +2 -0
  149. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js +6 -0
  150. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js.map +1 -0
  151. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +8 -6
  152. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  153. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +58 -26
  154. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  155. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +7 -3
  156. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  157. package/dist/components/Company/exports/companyOnboarding.d.ts +3 -0
  158. package/dist/components/Company/exports/companyOnboarding.js +21 -15
  159. package/dist/components/Company/exports/companyOnboarding.js.map +1 -1
  160. package/dist/components/Company/index.d.ts +1 -0
  161. package/dist/components/Company/index.js +14 -12
  162. package/dist/components/Company/index.js.map +1 -1
  163. package/dist/components/Contractor/Address/Address.js +10 -9
  164. package/dist/components/Contractor/Address/Address.js.map +1 -1
  165. package/dist/components/Contractor/Address/Form.js +4 -4
  166. package/dist/components/Contractor/Address/Head.js +12 -9
  167. package/dist/components/Contractor/Address/Head.js.map +1 -1
  168. package/dist/components/Contractor/Address/useAddress.js +9 -5
  169. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  170. package/dist/components/Contractor/ContractorList/index.js +20 -19
  171. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  172. package/dist/components/Contractor/NewHireReport/NewHireReport.js +42 -41
  173. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  174. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +13 -10
  175. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  176. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +17 -17
  177. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  178. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +3 -2
  179. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  180. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +4 -2
  181. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  182. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +7 -5
  183. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  184. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +4 -3
  185. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  186. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +4 -2
  187. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  188. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +15 -13
  189. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  190. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +4 -2
  191. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  192. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +9 -7
  193. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  194. package/dist/components/Contractor/Profile/ContractorProfileForm.js +48 -49
  195. package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
  196. package/dist/components/Contractor/Profile/useContractorProfile.js +35 -33
  197. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  198. package/dist/components/Contractor/Submit/Submit.js +4 -3
  199. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  200. package/dist/components/Contractor/Submit/SubmitDone.js +14 -12
  201. package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
  202. package/dist/components/Employee/Compensation/Compensation.d.ts +7 -4
  203. package/dist/components/Employee/Compensation/Compensation.js +72 -179
  204. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  205. package/dist/components/Employee/Compensation/CompensationFlowComponents.d.ts +27 -0
  206. package/dist/components/Employee/Compensation/CompensationFlowComponents.js +61 -0
  207. package/dist/components/Employee/Compensation/CompensationFlowComponents.js.map +1 -0
  208. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.d.ts +14 -0
  209. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js +128 -0
  210. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js.map +1 -0
  211. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.d.ts +17 -0
  212. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js +224 -0
  213. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js.map +1 -0
  214. package/dist/components/Employee/Compensation/EditCompensation/index.d.ts +5 -0
  215. package/dist/components/Employee/Compensation/JobsList/JobsList.d.ts +5 -0
  216. package/dist/components/Employee/Compensation/JobsList/JobsList.js +47 -0
  217. package/dist/components/Employee/Compensation/JobsList/JobsList.js.map +1 -0
  218. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.d.ts +11 -0
  219. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js +98 -0
  220. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js.map +1 -0
  221. package/dist/components/Employee/Compensation/JobsList/index.d.ts +5 -0
  222. package/dist/components/Employee/Compensation/{useCompensation.d.ts → compensationSchema.d.ts} +0 -22
  223. package/dist/components/Employee/Compensation/{useCompensation.js → compensationSchema.js} +9 -12
  224. package/dist/components/Employee/Compensation/compensationSchema.js.map +1 -0
  225. package/dist/components/Employee/Compensation/compensationStateMachine.d.ts +6 -0
  226. package/dist/components/Employee/Compensation/compensationStateMachine.js +73 -0
  227. package/dist/components/Employee/Compensation/compensationStateMachine.js.map +1 -0
  228. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +62 -36
  229. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +81 -57
  230. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  231. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +5 -12
  232. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +22 -35
  233. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  234. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +5 -3
  235. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +55 -13
  236. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +216 -226
  237. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  238. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.d.ts +15 -0
  239. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js +27 -0
  240. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js.map +1 -0
  241. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +19 -0
  242. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +29 -0
  243. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -0
  244. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +7 -0
  245. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +43 -0
  246. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js +37 -0
  247. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -0
  248. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.d.ts +13 -0
  249. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js +26 -0
  250. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js.map +1 -0
  251. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +56 -0
  252. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +180 -0
  253. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -0
  254. package/dist/components/Employee/Dashboard/BasicDetailsView.js +15 -13
  255. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  256. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -0
  257. package/dist/components/Employee/Dashboard/DashboardComponents.js +33 -15
  258. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  259. package/dist/components/Employee/Dashboard/DocumentsView.js +13 -11
  260. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
  261. package/dist/components/Employee/Dashboard/JobAndPayView.js +11 -9
  262. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  263. package/dist/components/Employee/Dashboard/TaxesView.js +21 -19
  264. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  265. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  266. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +54 -33
  267. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  268. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +15 -11
  269. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  270. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +37 -33
  271. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  272. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +26 -26
  273. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  274. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +7 -3
  275. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  276. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +8 -7
  277. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  278. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +8 -6
  279. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  280. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +6 -5
  281. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  282. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +4 -2
  283. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  284. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +7 -3
  285. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  286. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +9 -7
  287. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  288. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +36 -34
  289. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  290. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +8 -7
  291. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  292. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.d.ts +1 -1
  293. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.js.map +1 -1
  294. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js +100 -99
  295. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  296. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +4 -2
  297. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  298. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +9 -7
  299. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  300. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +42 -40
  301. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  302. package/dist/components/Employee/FederalTaxes/index.d.ts +3 -1
  303. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +8 -0
  304. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +71 -0
  305. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -0
  306. package/dist/components/Employee/FederalTaxes/management/index.d.ts +2 -0
  307. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +8 -0
  308. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +55 -0
  309. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -0
  310. package/dist/components/Employee/FederalTaxes/onboarding/index.d.ts +2 -0
  311. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +15 -0
  312. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +104 -0
  313. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -0
  314. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +3 -0
  315. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +41 -0
  316. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js +40 -0
  317. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -0
  318. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +18 -0
  319. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +31 -0
  320. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -0
  321. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +5 -0
  322. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +37 -0
  323. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js +140 -0
  324. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -0
  325. package/dist/components/Employee/Landing/Landing.js +15 -14
  326. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  327. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -1
  328. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +2 -2
  329. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  330. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +1 -1
  331. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  332. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  333. package/dist/components/Employee/PaymentMethod/Actions.js +9 -7
  334. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  335. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -4
  336. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  337. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +7 -6
  338. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  339. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -6
  340. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  341. package/dist/components/Employee/PaymentMethod/Split.js +4 -3
  342. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  343. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +9 -5
  344. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  345. package/dist/components/Employee/Profile/management/Profile.d.ts +6 -0
  346. package/dist/components/Employee/Profile/management/Profile.js +122 -0
  347. package/dist/components/Employee/Profile/management/Profile.js.map +1 -0
  348. package/dist/components/Employee/Profile/management/Profile.module.scss.js +8 -0
  349. package/dist/components/Employee/Profile/management/Profile.module.scss.js.map +1 -0
  350. package/dist/components/Employee/Profile/onboarding/AdminProfile.js +352 -0
  351. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -0
  352. package/dist/components/Employee/Profile/{EmployeeProfile.js → onboarding/EmployeeProfile.js} +60 -66
  353. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -0
  354. package/dist/components/Employee/Profile/{Profile.d.ts → onboarding/Profile.d.ts} +2 -2
  355. package/dist/components/Employee/Profile/{Profile.js → onboarding/Profile.js} +4 -4
  356. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -0
  357. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +9 -4
  358. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +61 -58
  359. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  360. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +1 -1
  361. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -1
  362. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +50 -49
  363. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  364. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +47 -46
  365. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  366. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +14 -14
  367. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  368. package/dist/components/Employee/StateTaxes/index.d.ts +2 -1
  369. package/dist/components/Employee/StateTaxes/management/StateTaxes.d.ts +6 -0
  370. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +59 -0
  371. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -0
  372. package/dist/components/Employee/StateTaxes/management/index.d.ts +2 -0
  373. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +8 -0
  374. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +49 -0
  375. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -0
  376. package/dist/components/Employee/StateTaxes/onboarding/index.d.ts +2 -0
  377. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +14 -0
  378. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +32 -0
  379. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -0
  380. package/dist/components/Employee/StateTaxes/shared/index.d.ts +3 -0
  381. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.d.ts +8 -0
  382. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.d.ts +36 -0
  383. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +56 -0
  384. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js +116 -0
  385. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -0
  386. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +12 -0
  387. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +76 -0
  388. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js.map +1 -0
  389. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +14 -0
  390. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js +23 -0
  391. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -0
  392. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMeta.d.ts +6 -0
  393. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +39 -0
  394. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +46 -0
  395. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js +93 -0
  396. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -0
  397. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/index.d.ts +6 -0
  398. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +36 -0
  399. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js +159 -0
  400. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -0
  401. package/dist/components/Employee/Taxes/Actions.js +10 -8
  402. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  403. package/dist/components/Employee/Taxes/FederalForm.js +6 -4
  404. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  405. package/dist/components/Employee/Taxes/useTaxes.js +7 -3
  406. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  407. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +4 -2
  408. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  409. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +13 -12
  410. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  411. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +4 -2
  412. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  413. package/dist/components/Employee/exports/employeeManagement.d.ts +3 -0
  414. package/dist/components/Employee/exports/employeeManagement.js +16 -10
  415. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  416. package/dist/components/Employee/exports/employeeOnboarding.d.ts +3 -3
  417. package/dist/components/Employee/exports/employeeOnboarding.js +19 -19
  418. package/dist/components/Employee/index.d.ts +2 -1
  419. package/dist/components/Employee/index.js +37 -37
  420. package/dist/components/Flow/FlowHeader.js +11 -10
  421. package/dist/components/Flow/FlowHeader.js.map +1 -1
  422. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +56 -54
  423. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  424. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +12 -11
  425. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  426. package/dist/components/InformationRequests/InformationRequests.js +4 -3
  427. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  428. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +1 -0
  429. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  430. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +10 -8
  431. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  432. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +23 -20
  433. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  434. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +20 -18
  435. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  436. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +12 -10
  437. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  438. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +8 -6
  439. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  440. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +4 -2
  441. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  442. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +13 -11
  443. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  444. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  445. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +18 -16
  446. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  447. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +4 -2
  448. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  449. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +14 -12
  450. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  451. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +30 -29
  452. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  453. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +4 -2
  454. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  455. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  456. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  457. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +7 -6
  458. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  459. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +7 -6
  460. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  461. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +4 -2
  462. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  463. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +4 -2
  464. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  465. package/dist/components/Payroll/usePreparedPayrollData.js +16 -12
  466. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  467. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +11 -0
  468. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
  469. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +3 -0
  470. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +19 -0
  471. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
  472. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.d.ts +6 -0
  473. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +149 -0
  474. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -0
  475. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +2 -0
  476. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +80 -0
  477. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -0
  478. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +21 -0
  479. package/dist/components/TimeOff/HolidayPolicyDetail/index.d.ts +5 -0
  480. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionForm.d.ts +1 -0
  481. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +115 -0
  482. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
  483. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.js +13 -10
  484. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  485. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
  486. package/dist/components/TimeOff/PolicyList/PolicyList.js +103 -0
  487. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -0
  488. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +135 -0
  489. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  490. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListTypes.d.ts +1 -1
  491. package/dist/components/TimeOff/PolicySettings/PolicySettings.js +70 -0
  492. package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -0
  493. package/dist/components/TimeOff/PolicySettings/PolicySettings.module.scss.js +16 -0
  494. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.module.scss.js.map +1 -1
  495. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +164 -0
  496. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -0
  497. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsTypes.d.ts +1 -1
  498. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +31 -0
  499. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  500. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
  501. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +68 -0
  502. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  503. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +1 -0
  504. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
  505. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlowComponents.d.ts +3 -3
  506. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js +117 -0
  507. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
  508. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +9 -0
  509. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js +25 -0
  510. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js.map +1 -0
  511. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/timeOffStateMachine.d.ts +4 -2
  512. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +487 -0
  513. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
  514. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +1 -0
  515. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +158 -0
  516. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  517. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +230 -0
  518. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  519. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +6 -0
  520. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +143 -0
  521. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -0
  522. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +2 -0
  523. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +103 -0
  524. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -0
  525. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +41 -0
  526. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +9 -0
  527. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +216 -0
  528. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -0
  529. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +12 -0
  530. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +64 -0
  531. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -0
  532. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.d.ts +9 -0
  533. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +56 -0
  534. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -0
  535. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.d.ts +5 -0
  536. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +251 -0
  537. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -0
  538. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js +10 -0
  539. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js.map +1 -0
  540. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +2 -0
  541. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +143 -0
  542. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -0
  543. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +52 -0
  544. package/dist/components/TimeOff/TimeOffPolicyDetail/index.d.ts +7 -0
  545. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +9 -0
  546. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
  547. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.d.ts +6 -0
  548. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js +9 -0
  549. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js.map +1 -0
  550. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +9 -0
  551. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
  552. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.d.ts +7 -8
  553. package/dist/components/TimeOff/index.js +27 -0
  554. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.js.map +1 -1
  555. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  556. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +95 -0
  557. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -0
  558. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.module.scss.js +10 -0
  559. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.module.scss.js.map +1 -0
  560. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
  561. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +3 -0
  562. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +86 -0
  563. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -0
  564. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +27 -0
  565. package/dist/components/TimeOff/shared/PolicyDetailLayout/index.d.ts +3 -0
  566. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.d.ts +1 -1
  567. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.js +8 -8
  568. package/dist/components/TimeOff/shared/holidayHelpers.js.map +1 -0
  569. package/dist/components/TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  570. package/dist/components/index.d.ts +1 -1
  571. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +1 -0
  572. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +35 -32
  573. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  574. package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +8 -0
  575. package/dist/contexts/ThemeProvider/ThemeProvider.js +26 -21
  576. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  577. package/dist/contexts/ThemeProvider/useTheme.d.ts +1 -1
  578. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  579. package/dist/helpers/dateFormatting.d.ts +2 -0
  580. package/dist/helpers/dateFormatting.js +4 -0
  581. package/dist/helpers/dateFormatting.js.map +1 -1
  582. package/dist/i18n/I18n.js +12 -10
  583. package/dist/i18n/I18n.js.map +1 -1
  584. package/dist/i18n/en/Company.Locations.json.js +43 -39
  585. package/dist/i18n/en/Company.Locations.json.js.map +1 -1
  586. package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
  587. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +10 -12
  588. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -1
  589. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +18 -16
  590. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -1
  591. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js +14 -0
  592. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js.map +1 -0
  593. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +30 -0
  594. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -0
  595. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +14 -14
  596. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +46 -42
  597. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -1
  598. package/dist/i18n/en/Employee.FederalTaxes.json.js +16 -10
  599. package/dist/i18n/en/Employee.FederalTaxes.json.js.map +1 -1
  600. package/dist/i18n/en/Employee.Profile.json.js +24 -20
  601. package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
  602. package/dist/i18n/en/Employee.StateTaxes.json.js +14 -6
  603. package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
  604. package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
  605. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  606. package/dist/index.d.ts +8 -2
  607. package/dist/index.js +118 -93
  608. package/dist/index.js.map +1 -1
  609. package/dist/partner-hook-utils/form/SDKFormProvider.js +18 -14
  610. package/dist/partner-hook-utils/form/SDKFormProvider.js.map +1 -1
  611. package/dist/partner-hook-utils/form/buildFormSchema.js +41 -41
  612. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  613. package/dist/partner-hook-utils/form/composeSubmitHandler.d.ts +10 -6
  614. package/dist/partner-hook-utils/form/composeSubmitHandler.js +49 -26
  615. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
  616. package/dist/partner-hook-utils/form/fields/CheckboxHookField.d.ts +1 -1
  617. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +30 -24
  618. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  619. package/dist/partner-hook-utils/form/fields/DatePickerHookField.d.ts +1 -1
  620. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -29
  621. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  622. package/dist/partner-hook-utils/form/fields/NumberInputHookField.d.ts +1 -1
  623. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +34 -28
  624. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  625. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +1 -1
  626. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +30 -24
  627. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  628. package/dist/partner-hook-utils/form/fields/SelectHookField.d.ts +1 -1
  629. package/dist/partner-hook-utils/form/fields/SelectHookField.js +38 -32
  630. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  631. package/dist/partner-hook-utils/form/fields/SwitchHookField.d.ts +1 -1
  632. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +28 -22
  633. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  634. package/dist/partner-hook-utils/form/fields/TextInputHookField.d.ts +1 -1
  635. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +30 -24
  636. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  637. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.d.ts +10 -0
  638. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js +9 -0
  639. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js.map +1 -0
  640. package/dist/partner-hook-utils/form/index.d.ts +3 -0
  641. package/dist/partner-hook-utils/form/resolveFieldError.js +10 -7
  642. package/dist/partner-hook-utils/form/resolveFieldError.js.map +1 -1
  643. package/dist/partner-hook-utils/form/useFieldErrorMessage.js +10 -7
  644. package/dist/partner-hook-utils/form/useFieldErrorMessage.js.map +1 -1
  645. package/dist/partner-hook-utils/form/useHookFieldResolution.d.ts +10 -3
  646. package/dist/partner-hook-utils/form/useHookFieldResolution.js +6 -6
  647. package/dist/partner-hook-utils/form/useHookFieldResolution.js.map +1 -1
  648. package/dist/partner-hook-utils/form/useHookFormInternals.d.ts +22 -0
  649. package/dist/partner-hook-utils/form/useHookFormInternals.js +12 -0
  650. package/dist/partner-hook-utils/form/useHookFormInternals.js.map +1 -0
  651. package/dist/partner-hook-utils/form/withOptions.d.ts +1 -1
  652. package/dist/partner-hook-utils/form/withOptions.js.map +1 -1
  653. package/dist/partner-hook-utils/types.d.ts +16 -1
  654. package/dist/shared/constants.d.ts +24 -0
  655. package/dist/shared/constants.js +42 -30
  656. package/dist/shared/constants.js.map +1 -1
  657. package/dist/style.css +1 -1
  658. package/dist/types/i18next.d.ts +82 -14
  659. package/docs/reference/endpoint-inventory.json +453 -123
  660. package/package.json +22 -20
  661. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +0 -8
  662. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js.map +0 -1
  663. package/dist/components/Employee/Compensation/Actions.d.ts +0 -1
  664. package/dist/components/Employee/Compensation/Actions.js +0 -38
  665. package/dist/components/Employee/Compensation/Actions.js.map +0 -1
  666. package/dist/components/Employee/Compensation/Edit.d.ts +0 -5
  667. package/dist/components/Employee/Compensation/Edit.js +0 -178
  668. package/dist/components/Employee/Compensation/Edit.js.map +0 -1
  669. package/dist/components/Employee/Compensation/Head.d.ts +0 -1
  670. package/dist/components/Employee/Compensation/Head.js +0 -22
  671. package/dist/components/Employee/Compensation/Head.js.map +0 -1
  672. package/dist/components/Employee/Compensation/List.d.ts +0 -1
  673. package/dist/components/Employee/Compensation/List.js +0 -71
  674. package/dist/components/Employee/Compensation/List.js.map +0 -1
  675. package/dist/components/Employee/Compensation/useCompensation.js.map +0 -1
  676. package/dist/components/Employee/FederalTaxes/Actions.d.ts +0 -1
  677. package/dist/components/Employee/FederalTaxes/Actions.js +0 -13
  678. package/dist/components/Employee/FederalTaxes/Actions.js.map +0 -1
  679. package/dist/components/Employee/FederalTaxes/FederalForm.d.ts +0 -12
  680. package/dist/components/Employee/FederalTaxes/FederalForm.js +0 -109
  681. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +0 -1
  682. package/dist/components/Employee/FederalTaxes/FederalTaxes.d.ts +0 -6
  683. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +0 -84
  684. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +0 -1
  685. package/dist/components/Employee/FederalTaxes/Head.d.ts +0 -1
  686. package/dist/components/Employee/FederalTaxes/Head.js +0 -24
  687. package/dist/components/Employee/FederalTaxes/Head.js.map +0 -1
  688. package/dist/components/Employee/FederalTaxes/useFederalTaxes.d.ts +0 -5
  689. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +0 -20
  690. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +0 -1
  691. package/dist/components/Employee/Profile/AdminProfile.js +0 -358
  692. package/dist/components/Employee/Profile/AdminProfile.js.map +0 -1
  693. package/dist/components/Employee/Profile/EmployeeProfile.js.map +0 -1
  694. package/dist/components/Employee/Profile/Profile.js.map +0 -1
  695. package/dist/components/Employee/Profile/index.d.ts +0 -2
  696. package/dist/components/Employee/StateTaxes/Actions.d.ts +0 -1
  697. package/dist/components/Employee/StateTaxes/Actions.js +0 -13
  698. package/dist/components/Employee/StateTaxes/Actions.js.map +0 -1
  699. package/dist/components/Employee/StateTaxes/StateForm.d.ts +0 -6
  700. package/dist/components/Employee/StateTaxes/StateForm.js +0 -34
  701. package/dist/components/Employee/StateTaxes/StateForm.js.map +0 -1
  702. package/dist/components/Employee/StateTaxes/StateTaxes.d.ts +0 -7
  703. package/dist/components/Employee/StateTaxes/StateTaxes.js +0 -98
  704. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +0 -1
  705. package/dist/components/Employee/StateTaxes/useStateTaxes.d.ts +0 -8
  706. package/dist/components/Employee/StateTaxes/useStateTaxes.js +0 -20
  707. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +0 -1
  708. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +0 -46
  709. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +0 -1
  710. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +0 -46
  711. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +0 -1
  712. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +0 -49
  713. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +0 -1
  714. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +0 -1
  715. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +0 -107
  716. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +0 -1
  717. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +0 -124
  718. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +0 -1
  719. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +0 -46
  720. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +0 -1
  721. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js +0 -18
  722. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js +0 -166
  723. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js.map +0 -1
  724. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +0 -29
  725. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +0 -1
  726. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +0 -66
  727. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +0 -1
  728. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +0 -1
  729. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +0 -103
  730. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +0 -1
  731. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +0 -290
  732. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +0 -1
  733. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +0 -71
  734. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +0 -1
  735. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +0 -206
  736. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +0 -1
  737. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +0 -35
  738. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +0 -1
  739. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +0 -35
  740. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +0 -1
  741. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +0 -5
  742. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +0 -35
  743. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +0 -1
  744. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +0 -5
  745. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +0 -35
  746. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +0 -1
  747. package/dist/components/UNSTABLE_TimeOff/index.js +0 -29
  748. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +0 -2
  749. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +0 -1
  750. /package/dist/components/Employee/{Compensation/shared/useCompensationForm/compensationSchemaParity.test.d.ts → FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.test.d.ts} +0 -0
  751. /package/dist/components/Employee/Profile/{AdminProfile.d.ts → onboarding/AdminProfile.d.ts} +0 -0
  752. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js → onboarding/AdminProfile.module.scss.js} +0 -0
  753. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js.map → onboarding/AdminProfile.module.scss.js.map} +0 -0
  754. /package/dist/components/Employee/Profile/{EmployeeProfile.d.ts → onboarding/EmployeeProfile.d.ts} +0 -0
  755. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js → onboarding/EmployeeProfile.module.scss.js} +0 -0
  756. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js.map → onboarding/EmployeeProfile.module.scss.js.map} +0 -0
  757. /package/dist/components/{UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts → Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.test.d.ts} +0 -0
  758. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +0 -0
  759. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +0 -0
  760. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyList.d.ts +0 -0
  761. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.d.ts +0 -0
  762. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js +0 -0
  763. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js.map +0 -0
  764. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.d.ts +0 -0
  765. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsPresentation.d.ts +0 -0
  766. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelector.d.ts +0 -0
  767. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.d.ts +0 -0
  768. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.js +0 -0
  769. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/index.d.ts +0 -0
  770. /package/dist/components/{UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts → TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts} +0 -0
  771. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +0 -0
  772. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +0 -0
  773. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +0 -0
  774. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +0 -0
  775. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/index.d.ts +0 -0
  776. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +0 -0
  777. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +0 -0
  778. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/index.d.ts +0 -0
@@ -1,19 +1,20 @@
1
1
  import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
2
  import { useTranslation as s } from "react-i18next";
3
3
  import { useBankAccountForm as m } from "./context.js";
4
- import { ActionsLayout as a } from "../../../Common/ActionsLayout/ActionsLayout.js";
5
- import { useComponentContext as u } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
- import { componentEvents as p } from "../../../../shared/constants.js";
7
- function B() {
8
- const { t } = s("Company.BankAccount"), { isPending: i, isEditing: r, onEvent: c } = m(), n = u();
9
- return /* @__PURE__ */ e(a, { children: [
4
+ import { componentEvents as a } from "../../../../shared/constants.js";
5
+ import "classnames";
6
+ import { ActionsLayout as u } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
+ import { useComponentContext as p } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
+ function b() {
9
+ const { t } = s("Company.BankAccount"), { isPending: i, isEditing: r, onEvent: c } = m(), n = p();
10
+ return /* @__PURE__ */ e(u, { children: [
10
11
  r && /* @__PURE__ */ o(
11
12
  n.Button,
12
13
  {
13
14
  type: "button",
14
15
  variant: "secondary",
15
16
  onClick: () => {
16
- c(p.COMPANY_BANK_ACCOUNT_CANCEL);
17
+ c(a.COMPANY_BANK_ACCOUNT_CANCEL);
17
18
  },
18
19
  children: t("cancelCta")
19
20
  }
@@ -22,6 +23,6 @@ function B() {
22
23
  ] });
23
24
  }
24
25
  export {
25
- B as Actions
26
+ b as Actions
26
27
  };
27
28
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccountForm } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { componentEvents } from '@/shared/constants'\n\nexport function Actions() {\n const { t } = useTranslation('Company.BankAccount')\n const { isPending, isEditing, onEvent } = useBankAccountForm()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {isEditing && (\n <Components.Button\n type=\"button\"\n variant=\"secondary\"\n onClick={() => {\n onEvent(componentEvents.COMPANY_BANK_ACCOUNT_CANCEL)\n }}\n >\n {t('cancelCta')}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isPending} data-testid=\"bank-account-submit\">\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","isEditing","onEvent","useBankAccountForm","Components","useComponentContext","ActionsLayout","jsx","componentEvents"],"mappings":";;;;;;AAMO,SAASA,IAAU;AACxB,QAAM,EAAE,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,GAAW,WAAAC,GAAW,SAAAC,EAAA,IAAYC,EAAA,GACpCC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACE,UAAA;AAAA,IAAAL,KACC,gBAAAM;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,SAAQ;AAAA,QACR,SAAS,MAAM;AACb,UAAAF,EAAQM,EAAgB,2BAA2B;AAAA,QACrD;AAAA,QAEC,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAGlB,gBAAAD,EAACH,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWJ,GAAW,eAAY,uBAChE,UAAA,EAAE,aAAa,EAAA,CAClB;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccountForm } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { componentEvents } from '@/shared/constants'\n\nexport function Actions() {\n const { t } = useTranslation('Company.BankAccount')\n const { isPending, isEditing, onEvent } = useBankAccountForm()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {isEditing && (\n <Components.Button\n type=\"button\"\n variant=\"secondary\"\n onClick={() => {\n onEvent(componentEvents.COMPANY_BANK_ACCOUNT_CANCEL)\n }}\n >\n {t('cancelCta')}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isPending} data-testid=\"bank-account-submit\">\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","isEditing","onEvent","useBankAccountForm","Components","useComponentContext","ActionsLayout","jsx","componentEvents"],"mappings":";;;;;;;AAMO,SAASA,IAAU;AACxB,QAAM,EAAE,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,GAAW,WAAAC,GAAW,SAAAC,EAAA,IAAYC,EAAA,GACpCC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACE,UAAA;AAAA,IAAAL,KACC,gBAAAM;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,SAAQ;AAAA,QACR,SAAS,MAAM;AACb,UAAAF,EAAQM,EAAgB,2BAA2B;AAAA,QACrD;AAAA,QAEC,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAGlB,gBAAAD,EAACH,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWJ,GAAW,eAAY,uBAChE,UAAA,EAAE,aAAa,EAAA,CAClB;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,15 +1,17 @@
1
1
  import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- import { z as n } from "zod";
3
- import { useTranslation as i } from "react-i18next";
4
- import { accountNumberValidation as m, routingNumberValidation as u } from "../../../../helpers/validations.js";
2
+ import { z as i } from "zod";
3
+ import { useTranslation as m } from "react-i18next";
4
+ import { accountNumberValidation as n, routingNumberValidation as u } from "../../../../helpers/validations.js";
5
5
  import { Flex as a } from "../../../Common/Flex/Flex.js";
6
+ import "classnames";
7
+ import "../../../../shared/constants.js";
6
8
  import { TextInputField as e } from "../../../Common/Fields/TextInputField/TextInputField.js";
7
- const N = n.object({
9
+ const g = i.object({
8
10
  routingNumber: u,
9
- accountNumber: m
11
+ accountNumber: n
10
12
  });
11
- function d() {
12
- const { t: r } = i("Company.BankAccount");
13
+ function x() {
14
+ const { t: r } = m("Company.BankAccount");
13
15
  return /* @__PURE__ */ t(a, { flexDirection: "column", gap: 20, children: [
14
16
  /* @__PURE__ */ o(
15
17
  e,
@@ -33,7 +35,7 @@ function d() {
33
35
  ] });
34
36
  }
35
37
  export {
36
- N as BankAccountFormSchema,
37
- d as Form
38
+ g as BankAccountFormSchema,
39
+ x as Form
38
40
  };
39
41
  //# sourceMappingURL=Form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { accountNumberValidation, routingNumberValidation } from '@/helpers/validations'\nimport { Flex, TextInputField } from '@/components/Common'\n\nexport const BankAccountFormSchema = z.object({\n routingNumber: routingNumberValidation,\n accountNumber: accountNumberValidation,\n})\n\nexport type BankAccountFormInputs = z.infer<typeof BankAccountFormSchema>\n\nexport function Form() {\n const { t } = useTranslation('Company.BankAccount')\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <TextInputField\n name=\"routingNumber\"\n isRequired\n label={t('form.routingNumberLabel')}\n description={t('form.routingNumberDescription')}\n errorMessage={t('validations.routingNumber')}\n />\n <TextInputField\n name=\"accountNumber\"\n label={t('form.accountNumberLabel')}\n isRequired\n errorMessage={t('validations.accountNumber')}\n />\n </Flex>\n )\n}\n"],"names":["BankAccountFormSchema","z","routingNumberValidation","accountNumberValidation","Form","t","useTranslation","jsxs","Flex","jsx","TextInputField"],"mappings":";;;;;;AAKO,MAAMA,IAAwBC,EAAE,OAAO;AAAA,EAC5C,eAAeC;AAAA,EACf,eAAeC;AACjB,CAAC;AAIM,SAASC,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAElD,SACE,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOL,EAAE,yBAAyB;AAAA,QAClC,aAAaA,EAAE,+BAA+B;AAAA,QAC9C,cAAcA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAAA;AAAA,IAE7C,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOL,EAAE,yBAAyB;AAAA,QAClC,YAAU;AAAA,QACV,cAAcA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAAA;AAAA,EAC7C,GACF;AAEJ;"}
1
+ {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { accountNumberValidation, routingNumberValidation } from '@/helpers/validations'\nimport { Flex, TextInputField } from '@/components/Common'\n\nexport const BankAccountFormSchema = z.object({\n routingNumber: routingNumberValidation,\n accountNumber: accountNumberValidation,\n})\n\nexport type BankAccountFormInputs = z.infer<typeof BankAccountFormSchema>\n\nexport function Form() {\n const { t } = useTranslation('Company.BankAccount')\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <TextInputField\n name=\"routingNumber\"\n isRequired\n label={t('form.routingNumberLabel')}\n description={t('form.routingNumberDescription')}\n errorMessage={t('validations.routingNumber')}\n />\n <TextInputField\n name=\"accountNumber\"\n label={t('form.accountNumberLabel')}\n isRequired\n errorMessage={t('validations.accountNumber')}\n />\n </Flex>\n )\n}\n"],"names":["BankAccountFormSchema","z","routingNumberValidation","accountNumberValidation","Form","t","useTranslation","jsxs","Flex","jsx","TextInputField"],"mappings":";;;;;;;;AAKO,MAAMA,IAAwBC,EAAE,OAAO;AAAA,EAC5C,eAAeC;AAAA,EACf,eAAeC;AACjB,CAAC;AAIM,SAASC,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAElD,SACE,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOL,EAAE,yBAAyB;AAAA,QAClC,aAAaA,EAAE,+BAA+B;AAAA,QAC9C,cAAcA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAAA;AAAA,IAE7C,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOL,EAAE,yBAAyB;AAAA,QAClC,YAAU;AAAA,QACV,cAAcA,EAAE,2BAA2B;AAAA,MAAA;AAAA,IAAA;AAAA,EAC7C,GACF;AAEJ;"}
@@ -9,12 +9,16 @@ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
10
  import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "dompurify";
13
+ import "../../../../contexts/LocaleProvider/useLocale.js";
12
14
  import "../../../../shared/constants.js";
15
+ import "classnames";
13
16
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
17
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
18
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [C, d] = o("BankAccountContext");
19
+ const [f, v] = o("BankAccountContext");
16
20
  export {
17
- d as BankAccountFormProvider,
18
- C as useBankAccountForm
21
+ v as BankAccountFormProvider,
22
+ f as useBankAccountForm
19
23
  };
20
24
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,oBAAoB;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,oBAAoB;"}
@@ -1,16 +1,18 @@
1
- import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
- import { useTranslation as i } from "react-i18next";
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { useTranslation as e } from "react-i18next";
3
3
  import { useBankAccount as a } from "./context.js";
4
- import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
5
- import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
- function d() {
7
- const { handleContinue: c, handleChange: r } = a(), { t: n } = i("Company.BankAccount"), o = m();
8
- return /* @__PURE__ */ e(s, { children: [
9
- /* @__PURE__ */ t(o.Button, { variant: "secondary", onClick: r, children: n("changeBankAccountCta") }),
10
- /* @__PURE__ */ t(o.Button, { onClick: c, children: n("continueCta") })
4
+ import "../../../../shared/constants.js";
5
+ import "classnames";
6
+ import { ActionsLayout as m } from "../../../Common/ActionsLayout/ActionsLayout.js";
7
+ import { useComponentContext as s } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
8
+ function k() {
9
+ const { handleContinue: r, handleChange: c } = a(), { t: n } = e("Company.BankAccount"), o = s();
10
+ return /* @__PURE__ */ i(m, { children: [
11
+ /* @__PURE__ */ t(o.Button, { variant: "secondary", onClick: c, children: n("changeBankAccountCta") }),
12
+ /* @__PURE__ */ t(o.Button, { onClick: r, children: n("continueCta") })
11
13
  ] });
12
14
  }
13
15
  export {
14
- d as Actions
16
+ k as Actions
15
17
  };
16
18
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccount } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { handleContinue, handleChange } = useBankAccount()\n const { t } = useTranslation('Company.BankAccount')\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleChange}>\n {t('changeBankAccountCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","handleContinue","handleChange","useBankAccount","t","useTranslation","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,gBAAAC,GAAgB,cAAAC,EAAA,IAAiBC,EAAA,GACnC,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASJ,GAC7C,UAAAE,EAAE,sBAAsB,EAAA,CAC3B;AAAA,IACA,gBAAAK,EAACH,EAAW,QAAX,EAAkB,SAASL,GAAiB,UAAAG,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccount } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { handleContinue, handleChange } = useBankAccount()\n const { t } = useTranslation('Company.BankAccount')\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleChange}>\n {t('changeBankAccountCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","handleContinue","handleChange","useBankAccount","t","useTranslation","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,gBAAAC,GAAgB,cAAAC,EAAA,IAAiBC,EAAA,GACnC,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASJ,GAC7C,UAAAE,EAAE,sBAAsB,EAAA,CAC3B;AAAA,IACA,gBAAAK,EAACH,EAAW,QAAX,EAAkB,SAASL,GAAiB,UAAAG,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
@@ -1,33 +1,35 @@
1
- import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
- import { useTranslation as e } from "react-i18next";
3
- import { useBankAccountVerify as r } from "./context.js";
1
+ import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
+ import { useTranslation as c } from "react-i18next";
3
+ import { useBankAccountVerify as e } from "./context.js";
4
+ import "../../../../shared/constants.js";
5
+ import "classnames";
4
6
  import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
5
7
  import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
- function y() {
7
- const { t: n } = e("Company.BankAccount"), { isPending: t, handleCancel: a } = r(), o = m();
8
- return /* @__PURE__ */ c(s, { children: [
8
+ function k() {
9
+ const { t } = c("Company.BankAccount"), { isPending: n, handleCancel: a } = e(), o = m();
10
+ return /* @__PURE__ */ r(s, { children: [
9
11
  /* @__PURE__ */ i(
10
12
  o.Button,
11
13
  {
12
14
  variant: "secondary",
13
- isLoading: t,
15
+ isLoading: n,
14
16
  onClick: a,
15
17
  "data-testid": "bank-account-verify-cancel",
16
- children: n("cancelCta")
18
+ children: t("cancelCta")
17
19
  }
18
20
  ),
19
21
  /* @__PURE__ */ i(
20
22
  o.Button,
21
23
  {
22
24
  type: "submit",
23
- isLoading: t,
25
+ isLoading: n,
24
26
  "data-testid": "bank-account-verify-submit",
25
- children: n("verifyCta")
27
+ children: t("verifyCta")
26
28
  }
27
29
  )
28
30
  ] });
29
31
  }
30
32
  export {
31
- y as Actions
33
+ k as Actions
32
34
  };
33
35
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccountVerify } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.BankAccount')\n const { isPending, handleCancel } = useBankAccountVerify()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n isLoading={isPending}\n onClick={handleCancel}\n data-testid=\"bank-account-verify-cancel\"\n >\n {t('cancelCta')}\n </Components.Button>\n <Components.Button\n type=\"submit\"\n isLoading={isPending}\n data-testid=\"bank-account-verify-submit\"\n >\n {t('verifyCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","isPending","handleCancel","useBankAccountVerify","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,GAAW,cAAAC,EAAA,IAAiBC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,SAAQ;AAAA,QACR,WAAWH;AAAA,QACX,SAASC;AAAA,QACT,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAEhB,gBAAAK;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,WAAWH;AAAA,QACX,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useBankAccountVerify } from './context'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.BankAccount')\n const { isPending, handleCancel } = useBankAccountVerify()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button\n variant=\"secondary\"\n isLoading={isPending}\n onClick={handleCancel}\n data-testid=\"bank-account-verify-cancel\"\n >\n {t('cancelCta')}\n </Components.Button>\n <Components.Button\n type=\"submit\"\n isLoading={isPending}\n data-testid=\"bank-account-verify-submit\"\n >\n {t('verifyCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","useTranslation","isPending","handleCancel","useBankAccountVerify","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,WAAAC,GAAW,cAAAC,EAAA,IAAiBC,EAAA,GAC9BC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,SAAQ;AAAA,QACR,WAAWH;AAAA,QACX,SAASC;AAAA,QACT,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAEhB,gBAAAK;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAK;AAAA,QACL,WAAWH;AAAA,QACX,eAAY;AAAA,QAEX,YAAE,WAAW;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
@@ -2,12 +2,14 @@ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
2
  import { z as o } from "zod";
3
3
  import { useTranslation as n } from "react-i18next";
4
4
  import { Flex as s } from "../../../Common/Flex/Flex.js";
5
+ import "classnames";
6
+ import "../../../../shared/constants.js";
5
7
  import { NumberInputField as i } from "../../../Common/Fields/NumberInputField/NumberInputField.js";
6
- const u = o.object({
8
+ const f = o.object({
7
9
  deposit1: o.number().min(0),
8
10
  deposit2: o.number().min(0)
9
11
  });
10
- function l() {
12
+ function b() {
11
13
  const { t: e } = n("Company.BankAccount");
12
14
  return /* @__PURE__ */ t(s, { flexDirection: "column", gap: 20, children: [
13
15
  /* @__PURE__ */ r(
@@ -35,7 +37,7 @@ function l() {
35
37
  ] });
36
38
  }
37
39
  export {
38
- u as BankAccountVerifySchema,
39
- l as Form
40
+ f as BankAccountVerifySchema,
41
+ b as Form
40
42
  };
41
43
  //# sourceMappingURL=Form.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { Flex, NumberInputField } from '@/components/Common'\n\nexport const BankAccountVerifySchema = z.object({\n deposit1: z.number().min(0),\n deposit2: z.number().min(0),\n})\n\nexport type BankAccountVerifyInputs = z.infer<typeof BankAccountVerifySchema>\n\nexport function Form() {\n const { t } = useTranslation('Company.BankAccount')\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <NumberInputField\n name=\"deposit1\"\n format=\"currency\"\n isRequired\n label={t('deposit1Label')}\n description={t('deposit1Description')}\n errorMessage={t('validations.deposit1')}\n />\n <NumberInputField\n name=\"deposit2\"\n format=\"currency\"\n label={t('deposit2Label')}\n description={t('deposit2Description')}\n isRequired\n errorMessage={t('validations.deposit2')}\n />\n </Flex>\n )\n}\n"],"names":["BankAccountVerifySchema","z","Form","t","useTranslation","jsxs","Flex","jsx","NumberInputField"],"mappings":";;;;;AAIO,MAAMA,IAA0BC,EAAE,OAAO;AAAA,EAC9C,UAAUA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC1B,UAAUA,EAAE,OAAA,EAAS,IAAI,CAAC;AAC5B,CAAC;AAIM,SAASC,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAElD,SACE,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,QAAO;AAAA,QACP,YAAU;AAAA,QACV,OAAOL,EAAE,eAAe;AAAA,QACxB,aAAaA,EAAE,qBAAqB;AAAA,QACpC,cAAcA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,IAExC,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,QAAO;AAAA,QACP,OAAOL,EAAE,eAAe;AAAA,QACxB,aAAaA,EAAE,qBAAqB;AAAA,QACpC,YAAU;AAAA,QACV,cAAcA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,EACxC,GACF;AAEJ;"}
1
+ {"version":3,"file":"Form.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountVerify/Form.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { useTranslation } from 'react-i18next'\nimport { Flex, NumberInputField } from '@/components/Common'\n\nexport const BankAccountVerifySchema = z.object({\n deposit1: z.number().min(0),\n deposit2: z.number().min(0),\n})\n\nexport type BankAccountVerifyInputs = z.infer<typeof BankAccountVerifySchema>\n\nexport function Form() {\n const { t } = useTranslation('Company.BankAccount')\n\n return (\n <Flex flexDirection=\"column\" gap={20}>\n <NumberInputField\n name=\"deposit1\"\n format=\"currency\"\n isRequired\n label={t('deposit1Label')}\n description={t('deposit1Description')}\n errorMessage={t('validations.deposit1')}\n />\n <NumberInputField\n name=\"deposit2\"\n format=\"currency\"\n label={t('deposit2Label')}\n description={t('deposit2Description')}\n isRequired\n errorMessage={t('validations.deposit2')}\n />\n </Flex>\n )\n}\n"],"names":["BankAccountVerifySchema","z","Form","t","useTranslation","jsxs","Flex","jsx","NumberInputField"],"mappings":";;;;;;;AAIO,MAAMA,IAA0BC,EAAE,OAAO;AAAA,EAC9C,UAAUA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC1B,UAAUA,EAAE,OAAA,EAAS,IAAI,CAAC;AAC5B,CAAC;AAIM,SAASC,IAAO;AACrB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAElD,SACE,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,IAChC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,QAAO;AAAA,QACP,YAAU;AAAA,QACV,OAAOL,EAAE,eAAe;AAAA,QACxB,aAAaA,EAAE,qBAAqB;AAAA,QACpC,cAAcA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,IAExC,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,QAAO;AAAA,QACP,OAAOL,EAAE,eAAe;AAAA,QACxB,aAAaA,EAAE,qBAAqB;AAAA,QACpC,YAAU;AAAA,QACV,cAAcA,EAAE,sBAAsB;AAAA,MAAA;AAAA,IAAA;AAAA,EACxC,GACF;AAEJ;"}
@@ -1,13 +1,15 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as e } from "react-i18next";
3
- import { useDocumentList as m } from "./useDocumentList.js";
2
+ import { useTranslation as m } from "react-i18next";
3
+ import { useDocumentList as e } from "./useDocumentList.js";
4
+ import "../../../../shared/constants.js";
5
+ import "classnames";
4
6
  import { ActionsLayout as s } from "../../../Common/ActionsLayout/ActionsLayout.js";
5
7
  import { useComponentContext as c } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
- function l({ continueCtaLabel: t }) {
7
- const { t: n } = e("Company.DocumentList"), { handleContinue: i } = m(), r = c();
8
+ function h({ continueCtaLabel: t }) {
9
+ const { t: n } = m("Company.DocumentList"), { handleContinue: i } = e(), r = c();
8
10
  return /* @__PURE__ */ o(s, { children: /* @__PURE__ */ o(r.Button, { onClick: i, children: t || n("continueCta") }) });
9
11
  }
10
12
  export {
11
- l as Actions
13
+ h as Actions
12
14
  };
13
15
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface ActionsProps {\n continueCtaLabel?: string\n}\n\nexport function Actions({ continueCtaLabel }: ActionsProps) {\n const { t } = useTranslation('Company.DocumentList')\n const { handleContinue } = useDocumentList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button onClick={handleContinue}>\n {continueCtaLabel || t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","continueCtaLabel","t","useTranslation","handleContinue","useDocumentList","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;AASO,SAASA,EAAQ,EAAE,kBAAAC,KAAkC;AAC1D,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,gBAAAC,EAAA,IAAmBC,EAAA,GACrBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,SAASF,GACzB,UAAAH,KAAoBC,EAAE,aAAa,EAAA,CACtC,GACF;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDocumentList } from './useDocumentList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface ActionsProps {\n continueCtaLabel?: string\n}\n\nexport function Actions({ continueCtaLabel }: ActionsProps) {\n const { t } = useTranslation('Company.DocumentList')\n const { handleContinue } = useDocumentList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button onClick={handleContinue}>\n {continueCtaLabel || t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","continueCtaLabel","t","useTranslation","handleContinue","useDocumentList","Components","useComponentContext","jsx","ActionsLayout"],"mappings":";;;;;;;AASO,SAASA,EAAQ,EAAE,kBAAAC,KAAkC;AAC1D,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,sBAAsB,GAC7C,EAAE,gBAAAC,EAAA,IAAmBC,EAAA,GACrBC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACF,EAAW,QAAX,EAAkB,SAASF,GACzB,UAAAH,KAAoBC,EAAE,aAAa,EAAA,CACtC,GACF;AAEJ;"}
@@ -10,8 +10,9 @@ import { useComponentDictionary as D, useI18n as M } from "../../../../i18n/I18n
10
10
  import { BaseComponent as R } from "../../../Base/Base.js";
11
11
  import { useBase as A } from "../../../Base/useBase.js";
12
12
  import { Flex as E } from "../../../Common/Flex/Flex.js";
13
- import { companyEvents as r } from "../../../../shared/constants.js";
14
- function z(n) {
13
+ import "classnames";
14
+ import { companyEvents as e } from "../../../../shared/constants.js";
15
+ function J(n) {
15
16
  return /* @__PURE__ */ o(R, { ...n, children: /* @__PURE__ */ o(N, { ...n, children: n.children }) });
16
17
  }
17
18
  function N({ companyId: n, signatoryId: i, className: m, children: s, dictionary: a }) {
@@ -25,7 +26,7 @@ function N({ companyId: n, signatoryId: i, className: m, children: s, dictionary
25
26
  data: { signatories: l }
26
27
  } = C({
27
28
  companyUuid: n
28
- }), e = l[0], f = !!i && e?.uuid === i;
29
+ }), r = l[0], f = !!i && r?.uuid === i;
29
30
  return /* @__PURE__ */ o("section", { className: m, children: /* @__PURE__ */ o(
30
31
  _,
31
32
  {
@@ -33,16 +34,16 @@ function N({ companyId: n, signatoryId: i, className: m, children: s, dictionary
33
34
  companyForms: p,
34
35
  documentListError: u,
35
36
  handleRequestFormToSign: (d) => {
36
- t(r.COMPANY_VIEW_FORM_TO_SIGN, d);
37
+ t(e.COMPANY_VIEW_FORM_TO_SIGN, d);
37
38
  },
38
39
  handleChangeSignatory: () => {
39
- t(r.COMPANY_FORM_EDIT_SIGNATORY, e);
40
+ t(e.COMPANY_FORM_EDIT_SIGNATORY, r);
40
41
  },
41
42
  handleContinue: () => {
42
- t(r.COMPANY_FORMS_DONE);
43
+ t(e.COMPANY_FORMS_DONE);
43
44
  },
44
45
  isSelfSignatory: f,
45
- signatory: e
46
+ signatory: r
46
47
  },
47
48
  children: /* @__PURE__ */ o(E, { flexDirection: "column", gap: 32, children: s || /* @__PURE__ */ g(h, { children: [
48
49
  /* @__PURE__ */ o(y, {}),
@@ -54,6 +55,6 @@ function N({ companyId: n, signatoryId: i, className: m, children: s, dictionary
54
55
  ) });
55
56
  }
56
57
  export {
57
- z as DocumentList
58
+ J as DocumentList
58
59
  };
59
60
  //# sourceMappingURL=DocumentList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { useCompanyFormsGetAllSuspense } from '@gusto/embedded-api/react-query/companyFormsGetAll'\nimport { useSignatoriesListSuspense } from '@gusto/embedded-api/react-query/signatoriesList'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { ManageSignatories } from './ManageSignatories'\nimport { Actions } from './Actions'\nimport { DocumentListProvider } from './useDocumentList'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\n\ninterface DocumentListProps extends BaseComponentInterface<'Company.DocumentList'> {\n companyId: string\n signatoryId?: string\n}\n\nexport function DocumentList(props: DocumentListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, signatoryId, className, children, dictionary }: DocumentListProps) {\n useComponentDictionary('Company.DocumentList', dictionary)\n useI18n('Company.DocumentList')\n const { onEvent } = useBase()\n\n const {\n data: { formList },\n error: documentListError,\n } = useCompanyFormsGetAllSuspense({\n companyId,\n })\n const companyForms = formList!\n\n const {\n data: { signatories: signatoryList },\n } = useSignatoriesListSuspense({\n companyUuid: companyId,\n })\n const signatories = signatoryList!\n\n // For now, this will only ever have one entry for the current signatory since companies can\n // only have one signatory. If that changes in the future, this UX will need to be revisited.\n const signatory = signatories[0]\n const isSelfSignatory = !!signatoryId && signatory?.uuid === signatoryId\n\n const handleRequestFormToSign = (form: FormSchema) => {\n onEvent(companyEvents.COMPANY_VIEW_FORM_TO_SIGN, form)\n }\n\n const handleChangeSignatory = () => {\n onEvent(companyEvents.COMPANY_FORM_EDIT_SIGNATORY, signatory)\n }\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_FORMS_DONE)\n }\n\n return (\n <section className={className}>\n <DocumentListProvider\n value={{\n companyForms,\n documentListError,\n handleRequestFormToSign,\n handleChangeSignatory,\n handleContinue,\n isSelfSignatory,\n signatory,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <ManageSignatories />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </DocumentListProvider>\n </section>\n )\n}\n"],"names":["DocumentList","props","jsx","BaseComponent","Root","companyId","signatoryId","className","children","dictionary","useComponentDictionary","useI18n","onEvent","useBase","formList","documentListError","useCompanyFormsGetAllSuspense","companyForms","signatoryList","useSignatoriesListSuspense","signatory","isSelfSignatory","DocumentListProvider","form","companyEvents","Flex","jsxs","Fragment","Head","ManageSignatories","List","Actions"],"mappings":";;;;;;;;;;;;;AAmBO,SAASA,EAAaC,GAA0B;AACrD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,aAAAC,GAAa,WAAAC,GAAW,UAAAC,GAAU,YAAAC,KAAiC;AAC5F,EAAAC,EAAuB,wBAAwBD,CAAU,GACzDE,EAAQ,sBAAsB;AAC9B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd;AAAA,IACJ,MAAM,EAAE,UAAAC,EAAA;AAAA,IACR,OAAOC;AAAA,EAAA,IACLC,EAA8B;AAAA,IAChC,WAAAX;AAAA,EAAA,CACD,GACKY,IAAeH,GAEf;AAAA,IACJ,MAAM,EAAE,aAAaI,EAAA;AAAA,EAAc,IACjCC,EAA2B;AAAA,IAC7B,aAAad;AAAA,EAAA,CACd,GAKKe,IAJcF,EAIU,CAAC,GACzBG,IAAkB,CAAC,CAACf,KAAec,GAAW,SAASd;AAc7D,SACE,gBAAAJ,EAAC,aAAQ,WAAAK,GACP,UAAA,gBAAAL;AAAA,IAACoB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,cAAAL;AAAA,QACA,mBAAAF;AAAA,QACA,yBAlBwB,CAACQ,MAAqB;AACpD,UAAAX,EAAQY,EAAc,2BAA2BD,CAAI;AAAA,QACvD;AAAA,QAiBQ,uBAfsB,MAAM;AAClC,UAAAX,EAAQY,EAAc,6BAA6BJ,CAAS;AAAA,QAC9D;AAAA,QAcQ,gBAZe,MAAM;AAC3B,UAAAR,EAAQY,EAAc,kBAAkB;AAAA,QAC1C;AAAA,QAWQ,iBAAAH;AAAA,QACA,WAAAD;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAlB,EAACuB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAjB,KAGC,gBAAAkB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAzB,EAAC0B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAkB;AAAA,0BAClBC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"DocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/DocumentList.tsx"],"sourcesContent":["import { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { useCompanyFormsGetAllSuspense } from '@gusto/embedded-api/react-query/companyFormsGetAll'\nimport { useSignatoriesListSuspense } from '@gusto/embedded-api/react-query/signatoriesList'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { ManageSignatories } from './ManageSignatories'\nimport { Actions } from './Actions'\nimport { DocumentListProvider } from './useDocumentList'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\n\ninterface DocumentListProps extends BaseComponentInterface<'Company.DocumentList'> {\n companyId: string\n signatoryId?: string\n}\n\nexport function DocumentList(props: DocumentListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, signatoryId, className, children, dictionary }: DocumentListProps) {\n useComponentDictionary('Company.DocumentList', dictionary)\n useI18n('Company.DocumentList')\n const { onEvent } = useBase()\n\n const {\n data: { formList },\n error: documentListError,\n } = useCompanyFormsGetAllSuspense({\n companyId,\n })\n const companyForms = formList!\n\n const {\n data: { signatories: signatoryList },\n } = useSignatoriesListSuspense({\n companyUuid: companyId,\n })\n const signatories = signatoryList!\n\n // For now, this will only ever have one entry for the current signatory since companies can\n // only have one signatory. If that changes in the future, this UX will need to be revisited.\n const signatory = signatories[0]\n const isSelfSignatory = !!signatoryId && signatory?.uuid === signatoryId\n\n const handleRequestFormToSign = (form: FormSchema) => {\n onEvent(companyEvents.COMPANY_VIEW_FORM_TO_SIGN, form)\n }\n\n const handleChangeSignatory = () => {\n onEvent(companyEvents.COMPANY_FORM_EDIT_SIGNATORY, signatory)\n }\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_FORMS_DONE)\n }\n\n return (\n <section className={className}>\n <DocumentListProvider\n value={{\n companyForms,\n documentListError,\n handleRequestFormToSign,\n handleChangeSignatory,\n handleContinue,\n isSelfSignatory,\n signatory,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <ManageSignatories />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </DocumentListProvider>\n </section>\n )\n}\n"],"names":["DocumentList","props","jsx","BaseComponent","Root","companyId","signatoryId","className","children","dictionary","useComponentDictionary","useI18n","onEvent","useBase","formList","documentListError","useCompanyFormsGetAllSuspense","companyForms","signatoryList","useSignatoriesListSuspense","signatory","isSelfSignatory","DocumentListProvider","form","companyEvents","Flex","jsxs","Fragment","Head","ManageSignatories","List","Actions"],"mappings":";;;;;;;;;;;;;;AAmBO,SAASA,EAAaC,GAA0B;AACrD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,aAAAC,GAAa,WAAAC,GAAW,UAAAC,GAAU,YAAAC,KAAiC;AAC5F,EAAAC,EAAuB,wBAAwBD,CAAU,GACzDE,EAAQ,sBAAsB;AAC9B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd;AAAA,IACJ,MAAM,EAAE,UAAAC,EAAA;AAAA,IACR,OAAOC;AAAA,EAAA,IACLC,EAA8B;AAAA,IAChC,WAAAX;AAAA,EAAA,CACD,GACKY,IAAeH,GAEf;AAAA,IACJ,MAAM,EAAE,aAAaI,EAAA;AAAA,EAAc,IACjCC,EAA2B;AAAA,IAC7B,aAAad;AAAA,EAAA,CACd,GAKKe,IAJcF,EAIU,CAAC,GACzBG,IAAkB,CAAC,CAACf,KAAec,GAAW,SAASd;AAc7D,SACE,gBAAAJ,EAAC,aAAQ,WAAAK,GACP,UAAA,gBAAAL;AAAA,IAACoB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,cAAAL;AAAA,QACA,mBAAAF;AAAA,QACA,yBAlBwB,CAACQ,MAAqB;AACpD,UAAAX,EAAQY,EAAc,2BAA2BD,CAAI;AAAA,QACvD;AAAA,QAiBQ,uBAfsB,MAAM;AAClC,UAAAX,EAAQY,EAAc,6BAA6BJ,CAAS;AAAA,QAC9D;AAAA,QAcQ,gBAZe,MAAM;AAC3B,UAAAR,EAAQY,EAAc,kBAAkB;AAAA,QAC1C;AAAA,QAWQ,iBAAAH;AAAA,QACA,WAAAD;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAlB,EAACuB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAjB,KAGC,gBAAAkB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAzB,EAAC0B,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAkB;AAAA,0BAClBC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -9,14 +9,18 @@ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
10
  import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "dompurify";
13
+ import "../../../../contexts/LocaleProvider/useLocale.js";
12
14
  import "../../../../shared/constants.js";
15
+ import "classnames";
13
16
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
17
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
18
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
15
- const [a, d] = t(
19
+ const [y, P] = t(
16
20
  "CompanyDocumentListContext"
17
21
  );
18
22
  export {
19
- d as DocumentListProvider,
20
- a as useDocumentList
23
+ P as DocumentListProvider,
24
+ y as useDocumentList
21
25
  };
22
26
  //# sourceMappingURL=useDocumentList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
1
+ {"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
@@ -5,13 +5,14 @@ import { useComponentDictionary as L, useI18n as R } from "../../../../i18n/I18n
5
5
  import { BaseComponent as v, BaseLayout as d } from "../../../Base/Base.js";
6
6
  import { useBase as w } from "../../../Base/useBase.js";
7
7
  import { Flex as E } from "../../../Common/Flex/Flex.js";
8
+ import "classnames";
9
+ import { companyEvents as l } from "../../../../shared/constants.js";
8
10
  import { ActionsLayout as _ } from "../../../Common/ActionsLayout/ActionsLayout.js";
9
11
  import { Form as k } from "../../../Common/Form/Form.js";
10
12
  import { SDKFormProvider as I } from "../../../../partner-hook-utils/form/SDKFormProvider.js";
11
- import { companyEvents as l } from "../../../../shared/constants.js";
12
13
  import { useComponentContext as M } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
13
14
  import { DocumentViewer as x } from "../../../Common/DocumentViewer/DocumentViewer.js";
14
- function $(t) {
15
+ function q(t) {
15
16
  return /* @__PURE__ */ o(v, { ...t, children: /* @__PURE__ */ o(B, { ...t, children: t.children }) });
16
17
  }
17
18
  function B({ formId: t, children: u, dictionary: p }) {
@@ -79,6 +80,6 @@ function B({ formId: t, children: u, dictionary: p }) {
79
80
  ] }) }) }) }) });
80
81
  }
81
82
  export {
82
- $ as SignatureForm
83
+ q as SignatureForm
83
84
  };
84
85
  //# sourceMappingURL=SignatureForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { useSignCompanyForm } from '../shared/useSignCompanyForm'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport type { BaseComponentInterface } from '@/components/Base/Base'\nimport { BaseComponent, BaseLayout } from '@/components/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { Form as FormLayout } from '@/components/Common/Form'\nimport { DocumentViewer } from '@/components/Common/DocumentViewer'\nimport { SDKFormProvider } from '@/partner-hook-utils/form/SDKFormProvider'\nimport { companyEvents } from '@/shared/constants'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormProps extends BaseComponentInterface<'Company.SignatureForm'> {\n formId: string\n companyId: string\n}\n\nexport function SignatureForm(props: SignatureFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ formId, children, dictionary }: SignatureFormProps) {\n useComponentDictionary('Company.SignatureForm', dictionary)\n useI18n('Company.SignatureForm')\n const { t } = useTranslation('Company.SignatureForm')\n const { onEvent } = useBase()\n const Components = useComponentContext()\n\n const hookResult = useSignCompanyForm({ formId })\n\n if (hookResult.isLoading) {\n return <BaseLayout isLoading error={hookResult.errorHandling.errors} />\n }\n\n const { companyForm: form, pdfUrl } = hookResult.data\n const { isPending } = hookResult.status\n const { Signature, ConfirmSignature } = hookResult.form.Fields\n\n const handleFormSubmit = async () => {\n const result = await hookResult.actions.onSubmit()\n if (result) {\n onEvent(companyEvents.COMPANY_SIGN_FORM, result.data)\n onEvent(companyEvents.COMPANY_SIGN_FORM_DONE)\n }\n }\n\n const handleBack = () => {\n onEvent(companyEvents.COMPANY_SIGN_FORM_BACK)\n }\n\n return (\n <BaseLayout error={hookResult.errorHandling.errors}>\n <SDKFormProvider formHookResult={hookResult}>\n <FormLayout onSubmit={handleFormSubmit}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ?? (\n <>\n <section>\n <Components.Heading as=\"h2\">\n {t('signatureFormTitle', { formTitle: form.title })}\n </Components.Heading>\n {pdfUrl && (\n <Components.Text>\n <Trans\n t={t}\n i18nKey=\"downloadPrompt\"\n values={{ description: form.description }}\n components={{\n downloadLink: (\n <Components.Link\n href={pdfUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n download={`${form.title || 'form'}.pdf`}\n />\n ),\n }}\n />\n </Components.Text>\n )}\n </section>\n <DocumentViewer\n url={pdfUrl}\n title={form.title}\n downloadInstructions={t('downloadInstructions')}\n viewDocumentLabel={t('viewDocumentCta')}\n />\n <Signature\n label={t('signatureLabel')}\n description={t('signatureDescription')}\n validationMessages={{ REQUIRED: t('signatureError') }}\n />\n <ConfirmSignature\n label={t('confirmationLabel')}\n validationMessages={{ REQUIRED: t('confirmationError') }}\n />\n <ActionsLayout>\n <Components.Button variant=\"secondary\" type=\"button\" onClick={handleBack}>\n {t('backCta')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n </>\n )}\n </Flex>\n </FormLayout>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n"],"names":["SignatureForm","props","jsx","BaseComponent","Root","formId","children","dictionary","useComponentDictionary","useI18n","t","useTranslation","onEvent","useBase","Components","useComponentContext","hookResult","useSignCompanyForm","BaseLayout","form","pdfUrl","isPending","Signature","ConfirmSignature","handleFormSubmit","result","companyEvents","handleBack","SDKFormProvider","FormLayout","Flex","jsxs","Fragment","Trans","DocumentViewer","ActionsLayout"],"mappings":";;;;;;;;;;;;;AAkBO,SAASA,EAAcC,GAA2B;AACvD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,QAAAC,GAAQ,UAAAC,GAAU,YAAAC,KAAkC;AAClE,EAAAC,EAAuB,yBAAyBD,CAAU,GAC1DE,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB,GAC9C,EAAE,SAAAC,EAAA,IAAYC,EAAA,GACdC,IAAaC,EAAA,GAEbC,IAAaC,EAAmB,EAAE,QAAAZ,GAAQ;AAEhD,MAAIW,EAAW;AACb,6BAAQE,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAW,cAAc,QAAQ;AAGvE,QAAM,EAAE,aAAaG,GAAM,QAAAC,EAAA,IAAWJ,EAAW,MAC3C,EAAE,WAAAK,MAAcL,EAAW,QAC3B,EAAE,WAAAM,GAAW,kBAAAC,EAAA,IAAqBP,EAAW,KAAK,QAElDQ,IAAmB,YAAY;AACnC,UAAMC,IAAS,MAAMT,EAAW,QAAQ,SAAA;AACxC,IAAIS,MACFb,EAAQc,EAAc,mBAAmBD,EAAO,IAAI,GACpDb,EAAQc,EAAc,sBAAsB;AAAA,EAEhD,GAEMC,IAAa,MAAM;AACvB,IAAAf,EAAQc,EAAc,sBAAsB;AAAA,EAC9C;AAEA,SACE,gBAAAxB,EAACgB,KAAW,OAAOF,EAAW,cAAc,QAC1C,UAAA,gBAAAd,EAAC0B,KAAgB,gBAAgBZ,GAC/B,4BAACa,GAAA,EAAW,UAAUL,GACpB,UAAA,gBAAAtB,EAAC4B,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAxB,KACC,gBAAAyB,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAD,EAAC,WAAA,EACC,UAAA;AAAA,MAAA,gBAAA7B,EAACY,EAAW,SAAX,EAAmB,IAAG,MACpB,UAAAJ,EAAE,sBAAsB,EAAE,WAAWS,EAAK,MAAA,CAAO,EAAA,CACpD;AAAA,MACCC,KACC,gBAAAlB,EAACY,EAAW,MAAX,EACC,UAAA,gBAAAZ;AAAA,QAAC+B;AAAA,QAAA;AAAA,UACC,GAAAvB;AAAA,UACA,SAAQ;AAAA,UACR,QAAQ,EAAE,aAAaS,EAAK,YAAA;AAAA,UAC5B,YAAY;AAAA,YACV,cACE,gBAAAjB;AAAA,cAACY,EAAW;AAAA,cAAX;AAAA,gBACC,MAAMM;AAAA,gBACN,QAAO;AAAA,gBACP,KAAI;AAAA,gBACJ,UAAU,GAAGD,EAAK,SAAS,MAAM;AAAA,cAAA;AAAA,YAAA;AAAA,UACnC;AAAA,QAEJ;AAAA,MAAA,EACF,CACF;AAAA,IAAA,GAEJ;AAAA,IACA,gBAAAjB;AAAA,MAACgC;AAAA,MAAA;AAAA,QACC,KAAKd;AAAA,QACL,OAAOD,EAAK;AAAA,QACZ,sBAAsBT,EAAE,sBAAsB;AAAA,QAC9C,mBAAmBA,EAAE,iBAAiB;AAAA,MAAA;AAAA,IAAA;AAAA,IAExC,gBAAAR;AAAA,MAACoB;AAAA,MAAA;AAAA,QACC,OAAOZ,EAAE,gBAAgB;AAAA,QACzB,aAAaA,EAAE,sBAAsB;AAAA,QACrC,oBAAoB,EAAE,UAAUA,EAAE,gBAAgB,EAAA;AAAA,MAAE;AAAA,IAAA;AAAA,IAEtD,gBAAAR;AAAA,MAACqB;AAAA,MAAA;AAAA,QACC,OAAOb,EAAE,mBAAmB;AAAA,QAC5B,oBAAoB,EAAE,UAAUA,EAAE,mBAAmB,EAAA;AAAA,MAAE;AAAA,IAAA;AAAA,sBAExDyB,GAAA,EACC,UAAA;AAAA,MAAA,gBAAAjC,EAACY,EAAW,QAAX,EAAkB,SAAQ,aAAY,MAAK,UAAS,SAASa,GAC3D,UAAAjB,EAAE,SAAS,EAAA,CACd;AAAA,MACA,gBAAAR,EAACY,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWO,GACzC,UAAAX,EAAE,WAAW,EAAA,CAChB;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CAEJ,GACF,EAAA,CACF,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"SignatureForm.js","sources":["../../../../../src/components/Company/DocumentSigner/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { Trans, useTranslation } from 'react-i18next'\nimport { useSignCompanyForm } from '../shared/useSignCompanyForm'\nimport { useI18n, useComponentDictionary } from '@/i18n'\nimport type { BaseComponentInterface } from '@/components/Base/Base'\nimport { BaseComponent, BaseLayout } from '@/components/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { ActionsLayout, Flex } from '@/components/Common'\nimport { Form as FormLayout } from '@/components/Common/Form'\nimport { DocumentViewer } from '@/components/Common/DocumentViewer'\nimport { SDKFormProvider } from '@/partner-hook-utils/form/SDKFormProvider'\nimport { companyEvents } from '@/shared/constants'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormProps extends BaseComponentInterface<'Company.SignatureForm'> {\n formId: string\n companyId: string\n}\n\nexport function SignatureForm(props: SignatureFormProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ formId, children, dictionary }: SignatureFormProps) {\n useComponentDictionary('Company.SignatureForm', dictionary)\n useI18n('Company.SignatureForm')\n const { t } = useTranslation('Company.SignatureForm')\n const { onEvent } = useBase()\n const Components = useComponentContext()\n\n const hookResult = useSignCompanyForm({ formId })\n\n if (hookResult.isLoading) {\n return <BaseLayout isLoading error={hookResult.errorHandling.errors} />\n }\n\n const { companyForm: form, pdfUrl } = hookResult.data\n const { isPending } = hookResult.status\n const { Signature, ConfirmSignature } = hookResult.form.Fields\n\n const handleFormSubmit = async () => {\n const result = await hookResult.actions.onSubmit()\n if (result) {\n onEvent(companyEvents.COMPANY_SIGN_FORM, result.data)\n onEvent(companyEvents.COMPANY_SIGN_FORM_DONE)\n }\n }\n\n const handleBack = () => {\n onEvent(companyEvents.COMPANY_SIGN_FORM_BACK)\n }\n\n return (\n <BaseLayout error={hookResult.errorHandling.errors}>\n <SDKFormProvider formHookResult={hookResult}>\n <FormLayout onSubmit={handleFormSubmit}>\n <Flex flexDirection=\"column\" gap={32}>\n {children ?? (\n <>\n <section>\n <Components.Heading as=\"h2\">\n {t('signatureFormTitle', { formTitle: form.title })}\n </Components.Heading>\n {pdfUrl && (\n <Components.Text>\n <Trans\n t={t}\n i18nKey=\"downloadPrompt\"\n values={{ description: form.description }}\n components={{\n downloadLink: (\n <Components.Link\n href={pdfUrl}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n download={`${form.title || 'form'}.pdf`}\n />\n ),\n }}\n />\n </Components.Text>\n )}\n </section>\n <DocumentViewer\n url={pdfUrl}\n title={form.title}\n downloadInstructions={t('downloadInstructions')}\n viewDocumentLabel={t('viewDocumentCta')}\n />\n <Signature\n label={t('signatureLabel')}\n description={t('signatureDescription')}\n validationMessages={{ REQUIRED: t('signatureError') }}\n />\n <ConfirmSignature\n label={t('confirmationLabel')}\n validationMessages={{ REQUIRED: t('confirmationError') }}\n />\n <ActionsLayout>\n <Components.Button variant=\"secondary\" type=\"button\" onClick={handleBack}>\n {t('backCta')}\n </Components.Button>\n <Components.Button type=\"submit\" isLoading={isPending}>\n {t('submitCta')}\n </Components.Button>\n </ActionsLayout>\n </>\n )}\n </Flex>\n </FormLayout>\n </SDKFormProvider>\n </BaseLayout>\n )\n}\n"],"names":["SignatureForm","props","jsx","BaseComponent","Root","formId","children","dictionary","useComponentDictionary","useI18n","t","useTranslation","onEvent","useBase","Components","useComponentContext","hookResult","useSignCompanyForm","BaseLayout","form","pdfUrl","isPending","Signature","ConfirmSignature","handleFormSubmit","result","companyEvents","handleBack","SDKFormProvider","FormLayout","Flex","jsxs","Fragment","Trans","DocumentViewer","ActionsLayout"],"mappings":";;;;;;;;;;;;;;AAkBO,SAASA,EAAcC,GAA2B;AACvD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,QAAAC,GAAQ,UAAAC,GAAU,YAAAC,KAAkC;AAClE,EAAAC,EAAuB,yBAAyBD,CAAU,GAC1DE,EAAQ,uBAAuB;AAC/B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,uBAAuB,GAC9C,EAAE,SAAAC,EAAA,IAAYC,EAAA,GACdC,IAAaC,EAAA,GAEbC,IAAaC,EAAmB,EAAE,QAAAZ,GAAQ;AAEhD,MAAIW,EAAW;AACb,6BAAQE,GAAA,EAAW,WAAS,IAAC,OAAOF,EAAW,cAAc,QAAQ;AAGvE,QAAM,EAAE,aAAaG,GAAM,QAAAC,EAAA,IAAWJ,EAAW,MAC3C,EAAE,WAAAK,MAAcL,EAAW,QAC3B,EAAE,WAAAM,GAAW,kBAAAC,EAAA,IAAqBP,EAAW,KAAK,QAElDQ,IAAmB,YAAY;AACnC,UAAMC,IAAS,MAAMT,EAAW,QAAQ,SAAA;AACxC,IAAIS,MACFb,EAAQc,EAAc,mBAAmBD,EAAO,IAAI,GACpDb,EAAQc,EAAc,sBAAsB;AAAA,EAEhD,GAEMC,IAAa,MAAM;AACvB,IAAAf,EAAQc,EAAc,sBAAsB;AAAA,EAC9C;AAEA,SACE,gBAAAxB,EAACgB,KAAW,OAAOF,EAAW,cAAc,QAC1C,UAAA,gBAAAd,EAAC0B,KAAgB,gBAAgBZ,GAC/B,4BAACa,GAAA,EAAW,UAAUL,GACpB,UAAA,gBAAAtB,EAAC4B,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAxB,KACC,gBAAAyB,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAD,EAAC,WAAA,EACC,UAAA;AAAA,MAAA,gBAAA7B,EAACY,EAAW,SAAX,EAAmB,IAAG,MACpB,UAAAJ,EAAE,sBAAsB,EAAE,WAAWS,EAAK,MAAA,CAAO,EAAA,CACpD;AAAA,MACCC,KACC,gBAAAlB,EAACY,EAAW,MAAX,EACC,UAAA,gBAAAZ;AAAA,QAAC+B;AAAA,QAAA;AAAA,UACC,GAAAvB;AAAA,UACA,SAAQ;AAAA,UACR,QAAQ,EAAE,aAAaS,EAAK,YAAA;AAAA,UAC5B,YAAY;AAAA,YACV,cACE,gBAAAjB;AAAA,cAACY,EAAW;AAAA,cAAX;AAAA,gBACC,MAAMM;AAAA,gBACN,QAAO;AAAA,gBACP,KAAI;AAAA,gBACJ,UAAU,GAAGD,EAAK,SAAS,MAAM;AAAA,cAAA;AAAA,YAAA;AAAA,UACnC;AAAA,QAEJ;AAAA,MAAA,EACF,CACF;AAAA,IAAA,GAEJ;AAAA,IACA,gBAAAjB;AAAA,MAACgC;AAAA,MAAA;AAAA,QACC,KAAKd;AAAA,QACL,OAAOD,EAAK;AAAA,QACZ,sBAAsBT,EAAE,sBAAsB;AAAA,QAC9C,mBAAmBA,EAAE,iBAAiB;AAAA,MAAA;AAAA,IAAA;AAAA,IAExC,gBAAAR;AAAA,MAACoB;AAAA,MAAA;AAAA,QACC,OAAOZ,EAAE,gBAAgB;AAAA,QACzB,aAAaA,EAAE,sBAAsB;AAAA,QACrC,oBAAoB,EAAE,UAAUA,EAAE,gBAAgB,EAAA;AAAA,MAAE;AAAA,IAAA;AAAA,IAEtD,gBAAAR;AAAA,MAACqB;AAAA,MAAA;AAAA,QACC,OAAOb,EAAE,mBAAmB;AAAA,QAC5B,oBAAoB,EAAE,UAAUA,EAAE,mBAAmB,EAAA;AAAA,MAAE;AAAA,IAAA;AAAA,sBAExDyB,GAAA,EACC,UAAA;AAAA,MAAA,gBAAAjC,EAACY,EAAW,QAAX,EAAkB,SAAQ,aAAY,MAAK,UAAS,SAASa,GAC3D,UAAAjB,EAAE,SAAS,EAAA,CACd;AAAA,MACA,gBAAAR,EAACY,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAWO,GACzC,UAAAX,EAAE,WAAW,EAAA,CAChB;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CAEJ,GACF,EAAA,CACF,EAAA,CACF;AAEJ;"}
@@ -1,35 +1,36 @@
1
1
  import { useMemo as q } from "react";
2
2
  import { useForm as A } from "react-hook-form";
3
- import { zodResolver as H } from "@hookform/resolvers/zod";
3
+ import { zodResolver as k } from "@hookform/resolvers/zod";
4
4
  import { useCompanyFormsGet as B } from "@gusto/embedded-api/react-query/companyFormsGet";
5
5
  import { useCompanyFormsGetPdf as G } from "@gusto/embedded-api/react-query/companyFormsGetPdf";
6
6
  import { useCompanyFormsSignMutation as U } from "@gusto/embedded-api/react-query/companyFormsSign";
7
- import { createSignCompanyFormSchema as k } from "./signCompanyFormSchema.js";
8
- import { ConfirmSignatureField as x, SignatureField as O } from "./fields.js";
7
+ import { createSignCompanyFormSchema as x } from "./signCompanyFormSchema.js";
8
+ import { ConfirmSignatureField as I, SignatureField as O } from "./fields.js";
9
9
  import { useDeriveFieldsMetadata as Q } from "../../../../../partner-hook-utils/form/useDeriveFieldsMetadata.js";
10
- import { createGetFormSubmissionValues as R } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
11
- import { composeErrorHandler as z } from "../../../../../partner-hook-utils/composeErrorHandler.js";
12
- import { useBaseSubmit as I } from "../../../../Base/useBaseSubmit.js";
13
- import { SDKInternalError as y } from "../../../../../types/sdkError.js";
14
- const F = {
10
+ import { useHookFormInternals as R } from "../../../../../partner-hook-utils/form/useHookFormInternals.js";
11
+ import { createGetFormSubmissionValues as z } from "../../../../../partner-hook-utils/form/getFormSubmissionValues.js";
12
+ import { composeErrorHandler as K } from "../../../../../partner-hook-utils/composeErrorHandler.js";
13
+ import { useBaseSubmit as T } from "../../../../Base/useBaseSubmit.js";
14
+ import { SDKInternalError as F } from "../../../../../types/sdkError.js";
15
+ const y = {
15
16
  signature: "",
16
17
  confirmSignature: !1
17
18
  };
18
- function ir({
19
+ function mr({
19
20
  formId: r,
20
21
  optionalFieldsToRequire: n,
21
22
  defaultValues: i,
22
23
  validationMode: b = "onSubmit",
23
24
  shouldFocusError: C = !0
24
25
  }) {
25
- const e = B({ formId: r }), t = G({ formId: r }), s = e.data?.form, a = t.data?.formPdf, [m, D] = q(
26
- () => k({ optionalFieldsToRequire: n }),
26
+ const t = B({ formId: r }), e = G({ formId: r }), s = t.data?.form, a = e.data?.formPdf, [m, D] = q(
27
+ () => x({ optionalFieldsToRequire: n }),
27
28
  [n]
28
29
  ), u = {
29
- signature: i?.signature ?? F.signature,
30
- confirmSignature: i?.confirmSignature ?? F.confirmSignature
30
+ signature: i?.signature ?? y.signature,
31
+ confirmSignature: i?.confirmSignature ?? y.confirmSignature
31
32
  }, o = A({
32
- resolver: H(m),
33
+ resolver: k(m),
33
34
  mode: b,
34
35
  shouldFocusError: C,
35
36
  defaultValues: u,
@@ -39,7 +40,7 @@ function ir({
39
40
  baseSubmitHandler: h,
40
41
  error: E,
41
42
  setError: L
42
- } = I("SignCompanyForm"), c = z([e, t], { submitError: E, setSubmitError: L }), d = Q(D, o.control), M = {
43
+ } = T("SignCompanyForm"), c = K([t, e], { submitError: E, setSubmitError: L }), d = Q(D, o.control), M = {
43
44
  signature: d.signature,
44
45
  confirmSignature: d.confirmSignature
45
46
  }, P = async () => {
@@ -49,7 +50,7 @@ function ir({
49
50
  async (V) => {
50
51
  await h(V, async (p) => {
51
52
  if (!r)
52
- throw new y("formId is required to sign a company form");
53
+ throw new F("formId is required to sign a company form");
53
54
  const S = (await f.mutateAsync({
54
55
  request: {
55
56
  formId: r,
@@ -61,7 +62,7 @@ function ir({
61
62
  }
62
63
  })).form;
63
64
  if (!S)
64
- throw new y("Company form signing failed");
65
+ throw new F("Company form signing failed");
65
66
  g = {
66
67
  mode: "create",
67
68
  data: S
@@ -73,15 +74,15 @@ function ir({
73
74
  }
74
75
  )();
75
76
  }), g;
76
- };
77
- if (e.isLoading || t.isLoading || !s || !a)
77
+ }, v = R(o);
78
+ if (t.isLoading || e.isLoading || !s || !a)
78
79
  return { isLoading: !0, errorHandling: c };
79
- const v = a.documentUrl ?? null;
80
+ const H = a.documentUrl ?? null;
80
81
  return {
81
82
  isLoading: !1,
82
83
  data: {
83
84
  companyForm: s,
84
- pdfUrl: v
85
+ pdfUrl: H
85
86
  },
86
87
  status: {
87
88
  isPending: w,
@@ -92,15 +93,15 @@ function ir({
92
93
  form: {
93
94
  Fields: {
94
95
  Signature: O,
95
- ConfirmSignature: x
96
+ ConfirmSignature: I
96
97
  },
97
98
  fieldsMetadata: M,
98
- hookFormInternals: { formMethods: o },
99
- getFormSubmissionValues: R(o, m)
99
+ hookFormInternals: v,
100
+ getFormSubmissionValues: z(o, m)
100
101
  }
101
102
  };
102
103
  }
103
104
  export {
104
- ir as useSignCompanyForm
105
+ mr as useSignCompanyForm
105
106
  };
106
107
  //# sourceMappingURL=useSignCompanyForm.js.map