@gusto/embedded-react-sdk 0.57.2 → 0.58.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 (425) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/dist/components/Common/DataView/DataCards/DataCards.js +98 -66
  3. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  4. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +11 -9
  5. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  6. package/dist/components/Common/DataView/DataTable/DataTable.js +86 -75
  7. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  8. package/dist/components/Common/DataView/DataView.js.map +1 -1
  9. package/dist/components/Common/DataView/getSortControls.js +22 -0
  10. package/dist/components/Common/DataView/getSortControls.js.map +1 -0
  11. package/dist/components/Common/DataView/useDataView.js +30 -24
  12. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  13. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +32 -32
  14. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  15. package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -1
  16. package/dist/components/Common/UI/Table/Table.js +65 -25
  17. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  18. package/dist/components/Common/UI/Table/Table.module.scss.js +8 -4
  19. package/dist/components/Common/UI/Table/Table.module.scss.js.map +1 -1
  20. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  21. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  22. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  23. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  24. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  25. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  26. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  27. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  28. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  29. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  30. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  31. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
  32. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  33. package/dist/components/Company/Industry/Context.js +6 -7
  34. package/dist/components/Company/Industry/Context.js.map +1 -1
  35. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  36. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  37. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  38. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  39. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  40. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  41. package/dist/components/Company/PaySchedule/PaySchedule.js +30 -45
  42. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  43. package/dist/components/Company/PaySchedule/PayScheduleComponents.js +11 -12
  44. package/dist/components/Company/PaySchedule/PayScheduleComponents.js.map +1 -1
  45. package/dist/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialog.js.map +1 -1
  46. package/dist/components/Company/PaySchedule/management/AutoPilotDialog/useAutoPilotDialog.js.map +1 -1
  47. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.js +34 -14
  48. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.js.map +1 -1
  49. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentDepartmentStepPresentation.js +106 -0
  50. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentDepartmentStepPresentation.js.map +1 -0
  51. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentEmployeeStepPresentation.js +136 -0
  52. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentEmployeeStepPresentation.js.map +1 -0
  53. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js +38 -20
  54. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.js.map +1 -1
  55. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js +78 -44
  56. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.js.map +1 -1
  57. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js +45 -37
  58. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.js.map +1 -1
  59. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js +244 -95
  60. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.js.map +1 -1
  61. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/departmentAccess.js +22 -0
  62. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/departmentAccess.js.map +1 -0
  63. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/employeeJob.js +13 -0
  64. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/employeeJob.js.map +1 -0
  65. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js +48 -43
  66. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/payScheduleAssignmentStateMachine.js.map +1 -1
  67. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/scheduleLabel.js.map +1 -1
  68. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/useAssignableEmployees.js +57 -0
  69. package/dist/components/Company/PaySchedule/management/PayScheduleAssignment/useAssignableEmployees.js.map +1 -0
  70. package/dist/components/Company/PaySchedule/management/PayScheduleCompensationOverviewPresentation.js.map +1 -1
  71. package/dist/components/Company/PaySchedule/management/PayScheduleDepartmentOverviewPresentation.js +83 -0
  72. package/dist/components/Company/PaySchedule/management/PayScheduleDepartmentOverviewPresentation.js.map +1 -0
  73. package/dist/components/Company/PaySchedule/management/PayScheduleEmployeeOverviewPresentation.js +84 -0
  74. package/dist/components/Company/PaySchedule/management/PayScheduleEmployeeOverviewPresentation.js.map +1 -0
  75. package/dist/components/Company/PaySchedule/management/PayScheduleManagementComponents.js.map +1 -1
  76. package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js +109 -39
  77. package/dist/components/Company/PaySchedule/management/PayScheduleOverview.js.map +1 -1
  78. package/dist/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.js.map +1 -1
  79. package/dist/components/Company/PaySchedule/management/payScheduleManagementStateMachine.js.map +1 -1
  80. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
  81. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
  82. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +78 -83
  83. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  84. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  85. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  86. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  87. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  88. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +3 -4
  89. package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
  90. package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js +5 -5
  91. package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.js.map +1 -1
  92. package/dist/components/Contractor/Address/shared/useContractorAddressSummary/useContractorAddressSummary.js +1 -1
  93. package/dist/components/Contractor/Address/shared/useContractorAddressSummary/useContractorAddressSummary.js.map +1 -1
  94. package/dist/components/Contractor/Compensation/management/CompensationEditForm.js +45 -54
  95. package/dist/components/Contractor/Compensation/management/CompensationEditForm.js.map +1 -1
  96. package/dist/components/Contractor/Compensation/shared/useContractorCompensationSummary/useContractorCompensationSummary.js +4 -4
  97. package/dist/components/Contractor/Compensation/shared/useContractorCompensationSummary/useContractorCompensationSummary.js.map +1 -1
  98. package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js +17 -22
  99. package/dist/components/Contractor/Compensation/shared/useContractorPayForm/contractorPaySchema.js.map +1 -1
  100. package/dist/components/Contractor/Compensation/shared/useContractorPayForm/useContractorPayForm.js +3 -3
  101. package/dist/components/Contractor/Compensation/shared/useContractorPayForm/useContractorPayForm.js.map +1 -1
  102. package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js +1 -0
  103. package/dist/components/Contractor/ContractorList/management/ManagementContractorList.js.map +1 -1
  104. package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +122 -113
  105. package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
  106. package/dist/components/Contractor/ContractorList/shared/useContractorList.js +63 -54
  107. package/dist/components/Contractor/ContractorList/shared/useContractorList.js.map +1 -1
  108. package/dist/components/Contractor/Dashboard/Dashboard.js +20 -20
  109. package/dist/components/Contractor/Dashboard/Dashboard.js.map +1 -1
  110. package/dist/components/Contractor/Dismissal/useDismissal/useDismissal.js +10 -10
  111. package/dist/components/Contractor/Dismissal/useDismissal/useDismissal.js.map +1 -1
  112. package/dist/components/Contractor/Landing/Landing.js +43 -39
  113. package/dist/components/Contractor/Landing/Landing.js.map +1 -1
  114. package/dist/components/Contractor/NewHireReport/NewHireReport.js +3 -3
  115. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  116. package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js +39 -48
  117. package/dist/components/Contractor/PaymentMethod/onboarding/PaymentMethod.js.map +1 -1
  118. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +1 -1
  119. package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -1
  120. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +10 -10
  121. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  122. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +4 -4
  123. package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -1
  124. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +8 -8
  125. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  126. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +5 -5
  127. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  128. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +3 -3
  129. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -1
  130. package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js +76 -69
  131. package/dist/components/Contractor/Profile/onboarding/ContractorProfile.js.map +1 -1
  132. package/dist/components/Contractor/Profile/onboarding/SelfOnboardingContractorProfile.js +1 -1
  133. package/dist/components/Contractor/Profile/onboarding/SelfOnboardingContractorProfile.js.map +1 -1
  134. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js +27 -29
  135. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js.map +1 -1
  136. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js +15 -13
  137. package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.js.map +1 -1
  138. package/dist/components/Contractor/Profile/shared/useContractorProfileSummary/useContractorProfileSummary.js +1 -1
  139. package/dist/components/Contractor/Profile/shared/useContractorProfileSummary/useContractorProfileSummary.js.map +1 -1
  140. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js +2 -9
  141. package/dist/components/Contractor/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  142. package/dist/components/Contractor/Submit/Submit.js +18 -18
  143. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  144. package/dist/components/Contractor/shared/SelectContractors/useSelectContractors.js +6 -6
  145. package/dist/components/Contractor/shared/SelectContractors/useSelectContractors.js.map +1 -1
  146. package/dist/components/Contractor/shared/hourlyRate.js +14 -0
  147. package/dist/components/Contractor/shared/hourlyRate.js.map +1 -0
  148. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js +63 -63
  149. package/dist/components/Employee/Compensation/management/CompensationCard/CompensationCard.js.map +1 -1
  150. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +25 -25
  151. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  152. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js +15 -15
  153. package/dist/components/Employee/Compensation/shared/useCompensationManagement/useCompensationManagement.js.map +1 -1
  154. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +1 -1
  155. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -1
  156. package/dist/components/Employee/Dashboard/Dashboard.js +25 -25
  157. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -1
  158. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  159. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  160. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js +7 -7
  161. package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentSigner.js.map +1 -1
  162. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +1 -1
  163. package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
  164. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js +6 -6
  165. package/dist/components/Employee/HomeAddress/management/useHomeAddressManagement.js.map +1 -1
  166. package/dist/components/Employee/Landing/Landing.js +37 -33
  167. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  168. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +27 -27
  169. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
  170. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js +65 -74
  171. package/dist/components/Employee/PaymentMethod/onboarding/ListView.js.map +1 -1
  172. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +6 -6
  173. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  174. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js +1 -1
  175. package/dist/components/Employee/Profile/shared/useEmployeeProfileSummary/useEmployeeProfileSummary.js.map +1 -1
  176. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +8 -15
  177. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  178. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +11 -11
  179. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  180. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +12 -12
  181. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -1
  182. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js +26 -26
  183. package/dist/components/Employee/WorkAddress/management/useWorkAddressManagement.js.map +1 -1
  184. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +16 -16
  185. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  186. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +2 -3
  187. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  188. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +84 -82
  189. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  190. package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js +8 -0
  191. package/dist/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.js.map +1 -0
  192. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +97 -92
  193. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  194. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +1 -1
  195. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  196. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +18 -18
  197. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  198. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +146 -134
  199. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  200. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +14 -12
  201. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js.map +1 -1
  202. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +34 -33
  203. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  204. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js +49 -48
  205. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.js.map +1 -1
  206. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js +1 -1
  207. package/dist/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.js.map +1 -1
  208. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  209. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +0 -4
  210. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  211. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  212. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +51 -38
  213. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  214. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +121 -102
  215. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  216. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  217. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +6 -6
  218. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  219. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  220. package/dist/components/Payroll/PayrollList/PayrollList.js +79 -74
  221. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  222. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +9 -9
  223. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  224. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +92 -83
  225. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  226. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  227. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +23 -27
  228. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  229. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js +82 -75
  230. package/dist/components/Payroll/PrintChecks/PrintChecksForm/PrintChecksForm.js.map +1 -1
  231. package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js +416 -0
  232. package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.js.map +1 -0
  233. package/dist/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js → RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js} +1 -1
  234. package/dist/components/Payroll/RropPayrollEditEmployee/RropPayrollEditEmployee.module.scss.js.map +1 -0
  235. package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js +97 -0
  236. package/dist/components/Payroll/TransitionConfiguration/TransitionConfiguration.js.map +1 -0
  237. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js +106 -0
  238. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.js.map +1 -0
  239. package/dist/components/Payroll/{TransitionCreation/TransitionCreationPresentation.module.scss.js → TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js} +1 -1
  240. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.module.scss.js.map +1 -0
  241. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js +10 -0
  242. package/dist/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.js.map +1 -0
  243. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +86 -64
  244. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  245. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +126 -77
  246. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
  247. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js +8 -0
  248. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.module.scss.js.map +1 -0
  249. package/dist/components/Payroll/helpers.js +1 -1
  250. package/dist/components/Payroll/helpers.js.map +1 -1
  251. package/dist/components/Payroll/index.js +16 -20
  252. package/dist/components/Payroll/index.js.map +1 -1
  253. package/dist/components/Payroll/payrollTypes.js +1 -1
  254. package/dist/components/Payroll/payrollTypes.js.map +1 -1
  255. package/dist/components/Payroll/usePreparedPayrollData.js +2 -3
  256. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  257. package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js +11 -14
  258. package/dist/components/Payroll/useUnprocessedTransitionPayPeriods.js.map +1 -1
  259. package/dist/contexts/ApiProvider/ApiProvider.js +18 -17
  260. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  261. package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js +31 -0
  262. package/dist/contexts/ApiProvider/payScheduleCustomNameHook.js.map +1 -0
  263. package/dist/contexts/ApiProvider/payrollOffCycleReasonEnumHook.js +1 -1
  264. package/dist/contexts/ApiProvider/payrollOffCycleReasonEnumHook.js.map +1 -1
  265. package/dist/contexts/FeaturesProvider/FeaturesProvider.js +14 -0
  266. package/dist/contexts/FeaturesProvider/FeaturesProvider.js.map +1 -0
  267. package/dist/contexts/FeaturesProvider/useFeature.js +7 -0
  268. package/dist/contexts/FeaturesProvider/useFeature.js.map +1 -0
  269. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +32 -30
  270. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  271. package/dist/contexts/UnstableFeaturesProvider/useUnstableFeature.js.map +1 -1
  272. package/dist/i18n/I18n.js +2 -3
  273. package/dist/i18n/I18n.js.map +1 -1
  274. package/dist/i18n/en/Company.Management.PaySchedule.json.js +31 -13
  275. package/dist/i18n/en/Company.Management.PaySchedule.json.js.map +1 -1
  276. package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js +20 -12
  277. package/dist/i18n/en/Company.Management.PayScheduleAssignment.json.js.map +1 -1
  278. package/dist/i18n/en/Contractor.Profile.json.js +1 -1
  279. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -23
  280. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  281. package/dist/i18n/en/Payroll.PayrollHistory.json.js +1 -1
  282. package/dist/i18n/en/Payroll.PayrollLanding.json.js +1 -1
  283. package/dist/i18n/en/Payroll.PayrollList.json.js +5 -5
  284. package/dist/i18n/en/{Payroll.UNSTABLE_PayrollEditEmployee.json.js → Payroll.RropPayrollEditEmployee.json.js} +42 -38
  285. package/dist/i18n/en/Payroll.RropPayrollEditEmployee.json.js.map +1 -0
  286. package/dist/i18n/en/Payroll.TransitionConfiguration.json.js +28 -0
  287. package/dist/i18n/en/Payroll.TransitionConfiguration.json.js.map +1 -0
  288. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +16 -12
  289. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -1
  290. package/dist/i18n/en/common.json.js +1 -1
  291. package/dist/package.json.js +1 -1
  292. package/dist/partner-hook-utils/form/composeSubmitHandler.js +55 -48
  293. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
  294. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +31 -29
  295. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  296. package/dist/shared/constants.js +7 -6
  297. package/dist/shared/constants.js.map +1 -1
  298. package/dist/src/components/Common/DataView/DataCards/DataCards.d.ts +3 -1
  299. package/dist/src/components/Common/DataView/DataTable/DataTable.d.ts +3 -1
  300. package/dist/src/components/Common/DataView/DataView.d.ts +2 -0
  301. package/dist/src/components/Common/DataView/getSortControls.d.ts +24 -0
  302. package/dist/src/components/Common/DataView/useDataView.d.ts +22 -1
  303. package/dist/src/components/Common/DateRangeFilter/DateRangeFilter.d.ts +2 -2
  304. package/dist/src/components/Common/OnboardingStatusBadge/index.d.ts +1 -1
  305. package/dist/src/components/Common/UI/Table/TableTypes.d.ts +71 -2
  306. package/dist/src/components/Company/PaySchedule/PaySchedule.d.ts +1 -9
  307. package/dist/src/components/Company/PaySchedule/PayScheduleComponents.d.ts +0 -1
  308. package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/AutoPilotDialog.d.ts +1 -1
  309. package/dist/src/components/Company/PaySchedule/management/AutoPilotDialog/useAutoPilotDialog.d.ts +1 -1
  310. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentCompensationStepPresentation.d.ts +10 -3
  311. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentDepartmentStepPresentation.d.ts +21 -0
  312. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentEmployeeStepPresentation.d.ts +34 -0
  313. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentScheduleStepPresentation.d.ts +9 -3
  314. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/AssignmentTypeStepPresentation.d.ts +5 -1
  315. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignment.d.ts +10 -10
  316. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/PayScheduleAssignmentComponents.d.ts +12 -4
  317. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/departmentAccess.d.ts +19 -0
  318. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/employeeJob.d.ts +17 -0
  319. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/scheduleLabel.d.ts +1 -1
  320. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/useAssignableEmployees.d.ts +34 -0
  321. package/dist/src/components/Company/PaySchedule/management/PayScheduleAssignment/usePayScheduleAssignment.d.ts +16 -3
  322. package/dist/src/components/Company/PaySchedule/management/PayScheduleCompensationOverviewPresentation.d.ts +1 -1
  323. package/dist/src/components/Company/PaySchedule/management/PayScheduleDepartmentOverviewPresentation.d.ts +23 -0
  324. package/dist/src/components/Company/PaySchedule/management/PayScheduleEmployeeOverviewPresentation.d.ts +25 -0
  325. package/dist/src/components/Company/PaySchedule/management/PayScheduleManagementComponents.d.ts +1 -1
  326. package/dist/src/components/Company/PaySchedule/management/PayScheduleOverviewPresentation.d.ts +1 -1
  327. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +1 -1
  328. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +1 -1
  329. package/dist/src/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +4 -15
  330. package/dist/src/components/Contractor/ContractorList/management/ManagementContractorListView.d.ts +2 -2
  331. package/dist/src/components/Contractor/ContractorList/shared/index.d.ts +1 -1
  332. package/dist/src/components/Contractor/ContractorList/shared/useContractorList.d.ts +38 -0
  333. package/dist/src/components/Contractor/Landing/Landing.d.ts +5 -2
  334. package/dist/src/components/Contractor/shared/hourlyRate.d.ts +23 -0
  335. package/dist/src/components/Employee/Landing/Landing.d.ts +5 -2
  336. package/dist/src/components/Payroll/OffCycleTaxWithholdingTable/getDefaultWithholdingPayPeriod.d.ts +9 -0
  337. package/dist/src/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  338. package/dist/src/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +1 -1
  339. package/dist/src/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +1 -1
  340. package/dist/src/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +3 -1
  341. package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/fields.d.ts +2 -0
  342. package/dist/src/components/Payroll/PayrollEditEmployee/shared/usePayrollEditEmployeeForm/usePayrollEditEmployeeForm.d.ts +2 -2
  343. package/dist/src/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +8 -6
  344. package/dist/src/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +0 -8
  345. package/dist/src/components/Payroll/PayrollFlow/PayrollFlow.d.ts +5 -3
  346. package/dist/src/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +2 -3
  347. package/dist/src/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +1 -1
  348. package/dist/src/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +1 -1
  349. package/dist/src/components/Payroll/PayrollLanding/PayrollLanding.d.ts +18 -5
  350. package/dist/src/components/Payroll/PayrollList/PayrollList.d.ts +11 -5
  351. package/dist/src/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -2
  352. package/dist/src/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +1 -1
  353. package/dist/src/components/Payroll/{UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.d.ts → RropPayrollEditEmployee/RropPayrollEditEmployee.d.ts} +9 -5
  354. package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfiguration.d.ts +55 -0
  355. package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationPresentation.d.ts +9 -0
  356. package/dist/src/components/Payroll/TransitionConfiguration/TransitionConfigurationTypes.d.ts +52 -0
  357. package/dist/src/components/Payroll/TransitionConfiguration/index.d.ts +2 -0
  358. package/dist/src/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +5 -2
  359. package/dist/src/components/Payroll/helpers.d.ts +2 -2
  360. package/dist/src/components/Payroll/index.d.ts +2 -6
  361. package/dist/src/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  362. package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.d.ts +14 -0
  363. package/dist/src/contexts/ApiProvider/payScheduleCustomNameHook.test.d.ts +1 -0
  364. package/dist/src/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -1
  365. package/dist/src/contexts/FeaturesProvider/FeaturesProvider.d.ts +21 -0
  366. package/dist/src/contexts/FeaturesProvider/useFeature.d.ts +53 -0
  367. package/dist/src/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +3 -0
  368. package/dist/src/contexts/UnstableFeaturesProvider/useUnstableFeature.d.ts +38 -10
  369. package/dist/src/contexts/index.d.ts +1 -0
  370. package/dist/src/i18n/en/common.json.d.ts +5 -1
  371. package/dist/src/i18n/types.d.ts +195 -70
  372. package/dist/src/models/external.d.ts +63 -48
  373. package/dist/src/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +9 -7
  374. package/dist/src/shared/constants.d.ts +5 -3
  375. package/dist/src/test-utils/renderWithProviders.d.ts +2 -0
  376. package/dist/style.css +1 -1
  377. package/docs/guides/endpoint-inventory.json +57 -40
  378. package/package.json +23 -22
  379. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +0 -29
  380. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +0 -1
  381. package/dist/components/Payroll/Transition/TransitionFlow.js +0 -60
  382. package/dist/components/Payroll/Transition/TransitionFlow.js.map +0 -1
  383. package/dist/components/Payroll/Transition/TransitionFlowComponents.js +0 -31
  384. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +0 -1
  385. package/dist/components/Payroll/Transition/transitionStateMachine.js +0 -49
  386. package/dist/components/Payroll/Transition/transitionStateMachine.js.map +0 -1
  387. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +0 -100
  388. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +0 -1
  389. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +0 -110
  390. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +0 -1
  391. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +0 -1
  392. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +0 -21
  393. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +0 -1
  394. package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js +0 -48
  395. package/dist/components/Payroll/TransitionPayroll/TransitionPayroll.js.map +0 -1
  396. package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js +0 -35
  397. package/dist/components/Payroll/TransitionPayroll/TransitionPayrollComponents.js.map +0 -1
  398. package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js +0 -23
  399. package/dist/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.js.map +0 -1
  400. package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js +0 -29
  401. package/dist/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.js.map +0 -1
  402. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js +0 -411
  403. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.js.map +0 -1
  404. package/dist/components/Payroll/UNSTABLE_PayrollEditEmployee/UNSTABLE_PayrollEditEmployee.module.scss.js.map +0 -1
  405. package/dist/i18n/en/Payroll.Transition.json.js +0 -8
  406. package/dist/i18n/en/Payroll.Transition.json.js.map +0 -1
  407. package/dist/i18n/en/Payroll.TransitionCreation.json.js +0 -26
  408. package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +0 -1
  409. package/dist/i18n/en/Payroll.UNSTABLE_PayrollEditEmployee.json.js.map +0 -1
  410. package/dist/src/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +0 -7
  411. package/dist/src/components/Payroll/Transition/TransitionFlow.d.ts +0 -55
  412. package/dist/src/components/Payroll/Transition/TransitionFlowComponents.d.ts +0 -52
  413. package/dist/src/components/Payroll/Transition/index.d.ts +0 -2
  414. package/dist/src/components/Payroll/Transition/transitionStateMachine.d.ts +0 -29
  415. package/dist/src/components/Payroll/TransitionCreation/TransitionCreation.d.ts +0 -22
  416. package/dist/src/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +0 -9
  417. package/dist/src/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +0 -57
  418. package/dist/src/components/Payroll/TransitionCreation/index.d.ts +0 -2
  419. package/dist/src/components/Payroll/TransitionPayroll/TransitionPayroll.d.ts +0 -55
  420. package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollComponents.d.ts +0 -24
  421. package/dist/src/components/Payroll/TransitionPayroll/TransitionPayrollTypes.d.ts +0 -23
  422. package/dist/src/components/Payroll/TransitionPayroll/index.d.ts +0 -2
  423. package/dist/src/components/Payroll/TransitionPayroll/transitionPayrollStateMachine.d.ts +0 -15
  424. package/dist/src/components/Payroll/TransitionPayroll/useResolveTransitionPayroll.d.ts +0 -28
  425. /package/dist/src/components/{Payroll/Transition/transitionStateMachine.test.d.ts → Common/DataView/getSortControls.test.d.ts} +0 -0
@@ -19,7 +19,9 @@ export interface PayrollExecutionFlowProps {
19
19
  companyId: string;
20
20
  /**
21
21
  * The identifier of the payroll to execute. The payroll must already exist (e.g. created by a
22
- * prior creation step or by the standard `PayrollFlow` selection).
22
+ * prior creation step or by the standard `PayrollFlow` selection). For a transition payroll,
23
+ * render {@link TransitionConfiguration} first and pass the same ID here after it emits
24
+ * `transition/configured`.
23
25
  */
24
26
  payrollId: string;
25
27
  /** Event handler that receives the `RUN_PAYROLL_*` events emitted during the flow. */
@@ -59,10 +61,10 @@ export interface PayrollExecutionInternalFlowProps extends PayrollExecutionFlowP
59
61
  *
60
62
  * @remarks
61
63
  * This is the inner flow that powers the back half of `Payroll.PayrollFlow`, and it is also reused
62
- * by the off-cycle, dismissal, and transition flows after they have created their respective
63
- * payrolls. Render it directly when you have built your own payroll-creation step and want to hand
64
- * the user off to the standard execution experience without re-implementing it. The flow ships
65
- * with breadcrumb navigation and the standard wire-confirmation UX.
64
+ * by the off-cycle and dismissal flows after they have created their respective payrolls. Render it
65
+ * directly when you have built your own payroll-creation step and want to hand the user off to the
66
+ * standard execution experience without re-implementing it. The flow ships with breadcrumb
67
+ * navigation and the standard wire-confirmation UX.
66
68
  *
67
69
  * @events
68
70
  * | Event | Description | Data |
@@ -118,7 +120,7 @@ export declare function PayrollExecutionFlow(props: PayrollExecutionFlowProps):
118
120
  /**
119
121
  * Flow-internal entry point for {@link PayrollExecutionFlow} that additionally accepts
120
122
  * flow-injected `prefixBreadcrumbs`. Partners use {@link PayrollExecutionFlow}; our own parent
121
- * flows (off-cycle, dismissal, transition, and `PayrollFlow`) render this directly to prepend
123
+ * flows (off-cycle, dismissal, and `PayrollFlow`) render this directly to prepend
122
124
  * their own breadcrumb trail.
123
125
  *
124
126
  * @internal
@@ -2,14 +2,6 @@ import { BreadcrumbNodes } from '../../Common/FlowBreadcrumbs/FlowBreadcrumbsTyp
2
2
  /** @internal */
3
3
  export declare const getPayrollExecutionBreadcrumbsNodes: (isDismissal?: boolean) => BreadcrumbNodes;
4
4
  /** @internal */
5
- export declare const calculatedTransition: import('robot3').Transition<"runPayroll/calculated">;
6
- /** @internal */
7
- export declare const alreadyProcessedTransition: import('robot3').Transition<"runPayroll/alreadyProcessed">;
8
- /** @internal */
9
- export declare const employeeEditTransition: import('robot3').Transition<"runPayroll/employee/edit">;
10
- /** @internal */
11
- export declare const blockersViewAllTransition: import('robot3').Transition<"runPayroll/blockers/viewAll">;
12
- /** @internal */
13
5
  export declare const payrollExecutionMachine: {
14
6
  configuration: import('robot3').MachineState<any>;
15
7
  overview: import('robot3').MachineState<any>;
@@ -3,7 +3,7 @@ import { PayrollFlowProps } from './PayrollFlowComponents';
3
3
  * Hub for running and managing all payrolls across a company's pay schedules.
4
4
  *
5
5
  * @remarks
6
- * Renders the payroll landing page and orchestrates the full run-payroll experience: selecting a payroll, configuring earnings and reimbursements, reviewing totals, submitting, and viewing receipts. Off-cycle, transition, and edit-employee steps are reachable from the same flow.
6
+ * Renders the payroll landing page and orchestrates the full run-payroll experience: selecting a payroll, configuring earnings and reimbursements, reviewing totals, submitting, and viewing receipts. Off-cycle, transition, and edit-employee steps are reachable from the same flow. Running a transition payroll opens {@link TransitionConfiguration} first. After it saves, the regular payroll steps open for the same payroll.
7
7
  *
8
8
  * @events
9
9
  * | Event | Description | Data |
@@ -23,14 +23,16 @@ import { PayrollFlowProps } from './PayrollFlowComponents';
23
23
  * | `runPayroll/summary/viewed` | The summary screen is opened | `{ payrollId: string }` |
24
24
  * | `runPayroll/receipt/viewed` | The receipt screen is opened | `{ payrollId: string }` |
25
25
  * | `runPayroll/offCycle/start` | The user starts an off-cycle payroll | — |
26
- * | `transition/runPayroll` | The user starts a pending transition payroll | — |
26
+ * | `transition/runPayroll` | The user clicks Run on a transition payroll in the alert | `{ payrollUuid: string, startDate: string, endDate: string, payScheduleUuid: string }` |
27
+ * | `transition/payrollSelected` | The user clicks Run on a transition payroll in the payroll list | `{ payrollUuid: string, payPeriod: object }` |
28
+ * | `transition/configured` | The transition payroll settings are saved | `{ payrollUuid: string, payrollPrepared: object }` |
27
29
  * | `payroll/saveAndExit` | The user clicks Save and Exit | — |
28
30
  *
29
31
  * @components
30
32
  * - {@link PayrollLanding}
31
33
  * - {@link PayrollExecutionFlow}
32
34
  * - {@link OffCycleFlow}
33
- * - {@link TransitionFlow}
35
+ * - {@link TransitionConfiguration}
34
36
  * - {@link PayrollBlockerList}
35
37
  * - {@link PayrollOverview}
36
38
  * - {@link PayrollReceipts}
@@ -53,9 +53,6 @@ export interface PayrollFlowContextInterface extends FlowContextInterface {
53
53
  showPayrollCancelledAlert?: boolean;
54
54
  hasPayrollSubmissionStarted?: boolean;
55
55
  executionInitialState?: 'configuration' | 'overview';
56
- transitionStartDate?: string;
57
- transitionEndDate?: string;
58
- transitionPayScheduleUuid?: string;
59
56
  }
60
57
  /** @internal */
61
58
  export declare function PayrollLandingContextual(): import('react').JSX.Element;
@@ -70,4 +67,6 @@ export declare function PayrollReceiptsContextual(): import('react').JSX.Element
70
67
  /** @internal */
71
68
  export declare function PayrollBlockerContextual(): import('react').JSX.Element;
72
69
  /** @internal */
70
+ export declare function TransitionConfigurationContextual(): import('react').JSX.Element;
71
+ /** @internal */
73
72
  export declare function SaveAndExitCta(): import('react').JSX.Element | null;
@@ -8,6 +8,6 @@ export declare const payrollFlowMachine: {
8
8
  blockers: import('robot3').MachineState<any>;
9
9
  submittedOverview: import('robot3').MachineState<any>;
10
10
  submittedReceipts: import('robot3').MachineState<any>;
11
- transition: import('robot3').MachineState<any>;
11
+ transitionConfiguration: import('robot3').MachineState<any>;
12
12
  offCycle: import('robot3').MachineState<any>;
13
13
  };
@@ -1,4 +1,4 @@
1
- import { Payroll } from '@gusto/embedded-api/models/components/payrollshow';
1
+ import { Payroll } from '@gusto/embedded-api/models/components/unprocessedpayroll';
2
2
  import { WireInRequest } from '@gusto/embedded-api/models/components/wireinrequest';
3
3
  import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
4
4
  import { UseDateRangeFilterResult } from '../../../hooks/useDateRangeFilter/useDateRangeFilter';
@@ -25,12 +25,13 @@ export interface PayrollLandingProps extends BaseComponentInterface<'Payroll.Pay
25
25
  * | Event | Description | Data |
26
26
  * | ----- | ----------- | ---- |
27
27
  * | `runPayroll/selected` | User selected a payroll to run | `{ payrollUuid: string, payPeriod: object }` |
28
+ * | `transition/payrollSelected` | User selected a transition payroll to run from the payroll list | `{ payrollUuid: string, payPeriod: object }` |
28
29
  * | `payroll/review` | User selected a calculated payroll to review | `{ payrollUuid: string, payPeriod: object }` |
29
30
  * | `payroll/skipped` | A payroll was skipped | `{ payrollId: string }` |
30
31
  * | `payroll/deleted` | A cancellable off-cycle payroll was deleted | `{ payrollId: string }` |
31
32
  * | `runPayroll/offCycle/start` | User clicked the Run off-cycle call-to-action | — |
32
- * | `transition/runPayroll` | User chose to run an unprocessed transition payroll from the Transition Payroll Alert | `{ startDate: string, endDate: string, payScheduleUuid?: string }` |
33
- * | `transition/payrollSkipped` | User skipped an unprocessed transition payroll from the Transition Payroll Alert | `{ startDate: string, endDate: string, payScheduleUuid?: string }` |
33
+ * | `transition/runPayroll` | User chose to run an unprocessed transition payroll from the Transition Payroll Alert | `{ payrollUuid?: string, startDate: string, endDate: string, payScheduleUuid?: string }` |
34
+ * | `transition/payrollSkipped` | User skipped an unprocessed transition payroll from the Transition Payroll Alert | `{ payrollUuid?: string, startDate: string, endDate: string, payScheduleUuid?: string }` |
34
35
  * | `runPayroll/summary/viewed` | User opened a payroll's summary view | `{ payrollId: string }` |
35
36
  * | `runPayroll/receipt/viewed` | User opened a payroll's receipt view | `{ payrollId: string }` |
36
37
  * | `runPayroll/blockers/viewAll` | User opened the full list of payroll blockers | — |
@@ -39,14 +40,26 @@ export interface PayrollLandingProps extends BaseComponentInterface<'Payroll.Pay
39
40
  * | `runPayroll/cancelled/alertDismissed` | User dismissed the payroll-cancelled success alert | — |
40
41
  *
41
42
  * When unprocessed transition pay periods exist, the landing surface renders a Transition
42
- * Payroll Alert. It looks ahead 90 days for upcoming transition periods, groups them by pay
43
- * schedule, and offers to run or skip each one. Choosing to run emits `transition/runPayroll`
44
- * (handle it by rendering `Payroll.TransitionFlow` with the supplied dates and pay schedule).
43
+ * Payroll Alert. It looks ahead 90 days for upcoming transition periods and lists every one
44
+ * that hasn't been run, grouped by pay schedule, with run and skip actions on each row.
45
+ * Clicking Run emits `transition/runPayroll`. If the payroll is already calculated, the button
46
+ * reads Review and submit and emits `payroll/review` instead, like the payroll list.
45
47
  * Skipping opens a confirmation dialog — warning that employees will not be paid for the
46
48
  * period — then skips the payroll and emits `transition/payrollSkipped`. Transition pay
47
49
  * periods should be resolved (run or skipped) before regular payrolls are run; the Gusto API
48
50
  * may reject regular payrolls while unresolved transition periods exist.
49
51
  *
52
+ * `PayrollLanding` emits these events but doesn't change screens on them. `PayrollFlow`
53
+ * handles the routing for you. If you render `PayrollLanding` yourself, route on these events:
54
+ *
55
+ * - `transition/runPayroll` (alert) or `transition/payrollSelected` (payroll list): render
56
+ * {@link TransitionConfiguration} with the event's `payrollUuid` as `payrollId`.
57
+ * - `transition/configured` (from `TransitionConfiguration`): render
58
+ * {@link PayrollExecutionFlow} for the same payroll.
59
+ * - `runPayroll/selected`: render `PayrollExecutionFlow` for the event's `payrollUuid`.
60
+ * - `payroll/review`: render `PayrollExecutionFlow` for the event's `payrollUuid` with
61
+ * `initialState="overview"`. Calculated transition payrolls use this event too.
62
+ *
50
63
  * @param props - See {@link PayrollLandingProps}.
51
64
  * @returns The payroll landing flow.
52
65
  * @public
@@ -22,16 +22,22 @@ export interface PayrollListBlockProps extends BaseComponentInterface<never> {
22
22
  * When the company has unprocessed transition pay periods within the next
23
23
  * 90 days, the Run Payroll action on Regular rows is disabled to prevent a
24
24
  * regular payroll from being run before the transition is resolved. Off-cycle
25
- * rows and the Run off-cycle action remain enabled, since off-cycle is the
26
- * path used to run a transition payroll. {@link PayrollLanding} pairs this
27
- * list with an alert that lets users run or skip the pending transition; when
28
- * using `PayrollList` directly, render an equivalent resolution surface
29
- * alongside it.
25
+ * rows, including transition payroll rows, and the Run off-cycle action stay
26
+ * enabled.
27
+ *
28
+ * Running a transition payroll row emits `transition/payrollSelected` instead
29
+ * of `runPayroll/selected`. Handle it by rendering
30
+ * {@link TransitionConfiguration} with the event's `payrollUuid` as
31
+ * `payrollId`, then render {@link PayrollExecutionFlow} for the same payroll on
32
+ * `transition/configured`. {@link PayrollLanding} also shows an alert that lets
33
+ * users run or skip each pending transition payroll. When using `PayrollList`
34
+ * directly, give users a way to run or skip those payrolls alongside it.
30
35
  *
31
36
  * @events
32
37
  * | Event | Description | Data |
33
38
  * | ----- | ----------- | ---- |
34
39
  * | `runPayroll/selected` | User selected a payroll to run | `{ payrollUuid, payPeriod }` |
40
+ * | `transition/payrollSelected` | User selected a transition payroll to run | `{ payrollUuid, payPeriod }` |
35
41
  * | `payroll/review` | User selected a calculated payroll to review and submit | `{ payrollUuid, payPeriod }` |
36
42
  * | `payroll/skipped` | A payroll was successfully skipped | `{ payrollId }` |
37
43
  * | `payroll/deleted` | A cancellable off-cycle payroll was successfully deleted | `{ payrollId }` |
@@ -1,5 +1,5 @@
1
- import { Payroll } from '@gusto/embedded-api/models/components/payrollshow';
2
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { Payroll } from '@gusto/embedded-api/models/components/unprocessedpayroll';
2
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
3
3
  import { WireInRequest } from '@gusto/embedded-api/models/components/wireinrequest';
4
4
  import { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers';
5
5
  import { PaginationControlProps } from '../../Common/PaginationControl/PaginationControlTypes';
@@ -1,4 +1,4 @@
1
- import { PayrollShow } from '@gusto/embedded-api/models/components/payrollshow';
1
+ import { PayrollShow } from '@gusto/embedded-api/models/components/unprocessedpayroll';
2
2
  import { CompanyBankAccount } from '@gusto/embedded-api/models/components/companybankaccount';
3
3
  import { PayrollSubmissionBlockerType } from '@gusto/embedded-api/models/components/payrollsubmissionblockertype';
4
4
  import { PaymentSpeed } from '@gusto/embedded-api/models/components/paymentconfigs';
@@ -1,11 +1,15 @@
1
1
  import { PayrollEditEmployeeProps } from '../PayrollEditEmployee/PayrollEditEmployee';
2
2
  /**
3
- * In-development regular-rate-of-pay rebuild of {@link PayrollEditEmployee}.
3
+ * Regular rate of pay (RRoP) rebuild of {@link PayrollEditEmployee}.
4
4
  *
5
5
  * @remarks
6
- * Gated behind the `payrollRegularRateOfPay` unstable feature flag and not part of the public
7
- * SDK surface. `PayrollEditEmployee` renders this in place of the stable editor when the flag is
8
- * enabled. Consumes {@link usePayrollEditEmployeeForm} and renders the header, the hours /
6
+ * Not exported and not part of the public SDK surface. Partners reach it only through
7
+ * `PayrollEditEmployee`, which renders it in place of the legacy editor unless the
8
+ * `regularRateOfPay` flag in {@link Features} is set to `false`. Once that flag is removed, this
9
+ * component replaces `PayrollEditEmployee` as the public export, and the
10
+ * `Payroll.RropPayrollEditEmployee` translation namespace is renamed with it.
11
+ *
12
+ * Consumes {@link usePayrollEditEmployeeForm} and renders the header, the hours /
9
13
  * additional-earnings / time-off / payment-method sections, and the
10
14
  * `Cancel`/`Save` controls, performing a real payroll update on save. For an overtime-eligible
11
15
  * employee on a multi-workweek payroll, Overtime/Double-overtime rows start hidden behind a single,
@@ -17,4 +21,4 @@ import { PayrollEditEmployeeProps } from '../PayrollEditEmployee/PayrollEditEmpl
17
21
  *
18
22
  * @internal
19
23
  */
20
- export declare function UNSTABLE_PayrollEditEmployee({ FallbackComponent, LoaderComponent, ...props }: PayrollEditEmployeeProps): import('react').JSX.Element;
24
+ export declare function RropPayrollEditEmployee({ FallbackComponent, LoaderComponent, ...props }: PayrollEditEmployeeProps): import('react').JSX.Element;
@@ -0,0 +1,55 @@
1
+ import { TransitionConfigurationProps } from './TransitionConfigurationTypes';
2
+ /**
3
+ * Lets the user change the settings of a transition payroll before running it.
4
+ *
5
+ * @remarks
6
+ * The API creates a transition payroll when a company changes pay schedules. This component
7
+ * updates that payroll. It never creates one.
8
+ *
9
+ * - The pay period, pay schedule, and payment date are shown but can't be changed.
10
+ * - The user can choose to take or skip regular deductions, and how to withhold taxes.
11
+ *
12
+ * If a setting is empty, deductions are taken, the regular tax rate is used, and the pay frequency
13
+ * matches the pay schedule. The payment date is read only for now. Saving can still move it, and
14
+ * the form shows the new date.
15
+ *
16
+ * `PayrollFlow` renders this component for you. To build the screens yourself:
17
+ *
18
+ * 1. Get the transition payroll ID. {@link PayrollLanding} sends it as `payrollUuid` with
19
+ * `transition/runPayroll`, and {@link PayrollList} sends it with `transition/payrollSelected`.
20
+ * To look it up without those components, call
21
+ * `GET /v1/companies/{company_id}/pay_periods?payroll_types=transition` and read
22
+ * `payroll.payroll_uuid` from the pay period.
23
+ * 2. Render this component with that ID as `payrollId`.
24
+ * 3. On `transition/configured`, render {@link PayrollExecutionFlow} with the same `payrollId`.
25
+ * It opens on `PayrollConfiguration`, then continues to review, submit, and receipts.
26
+ *
27
+ * @events
28
+ * | Event | Description | Data |
29
+ * | ----- | ----------- | ---- |
30
+ * | `transition/configured` | The settings were saved | `{ payrollUuid: string, payrollPrepared: PayrollPrepared }` |
31
+ *
32
+ * @param props - See {@link TransitionConfigurationProps}.
33
+ * @returns The transition payroll settings form.
34
+ * @public
35
+ *
36
+ * @example
37
+ * ```tsx
38
+ * import { componentEvents, Payroll } from '@gusto/embedded-react-sdk'
39
+ *
40
+ * function TransitionPayrollPage({ companyId, payrollId }: { companyId: string; payrollId: string }) {
41
+ * return (
42
+ * <Payroll.TransitionConfiguration
43
+ * companyId={companyId}
44
+ * payrollId={payrollId}
45
+ * onEvent={type => {
46
+ * if (type === componentEvents.TRANSITION_CONFIGURED) {
47
+ * navigate(`/payrolls/${payrollId}/run`)
48
+ * }
49
+ * }}
50
+ * />
51
+ * )
52
+ * }
53
+ * ```
54
+ */
55
+ export declare function TransitionConfiguration(props: TransitionConfigurationProps): import('react').JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { TransitionConfigurationPresentationProps } from './TransitionConfigurationTypes';
2
+ /**
3
+ * Layout for the transition payroll settings form.
4
+ *
5
+ * @param props - {@link TransitionConfigurationPresentationProps}.
6
+ * @returns The form layout.
7
+ * @internal
8
+ */
9
+ export declare function TransitionConfigurationPresentation({ className, payPeriodStartDate, payPeriodEndDate, payScheduleName, checkDate, isPending, taxWithholdingConfig, isTaxWithholdingModalOpen, onTaxWithholdingEditClick, onTaxWithholdingModalDone, onTaxWithholdingModalCancel, }: TransitionConfigurationPresentationProps): import('react').JSX.Element;
@@ -0,0 +1,52 @@
1
+ import { z } from 'zod';
2
+ import { OffCycleTaxWithholdingConfig } from '../OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes';
3
+ import { BaseComponentInterface } from '../../Base/Base';
4
+ /**
5
+ * Props for {@link TransitionConfiguration}.
6
+ *
7
+ * @public
8
+ */
9
+ export interface TransitionConfigurationProps extends BaseComponentInterface<'Payroll.TransitionConfiguration'> {
10
+ /** The company ID. */
11
+ companyId: string;
12
+ /** The ID of the transition payroll to update. */
13
+ payrollId: string;
14
+ }
15
+ /**
16
+ * Values in the transition payroll settings form.
17
+ *
18
+ * @internal
19
+ */
20
+ export interface TransitionConfigurationFormData {
21
+ /** `true` to skip regular deductions. */
22
+ skipRegularDeductions: boolean;
23
+ }
24
+ /** @internal */
25
+ export declare function createTransitionConfigurationSchema(): z.ZodObject<{
26
+ skipRegularDeductions: z.ZodBoolean;
27
+ }, z.core.$strip>;
28
+ /** @internal */
29
+ export interface TransitionConfigurationPresentationProps {
30
+ /** Class name for the root element. */
31
+ className?: string;
32
+ /** First day of the pay period (YYYY-MM-DD). */
33
+ payPeriodStartDate?: string | null;
34
+ /** Last day of the pay period (YYYY-MM-DD). */
35
+ payPeriodEndDate?: string | null;
36
+ /** Pay schedule name, or `null` if unknown. */
37
+ payScheduleName: string | null;
38
+ /** Payment date (YYYY-MM-DD), or `null` if unknown. */
39
+ checkDate: string | null;
40
+ /** `true` while saving. */
41
+ isPending?: boolean;
42
+ /** Tax withholding settings shown in the table. */
43
+ taxWithholdingConfig: OffCycleTaxWithholdingConfig;
44
+ /** `true` when the tax withholding modal is open. */
45
+ isTaxWithholdingModalOpen: boolean;
46
+ /** Called when the user clicks Edit on the tax table. */
47
+ onTaxWithholdingEditClick: () => void;
48
+ /** Called when the user saves new tax settings in the modal. */
49
+ onTaxWithholdingModalDone: (config: OffCycleTaxWithholdingConfig) => void;
50
+ /** Called when the user closes the modal without saving. */
51
+ onTaxWithholdingModalCancel: () => void;
52
+ }
@@ -0,0 +1,2 @@
1
+ export { TransitionConfiguration } from './TransitionConfiguration';
2
+ export type { TransitionConfigurationProps } from './TransitionConfigurationTypes';
@@ -3,13 +3,16 @@ import { PayPeriod } from '@gusto/embedded-api/models/components/payperiod';
3
3
  export interface TransitionPayPeriodGroup {
4
4
  /** UUID of the pay schedule these transition pay periods belong to. */
5
5
  payScheduleUuid: string;
6
- /** Display name of the pay schedule, shown when multiple groups are rendered. */
6
+ /** Display name of the pay schedule, shown under each pay period's dates when several are listed. */
7
7
  payScheduleName: string;
8
8
  /** Unprocessed transition pay periods for this pay schedule. */
9
9
  payPeriods: PayPeriod[];
10
10
  }
11
11
  interface TransitionPayrollAlertPresentationProps {
12
12
  groupedPayPeriods: TransitionPayPeriodGroup[];
13
+ /** IDs of payrolls that are already calculated. These rows show Review and submit instead of Run. */
14
+ calculatedPayrollUuids?: string[];
15
+ /** Called when the user clicks Run or Review and submit on a row. */
13
16
  onRunPayroll: (payPeriod: PayPeriod) => void;
14
17
  onSkipPayroll: (payPeriod: PayPeriod) => void;
15
18
  showSkipSuccessAlert: boolean;
@@ -23,5 +26,5 @@ interface TransitionPayrollAlertPresentationProps {
23
26
  hasBlockers?: boolean;
24
27
  }
25
28
  /** @internal */
26
- export declare function TransitionPayrollAlertPresentation({ groupedPayPeriods, onRunPayroll, onSkipPayroll, showSkipSuccessAlert, onDismissSkipSuccessAlert, skippingPayPeriod, hasBlockers, }: TransitionPayrollAlertPresentationProps): import('react').JSX.Element | null;
29
+ export declare function TransitionPayrollAlertPresentation({ groupedPayPeriods, calculatedPayrollUuids, onRunPayroll, onSkipPayroll, showSkipSuccessAlert, onDismissSkipSuccessAlert, skippingPayPeriod, hasBlockers, }: TransitionPayrollAlertPresentationProps): import('react').JSX.Element | null;
27
30
  export {};
@@ -3,8 +3,8 @@ import { FixedCompensations, Reimbursements as Reimbursement, PayrollEmployeeCom
3
3
  import { PayrollUpdateReimbursements } from '@gusto/embedded-api/models/components/payrollupdate';
4
4
  import { PayrollFixedCompensationTypesType } from '@gusto/embedded-api/models/components/payrollfixedcompensationtypestype';
5
5
  import { TFunction } from 'i18next';
6
- import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/payscheduleshow';
7
- import { Payroll } from '@gusto/embedded-api/models/components/payrollshow';
6
+ import { PayScheduleShow as PayScheduleObject } from '@gusto/embedded-api/models/components/payschedulelistitem';
7
+ import { Payroll } from '@gusto/embedded-api/models/components/unprocessedpayroll';
8
8
  import { PayrollType } from './PayrollList/types';
9
9
  import { PayrollCategory } from './payrollTypes';
10
10
  import { useDateFormatter } from '../../hooks/useDateFormatter';
@@ -36,9 +36,5 @@ export { DismissalFlow } from './Dismissal';
36
36
  export type { DismissalFlowProps } from './Dismissal';
37
37
  export { DismissalPayPeriodSelection } from './Dismissal';
38
38
  export type { DismissalPayPeriodSelectionProps } from './Dismissal';
39
- export { TransitionFlow } from './Transition';
40
- export type { TransitionFlowProps } from './Transition';
41
- export { TransitionCreation } from './TransitionCreation';
42
- export type { TransitionCreationProps, TransitionCreationFormData } from './TransitionCreation';
43
- export { TransitionPayroll } from './TransitionPayroll';
44
- export type { TransitionPayrollProps } from './TransitionPayroll';
39
+ export { TransitionConfiguration } from './TransitionConfiguration';
40
+ export type { TransitionConfigurationProps } from './TransitionConfiguration';
@@ -1,5 +1,5 @@
1
- import { PayrollPrepared } from '@gusto/embedded-api/models/components/payrollshow';
2
- import { PayScheduleShow } from '@gusto/embedded-api/models/components/payscheduleshow';
1
+ import { PayrollPrepared } from '@gusto/embedded-api/models/components/unprocessedpayroll';
2
+ import { PayScheduleShow } from '@gusto/embedded-api/models/components/payschedulelistitem';
3
3
  interface UsePreparedPayrollDataParams {
4
4
  companyId: string;
5
5
  payrollId: string;
@@ -0,0 +1,14 @@
1
+ import { AfterSuccessHook } from '../../types/hooks';
2
+ /**
3
+ * Temporary workaround for a pay-schedule response compatibility gap: `custom_name` is generated as
4
+ * a non-nullable optional string (`z.string().optional()`) in `@gusto/embedded-api`, so a response
5
+ * with `custom_name: null` throws an `SDKValidationError` -- rejecting the whole pay schedule list
6
+ * response, not just the one affected item. This afterSuccess hook deletes an explicit
7
+ * `custom_name: null` before the SDK's zod parse, collapsing it to the same "omitted" shape the
8
+ * schema already accepts and that pay schedule display and form initialization already default to
9
+ * an empty string for. Omission, valid strings, and unrelated fields are left untouched. Remove once
10
+ * the generated client accepts `custom_name: null` directly.
11
+ *
12
+ * @internal
13
+ */
14
+ export declare const payScheduleCustomNameHook: AfterSuccessHook;
@@ -19,7 +19,7 @@ export type { RadioProps } from '../../components/Common/UI/Radio/RadioTypes';
19
19
  export type { RadioGroupProps, RadioGroupOption, } from '../../components/Common/UI/RadioGroup/RadioGroupTypes';
20
20
  export type { SelectProps, SelectOption } from '../../components/Common/UI/Select/SelectTypes';
21
21
  export type { SwitchProps } from '../../components/Common/UI/Switch/SwitchTypes';
22
- export type { TableProps, TableData, TableRow } from '../../components/Common/UI/Table/TableTypes';
22
+ export type { TableProps, TableData, TableRow, TableHeaderData, TableSortControls, TableSortDirection, } from '../../components/Common/UI/Table/TableTypes';
23
23
  export type { TextInputProps } from '../../components/Common/UI/TextInput/TextInputTypes';
24
24
  export type { AlertProps } from '../../components/Common/UI/Alert/AlertTypes';
25
25
  export type { BadgeProps } from '../../components/Common/UI/Badge/BadgeTypes';
@@ -0,0 +1,21 @@
1
+ import { ReactNode } from 'react';
2
+ import { Features } from './useFeature';
3
+ /** @internal */
4
+ export interface FeaturesProviderProps {
5
+ children: ReactNode;
6
+ value?: Features;
7
+ }
8
+ /**
9
+ * Provides the {@link Features} flags to SDK components via {@link FeaturesContext}.
10
+ *
11
+ * @remarks
12
+ * Composed by `GustoProvider` so the `features` prop flows down to any SDK Flow or Block that
13
+ * checks {@link useFeature}. The context value is keyed on its sorted, serialized content rather
14
+ * than the `value` object's identity — the returned reference only changes when a flag's value
15
+ * actually changes, and adding a new flag to {@link Features} needs no update here.
16
+ *
17
+ * @param props - See {@link FeaturesProviderProps}.
18
+ * @returns A React subtree with the features context applied.
19
+ * @internal
20
+ */
21
+ export declare function FeaturesProvider({ children, value }: FeaturesProviderProps): import('react').JSX.Element;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Flags for turning released SDK functionality on or off.
3
+ *
4
+ * @remarks
5
+ * Pass to {@link GustoProvider} via the `features` prop. Each flag documents its default and what
6
+ * changes when you set it. Omitted flags use their default.
7
+ *
8
+ * @public
9
+ * @page providers
10
+ */
11
+ export interface Features {
12
+ /**
13
+ * Regular rate of pay (RRoP) support: per-workweek overtime in payroll editing, and the pay
14
+ * schedule workweek start day it depends on.
15
+ *
16
+ * When `true`, `Payroll.PayrollEditEmployee` renders the RRoP editor, where adding overtime for an
17
+ * overtime-eligible employee on a multi-workweek payroll splits hours and overtime-affecting
18
+ * earnings into one column per workweek. `Payroll.PayrollConfiguration` shows each employee's
19
+ * total pay as the gross pay returned by the API. `usePayScheduleForm` exposes
20
+ * `Fields.WorkweekStartDay` and submits `workweekStartDay`, so the pay schedule forms in
21
+ * `CompanyOnboarding.PaySchedule` and `CompanyManagement.PaySchedule` show the field.
22
+ *
23
+ * When `false`, `Payroll.PayrollEditEmployee` renders the previous editor, which edits total hours
24
+ * for the whole pay period and sends no per-workweek breakdowns. `Payroll.PayrollConfiguration`
25
+ * estimates total pay from hours and pay rates. `Fields.WorkweekStartDay` is `undefined` and
26
+ * `workweekStartDay` is not submitted.
27
+ *
28
+ * Every flow that renders these screens follows the flag, including `Payroll.PayrollFlow`,
29
+ * `Payroll.PayrollExecutionFlow`, `Payroll.OffCycleFlow`, `Payroll.DismissalFlow`, and
30
+ * `CompanyOnboarding.OnboardingFlow`.
31
+ *
32
+ * @defaultValue `true`
33
+ */
34
+ regularRateOfPay?: boolean;
35
+ }
36
+ /**
37
+ * React context backing {@link useFeature}.
38
+ *
39
+ * @internal
40
+ */
41
+ export declare const FeaturesContext: import('react').Context<Features>;
42
+ /**
43
+ * Reads whether `feature` is enabled via {@link GustoProvider}'s `features` prop.
44
+ *
45
+ * @remarks
46
+ * Only an explicit `false` disables a flag, so omitting it — or rendering outside a
47
+ * `GustoProvider` — leaves the functionality on.
48
+ *
49
+ * @param feature - The {@link Features} flag to read.
50
+ * @returns `false` when `feature` is explicitly set to `false`, otherwise `true`.
51
+ * @internal
52
+ */
53
+ export declare const useFeature: (feature: keyof Features) => boolean;
@@ -2,6 +2,7 @@ import { default as React, JSX, ReactNode } from 'react';
2
2
  import { QueryClient } from '@tanstack/react-query';
3
3
  import { ComponentsContextType } from '../ComponentAdapter/useComponentContext';
4
4
  import { UnstableFeatures } from '../UnstableFeaturesProvider/useUnstableFeature';
5
+ import { Features } from '../FeaturesProvider/useFeature';
5
6
  import { GustoSDKTheme } from '../ThemeProvider/theme';
6
7
  import { GlobalResourceDictionary } from '../../types/Helpers';
7
8
  import { SDKHooks } from '../../types/hooks';
@@ -63,6 +64,8 @@ export interface GustoBaseProviderProps {
63
64
  LoaderComponent?: ({ children }: {
64
65
  children?: ReactNode;
65
66
  }) => JSX.Element;
67
+ /** Flags for turning released SDK functionality on or off. Omitted flags use their default. See {@link Features}. */
68
+ features?: Features;
66
69
  /**
67
70
  * Opt-in flags for alpha SDK functionality. See {@link UnstableFeatures}.
68
71
  * @alpha
@@ -4,24 +4,52 @@
4
4
  * @remarks
5
5
  * Pass to {@link GustoProvider} via the `unstableFeatures` prop to enable a feature ahead of its
6
6
  * public release. Every flag defaults to disabled when omitted. When a feature graduates to
7
- * public release, its flag is deleted from this interface along with the conditional checks that
8
- * read it — there is no deprecation step. This interface may have no flags at all at any given
9
- * time — e.g. immediately after the last active flag graduates and before the next one is added —
10
- * the opt-in mechanism itself is permanent even when nothing is currently gated behind it.
7
+ * public release, its flag is deleted from this interface — there is no deprecation step. The
8
+ * conditional checks that read it are deleted too, or moved to a {@link Features} flag when the
9
+ * released feature still needs a way to turn it off. This interface may have no flags at all
10
+ * at any given time — e.g. immediately after the last active flag graduates and before the next
11
+ * one is added — the opt-in mechanism itself is permanent even when nothing is currently gated
12
+ * behind it.
11
13
  *
12
14
  * @alpha
13
15
  */
14
16
  export interface UnstableFeatures {
15
- /** Enables recording past payments to contractors within the `ContractorManagement` flows. */
17
+ /**
18
+ * Recording contractor payments that were made outside of Gusto.
19
+ *
20
+ * When `true`, `ContractorManagement.PaymentsList` (and `ContractorManagement.PaymentFlow`, which
21
+ * renders it) shows a "Record a historical payment" call to action that opens the historical
22
+ * payment flow. `ContractorManagement.HistoricalPaymentFlow`,
23
+ * `ContractorManagement.CreateHistoricalPayment`, and
24
+ * `ContractorManagement.HistoricalPaymentSummary` can be mounted.
25
+ *
26
+ * When `false`, the call to action is hidden and those three components throw when mounted.
27
+ *
28
+ * @defaultValue `false`
29
+ */
16
30
  historicalPayments?: boolean;
17
31
  /**
18
- * Enables the in-development regular-rate-of-pay experience: the payroll editing flow, and the
19
- * workweek start day field on `PaySchedule` that RRoP's overtime calculations depend on.
32
+ * Managing pay schedules and their employee assignments after onboarding.
33
+ *
34
+ * When `true`, `CompanyManagement.PaySchedule` and `CompanyManagement.PayScheduleAssignment` can
35
+ * be mounted.
36
+ *
37
+ * When `false`, both components throw when mounted. `CompanyOnboarding.PaySchedule` is not
38
+ * affected.
39
+ *
40
+ * @defaultValue `false`
20
41
  */
21
- payrollRegularRateOfPay?: boolean;
22
- /** Enables the in-development `CompanyManagement.PaySchedule` flow for managing pay schedules and their assignments after onboarding. */
23
42
  managePaySchedules?: boolean;
24
- /** Enables the in-development `CompanyManagement.TaxPaymentsFlow` for reviewing a company's tax payments and their liabilities. */
43
+ /**
44
+ * Reviewing a company's tax payments and their liabilities.
45
+ *
46
+ * When `true`, `CompanyManagement.TaxPaymentsFlow`, `CompanyManagement.TaxPaymentsList`, and
47
+ * `CompanyManagement.TaxPaymentDetail` can be mounted.
48
+ *
49
+ * When `false`, all three components throw when mounted.
50
+ *
51
+ * @defaultValue `false`
52
+ */
25
53
  taxPayments?: boolean;
26
54
  }
27
55
  /**
@@ -6,3 +6,4 @@ export * from './ComponentAdapter/componentAdapterTypes';
6
6
  export type { GustoSDKTheme, GustoSDKThemeColors } from './ThemeProvider/theme';
7
7
  export { useNonce } from './NonceProvider';
8
8
  export type { UnstableFeatures } from './UnstableFeaturesProvider/useUnstableFeature';
9
+ export type { Features } from './FeaturesProvider/useFeature';