@gusto/embedded-react-sdk 0.24.1 → 0.26.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 (504) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/dist/assets/icons/icon-file-jpg.svg.js +10 -0
  3. package/dist/assets/icons/icon-file-jpg.svg.js.map +1 -0
  4. package/dist/assets/icons/icon-file-pdf.svg.js +10 -0
  5. package/dist/assets/icons/icon-file-pdf.svg.js.map +1 -0
  6. package/dist/assets/icons/icon-file-png.svg.js +10 -0
  7. package/dist/assets/icons/icon-file-png.svg.js.map +1 -0
  8. package/dist/assets/icons/icon-trashcan.svg.js +10 -0
  9. package/dist/assets/icons/icon-trashcan.svg.js.map +1 -0
  10. package/dist/assets/icons/slash-circle.svg.js +10 -0
  11. package/dist/assets/icons/slash-circle.svg.js.map +1 -0
  12. package/dist/components/Base/Base.d.ts +1 -1
  13. package/dist/components/Base/Base.js +12 -13
  14. package/dist/components/Base/Base.js.map +1 -1
  15. package/dist/components/Common/Fields/FileInputField/FileInputField.d.ts +5 -0
  16. package/dist/components/Common/Fields/FileInputField/FileInputField.js +34 -0
  17. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -0
  18. package/dist/components/Common/Fields/FileInputField/index.d.ts +2 -0
  19. package/dist/components/Common/PaginationControl/PaginationControl.js +41 -40
  20. package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
  21. package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -0
  22. package/dist/components/Common/SignatureForm/SignatureForm.js +2 -3
  23. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  24. package/dist/components/Common/SignatureForm/SignatureFormActions.js +3 -4
  25. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  26. package/dist/components/Common/SignatureForm/SignatureFormFields.js +6 -7
  27. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  28. package/dist/components/Common/UI/Alert/Alert.js +10 -10
  29. package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
  30. package/dist/components/Common/UI/Alert/Alert.module.scss.js +14 -14
  31. package/dist/components/Common/UI/Badge/Badge.module.scss.js +1 -1
  32. package/dist/components/Common/UI/Banner/Banner.module.scss.js +4 -4
  33. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +6 -6
  34. package/dist/components/Common/UI/FileInput/FileInput.d.ts +2 -0
  35. package/dist/components/Common/UI/FileInput/FileInput.js +150 -0
  36. package/dist/components/Common/UI/FileInput/FileInput.js.map +1 -0
  37. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +36 -0
  38. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js.map +1 -0
  39. package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +45 -0
  40. package/dist/components/Common/UI/FileInput/FileInputTypes.js +8 -0
  41. package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -0
  42. package/dist/components/Common/UI/FileInput/index.d.ts +4 -0
  43. package/dist/components/Common/UI/Input/Input.module.scss.js +7 -7
  44. package/dist/components/Common/UI/List/List.module.scss.js +1 -1
  45. package/dist/components/Common/UI/Modal/Modal.js +41 -40
  46. package/dist/components/Common/UI/Modal/Modal.js.map +1 -1
  47. package/dist/components/Common/UI/Modal/Modal.module.scss.js +4 -4
  48. package/dist/components/Common/UI/Select/Select.module.scss.js +6 -6
  49. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +4 -4
  50. package/dist/components/Common/UI/TextInput/TextInput.js +27 -23
  51. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  52. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  53. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  54. package/dist/components/Company/AssignSignatory/AssignSignatory.js +2 -3
  55. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  56. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
  57. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  58. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
  59. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  60. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +5 -6
  61. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  62. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -4
  63. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  64. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
  65. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  66. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +4 -5
  67. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  68. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -4
  69. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  70. package/dist/components/Company/AssignSignatory/TitleSelect.js +3 -4
  71. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  72. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -6
  73. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  74. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -9
  75. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  76. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +4 -5
  77. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  78. package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -4
  79. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  80. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +2 -3
  81. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  82. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +6 -7
  83. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  84. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -5
  85. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  86. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
  87. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  88. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +8 -9
  89. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  90. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -4
  91. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  92. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  93. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  94. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +5 -4
  95. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  96. package/dist/components/Company/FederalTaxes/Actions.js +6 -7
  97. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  98. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -3
  99. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  100. package/dist/components/Company/FederalTaxes/Form.js +2 -3
  101. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  102. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -9
  103. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  104. package/dist/components/Company/Industry/Actions.js +7 -8
  105. package/dist/components/Company/Industry/Actions.js.map +1 -1
  106. package/dist/components/Company/Industry/Context.js +8 -7
  107. package/dist/components/Company/Industry/Context.js.map +1 -1
  108. package/dist/components/Company/Industry/Edit.js +2 -3
  109. package/dist/components/Company/Industry/Edit.js.map +1 -1
  110. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
  111. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  112. package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
  113. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  114. package/dist/components/Company/Locations/LocationForm/LocationForm.js +2 -3
  115. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  116. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -4
  117. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  118. package/dist/components/Company/Locations/LocationsList/Actions.js +2 -3
  119. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  120. package/dist/components/Company/Locations/LocationsList/List.js +31 -30
  121. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  122. package/dist/components/Company/Locations/LocationsList/LocationsList.js +29 -29
  123. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  124. package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +1 -0
  125. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -4
  126. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  127. package/dist/components/Company/OnboardingOverview/Completed.js +10 -11
  128. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  129. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -7
  130. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  131. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -7
  132. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  133. package/dist/components/Company/OnboardingOverview/context.js +5 -4
  134. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  135. package/dist/components/Company/PaySchedule/PaySchedule.js +2 -3
  136. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  137. package/dist/components/Company/PaySchedule/_parts/Actions.js +2 -3
  138. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  139. package/dist/components/Company/PaySchedule/_parts/Edit.js +9 -10
  140. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  141. package/dist/components/Company/PaySchedule/_parts/Head.js +8 -9
  142. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  143. package/dist/components/Company/PaySchedule/_parts/List.js +5 -6
  144. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  145. package/dist/components/Company/PaySchedule/usePaySchedule.js +7 -6
  146. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  147. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
  148. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  149. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -4
  150. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  151. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
  152. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  153. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +2 -3
  154. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  155. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -4
  156. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  157. package/dist/components/Contractor/Address/Address.js +3 -4
  158. package/dist/components/Contractor/Address/Address.js.map +1 -1
  159. package/dist/components/Contractor/Address/Form.js +6 -7
  160. package/dist/components/Contractor/Address/Form.js.map +1 -1
  161. package/dist/components/Contractor/Address/useAddress.js +7 -6
  162. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  163. package/dist/components/Contractor/ContractorList/index.js +24 -24
  164. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  165. package/dist/components/Contractor/NewHireReport/NewHireReport.js +13 -14
  166. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  167. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -11
  168. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  169. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  170. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  171. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
  172. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  173. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +108 -92
  174. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  175. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +33 -32
  176. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  177. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +25 -7
  178. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  179. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +8 -0
  180. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +58 -0
  181. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -0
  182. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +6 -0
  183. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js +18 -0
  184. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js.map +1 -0
  185. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +5 -1
  186. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +84 -52
  187. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  188. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +4 -0
  189. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +32 -13
  190. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  191. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +2 -0
  192. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +100 -53
  193. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  194. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +1 -2
  195. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +46 -21
  196. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  197. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +6 -15
  198. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +115 -100
  199. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  200. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js +8 -0
  201. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js.map +1 -0
  202. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +8 -0
  203. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +51 -0
  204. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -0
  205. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +11 -0
  206. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +155 -0
  207. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -0
  208. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +22 -0
  209. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -0
  210. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.d.ts +8 -0
  211. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +45 -0
  212. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -0
  213. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +15 -0
  214. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +125 -0
  215. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -0
  216. package/dist/components/Contractor/Payments/PaymentSummary/index.d.ts +3 -0
  217. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +37 -28
  218. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  219. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +5 -1
  220. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +61 -60
  221. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  222. package/dist/components/Contractor/Profile/useContractorProfile.js +1 -1
  223. package/dist/components/Contractor/Submit/Submit.js +19 -20
  224. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  225. package/dist/components/Employee/Compensation/Actions.js +12 -13
  226. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  227. package/dist/components/Employee/Compensation/Edit.js +2 -3
  228. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  229. package/dist/components/Employee/Compensation/List.js +22 -23
  230. package/dist/components/Employee/Compensation/List.js.map +1 -1
  231. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +4 -3
  232. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  233. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +4 -3
  234. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  235. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +4 -3
  236. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  237. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +2 -3
  238. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  239. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
  240. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  241. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +2 -3
  242. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  243. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +2 -3
  244. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  245. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -3
  246. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  247. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +5 -4
  248. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  249. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  250. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  251. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +5 -4
  252. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  253. package/dist/components/Employee/EmployeeList/Actions.js +6 -7
  254. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  255. package/dist/components/Employee/EmployeeList/EmployeeList.js +55 -54
  256. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  257. package/dist/components/Employee/EmployeeList/Head.js +5 -6
  258. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  259. package/dist/components/Employee/EmployeeList/List.js +32 -31
  260. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  261. package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +1 -0
  262. package/dist/components/Employee/EmployeeList/useEmployeeList.js +5 -4
  263. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  264. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibility.d.ts +3 -0
  265. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +37 -0
  266. package/dist/components/Employee/EmploymentEligibility/index.d.ts +4 -0
  267. package/dist/components/Employee/FederalTaxes/Actions.js +5 -6
  268. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  269. package/dist/components/Employee/FederalTaxes/FederalForm.js +4 -5
  270. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  271. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +5 -4
  272. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  273. package/dist/components/Employee/Landing/Landing.js +2 -3
  274. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  275. package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
  276. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  277. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -3
  278. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  279. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +2 -3
  280. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  281. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +5 -6
  282. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  283. package/dist/components/Employee/PaymentMethod/Split.js +2 -3
  284. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  285. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +7 -6
  286. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  287. package/dist/components/Employee/Profile/Actions.js +5 -6
  288. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  289. package/dist/components/Employee/Profile/AdminPersonalDetails.js +4 -5
  290. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  291. package/dist/components/Employee/Profile/HomeAddress.js +8 -9
  292. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  293. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +8 -9
  294. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  295. package/dist/components/Employee/Profile/useProfile.js +5 -4
  296. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  297. package/dist/components/Employee/StateTaxes/Actions.js +5 -6
  298. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  299. package/dist/components/Employee/StateTaxes/useStateTaxes.js +5 -4
  300. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  301. package/dist/components/Employee/Taxes/Actions.js +6 -7
  302. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  303. package/dist/components/Employee/Taxes/FederalForm.js +6 -7
  304. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  305. package/dist/components/Employee/Taxes/useTaxes.js +5 -4
  306. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  307. package/dist/components/Flow/Flow.js +7 -8
  308. package/dist/components/Flow/Flow.js.map +1 -1
  309. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +15 -0
  310. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +162 -0
  311. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -0
  312. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +20 -0
  313. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js.map +1 -0
  314. package/dist/components/InformationRequests/InformationRequestForm/index.d.ts +2 -0
  315. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.d.ts +8 -0
  316. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +96 -0
  317. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -0
  318. package/dist/components/InformationRequests/InformationRequestList/index.d.ts +2 -0
  319. package/dist/components/InformationRequests/InformationRequests.d.ts +7 -0
  320. package/dist/components/InformationRequests/InformationRequests.js +68 -0
  321. package/dist/components/InformationRequests/InformationRequests.js.map +1 -0
  322. package/dist/components/InformationRequests/InformationRequestsComponents.d.ts +19 -0
  323. package/dist/components/InformationRequests/InformationRequestsComponents.js +20 -0
  324. package/dist/components/InformationRequests/InformationRequestsComponents.js.map +1 -0
  325. package/dist/components/InformationRequests/index.d.ts +4 -0
  326. package/dist/components/InformationRequests/index.js +9 -0
  327. package/dist/components/InformationRequests/index.js.map +1 -0
  328. package/dist/components/InformationRequests/informationRequestsStateMachine.d.ts +13 -0
  329. package/dist/components/InformationRequests/informationRequestsStateMachine.js +47 -0
  330. package/dist/components/InformationRequests/informationRequestsStateMachine.js.map +1 -0
  331. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +69 -59
  332. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  333. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +0 -1
  334. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  335. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +61 -52
  336. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  337. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +17 -18
  338. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  339. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.d.ts +5 -13
  340. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +102 -27
  341. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  342. package/dist/components/Payroll/PayrollBlocker/index.d.ts +0 -1
  343. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +14 -14
  344. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  345. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +116 -130
  346. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  347. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +6 -3
  348. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +165 -156
  349. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  350. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js +2 -4
  351. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js.map +1 -1
  352. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +21 -0
  353. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +105 -0
  354. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -0
  355. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +41 -37
  356. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  357. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -4
  358. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +151 -146
  359. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  360. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +6 -6
  361. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  362. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
  363. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +45 -38
  364. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  365. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  366. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +179 -97
  367. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  368. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +28 -28
  369. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  370. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +2 -2
  371. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +86 -106
  372. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  373. package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +2 -1
  374. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +28 -22
  375. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  376. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +4 -0
  377. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +74 -47
  378. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  379. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.d.ts +2 -0
  380. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +159 -57
  381. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
  382. package/dist/components/Payroll/PayrollList/PayrollList.js +14 -17
  383. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  384. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +1 -2
  385. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +137 -132
  386. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  387. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +8 -4
  388. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  389. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +102 -96
  390. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  391. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +7 -5
  392. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +253 -250
  393. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  394. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.d.ts +6 -0
  395. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js +5 -0
  396. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js.map +1 -0
  397. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -2
  398. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +2 -3
  399. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  400. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +2 -2
  401. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.js.map +1 -1
  402. package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js +8 -0
  403. package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js.map +1 -0
  404. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +6 -0
  405. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +55 -0
  406. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -0
  407. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +19 -0
  408. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js +19 -0
  409. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js.map +1 -0
  410. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +7 -0
  411. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +104 -0
  412. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -0
  413. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js +8 -0
  414. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js.map +1 -0
  415. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/index.d.ts +2 -0
  416. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +14 -0
  417. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +69 -0
  418. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -0
  419. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/index.d.ts +2 -0
  420. package/dist/components/Payroll/RecoveryCases/index.d.ts +3 -0
  421. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.d.ts +13 -0
  422. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js +47 -0
  423. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js.map +1 -0
  424. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.d.ts +7 -0
  425. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +65 -0
  426. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -0
  427. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +1 -1
  428. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +1 -1
  429. package/dist/components/Payroll/helpers.d.ts +12 -0
  430. package/dist/components/Payroll/helpers.js +129 -117
  431. package/dist/components/Payroll/helpers.js.map +1 -1
  432. package/dist/components/Payroll/index.d.ts +2 -1
  433. package/dist/components/Payroll/index.js +12 -10
  434. package/dist/components/Payroll/index.js.map +1 -1
  435. package/dist/components/Payroll/usePreparedPayrollData.d.ts +5 -2
  436. package/dist/components/Payroll/usePreparedPayrollData.js +44 -32
  437. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  438. package/dist/components/index.d.ts +1 -0
  439. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +27 -25
  440. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  441. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  442. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +5 -0
  443. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +17 -15
  444. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  445. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  446. package/dist/contexts/ComponentAdapter/useComponentContext.js +3 -3
  447. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  448. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +1 -1
  449. package/dist/contexts/ThemeProvider/theme.js +5 -5
  450. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  451. package/dist/helpers/dateFormatting.d.ts +1 -0
  452. package/dist/helpers/dateFormatting.js +1 -0
  453. package/dist/helpers/dateFormatting.js.map +1 -1
  454. package/dist/helpers/formattedStrings.d.ts +1 -0
  455. package/dist/helpers/formattedStrings.js +27 -21
  456. package/dist/helpers/formattedStrings.js.map +1 -1
  457. package/dist/helpers/responsive.js +1 -1
  458. package/dist/helpers/responsive.js.map +1 -1
  459. package/dist/i18n/I18n.js +9 -9
  460. package/dist/i18n/I18n.js.map +1 -1
  461. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +44 -36
  462. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  463. package/dist/i18n/en/Contractor.Payments.PaymentHistory.json.js +11 -11
  464. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js +28 -0
  465. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js.map +1 -0
  466. package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js +58 -0
  467. package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js.map +1 -0
  468. package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js +14 -14
  469. package/dist/i18n/en/Employee.EmploymentEligibility.json.js +28 -0
  470. package/dist/i18n/en/Employee.EmploymentEligibility.json.js.map +1 -0
  471. package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js +20 -0
  472. package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js.map +1 -0
  473. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js +18 -0
  474. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js.map +1 -0
  475. package/dist/i18n/en/Payroll.ConfirmWireDetailsBanner.json.js +1 -1
  476. package/dist/i18n/en/Payroll.PayrollBlocker.json.js +24 -20
  477. package/dist/i18n/en/Payroll.PayrollBlocker.json.js.map +1 -1
  478. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +27 -21
  479. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  480. package/dist/i18n/en/Payroll.PayrollHistory.json.js +6 -6
  481. package/dist/i18n/en/Payroll.PayrollLanding.json.js +7 -3
  482. package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -1
  483. package/dist/i18n/en/Payroll.PayrollOverview.json.js +32 -28
  484. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  485. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +18 -0
  486. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -0
  487. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js +10 -0
  488. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js.map +1 -0
  489. package/dist/i18n/en/Payroll.WireInstructions.json.js +20 -16
  490. package/dist/i18n/en/Payroll.WireInstructions.json.js.map +1 -1
  491. package/dist/i18n/en/common.json.d.ts +5 -0
  492. package/dist/i18n/en/common.json.js +4 -2
  493. package/dist/i18n/en/common.json.js.map +1 -1
  494. package/dist/index.js +10 -8
  495. package/dist/index.js.map +1 -1
  496. package/dist/shared/constants.d.ts +30 -0
  497. package/dist/shared/constants.js +73 -54
  498. package/dist/shared/constants.js.map +1 -1
  499. package/dist/style.css +1 -1
  500. package/dist/types/i18next.d.ts +321 -3
  501. package/package.json +32 -21
  502. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.d.ts +0 -6
  503. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js +0 -32
  504. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js.map +0 -1
@@ -1,202 +1,207 @@
1
- import { jsx as r, jsxs as u } from "react/jsx-runtime";
2
- import { useRef as j, useState as N } from "react";
3
- import { useTranslation as Y } from "react-i18next";
4
- import { PayrollBlockerAlerts as U } from "../PayrollBlocker/components/PayrollBlockerAlerts.js";
5
- import { getPayrollType as V } from "../helpers.js";
6
- import C from "./PayrollListPresentation.module.scss.js";
1
+ import { jsx as a, jsxs as u } from "react/jsx-runtime";
2
+ import { useRef as q, useState as E } from "react";
3
+ import { useTranslation as V } from "react-i18next";
4
+ import { getPayrollType as $ } from "../helpers.js";
5
+ import m from "./PayrollListPresentation.module.scss.js";
7
6
  import { Flex as i } from "../../Common/Flex/Flex.js";
8
- import "classnames";
9
- import { HamburgerMenu as q } from "../../Common/HamburgerMenu/HamburgerMenu.js";
10
- import { useComponentContext as E } from "../../../contexts/ComponentAdapter/useComponentContext.js";
11
- import { useI18n as $ } from "../../../i18n/I18n.js";
12
- import { formatDateToStringDate as z } from "../../../helpers/dateFormatting.js";
13
- import { useDateFormatter as G } from "../../../hooks/useDateFormatter.js";
14
- import J from "../../../assets/icons/feature-icon-check.svg.js";
15
- import { useContainerBreakpoints as K } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
16
- import { PayrollStatusBadges as Q } from "../PayrollStatusBadges/PayrollStatusBadges.js";
17
- import { DataView as X } from "../../Common/DataView/DataView.js";
18
- const Dt = ({
19
- onRunPayroll: x,
20
- onSubmitPayroll: L,
21
- onSkipPayroll: A,
22
- onViewBlockers: I,
23
- payrolls: w,
24
- paySchedules: p,
25
- showSkipSuccessAlert: v,
26
- onDismissSkipSuccessAlert: H,
7
+ import { HamburgerMenu as z } from "../../Common/HamburgerMenu/HamburgerMenu.js";
8
+ import { useComponentContext as G } from "../../../contexts/ComponentAdapter/useComponentContext.js";
9
+ import { useI18n as J } from "../../../i18n/I18n.js";
10
+ import { formatDateToStringDate as K } from "../../../helpers/dateFormatting.js";
11
+ import { useDateFormatter as Q } from "../../../hooks/useDateFormatter.js";
12
+ import X from "../../../assets/icons/feature-icon-check.svg.js";
13
+ import { useContainerBreakpoints as Z } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
14
+ import { PayrollStatusBadges as _ } from "../PayrollStatusBadges/PayrollStatusBadges.js";
15
+ import { DataView as ee } from "../../Common/DataView/DataView.js";
16
+ const ge = ({
17
+ onRunPayroll: I,
18
+ onSubmitPayroll: w,
19
+ onSkipPayroll: H,
20
+ payrolls: U,
21
+ paySchedules: y,
22
+ showSkipSuccessAlert: M,
23
+ onDismissSkipSuccessAlert: O,
27
24
  skippingPayrollId: f,
28
- blockers: y,
29
- wireInRequests: M
25
+ blockers: T,
26
+ wireInRequests: N
30
27
  }) => {
31
- const { Button: h, Dialog: O, Heading: T, Text: o, Alert: W } = E();
32
- $("Payroll.PayrollList");
33
- const { t: e } = Y("Payroll.PayrollList"), s = G(), D = j(null), B = K({ ref: D }).includes("small"), [m, g] = N({
28
+ const { Button: P, Dialog: W, Heading: B, Text: p, Alert: F } = G();
29
+ J("Payroll.PayrollList");
30
+ const { t } = V("Payroll.PayrollList"), n = Q(), g = q(null), h = Z({ ref: g }).includes("large"), [s, D] = E({
34
31
  isOpen: !1,
35
32
  payrollId: null,
36
33
  payPeriod: null
37
- }), F = (t, l) => {
38
- g({
34
+ }), R = (e, r) => {
35
+ D({
39
36
  isOpen: !0,
40
- payrollId: t,
41
- payPeriod: l
37
+ payrollId: e,
38
+ payPeriod: r
42
39
  });
43
- }, P = () => {
44
- g({
40
+ }, b = () => {
41
+ D({
45
42
  isOpen: !1,
46
43
  payrollId: null,
47
44
  payPeriod: null
48
45
  });
49
- }, R = () => {
50
- m.payrollId && (A({ payrollUuid: m.payrollId }), P());
51
- }, S = (t, l) => {
52
- const a = s.formatShort(t), n = s.formatShortWithYear(l);
46
+ }, j = () => {
47
+ s.payrollId && (H({ payrollUuid: s.payrollId }), b());
48
+ }, S = (e, r) => {
49
+ const o = n.formatShort(e), l = n.formatShortWithYear(r);
53
50
  return {
54
- startDate: a,
55
- endDate: n,
56
- fullPeriod: s.formatPayPeriodRange(t, l, { useShortMonth: !0 })
51
+ startDate: o,
52
+ endDate: l,
53
+ fullPeriod: n.formatPayPeriodRange(e, r, { useShortMonth: !0 })
57
54
  };
55
+ }, k = (e) => {
56
+ const { payrollUuid: r, calculatedAt: o, processed: l, payPeriod: c } = e;
57
+ if (l)
58
+ return null;
59
+ const d = f === r;
60
+ return o ? /* @__PURE__ */ a(
61
+ P,
62
+ {
63
+ isLoading: d,
64
+ onClick: () => {
65
+ w({ payrollUuid: r, payPeriod: c });
66
+ },
67
+ title: t("submitPayrollCta"),
68
+ variant: "secondary",
69
+ children: t("submitPayrollCta")
70
+ }
71
+ ) : /* @__PURE__ */ a(
72
+ P,
73
+ {
74
+ isLoading: d,
75
+ onClick: () => {
76
+ I({ payrollUuid: r, payPeriod: c });
77
+ },
78
+ title: t("runPayrollTitle"),
79
+ variant: "secondary",
80
+ children: t("runPayrollTitle")
81
+ }
82
+ );
58
83
  };
59
- return /* @__PURE__ */ r("div", { ref: D, className: C.container, children: /* @__PURE__ */ u(i, { flexDirection: "column", gap: 16, children: [
60
- v && /* @__PURE__ */ r("div", { className: C.alertContainer, children: /* @__PURE__ */ r(
61
- W,
84
+ return /* @__PURE__ */ a("div", { ref: g, className: m.container, children: /* @__PURE__ */ u(i, { flexDirection: "column", gap: 16, children: [
85
+ M && /* @__PURE__ */ a("div", { className: m.alertContainer, children: /* @__PURE__ */ a(
86
+ F,
62
87
  {
63
88
  status: "info",
64
- label: e("skipSuccessAlert"),
65
- onDismiss: H
89
+ label: t("skipSuccessAlert"),
90
+ onDismiss: O
66
91
  }
67
92
  ) }),
68
- /* @__PURE__ */ r(U, { blockers: y, onMultipleViewClick: I }),
69
- /* @__PURE__ */ r(
93
+ /* @__PURE__ */ a(
70
94
  i,
71
95
  {
72
96
  flexDirection: { base: "column", medium: "row" },
73
97
  justifyContent: "space-between",
74
98
  alignItems: "flex-start",
75
99
  gap: { base: 12, medium: 24 },
76
- children: /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(T, { as: "h2", children: e("title") }) })
100
+ children: /* @__PURE__ */ a(i, { children: /* @__PURE__ */ a(B, { as: "h2", children: t("title") }) })
77
101
  }
78
102
  ),
79
- /* @__PURE__ */ r(
80
- X,
103
+ /* @__PURE__ */ a(
104
+ ee,
81
105
  {
106
+ breakAt: "large",
82
107
  emptyState: () => /* @__PURE__ */ u(i, { flexDirection: "column", alignItems: "center", gap: 24, children: [
83
- /* @__PURE__ */ r(J, {}),
84
- /* @__PURE__ */ r(o, { children: e("emptyState") })
108
+ /* @__PURE__ */ a(X, {}),
109
+ /* @__PURE__ */ a(p, { children: t("emptyState") })
85
110
  ] }),
86
- data: w,
111
+ data: U,
87
112
  columns: [
88
113
  {
89
- render: ({ payPeriod: t }) => {
90
- const { startDate: l, endDate: a } = S(
91
- t?.startDate,
92
- t?.endDate
114
+ render: ({ payPeriod: e }) => {
115
+ const { startDate: r, endDate: o } = S(
116
+ e?.startDate,
117
+ e?.endDate
93
118
  );
94
- return /* @__PURE__ */ u(i, { flexDirection: "column", gap: 0, children: [
95
- /* @__PURE__ */ u(o, { children: [
96
- l,
97
- " - ",
98
- a
99
- ] }),
100
- /* @__PURE__ */ r(o, { variant: "supporting", children: p.find((n) => n.uuid === t?.payScheduleUuid)?.name || p.find((n) => n.uuid === t?.payScheduleUuid)?.customName })
119
+ return /* @__PURE__ */ u("div", { className: m.payPeriodCell, children: [
120
+ r,
121
+ " - ",
122
+ o,
123
+ /* @__PURE__ */ a(p, { variant: "supporting", children: y.find((l) => l.uuid === e?.payScheduleUuid)?.name || y.find((l) => l.uuid === e?.payScheduleUuid)?.customName })
101
124
  ] });
102
125
  },
103
- title: e("tableHeaders.0")
126
+ title: t("tableHeaders.0")
104
127
  },
105
128
  {
106
- render: (t) => /* @__PURE__ */ r(o, { children: e(`type.${V(t)}`) }),
107
- title: e("tableHeaders.1")
129
+ render: (e) => /* @__PURE__ */ a(p, { children: t(`type.${$(e)}`) }),
130
+ title: t("tableHeaders.1")
108
131
  },
109
132
  {
110
- render: ({ checkDate: t }) => /* @__PURE__ */ r(o, { children: s.formatShortWithWeekdayAndYear(t) }),
111
- title: e("tableHeaders.2")
133
+ render: ({ checkDate: e }) => n.formatShortWithWeekdayAndYear(e),
134
+ title: t("tableHeaders.2")
112
135
  },
113
136
  {
114
- title: e("tableHeaders.3"),
115
- render: ({ payrollDeadline: t }) => /* @__PURE__ */ r(o, { children: s.formatShortWithWeekdayAndYear(t) })
137
+ title: t("tableHeaders.3"),
138
+ render: ({ payrollDeadline: e }) => n.formatShortWithWeekdayAndYear(e)
116
139
  },
117
140
  {
118
- title: e("tableHeaders.4"),
119
- render: (t) => {
120
- const l = M.find(
121
- (a) => a.paymentUuid === t.payrollUuid
141
+ title: t("tableHeaders.4"),
142
+ render: (e) => {
143
+ const r = N.find(
144
+ (o) => o.paymentUuid === e.payrollUuid
122
145
  );
123
- return /* @__PURE__ */ r(Q, { payroll: t, wireInRequest: l });
146
+ return /* @__PURE__ */ a(_, { payroll: e, wireInRequest: r });
124
147
  }
125
148
  },
126
- {
127
- title: "",
128
- render: ({ payrollUuid: t, calculatedAt: l, processed: a, payPeriod: n }) => {
129
- if (a)
130
- return null;
131
- const d = f === t, c = l ? /* @__PURE__ */ r(
132
- h,
133
- {
134
- isLoading: d,
135
- onClick: () => {
136
- L({ payrollUuid: t, payPeriod: n });
137
- },
138
- title: e("submitPayrollCta"),
139
- variant: "secondary",
140
- children: e("submitPayrollCta")
141
- }
142
- ) : /* @__PURE__ */ r(
143
- h,
144
- {
145
- isLoading: d,
146
- onClick: () => {
147
- x({ payrollUuid: t, payPeriod: n });
148
- },
149
- title: e("runPayrollTitle"),
150
- variant: "secondary",
151
- children: e("runPayrollTitle")
152
- }
153
- );
154
- return B ? c : /* @__PURE__ */ r(i, { flexDirection: "column", alignItems: "stretch", gap: 12, children: c });
149
+ ...h ? [] : [
150
+ {
151
+ title: "",
152
+ render: (e) => {
153
+ const r = k(e);
154
+ return r ? /* @__PURE__ */ a(i, { flexDirection: "column", alignItems: "stretch", gap: 12, children: r }) : null;
155
+ }
155
156
  }
156
- }
157
+ ]
157
158
  ],
158
- label: e("payrollsListLabel"),
159
- itemMenu: ({ payrollUuid: t, processed: l, payPeriod: a }) => {
160
- if (l)
159
+ label: t("payrollsListLabel"),
160
+ itemMenu: (e) => {
161
+ const { payrollUuid: r, processed: o, payPeriod: l } = e;
162
+ if (o)
161
163
  return null;
162
- const n = f === t, { fullPeriod: d } = S(
163
- a?.startDate,
164
- a?.endDate
165
- ), c = z(/* @__PURE__ */ new Date()), k = c ? new Date(c) : null, b = a?.startDate ? new Date(a.startDate) : null;
166
- return y.length === 0 && k && b && k >= b ? /* @__PURE__ */ r(
167
- q,
164
+ const c = f === r, { fullPeriod: d } = S(
165
+ l?.startDate,
166
+ l?.endDate
167
+ ), C = K(/* @__PURE__ */ new Date()), L = C ? new Date(C) : null, x = l?.startDate ? new Date(l.startDate) : null, Y = T.length === 0 && L && x && L >= x, A = h ? k(e) : null, v = Y ? /* @__PURE__ */ a(
168
+ z,
168
169
  {
169
- isLoading: n,
170
- menuLabel: e("payrollMenuLabel"),
170
+ isLoading: c,
171
+ menuLabel: t("payrollMenuLabel"),
171
172
  items: [
172
173
  {
173
- label: e("skipPayrollCta"),
174
+ label: t("skipPayrollCta"),
174
175
  onClick: () => {
175
- F(t, d);
176
+ R(r, d);
176
177
  }
177
178
  }
178
179
  ]
179
180
  }
180
181
  ) : null;
182
+ return !A && !v ? null : /* @__PURE__ */ u("div", { className: m.actionsContainer, children: [
183
+ A,
184
+ v
185
+ ] });
181
186
  }
182
187
  }
183
188
  ),
184
- /* @__PURE__ */ r(
185
- O,
189
+ /* @__PURE__ */ a(
190
+ W,
186
191
  {
187
- isOpen: m.isOpen,
188
- onClose: P,
189
- onPrimaryActionClick: R,
192
+ isOpen: s.isOpen,
193
+ onClose: b,
194
+ onPrimaryActionClick: j,
190
195
  isDestructive: !0,
191
- title: e("skipPayrollDialog.title", { payPeriod: m.payPeriod }),
192
- primaryActionLabel: e("skipPayrollDialog.confirmCta"),
193
- closeActionLabel: e("skipPayrollDialog.cancelCta"),
194
- children: e("skipPayrollDialog.body")
196
+ title: t("skipPayrollDialog.title", { payPeriod: s.payPeriod }),
197
+ primaryActionLabel: t("skipPayrollDialog.confirmCta"),
198
+ closeActionLabel: t("skipPayrollDialog.cancelCta"),
199
+ children: t("skipPayrollDialog.body")
195
200
  }
196
201
  )
197
202
  ] }) });
198
203
  };
199
204
  export {
200
- Dt as PayrollListPresentation
205
+ ge as PayrollListPresentation
201
206
  };
202
207
  //# sourceMappingURL=PayrollListPresentation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PayrollListPresentation.js","sources":["../../../../src/components/Payroll/PayrollList/PayrollListPresentation.tsx"],"sourcesContent":["import type { Payroll } from '@gusto/embedded-api/models/components/payroll'\nimport type { PayScheduleList } from '@gusto/embedded-api/models/components/payschedulelist'\nimport type { WireInRequest } from '@gusto/embedded-api/models/components/wireinrequest'\nimport { useState, useRef } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers'\nimport { PayrollBlockerAlerts } from '../PayrollBlocker/components/PayrollBlockerAlerts'\nimport { PayrollStatusBadges } from '../PayrollStatusBadges'\nimport { getPayrollType } from '../helpers'\nimport styles from './PayrollListPresentation.module.scss'\nimport { DataView, Flex, HamburgerMenu } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\nimport { formatDateToStringDate } from '@/helpers/dateFormatting'\nimport { useDateFormatter } from '@/hooks/useDateFormatter'\nimport FeatureIconCheck from '@/assets/icons/feature-icon-check.svg?react'\nimport useContainerBreakpoints from '@/hooks/useContainerBreakpoints/useContainerBreakpoints'\n\ninterface PayrollListPresentationProps {\n onRunPayroll: ({ payrollUuid, payPeriod }: Pick<Payroll, 'payrollUuid' | 'payPeriod'>) => void\n onSubmitPayroll: ({ payrollUuid, payPeriod }: Pick<Payroll, 'payrollUuid' | 'payPeriod'>) => void\n onSkipPayroll: ({ payrollUuid }: Pick<Payroll, 'payrollUuid'>) => void\n onViewBlockers?: () => void\n payrolls: Payroll[]\n paySchedules: PayScheduleList[]\n showSkipSuccessAlert: boolean\n onDismissSkipSuccessAlert: () => void\n skippingPayrollId: string | null\n blockers: ApiPayrollBlocker[]\n wireInRequests: WireInRequest[]\n}\n\nexport const PayrollListPresentation = ({\n onRunPayroll,\n onSubmitPayroll,\n onSkipPayroll,\n onViewBlockers,\n payrolls,\n paySchedules,\n showSkipSuccessAlert,\n onDismissSkipSuccessAlert,\n skippingPayrollId,\n blockers,\n wireInRequests,\n}: PayrollListPresentationProps) => {\n const { Button, Dialog, Heading, Text, Alert } = useComponentContext()\n useI18n('Payroll.PayrollList')\n const { t } = useTranslation('Payroll.PayrollList')\n const dateFormatter = useDateFormatter()\n const containerRef = useRef<HTMLDivElement>(null)\n const breakpoints = useContainerBreakpoints({ ref: containerRef })\n const isDesktop = breakpoints.includes('small')\n const [skipPayrollDialogState, setSkipPayrollDialogState] = useState<{\n isOpen: boolean\n payrollId: string | null\n payPeriod: string | null\n }>({\n isOpen: false,\n payrollId: null,\n payPeriod: null,\n })\n\n const handleOpenSkipDialog = (payrollId: string, payPeriod: string) => {\n setSkipPayrollDialogState({\n isOpen: true,\n payrollId,\n payPeriod,\n })\n }\n\n const handleCloseSkipDialog = () => {\n setSkipPayrollDialogState({\n isOpen: false,\n payrollId: null,\n payPeriod: null,\n })\n }\n\n const handleConfirmSkipPayroll = () => {\n if (skipPayrollDialogState.payrollId) {\n onSkipPayroll({ payrollUuid: skipPayrollDialogState.payrollId })\n handleCloseSkipDialog()\n }\n }\n\n const formatPayPeriod = (startDate: string | undefined, endDate: string | undefined) => {\n const formattedStartDate = dateFormatter.formatShort(startDate)\n const formattedEndDate = dateFormatter.formatShortWithYear(endDate)\n\n return {\n startDate: formattedStartDate,\n endDate: formattedEndDate,\n fullPeriod: dateFormatter.formatPayPeriodRange(startDate, endDate, { useShortMonth: true }),\n }\n }\n\n return (\n <div ref={containerRef} className={styles.container}>\n <Flex flexDirection=\"column\" gap={16}>\n {showSkipSuccessAlert && (\n <div className={styles.alertContainer}>\n <Alert\n status=\"info\"\n label={t('skipSuccessAlert')}\n onDismiss={onDismissSkipSuccessAlert}\n />\n </div>\n )}\n <PayrollBlockerAlerts blockers={blockers} onMultipleViewClick={onViewBlockers} />\n <Flex\n flexDirection={{ base: 'column', medium: 'row' }}\n justifyContent=\"space-between\"\n alignItems=\"flex-start\"\n gap={{ base: 12, medium: 24 }}\n >\n <Flex>\n <Heading as=\"h2\">{t('title')}</Heading>\n </Flex>\n </Flex>\n\n <DataView\n emptyState={() => (\n <Flex flexDirection=\"column\" alignItems=\"center\" gap={24}>\n <FeatureIconCheck />\n <Text>{t('emptyState')}</Text>\n </Flex>\n )}\n data={payrolls}\n columns={[\n {\n render: ({ payPeriod }) => {\n const { startDate, endDate } = formatPayPeriod(\n payPeriod?.startDate,\n payPeriod?.endDate,\n )\n\n return (\n <Flex flexDirection=\"column\" gap={0}>\n <Text>\n {startDate} - {endDate}\n </Text>\n <Text variant=\"supporting\">\n {paySchedules.find(schedule => schedule.uuid === payPeriod?.payScheduleUuid)\n ?.name ||\n paySchedules.find(schedule => schedule.uuid === payPeriod?.payScheduleUuid)\n ?.customName}\n </Text>\n </Flex>\n )\n },\n title: t('tableHeaders.0'),\n },\n {\n render: payroll => <Text>{t(`type.${getPayrollType(payroll)}`)}</Text>,\n title: t('tableHeaders.1'),\n },\n {\n render: ({ checkDate }) => (\n <Text>{dateFormatter.formatShortWithWeekdayAndYear(checkDate)}</Text>\n ),\n title: t('tableHeaders.2'),\n },\n {\n title: t('tableHeaders.3'),\n render: ({ payrollDeadline }) => (\n <Text>{dateFormatter.formatShortWithWeekdayAndYear(payrollDeadline)}</Text>\n ),\n },\n {\n title: t('tableHeaders.4'),\n render: payroll => {\n const wireInRequest = wireInRequests.find(\n wire => wire.paymentUuid === payroll.payrollUuid,\n )\n return <PayrollStatusBadges payroll={payroll} wireInRequest={wireInRequest} />\n },\n },\n {\n title: '',\n render: ({ payrollUuid, calculatedAt, processed, payPeriod }) => {\n if (processed) {\n return null\n }\n\n const isProcessingSkipPayroll = skippingPayrollId === payrollUuid\n\n const button = calculatedAt ? (\n <Button\n isLoading={isProcessingSkipPayroll}\n onClick={() => {\n onSubmitPayroll({ payrollUuid, payPeriod })\n }}\n title={t('submitPayrollCta')}\n variant=\"secondary\"\n >\n {t('submitPayrollCta')}\n </Button>\n ) : (\n <Button\n isLoading={isProcessingSkipPayroll}\n onClick={() => {\n onRunPayroll({ payrollUuid, payPeriod })\n }}\n title={t('runPayrollTitle')}\n variant=\"secondary\"\n >\n {t('runPayrollTitle')}\n </Button>\n )\n\n return isDesktop ? (\n button\n ) : (\n <Flex flexDirection=\"column\" alignItems=\"stretch\" gap={12}>\n {button}\n </Flex>\n )\n },\n },\n ]}\n label={t('payrollsListLabel')}\n itemMenu={({ payrollUuid, processed, payPeriod }) => {\n if (processed) {\n return null\n }\n\n const isProcessingSkipPayroll = skippingPayrollId === payrollUuid\n\n const { fullPeriod: payPeriodString } = formatPayPeriod(\n payPeriod?.startDate,\n payPeriod?.endDate,\n )\n\n const todayDateString = formatDateToStringDate(new Date())\n const todayAtMidnight = todayDateString ? new Date(todayDateString) : null\n const payPeriodStartDate = payPeriod?.startDate ? new Date(payPeriod.startDate) : null\n\n const canSkipPayroll =\n blockers.length === 0 &&\n todayAtMidnight &&\n payPeriodStartDate &&\n todayAtMidnight >= payPeriodStartDate\n\n if (!canSkipPayroll) {\n return null\n }\n\n return (\n <HamburgerMenu\n isLoading={isProcessingSkipPayroll}\n menuLabel={t('payrollMenuLabel')}\n items={[\n {\n label: t('skipPayrollCta'),\n onClick: () => {\n handleOpenSkipDialog(payrollUuid!, payPeriodString)\n },\n },\n ]}\n />\n )\n }}\n />\n <Dialog\n isOpen={skipPayrollDialogState.isOpen}\n onClose={handleCloseSkipDialog}\n onPrimaryActionClick={handleConfirmSkipPayroll}\n isDestructive={true}\n title={t('skipPayrollDialog.title', { payPeriod: skipPayrollDialogState.payPeriod })}\n primaryActionLabel={t('skipPayrollDialog.confirmCta')}\n closeActionLabel={t('skipPayrollDialog.cancelCta')}\n >\n {t('skipPayrollDialog.body')}\n </Dialog>\n </Flex>\n </div>\n )\n}\n"],"names":["PayrollListPresentation","onRunPayroll","onSubmitPayroll","onSkipPayroll","onViewBlockers","payrolls","paySchedules","showSkipSuccessAlert","onDismissSkipSuccessAlert","skippingPayrollId","blockers","wireInRequests","Button","Dialog","Heading","Text","Alert","useComponentContext","useI18n","t","useTranslation","dateFormatter","useDateFormatter","containerRef","useRef","isDesktop","useContainerBreakpoints","skipPayrollDialogState","setSkipPayrollDialogState","useState","handleOpenSkipDialog","payrollId","payPeriod","handleCloseSkipDialog","handleConfirmSkipPayroll","formatPayPeriod","startDate","endDate","formattedStartDate","formattedEndDate","jsx","styles","jsxs","Flex","PayrollBlockerAlerts","DataView","FeatureIconCheck","schedule","payroll","getPayrollType","checkDate","payrollDeadline","wireInRequest","wire","PayrollStatusBadges","payrollUuid","calculatedAt","processed","isProcessingSkipPayroll","button","payPeriodString","todayDateString","formatDateToStringDate","todayAtMidnight","payPeriodStartDate","HamburgerMenu"],"mappings":";;;;;;;;;;;;;;;;;AAgCO,MAAMA,KAA0B,CAAC;AAAA,EACtC,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AAY,IAAI,KAAKA,EAAU,SAAS,IAAI;AAQlF,iBALEtB,EAAS,WAAW,KACpBqD,KACAC,KACAD,KAAmBC,IAOnB,gBAAAxB;AAAA,YAACyB;AAAA,YAAA;AAAA,cACC,WAAWP;AAAA,cACX,WAAWvC,EAAE,kBAAkB;AAAA,cAC/B,OAAO;AAAA,gBACL;AAAA,kBACE,OAAOA,EAAE,gBAAgB;AAAA,kBACzB,SAAS,MAAM;AACb,oBAAAW,EAAqByB,GAAcK,CAAe;AAAA,kBACpD;AAAA,gBAAA;AAAA,cACF;AAAA,YACF;AAAA,UAAA,IAdK;AAAA,QAiBX;AAAA,MAAA;AAAA,IAAA;AAAA,IAEF,gBAAApB;AAAA,MAAC3B;AAAA,MAAA;AAAA,QACC,QAAQc,EAAuB;AAAA,QAC/B,SAASM;AAAA,QACT,sBAAsBC;AAAA,QACtB,eAAe;AAAA,QACf,OAAOf,EAAE,2BAA2B,EAAE,WAAWQ,EAAuB,WAAW;AAAA,QACnF,oBAAoBR,EAAE,8BAA8B;AAAA,QACpD,kBAAkBA,EAAE,6BAA6B;AAAA,QAEhD,YAAE,wBAAwB;AAAA,MAAA;AAAA,IAAA;AAAA,EAC7B,EAAA,CACF,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"PayrollListPresentation.js","sources":["../../../../src/components/Payroll/PayrollList/PayrollListPresentation.tsx"],"sourcesContent":["import type { Payroll } from '@gusto/embedded-api/models/components/payroll'\nimport type { PayScheduleList } from '@gusto/embedded-api/models/components/payschedulelist'\nimport type { WireInRequest } from '@gusto/embedded-api/models/components/wireinrequest'\nimport { useState, useRef } from 'react'\nimport { useTranslation } from 'react-i18next'\nimport type { ApiPayrollBlocker } from '../PayrollBlocker/payrollHelpers'\nimport { PayrollStatusBadges } from '../PayrollStatusBadges'\nimport { getPayrollType } from '../helpers'\nimport styles from './PayrollListPresentation.module.scss'\nimport { DataView, Flex, HamburgerMenu } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useI18n } from '@/i18n'\nimport { formatDateToStringDate } from '@/helpers/dateFormatting'\nimport { useDateFormatter } from '@/hooks/useDateFormatter'\nimport FeatureIconCheck from '@/assets/icons/feature-icon-check.svg?react'\nimport useContainerBreakpoints from '@/hooks/useContainerBreakpoints/useContainerBreakpoints'\n\ninterface PayrollListPresentationProps {\n onRunPayroll: ({ payrollUuid, payPeriod }: Pick<Payroll, 'payrollUuid' | 'payPeriod'>) => void\n onSubmitPayroll: ({ payrollUuid, payPeriod }: Pick<Payroll, 'payrollUuid' | 'payPeriod'>) => void\n onSkipPayroll: ({ payrollUuid }: Pick<Payroll, 'payrollUuid'>) => void\n payrolls: Payroll[]\n paySchedules: PayScheduleList[]\n showSkipSuccessAlert: boolean\n onDismissSkipSuccessAlert: () => void\n skippingPayrollId: string | null\n blockers: ApiPayrollBlocker[]\n wireInRequests: WireInRequest[]\n}\n\nexport const PayrollListPresentation = ({\n onRunPayroll,\n onSubmitPayroll,\n onSkipPayroll,\n payrolls,\n paySchedules,\n showSkipSuccessAlert,\n onDismissSkipSuccessAlert,\n skippingPayrollId,\n blockers,\n wireInRequests,\n}: PayrollListPresentationProps) => {\n const { Button, Dialog, Heading, Text, Alert } = useComponentContext()\n useI18n('Payroll.PayrollList')\n const { t } = useTranslation('Payroll.PayrollList')\n const dateFormatter = useDateFormatter()\n const containerRef = useRef<HTMLDivElement>(null)\n const breakpoints = useContainerBreakpoints({ ref: containerRef })\n const isDesktop = breakpoints.includes('large')\n const [skipPayrollDialogState, setSkipPayrollDialogState] = useState<{\n isOpen: boolean\n payrollId: string | null\n payPeriod: string | null\n }>({\n isOpen: false,\n payrollId: null,\n payPeriod: null,\n })\n\n const handleOpenSkipDialog = (payrollId: string, payPeriod: string) => {\n setSkipPayrollDialogState({\n isOpen: true,\n payrollId,\n payPeriod,\n })\n }\n\n const handleCloseSkipDialog = () => {\n setSkipPayrollDialogState({\n isOpen: false,\n payrollId: null,\n payPeriod: null,\n })\n }\n\n const handleConfirmSkipPayroll = () => {\n if (skipPayrollDialogState.payrollId) {\n onSkipPayroll({ payrollUuid: skipPayrollDialogState.payrollId })\n handleCloseSkipDialog()\n }\n }\n\n const formatPayPeriod = (startDate: string | undefined, endDate: string | undefined) => {\n const formattedStartDate = dateFormatter.formatShort(startDate)\n const formattedEndDate = dateFormatter.formatShortWithYear(endDate)\n\n return {\n startDate: formattedStartDate,\n endDate: formattedEndDate,\n fullPeriod: dateFormatter.formatPayPeriodRange(startDate, endDate, { useShortMonth: true }),\n }\n }\n\n const renderActionButton = (payroll: Payroll) => {\n const { payrollUuid, calculatedAt, processed, payPeriod } = payroll\n\n if (processed) {\n return null\n }\n\n const isProcessingSkipPayroll = skippingPayrollId === payrollUuid\n\n return calculatedAt ? (\n <Button\n isLoading={isProcessingSkipPayroll}\n onClick={() => {\n onSubmitPayroll({ payrollUuid, payPeriod })\n }}\n title={t('submitPayrollCta')}\n variant=\"secondary\"\n >\n {t('submitPayrollCta')}\n </Button>\n ) : (\n <Button\n isLoading={isProcessingSkipPayroll}\n onClick={() => {\n onRunPayroll({ payrollUuid, payPeriod })\n }}\n title={t('runPayrollTitle')}\n variant=\"secondary\"\n >\n {t('runPayrollTitle')}\n </Button>\n )\n }\n\n return (\n <div ref={containerRef} className={styles.container}>\n <Flex flexDirection=\"column\" gap={16}>\n {showSkipSuccessAlert && (\n <div className={styles.alertContainer}>\n <Alert\n status=\"info\"\n label={t('skipSuccessAlert')}\n onDismiss={onDismissSkipSuccessAlert}\n />\n </div>\n )}\n <Flex\n flexDirection={{ base: 'column', medium: 'row' }}\n justifyContent=\"space-between\"\n alignItems=\"flex-start\"\n gap={{ base: 12, medium: 24 }}\n >\n <Flex>\n <Heading as=\"h2\">{t('title')}</Heading>\n </Flex>\n </Flex>\n\n <DataView\n breakAt=\"large\"\n emptyState={() => (\n <Flex flexDirection=\"column\" alignItems=\"center\" gap={24}>\n <FeatureIconCheck />\n <Text>{t('emptyState')}</Text>\n </Flex>\n )}\n data={payrolls}\n columns={[\n {\n render: ({ payPeriod }) => {\n const { startDate, endDate } = formatPayPeriod(\n payPeriod?.startDate,\n payPeriod?.endDate,\n )\n\n return (\n <div className={styles.payPeriodCell}>\n {startDate} - {endDate}\n <Text variant=\"supporting\">\n {paySchedules.find(schedule => schedule.uuid === payPeriod?.payScheduleUuid)\n ?.name ||\n paySchedules.find(schedule => schedule.uuid === payPeriod?.payScheduleUuid)\n ?.customName}\n </Text>\n </div>\n )\n },\n title: t('tableHeaders.0'),\n },\n {\n render: payroll => <Text>{t(`type.${getPayrollType(payroll)}`)}</Text>,\n title: t('tableHeaders.1'),\n },\n {\n render: ({ checkDate }) => dateFormatter.formatShortWithWeekdayAndYear(checkDate),\n title: t('tableHeaders.2'),\n },\n {\n title: t('tableHeaders.3'),\n render: ({ payrollDeadline }) =>\n dateFormatter.formatShortWithWeekdayAndYear(payrollDeadline),\n },\n {\n title: t('tableHeaders.4'),\n render: payroll => {\n const wireInRequest = wireInRequests.find(\n wire => wire.paymentUuid === payroll.payrollUuid,\n )\n return <PayrollStatusBadges payroll={payroll} wireInRequest={wireInRequest} />\n },\n },\n ...(!isDesktop\n ? [\n {\n title: '',\n render: (payroll: Payroll) => {\n const button = renderActionButton(payroll)\n if (!button) return null\n return (\n <Flex flexDirection=\"column\" alignItems=\"stretch\" gap={12}>\n {button}\n </Flex>\n )\n },\n },\n ]\n : []),\n ]}\n label={t('payrollsListLabel')}\n itemMenu={payroll => {\n const { payrollUuid, processed, payPeriod } = payroll\n\n if (processed) {\n return null\n }\n\n const isProcessingSkipPayroll = skippingPayrollId === payrollUuid\n\n const { fullPeriod: payPeriodString } = formatPayPeriod(\n payPeriod?.startDate,\n payPeriod?.endDate,\n )\n\n const todayDateString = formatDateToStringDate(new Date())\n const todayAtMidnight = todayDateString ? new Date(todayDateString) : null\n const payPeriodStartDate = payPeriod?.startDate ? new Date(payPeriod.startDate) : null\n\n const canSkipPayroll =\n blockers.length === 0 &&\n todayAtMidnight &&\n payPeriodStartDate &&\n todayAtMidnight >= payPeriodStartDate\n\n const button = isDesktop ? renderActionButton(payroll) : null\n\n const hamburgerMenu = canSkipPayroll ? (\n <HamburgerMenu\n isLoading={isProcessingSkipPayroll}\n menuLabel={t('payrollMenuLabel')}\n items={[\n {\n label: t('skipPayrollCta'),\n onClick: () => {\n handleOpenSkipDialog(payrollUuid!, payPeriodString)\n },\n },\n ]}\n />\n ) : null\n\n if (!button && !hamburgerMenu) {\n return null\n }\n\n return (\n <div className={styles.actionsContainer}>\n {button}\n {hamburgerMenu}\n </div>\n )\n }}\n />\n <Dialog\n isOpen={skipPayrollDialogState.isOpen}\n onClose={handleCloseSkipDialog}\n onPrimaryActionClick={handleConfirmSkipPayroll}\n isDestructive={true}\n title={t('skipPayrollDialog.title', { payPeriod: skipPayrollDialogState.payPeriod })}\n primaryActionLabel={t('skipPayrollDialog.confirmCta')}\n closeActionLabel={t('skipPayrollDialog.cancelCta')}\n >\n {t('skipPayrollDialog.body')}\n </Dialog>\n </Flex>\n </div>\n )\n}\n"],"names":["PayrollListPresentation","onRunPayroll","onSubmitPayroll","onSkipPayroll","payrolls","paySchedules","showSkipSuccessAlert","onDismissSkipSuccessAlert","skippingPayrollId","blockers","wireInRequests","Button","Dialog","Heading","Text","Alert","useComponentContext","useI18n","useTranslation","dateFormatter","useDateFormatter","containerRef","useRef","isDesktop","useContainerBreakpoints","skipPayrollDialogState","setSkipPayrollDialogState","useState","handleOpenSkipDialog","payrollId","payPeriod","handleCloseSkipDialog","handleConfirmSkipPayroll","formatPayPeriod","startDate","endDate","formattedStartDate","formattedEndDate","renderActionButton","payroll","payrollUuid","calculatedAt","processed","isProcessingSkipPayroll","jsx","styles","jsxs","Flex","DataView","FeatureIconCheck","schedule","getPayrollType","checkDate","payrollDeadline","wireInRequest","wire","PayrollStatusBadges","button","payPeriodString","todayDateString","formatDateToStringDate","todayAtMidnight","payPeriodStartDate","canSkipPayroll","hamburgerMenu","HamburgerMenu"],"mappings":";;;;;;;;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BoD,KACAC,KACAD,KAAmBC,GAEfL,IAASlC,IAAYe,EAAmBC,CAAO,IAAI,MAEnDyB,IAAgBD,IACpB,gBAAAnB;AAAA,YAACqB;AAAA,YAAA;AAAA,cACC,WAAWtB;AAAA,cACX,WAAW,EAAE,kBAAkB;AAAA,cAC/B,OAAO;AAAA,gBACL;AAAA,kBACE,OAAO,EAAE,gBAAgB;AAAA,kBACzB,SAAS,MAAM;AACb,oBAAAf,EAAqBY,GAAckB,CAAe;AAAA,kBACpD;AAAA,gBAAA;AAAA,cACF;AAAA,YACF;AAAA,UAAA,IAEA;AAEJ,iBAAI,CAACD,KAAU,CAACO,IACP,OAIP,gBAAAlB,EAAC,OAAA,EAAI,WAAWD,EAAO,kBACpB,UAAA;AAAA,YAAAY;AAAA,YACAO;AAAA,UAAA,GACH;AAAA,QAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,IAEF,gBAAApB;AAAA,MAAChC;AAAA,MAAA;AAAA,QACC,QAAQa,EAAuB;AAAA,QAC/B,SAASM;AAAA,QACT,sBAAsBC;AAAA,QACtB,eAAe;AAAA,QACf,OAAO,EAAE,2BAA2B,EAAE,WAAWP,EAAuB,WAAW;AAAA,QACnF,oBAAoB,EAAE,8BAA8B;AAAA,QACpD,kBAAkB,EAAE,6BAA6B;AAAA,QAEhD,YAAE,wBAAwB;AAAA,MAAA;AAAA,IAAA;AAAA,EAC7B,EAAA,CACF,EAAA,CACF;AAEJ;"}
@@ -1,10 +1,14 @@
1
- const n = "_alertContainer_8fhuy_8", t = "_container_8fhuy_12", e = {
1
+ const t = "_actionsContainer_t7hus_1", n = "_alertContainer_t7hus_8", e = "_container_t7hus_12", o = "_payPeriodCell_t7hus_17", a = {
2
+ actionsContainer: t,
2
3
  alertContainer: n,
3
- container: t
4
+ container: e,
5
+ payPeriodCell: o
4
6
  };
5
7
  export {
8
+ t as actionsContainer,
6
9
  n as alertContainer,
7
- t as container,
8
- e as default
10
+ e as container,
11
+ a as default,
12
+ o as payPeriodCell
9
13
  };
10
14
  //# sourceMappingURL=PayrollListPresentation.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PayrollListPresentation.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"PayrollListPresentation.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}