@gusto/embedded-react-sdk 0.42.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (778) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/README.md +23 -5
  3. package/dist/assets/icons/edit-02.svg.js +10 -0
  4. package/dist/assets/icons/edit-02.svg.js.map +1 -0
  5. package/dist/assets/icons/search-lg.svg.js +10 -0
  6. package/dist/assets/icons/search-lg.svg.js.map +1 -0
  7. package/dist/components/Base/Base.js +3 -2
  8. package/dist/components/Base/Base.js.map +1 -1
  9. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +3 -1
  10. package/dist/components/Common/DataView/DataCards/DataCards.js +55 -45
  11. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  12. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +16 -10
  13. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  14. package/dist/components/Common/DataView/DataTable/DataTable.js +86 -64
  15. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  16. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +1 -1
  17. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -1
  18. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js +52 -0
  19. package/dist/components/Common/DetailViewLayout/DetailViewLayout.js.map +1 -0
  20. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js +18 -0
  21. package/dist/components/Common/DetailViewLayout/DetailViewLayout.module.scss.js.map +1 -0
  22. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.d.ts +13 -0
  23. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js +12 -0
  24. package/dist/components/Common/Fields/hooks/FieldElementRegistryProvider.js.map +1 -0
  25. package/dist/components/Common/Fields/hooks/fieldElementRegistry.d.ts +21 -0
  26. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js +29 -0
  27. package/dist/components/Common/Fields/hooks/fieldElementRegistry.js.map +1 -0
  28. package/dist/components/Common/Fields/hooks/useField.js +43 -37
  29. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  30. package/dist/components/Common/Flex/Flex.d.ts +2 -1
  31. package/dist/components/Common/Flex/Flex.js +14 -12
  32. package/dist/components/Common/Flex/Flex.js.map +1 -1
  33. package/dist/components/Common/Flex/Flex.module.scss.js +4 -4
  34. package/dist/components/Common/TaxInputs/TaxInputs.js +1 -1
  35. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  36. package/dist/components/Common/UI/Box/Box.module.scss.js +4 -4
  37. package/dist/components/Common/UI/Button/Button.module.scss.js +2 -2
  38. package/dist/components/Common/UI/ComboBox/ComboBox.d.ts +1 -1
  39. package/dist/components/Common/UI/ComboBox/ComboBox.js +26 -25
  40. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  41. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +5 -0
  42. package/dist/components/Common/UI/DatePicker/DatePicker.js +4 -4
  43. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  44. package/dist/components/Common/UI/Dialog/Dialog.js +35 -36
  45. package/dist/components/Common/UI/Dialog/Dialog.js.map +1 -1
  46. package/dist/components/Common/UI/Menu/Menu.js +18 -17
  47. package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
  48. package/dist/components/Common/UI/Menu/MenuTypes.d.ts +5 -0
  49. package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
  50. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +1 -1
  51. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  52. package/dist/components/Common/UI/Select/Select.js +9 -9
  53. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  54. package/dist/components/Common/UI/Switch/SwitchTypes.d.ts +2 -2
  55. package/dist/components/Common/UI/Switch/SwitchTypes.js.map +1 -1
  56. package/dist/components/Company/AssignSignatory/AssignSignatory.js +3 -2
  57. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  58. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +8 -6
  59. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  60. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +10 -8
  61. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  62. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +7 -3
  63. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  64. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +8 -6
  65. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  66. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +7 -3
  67. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  68. package/dist/components/Company/AssignSignatory/TitleSelect.js +3 -2
  69. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  70. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +9 -5
  71. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  72. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
  73. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  74. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +11 -9
  75. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  76. package/dist/components/Company/BankAccount/BankAccountForm/context.js +7 -3
  77. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  78. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +12 -10
  79. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  80. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +13 -11
  81. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  82. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -4
  83. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  84. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +7 -5
  85. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  86. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +9 -8
  87. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  88. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +7 -3
  89. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  90. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +4 -3
  91. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  92. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js +26 -25
  93. package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/useSignCompanyForm.js.map +1 -1
  94. package/dist/components/Company/FederalTaxes/Actions.js +9 -7
  95. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  96. package/dist/components/Company/FederalTaxes/FederalTaxes.js +8 -7
  97. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  98. package/dist/components/Company/FederalTaxes/Form.js +4 -2
  99. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  100. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +12 -8
  101. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  102. package/dist/components/Company/Industry/Actions.js +7 -5
  103. package/dist/components/Company/Industry/Actions.js.map +1 -1
  104. package/dist/components/Company/Industry/Context.js +10 -6
  105. package/dist/components/Company/Industry/Context.js.map +1 -1
  106. package/dist/components/Company/Industry/Edit.js +12 -10
  107. package/dist/components/Company/Industry/Edit.js.map +1 -1
  108. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -6
  109. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  110. package/dist/components/Company/Locations/LocationForm/Form.d.ts +6 -1
  111. package/dist/components/Company/Locations/LocationForm/Form.js +29 -27
  112. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  113. package/dist/components/Company/Locations/LocationForm/LocationForm.js +59 -54
  114. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  115. package/dist/components/Company/Locations/LocationForm/index.d.ts +2 -0
  116. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +7 -3
  117. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  118. package/dist/components/Company/Locations/LocationsList/Actions.js +8 -6
  119. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  120. package/dist/components/Company/Locations/LocationsList/List.js +43 -40
  121. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  122. package/dist/components/Company/Locations/LocationsList/List.module.scss.js +8 -0
  123. package/dist/components/Company/Locations/LocationsList/List.module.scss.js.map +1 -0
  124. package/dist/components/Company/Locations/LocationsList/LocationsList.js +3 -2
  125. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  126. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +7 -3
  127. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  128. package/dist/components/Company/OnboardingOverview/Completed.js +14 -12
  129. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  130. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +7 -5
  131. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  132. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +3 -2
  133. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  134. package/dist/components/Company/OnboardingOverview/context.js +7 -3
  135. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  136. package/dist/components/Company/PaySchedule/PayScheduleList.js +4 -3
  137. package/dist/components/Company/PaySchedule/PayScheduleList.js.map +1 -1
  138. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +53 -52
  139. package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
  140. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +7 -5
  141. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  142. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +12 -11
  143. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  144. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +67 -63
  145. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  146. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +7 -3
  147. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  148. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.d.ts +2 -0
  149. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js +6 -0
  150. package/dist/components/Company/StateTaxes/StateTaxesForm/rhfKey.js.map +1 -0
  151. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +8 -6
  152. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  153. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +58 -26
  154. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  155. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +7 -3
  156. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  157. package/dist/components/Company/exports/companyOnboarding.d.ts +3 -0
  158. package/dist/components/Company/exports/companyOnboarding.js +21 -15
  159. package/dist/components/Company/exports/companyOnboarding.js.map +1 -1
  160. package/dist/components/Company/index.d.ts +1 -0
  161. package/dist/components/Company/index.js +14 -12
  162. package/dist/components/Company/index.js.map +1 -1
  163. package/dist/components/Contractor/Address/Address.js +10 -9
  164. package/dist/components/Contractor/Address/Address.js.map +1 -1
  165. package/dist/components/Contractor/Address/Form.js +4 -4
  166. package/dist/components/Contractor/Address/Head.js +12 -9
  167. package/dist/components/Contractor/Address/Head.js.map +1 -1
  168. package/dist/components/Contractor/Address/useAddress.js +9 -5
  169. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  170. package/dist/components/Contractor/ContractorList/index.js +20 -19
  171. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  172. package/dist/components/Contractor/NewHireReport/NewHireReport.js +42 -41
  173. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  174. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +13 -10
  175. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  176. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +17 -17
  177. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  178. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +3 -2
  179. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  180. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +4 -2
  181. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  182. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +7 -5
  183. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  184. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +4 -3
  185. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  186. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +4 -2
  187. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  188. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +15 -13
  189. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  190. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +4 -2
  191. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  192. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +9 -7
  193. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  194. package/dist/components/Contractor/Profile/ContractorProfileForm.js +48 -49
  195. package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
  196. package/dist/components/Contractor/Profile/useContractorProfile.js +35 -33
  197. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  198. package/dist/components/Contractor/Submit/Submit.js +4 -3
  199. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  200. package/dist/components/Contractor/Submit/SubmitDone.js +14 -12
  201. package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
  202. package/dist/components/Employee/Compensation/Compensation.d.ts +7 -4
  203. package/dist/components/Employee/Compensation/Compensation.js +72 -179
  204. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  205. package/dist/components/Employee/Compensation/CompensationFlowComponents.d.ts +27 -0
  206. package/dist/components/Employee/Compensation/CompensationFlowComponents.js +61 -0
  207. package/dist/components/Employee/Compensation/CompensationFlowComponents.js.map +1 -0
  208. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.d.ts +14 -0
  209. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js +128 -0
  210. package/dist/components/Employee/Compensation/EditCompensation/EditCompensation.js.map +1 -0
  211. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.d.ts +17 -0
  212. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js +224 -0
  213. package/dist/components/Employee/Compensation/EditCompensation/EditCompensationPresentation.js.map +1 -0
  214. package/dist/components/Employee/Compensation/EditCompensation/index.d.ts +5 -0
  215. package/dist/components/Employee/Compensation/JobsList/JobsList.d.ts +5 -0
  216. package/dist/components/Employee/Compensation/JobsList/JobsList.js +47 -0
  217. package/dist/components/Employee/Compensation/JobsList/JobsList.js.map +1 -0
  218. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.d.ts +11 -0
  219. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js +98 -0
  220. package/dist/components/Employee/Compensation/JobsList/JobsListPresentation.js.map +1 -0
  221. package/dist/components/Employee/Compensation/JobsList/index.d.ts +5 -0
  222. package/dist/components/Employee/Compensation/{useCompensation.d.ts → compensationSchema.d.ts} +0 -22
  223. package/dist/components/Employee/Compensation/{useCompensation.js → compensationSchema.js} +9 -12
  224. package/dist/components/Employee/Compensation/compensationSchema.js.map +1 -0
  225. package/dist/components/Employee/Compensation/compensationStateMachine.d.ts +6 -0
  226. package/dist/components/Employee/Compensation/compensationStateMachine.js +73 -0
  227. package/dist/components/Employee/Compensation/compensationStateMachine.js.map +1 -0
  228. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +62 -36
  229. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js +81 -57
  230. package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.js.map +1 -1
  231. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.d.ts +5 -12
  232. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +22 -35
  233. package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js.map +1 -1
  234. package/dist/components/Employee/Compensation/shared/useCompensationForm/index.d.ts +5 -3
  235. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.d.ts +55 -13
  236. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js +216 -226
  237. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCompensationForm.js.map +1 -1
  238. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.d.ts +15 -0
  239. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js +27 -0
  240. package/dist/components/Employee/Compensation/shared/useCompensationForm/useCurrentCompensationForm.js.map +1 -0
  241. package/dist/components/Employee/Compensation/shared/useJobForm/fields.d.ts +19 -0
  242. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +29 -0
  243. package/dist/components/Employee/Compensation/shared/useJobForm/fields.js.map +1 -0
  244. package/dist/components/Employee/Compensation/shared/useJobForm/index.d.ts +7 -0
  245. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +43 -0
  246. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js +37 -0
  247. package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.js.map +1 -0
  248. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.d.ts +13 -0
  249. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js +26 -0
  250. package/dist/components/Employee/Compensation/shared/useJobForm/useCurrentJobForm.js.map +1 -0
  251. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.d.ts +56 -0
  252. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js +180 -0
  253. package/dist/components/Employee/Compensation/shared/useJobForm/useJobForm.js.map +1 -0
  254. package/dist/components/Employee/Dashboard/BasicDetailsView.js +15 -13
  255. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -1
  256. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +3 -0
  257. package/dist/components/Employee/Dashboard/DashboardComponents.js +33 -15
  258. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -1
  259. package/dist/components/Employee/Dashboard/DocumentsView.js +13 -11
  260. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -1
  261. package/dist/components/Employee/Dashboard/JobAndPayView.js +11 -9
  262. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -1
  263. package/dist/components/Employee/Dashboard/TaxesView.js +21 -19
  264. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -1
  265. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  266. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +54 -33
  267. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -1
  268. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +15 -11
  269. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  270. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +37 -33
  271. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  272. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +26 -26
  273. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  274. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +7 -3
  275. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  276. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +8 -7
  277. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  278. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +8 -6
  279. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  280. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +6 -5
  281. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  282. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +4 -2
  283. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  284. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +7 -3
  285. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  286. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +9 -7
  287. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  288. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +36 -34
  289. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  290. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +8 -7
  291. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  292. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.d.ts +1 -1
  293. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/fields.js.map +1 -1
  294. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js +100 -99
  295. package/dist/components/Employee/DocumentSigner/shared/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -1
  296. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +4 -2
  297. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  298. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js +9 -7
  299. package/dist/components/Employee/EmployeeList/management/ManagementEmployeeListView.js.map +1 -1
  300. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js +42 -40
  301. package/dist/components/Employee/EmployeeList/onboarding/EmployeeListView.js.map +1 -1
  302. package/dist/components/Employee/FederalTaxes/index.d.ts +3 -1
  303. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.d.ts +8 -0
  304. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js +71 -0
  305. package/dist/components/Employee/FederalTaxes/management/FederalTaxes.js.map +1 -0
  306. package/dist/components/Employee/FederalTaxes/management/index.d.ts +2 -0
  307. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.d.ts +8 -0
  308. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js +55 -0
  309. package/dist/components/Employee/FederalTaxes/onboarding/FederalTaxes.js.map +1 -0
  310. package/dist/components/Employee/FederalTaxes/onboarding/index.d.ts +2 -0
  311. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.d.ts +15 -0
  312. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +104 -0
  313. package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js.map +1 -0
  314. package/dist/components/Employee/FederalTaxes/shared/index.d.ts +3 -0
  315. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +41 -0
  316. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js +40 -0
  317. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.js.map +1 -0
  318. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.d.ts +18 -0
  319. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +31 -0
  320. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js.map +1 -0
  321. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/index.d.ts +5 -0
  322. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +37 -0
  323. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js +140 -0
  324. package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.js.map +1 -0
  325. package/dist/components/Employee/Landing/Landing.js +15 -14
  326. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  327. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -1
  328. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +2 -2
  329. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  330. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +1 -1
  331. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  332. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  333. package/dist/components/Employee/PaymentMethod/Actions.js +9 -7
  334. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  335. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -4
  336. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  337. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +7 -6
  338. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  339. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -6
  340. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  341. package/dist/components/Employee/PaymentMethod/Split.js +4 -3
  342. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  343. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +9 -5
  344. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  345. package/dist/components/Employee/Profile/management/Profile.d.ts +6 -0
  346. package/dist/components/Employee/Profile/management/Profile.js +122 -0
  347. package/dist/components/Employee/Profile/management/Profile.js.map +1 -0
  348. package/dist/components/Employee/Profile/management/Profile.module.scss.js +8 -0
  349. package/dist/components/Employee/Profile/management/Profile.module.scss.js.map +1 -0
  350. package/dist/components/Employee/Profile/onboarding/AdminProfile.js +352 -0
  351. package/dist/components/Employee/Profile/onboarding/AdminProfile.js.map +1 -0
  352. package/dist/components/Employee/Profile/{EmployeeProfile.js → onboarding/EmployeeProfile.js} +60 -66
  353. package/dist/components/Employee/Profile/onboarding/EmployeeProfile.js.map +1 -0
  354. package/dist/components/Employee/Profile/{Profile.d.ts → onboarding/Profile.d.ts} +2 -2
  355. package/dist/components/Employee/Profile/{Profile.js → onboarding/Profile.js} +4 -4
  356. package/dist/components/Employee/Profile/onboarding/Profile.js.map +1 -0
  357. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +9 -4
  358. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js +61 -58
  359. package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  360. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.d.ts +1 -1
  361. package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js.map +1 -1
  362. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js +50 -49
  363. package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.js.map +1 -1
  364. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js +47 -46
  365. package/dist/components/Employee/Profile/shared/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  366. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js +14 -14
  367. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  368. package/dist/components/Employee/StateTaxes/index.d.ts +2 -1
  369. package/dist/components/Employee/StateTaxes/management/StateTaxes.d.ts +6 -0
  370. package/dist/components/Employee/StateTaxes/management/StateTaxes.js +59 -0
  371. package/dist/components/Employee/StateTaxes/management/StateTaxes.js.map +1 -0
  372. package/dist/components/Employee/StateTaxes/management/index.d.ts +2 -0
  373. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.d.ts +8 -0
  374. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js +49 -0
  375. package/dist/components/Employee/StateTaxes/onboarding/StateTaxes.js.map +1 -0
  376. package/dist/components/Employee/StateTaxes/onboarding/index.d.ts +2 -0
  377. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.d.ts +14 -0
  378. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js +32 -0
  379. package/dist/components/Employee/StateTaxes/shared/EmployeeStateTaxesView.js.map +1 -0
  380. package/dist/components/Employee/StateTaxes/shared/index.d.ts +3 -0
  381. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/stateTaxesFixtures.d.ts +8 -0
  382. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/__fixtures__/toWireFormat.d.ts +36 -0
  383. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.d.ts +56 -0
  384. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js +116 -0
  385. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.js.map +1 -0
  386. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.d.ts +12 -0
  387. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +76 -0
  388. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js.map +1 -0
  389. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.d.ts +14 -0
  390. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js +23 -0
  391. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMapping.js.map +1 -0
  392. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldMeta.d.ts +6 -0
  393. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldProps.d.ts +39 -0
  394. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.d.ts +46 -0
  395. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js +93 -0
  396. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fields.js.map +1 -0
  397. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/index.d.ts +6 -0
  398. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.d.ts +36 -0
  399. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js +159 -0
  400. package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/useEmployeeStateTaxesForm.js.map +1 -0
  401. package/dist/components/Employee/Taxes/Actions.js +10 -8
  402. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  403. package/dist/components/Employee/Taxes/FederalForm.js +6 -4
  404. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  405. package/dist/components/Employee/Taxes/useTaxes.js +7 -3
  406. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  407. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +4 -2
  408. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  409. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +13 -12
  410. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  411. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +4 -2
  412. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  413. package/dist/components/Employee/exports/employeeManagement.d.ts +3 -0
  414. package/dist/components/Employee/exports/employeeManagement.js +16 -10
  415. package/dist/components/Employee/exports/employeeManagement.js.map +1 -1
  416. package/dist/components/Employee/exports/employeeOnboarding.d.ts +3 -3
  417. package/dist/components/Employee/exports/employeeOnboarding.js +19 -19
  418. package/dist/components/Employee/index.d.ts +2 -1
  419. package/dist/components/Employee/index.js +37 -37
  420. package/dist/components/Flow/FlowHeader.js +11 -10
  421. package/dist/components/Flow/FlowHeader.js.map +1 -1
  422. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +56 -54
  423. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  424. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +12 -11
  425. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  426. package/dist/components/InformationRequests/InformationRequests.js +4 -3
  427. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  428. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +1 -0
  429. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  430. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +10 -8
  431. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  432. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +23 -20
  433. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  434. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +20 -18
  435. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  436. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +12 -10
  437. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  438. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +8 -6
  439. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  440. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +4 -2
  441. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  442. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +13 -11
  443. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  444. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  445. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +18 -16
  446. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  447. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +4 -2
  448. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  449. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +14 -12
  450. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  451. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +30 -29
  452. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  453. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +4 -2
  454. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  455. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  456. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  457. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +7 -6
  458. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  459. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +7 -6
  460. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  461. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +4 -2
  462. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  463. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +4 -2
  464. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  465. package/dist/components/Payroll/usePreparedPayrollData.js +16 -12
  466. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  467. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +11 -0
  468. package/dist/components/TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
  469. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +3 -0
  470. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +19 -0
  471. package/dist/components/TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
  472. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.d.ts +6 -0
  473. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js +149 -0
  474. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.js.map +1 -0
  475. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.d.ts +2 -0
  476. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js +80 -0
  477. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailPresentation.js.map +1 -0
  478. package/dist/components/TimeOff/HolidayPolicyDetail/HolidayPolicyDetailTypes.d.ts +21 -0
  479. package/dist/components/TimeOff/HolidayPolicyDetail/index.d.ts +5 -0
  480. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionForm.d.ts +1 -0
  481. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +115 -0
  482. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
  483. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.js +13 -10
  484. package/dist/components/TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  485. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +2 -0
  486. package/dist/components/TimeOff/PolicyList/PolicyList.js +103 -0
  487. package/dist/components/TimeOff/PolicyList/PolicyList.js.map +1 -0
  488. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js +135 -0
  489. package/dist/components/TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  490. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListTypes.d.ts +1 -1
  491. package/dist/components/TimeOff/PolicySettings/PolicySettings.js +70 -0
  492. package/dist/components/TimeOff/PolicySettings/PolicySettings.js.map +1 -0
  493. package/dist/components/TimeOff/PolicySettings/PolicySettings.module.scss.js +16 -0
  494. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.module.scss.js.map +1 -1
  495. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js +164 -0
  496. package/dist/components/TimeOff/PolicySettings/PolicySettingsPresentation.js.map +1 -0
  497. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsTypes.d.ts +1 -1
  498. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +31 -0
  499. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  500. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +1 -1
  501. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +68 -0
  502. package/dist/components/TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  503. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +1 -0
  504. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
  505. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlowComponents.d.ts +3 -3
  506. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js +117 -0
  507. package/dist/components/TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
  508. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +9 -0
  509. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js +25 -0
  510. package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.js.map +1 -0
  511. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/timeOffStateMachine.d.ts +4 -2
  512. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js +487 -0
  513. package/dist/components/TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
  514. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +1 -0
  515. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +158 -0
  516. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  517. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +230 -0
  518. package/dist/components/TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  519. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.d.ts +6 -0
  520. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js +143 -0
  521. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesHoliday.js.map +1 -0
  522. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.d.ts +2 -0
  523. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js +103 -0
  524. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentation.js.map +1 -0
  525. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesPresentationTypes.d.ts +41 -0
  526. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.d.ts +9 -0
  527. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js +216 -0
  528. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/SelectEmployeesTimeOff.js.map +1 -0
  529. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.d.ts +12 -0
  530. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +64 -0
  531. package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -0
  532. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.d.ts +9 -0
  533. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js +56 -0
  534. package/dist/components/TimeOff/TimeOffPolicyDetail/EditEmployeeBalanceModal.js.map +1 -0
  535. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.d.ts +5 -0
  536. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js +251 -0
  537. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.js.map +1 -0
  538. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js +10 -0
  539. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetail.module.scss.js.map +1 -0
  540. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.d.ts +2 -0
  541. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js +143 -0
  542. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailPresentation.js.map +1 -0
  543. package/dist/components/TimeOff/TimeOffPolicyDetail/TimeOffPolicyDetailTypes.d.ts +52 -0
  544. package/dist/components/TimeOff/TimeOffPolicyDetail/index.d.ts +7 -0
  545. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +9 -0
  546. package/dist/components/TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
  547. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.d.ts +6 -0
  548. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js +9 -0
  549. package/dist/components/TimeOff/ViewHolidayPolicyDetails/ViewHolidayPolicyDetails.js.map +1 -0
  550. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +9 -0
  551. package/dist/components/TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
  552. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.d.ts +7 -8
  553. package/dist/components/TimeOff/index.js +27 -0
  554. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/index.js.map +1 -1
  555. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  556. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +95 -0
  557. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -0
  558. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.module.scss.js +10 -0
  559. package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.module.scss.js.map +1 -0
  560. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/EmployeeTableTypes.d.ts +2 -0
  561. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.d.ts +3 -0
  562. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js +86 -0
  563. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayout.js.map +1 -0
  564. package/dist/components/TimeOff/shared/PolicyDetailLayout/PolicyDetailLayoutTypes.d.ts +27 -0
  565. package/dist/components/TimeOff/shared/PolicyDetailLayout/index.d.ts +3 -0
  566. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.d.ts +1 -1
  567. package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/holidayHelpers.js +8 -8
  568. package/dist/components/TimeOff/shared/holidayHelpers.js.map +1 -0
  569. package/dist/components/TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  570. package/dist/components/index.d.ts +1 -1
  571. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +1 -0
  572. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +35 -32
  573. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  574. package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +8 -0
  575. package/dist/contexts/ThemeProvider/ThemeProvider.js +26 -21
  576. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  577. package/dist/contexts/ThemeProvider/useTheme.d.ts +1 -1
  578. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  579. package/dist/helpers/dateFormatting.d.ts +2 -0
  580. package/dist/helpers/dateFormatting.js +4 -0
  581. package/dist/helpers/dateFormatting.js.map +1 -1
  582. package/dist/i18n/I18n.js +12 -10
  583. package/dist/i18n/I18n.js.map +1 -1
  584. package/dist/i18n/en/Company.Locations.json.js +43 -39
  585. package/dist/i18n/en/Company.Locations.json.js.map +1 -1
  586. package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
  587. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +10 -12
  588. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -1
  589. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +18 -16
  590. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -1
  591. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js +14 -0
  592. package/dist/i18n/en/Company.TimeOff.PolicyDetail.json.js.map +1 -0
  593. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js +30 -0
  594. package/dist/i18n/en/Company.TimeOff.SelectEmployees.json.js.map +1 -0
  595. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +14 -14
  596. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +46 -42
  597. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -1
  598. package/dist/i18n/en/Employee.FederalTaxes.json.js +16 -10
  599. package/dist/i18n/en/Employee.FederalTaxes.json.js.map +1 -1
  600. package/dist/i18n/en/Employee.Profile.json.js +24 -20
  601. package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
  602. package/dist/i18n/en/Employee.StateTaxes.json.js +14 -6
  603. package/dist/i18n/en/Employee.StateTaxes.json.js.map +1 -1
  604. package/dist/i18n/en/Payroll.GrossUpModal.json.js +12 -10
  605. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  606. package/dist/index.d.ts +8 -2
  607. package/dist/index.js +118 -93
  608. package/dist/index.js.map +1 -1
  609. package/dist/partner-hook-utils/form/SDKFormProvider.js +18 -14
  610. package/dist/partner-hook-utils/form/SDKFormProvider.js.map +1 -1
  611. package/dist/partner-hook-utils/form/buildFormSchema.js +41 -41
  612. package/dist/partner-hook-utils/form/buildFormSchema.js.map +1 -1
  613. package/dist/partner-hook-utils/form/composeSubmitHandler.d.ts +10 -6
  614. package/dist/partner-hook-utils/form/composeSubmitHandler.js +49 -26
  615. package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
  616. package/dist/partner-hook-utils/form/fields/CheckboxHookField.d.ts +1 -1
  617. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js +30 -24
  618. package/dist/partner-hook-utils/form/fields/CheckboxHookField.js.map +1 -1
  619. package/dist/partner-hook-utils/form/fields/DatePickerHookField.d.ts +1 -1
  620. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js +33 -29
  621. package/dist/partner-hook-utils/form/fields/DatePickerHookField.js.map +1 -1
  622. package/dist/partner-hook-utils/form/fields/NumberInputHookField.d.ts +1 -1
  623. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js +34 -28
  624. package/dist/partner-hook-utils/form/fields/NumberInputHookField.js.map +1 -1
  625. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.d.ts +1 -1
  626. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js +30 -24
  627. package/dist/partner-hook-utils/form/fields/RadioGroupHookField.js.map +1 -1
  628. package/dist/partner-hook-utils/form/fields/SelectHookField.d.ts +1 -1
  629. package/dist/partner-hook-utils/form/fields/SelectHookField.js +38 -32
  630. package/dist/partner-hook-utils/form/fields/SelectHookField.js.map +1 -1
  631. package/dist/partner-hook-utils/form/fields/SwitchHookField.d.ts +1 -1
  632. package/dist/partner-hook-utils/form/fields/SwitchHookField.js +28 -22
  633. package/dist/partner-hook-utils/form/fields/SwitchHookField.js.map +1 -1
  634. package/dist/partner-hook-utils/form/fields/TextInputHookField.d.ts +1 -1
  635. package/dist/partner-hook-utils/form/fields/TextInputHookField.js +30 -24
  636. package/dist/partner-hook-utils/form/fields/TextInputHookField.js.map +1 -1
  637. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.d.ts +10 -0
  638. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js +9 -0
  639. package/dist/partner-hook-utils/form/fields/withFieldElementRegistry.js.map +1 -0
  640. package/dist/partner-hook-utils/form/index.d.ts +3 -0
  641. package/dist/partner-hook-utils/form/resolveFieldError.js +10 -7
  642. package/dist/partner-hook-utils/form/resolveFieldError.js.map +1 -1
  643. package/dist/partner-hook-utils/form/useFieldErrorMessage.js +10 -7
  644. package/dist/partner-hook-utils/form/useFieldErrorMessage.js.map +1 -1
  645. package/dist/partner-hook-utils/form/useHookFieldResolution.d.ts +10 -3
  646. package/dist/partner-hook-utils/form/useHookFieldResolution.js +6 -6
  647. package/dist/partner-hook-utils/form/useHookFieldResolution.js.map +1 -1
  648. package/dist/partner-hook-utils/form/useHookFormInternals.d.ts +22 -0
  649. package/dist/partner-hook-utils/form/useHookFormInternals.js +12 -0
  650. package/dist/partner-hook-utils/form/useHookFormInternals.js.map +1 -0
  651. package/dist/partner-hook-utils/form/withOptions.d.ts +1 -1
  652. package/dist/partner-hook-utils/form/withOptions.js.map +1 -1
  653. package/dist/partner-hook-utils/types.d.ts +16 -1
  654. package/dist/shared/constants.d.ts +24 -0
  655. package/dist/shared/constants.js +42 -30
  656. package/dist/shared/constants.js.map +1 -1
  657. package/dist/style.css +1 -1
  658. package/dist/types/i18next.d.ts +82 -14
  659. package/docs/reference/endpoint-inventory.json +453 -123
  660. package/package.json +22 -20
  661. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +0 -8
  662. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js.map +0 -1
  663. package/dist/components/Employee/Compensation/Actions.d.ts +0 -1
  664. package/dist/components/Employee/Compensation/Actions.js +0 -38
  665. package/dist/components/Employee/Compensation/Actions.js.map +0 -1
  666. package/dist/components/Employee/Compensation/Edit.d.ts +0 -5
  667. package/dist/components/Employee/Compensation/Edit.js +0 -178
  668. package/dist/components/Employee/Compensation/Edit.js.map +0 -1
  669. package/dist/components/Employee/Compensation/Head.d.ts +0 -1
  670. package/dist/components/Employee/Compensation/Head.js +0 -22
  671. package/dist/components/Employee/Compensation/Head.js.map +0 -1
  672. package/dist/components/Employee/Compensation/List.d.ts +0 -1
  673. package/dist/components/Employee/Compensation/List.js +0 -71
  674. package/dist/components/Employee/Compensation/List.js.map +0 -1
  675. package/dist/components/Employee/Compensation/useCompensation.js.map +0 -1
  676. package/dist/components/Employee/FederalTaxes/Actions.d.ts +0 -1
  677. package/dist/components/Employee/FederalTaxes/Actions.js +0 -13
  678. package/dist/components/Employee/FederalTaxes/Actions.js.map +0 -1
  679. package/dist/components/Employee/FederalTaxes/FederalForm.d.ts +0 -12
  680. package/dist/components/Employee/FederalTaxes/FederalForm.js +0 -109
  681. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +0 -1
  682. package/dist/components/Employee/FederalTaxes/FederalTaxes.d.ts +0 -6
  683. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +0 -84
  684. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +0 -1
  685. package/dist/components/Employee/FederalTaxes/Head.d.ts +0 -1
  686. package/dist/components/Employee/FederalTaxes/Head.js +0 -24
  687. package/dist/components/Employee/FederalTaxes/Head.js.map +0 -1
  688. package/dist/components/Employee/FederalTaxes/useFederalTaxes.d.ts +0 -5
  689. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +0 -20
  690. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +0 -1
  691. package/dist/components/Employee/Profile/AdminProfile.js +0 -358
  692. package/dist/components/Employee/Profile/AdminProfile.js.map +0 -1
  693. package/dist/components/Employee/Profile/EmployeeProfile.js.map +0 -1
  694. package/dist/components/Employee/Profile/Profile.js.map +0 -1
  695. package/dist/components/Employee/Profile/index.d.ts +0 -2
  696. package/dist/components/Employee/StateTaxes/Actions.d.ts +0 -1
  697. package/dist/components/Employee/StateTaxes/Actions.js +0 -13
  698. package/dist/components/Employee/StateTaxes/Actions.js.map +0 -1
  699. package/dist/components/Employee/StateTaxes/StateForm.d.ts +0 -6
  700. package/dist/components/Employee/StateTaxes/StateForm.js +0 -34
  701. package/dist/components/Employee/StateTaxes/StateForm.js.map +0 -1
  702. package/dist/components/Employee/StateTaxes/StateTaxes.d.ts +0 -7
  703. package/dist/components/Employee/StateTaxes/StateTaxes.js +0 -98
  704. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +0 -1
  705. package/dist/components/Employee/StateTaxes/useStateTaxes.d.ts +0 -8
  706. package/dist/components/Employee/StateTaxes/useStateTaxes.js +0 -20
  707. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +0 -1
  708. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +0 -46
  709. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +0 -1
  710. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +0 -46
  711. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +0 -1
  712. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +0 -49
  713. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +0 -1
  714. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +0 -1
  715. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +0 -107
  716. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +0 -1
  717. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +0 -124
  718. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +0 -1
  719. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +0 -46
  720. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +0 -1
  721. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.module.scss.js +0 -18
  722. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js +0 -166
  723. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettingsPresentation.js.map +0 -1
  724. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +0 -29
  725. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +0 -1
  726. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +0 -66
  727. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +0 -1
  728. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +0 -1
  729. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +0 -103
  730. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +0 -1
  731. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +0 -290
  732. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +0 -1
  733. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +0 -71
  734. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +0 -1
  735. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +0 -206
  736. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +0 -1
  737. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +0 -35
  738. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +0 -1
  739. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +0 -35
  740. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +0 -1
  741. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +0 -5
  742. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +0 -35
  743. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +0 -1
  744. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +0 -5
  745. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +0 -35
  746. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +0 -1
  747. package/dist/components/UNSTABLE_TimeOff/index.js +0 -29
  748. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +0 -2
  749. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +0 -1
  750. /package/dist/components/Employee/{Compensation/shared/useCompensationForm/compensationSchemaParity.test.d.ts → FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.test.d.ts} +0 -0
  751. /package/dist/components/Employee/Profile/{AdminProfile.d.ts → onboarding/AdminProfile.d.ts} +0 -0
  752. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js → onboarding/AdminProfile.module.scss.js} +0 -0
  753. /package/dist/components/Employee/Profile/{AdminProfile.module.scss.js.map → onboarding/AdminProfile.module.scss.js.map} +0 -0
  754. /package/dist/components/Employee/Profile/{EmployeeProfile.d.ts → onboarding/EmployeeProfile.d.ts} +0 -0
  755. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js → onboarding/EmployeeProfile.module.scss.js} +0 -0
  756. /package/dist/components/Employee/Profile/{EmployeeProfile.module.scss.js.map → onboarding/EmployeeProfile.module.scss.js.map} +0 -0
  757. /package/dist/components/{UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts → Employee/StateTaxes/shared/useEmployeeStateTaxesForm/employeeStateTaxesSchema.test.d.ts} +0 -0
  758. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +0 -0
  759. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +0 -0
  760. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyList.d.ts +0 -0
  761. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.d.ts +0 -0
  762. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js +0 -0
  763. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyList/PolicyListPresentation.module.scss.js.map +0 -0
  764. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettings.d.ts +0 -0
  765. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicySettings/PolicySettingsPresentation.d.ts +0 -0
  766. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/PolicyTypeSelector/PolicyTypeSelector.d.ts +0 -0
  767. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.d.ts +0 -0
  768. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/TimeOffFlow.js +0 -0
  769. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffFlow/index.d.ts +0 -0
  770. /package/dist/components/{UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts → TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts} +0 -0
  771. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +0 -0
  772. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +0 -0
  773. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +0 -0
  774. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +0 -0
  775. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/TimeOffManagement/PolicyConfigurationForm/index.d.ts +0 -0
  776. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +0 -0
  777. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +0 -0
  778. /package/dist/components/{UNSTABLE_TimeOff → TimeOff}/shared/EmployeeTable/index.d.ts +0 -0
@@ -1,34 +1,36 @@
1
- import { jsx as o, jsxs as T, Fragment as b } from "react/jsx-runtime";
2
- import { useForm as D, FormProvider as E } from "react-hook-form";
3
- import { zodResolver as N } from "@hookform/resolvers/zod";
4
- import { useLocationsUpdateMutation as O } from "@gusto/embedded-api/react-query/locationsUpdate";
5
- import { useLocationsRetrieveSuspense as R } from "@gusto/embedded-api/react-query/locationsRetrieve";
6
- import { useLocationsCreateMutation as S } from "@gusto/embedded-api/react-query/locationsCreate";
7
- import { Head as q } from "./Head.js";
8
- import { LocationFormSchema as x, Form as B } from "./Form.js";
9
- import { Actions as I } from "./Actions.js";
10
- import { LocationsFormProvider as M } from "./useLocationForm.js";
11
- import { Form as _ } from "../../../Common/Form/Form.js";
12
- import { Flex as w } from "../../../Common/Flex/Flex.js";
13
- import { BaseComponent as z } from "../../../Base/Base.js";
14
- import { useBase as U } from "../../../Base/useBase.js";
15
- import { useI18n as j } from "../../../../i18n/I18n.js";
16
- import { componentEvents as a } from "../../../../shared/constants.js";
17
- function H(t) {
1
+ import { jsx as t, jsxs as E, Fragment as N } from "react/jsx-runtime";
2
+ import { useForm as O, FormProvider as R } from "react-hook-form";
3
+ import { zodResolver as S } from "@hookform/resolvers/zod";
4
+ import { useLocationsUpdateMutation as w } from "@gusto/embedded-api/react-query/locationsUpdate";
5
+ import { useLocationsRetrieveSuspense as x } from "@gusto/embedded-api/react-query/locationsRetrieve";
6
+ import { useLocationsCreateMutation as M } from "@gusto/embedded-api/react-query/locationsCreate";
7
+ import { useQueryClient as B } from "@tanstack/react-query";
8
+ import { Head as I } from "./Head.js";
9
+ import { LocationFormSchema as _, Form as z } from "./Form.js";
10
+ import { Actions as U } from "./Actions.js";
11
+ import { LocationsFormProvider as j } from "./useLocationForm.js";
12
+ import { Form as k } from "../../../Common/Form/Form.js";
13
+ import { Flex as H } from "../../../Common/Flex/Flex.js";
14
+ import "classnames";
15
+ import { componentEvents as m } from "../../../../shared/constants.js";
16
+ import { BaseComponent as Q } from "../../../Base/Base.js";
17
+ import { useBase as Y } from "../../../Base/useBase.js";
18
+ import { useI18n as K } from "../../../../i18n/I18n.js";
19
+ function V(o) {
18
20
  const {
19
21
  data: { location: e }
20
- } = R({ locationId: t.locationId });
21
- return /* @__PURE__ */ o(p, { ...t, location: e });
22
+ } = x({ locationId: o.locationId });
23
+ return /* @__PURE__ */ t(y, { ...o, location: e });
22
24
  }
23
- function p({
24
- companyId: t,
25
+ function y({
26
+ companyId: o,
25
27
  location: e,
26
- className: n,
28
+ className: i,
27
29
  children: r
28
30
  }) {
29
- j("Company.Locations");
30
- const { onEvent: s, baseSubmitHandler: f } = U(), { mutateAsync: l, isPending: A } = S(), { mutateAsync: y, isPending: L } = O(), g = ["mailingAddress", "filingAddress"], { control: h, ...d } = D({
31
- resolver: N(x),
31
+ K("Company.Locations");
32
+ const { onEvent: s, baseSubmitHandler: g } = Y(), A = B(), { mutateAsync: L, isPending: h } = M(), { mutateAsync: C, isPending: v } = w(), F = ["mailingAddress", "filingAddress"], d = e?.mailingAddress === !0, c = e?.filingAddress === !0, { control: P, ...u } = O({
33
+ resolver: S(_),
32
34
  defaultValues: {
33
35
  city: e?.city ?? "",
34
36
  phoneNumber: e?.phoneNumber ?? "",
@@ -36,58 +38,61 @@ function p({
36
38
  street2: e?.street2 ?? "",
37
39
  state: e?.state ?? "",
38
40
  zip: e?.zip ?? "",
39
- addressType: g.filter((i) => e?.[i] ?? !1)
41
+ addressType: F.filter((n) => e?.[n] ?? !1)
40
42
  }
41
- }), v = () => {
42
- s(a.CANCEL);
43
- }, C = async (i) => {
44
- await f(i, async (F) => {
45
- const { addressType: c, ...P } = F, u = {
46
- ...P,
47
- mailingAddress: c?.includes("mailingAddress"),
48
- filingAddress: c?.includes("filingAddress")
49
- };
43
+ }), T = () => {
44
+ s(m.CANCEL);
45
+ }, b = async (n) => {
46
+ await g(n, async (q) => {
47
+ const { addressType: p, ...D } = q, f = {
48
+ ...D,
49
+ ...d ? {} : { mailingAddress: p?.includes("mailingAddress") },
50
+ ...c ? {} : { filingAddress: p?.includes("filingAddress") }
51
+ }, l = () => A.invalidateQueries({
52
+ queryKey: ["@gusto/embedded-api", "Locations"],
53
+ refetchType: "all"
54
+ });
50
55
  if (e && e.version !== void 0) {
51
- const { location: m } = await y({
56
+ const { location: a } = await C({
52
57
  request: {
53
58
  locationId: e.uuid,
54
- requestBody: { ...u, version: e.version }
59
+ requestBody: { ...f, version: e.version }
55
60
  }
56
61
  });
57
- s(a.COMPANY_LOCATION_UPDATED, m);
62
+ await l(), s(m.COMPANY_LOCATION_UPDATED, a);
58
63
  } else {
59
- const { location: m } = await l({
64
+ const { location: a } = await L({
60
65
  request: {
61
- companyId: t,
62
- companyLocationRequest: u
66
+ companyId: o,
67
+ companyLocationRequest: f
63
68
  }
64
69
  });
65
- s(a.COMPANY_LOCATION_CREATED, m);
70
+ await l(), s(m.COMPANY_LOCATION_CREATED, a);
66
71
  }
67
72
  });
68
73
  };
69
- return /* @__PURE__ */ o("section", { className: n, children: /* @__PURE__ */ o(E, { ...d, control: h, children: /* @__PURE__ */ o(_, { onSubmit: d.handleSubmit(C), children: /* @__PURE__ */ o(
70
- M,
74
+ return /* @__PURE__ */ t("section", { className: i, children: /* @__PURE__ */ t(R, { ...u, control: P, children: /* @__PURE__ */ t(k, { onSubmit: u.handleSubmit(b), children: /* @__PURE__ */ t(
75
+ j,
71
76
  {
72
- value: { handleCancel: v, isPending: A || L },
73
- children: /* @__PURE__ */ o(w, { flexDirection: "column", gap: 32, children: r || /* @__PURE__ */ T(b, { children: [
74
- /* @__PURE__ */ o(q, {}),
75
- /* @__PURE__ */ o(B, {}),
76
- /* @__PURE__ */ o(I, {})
77
+ value: { handleCancel: T, isPending: h || v },
78
+ children: /* @__PURE__ */ t(H, { flexDirection: "column", gap: 32, children: r || /* @__PURE__ */ E(N, { children: [
79
+ /* @__PURE__ */ t(I, {}),
80
+ /* @__PURE__ */ t(z, { isMailingLocked: d, isFilingLocked: c }),
81
+ /* @__PURE__ */ t(U, {})
77
82
  ] }) })
78
83
  }
79
84
  ) }) }) });
80
85
  }
81
- function ne({
82
- companyId: t,
86
+ function pe({
87
+ companyId: o,
83
88
  locationId: e,
84
- className: n,
89
+ className: i,
85
90
  children: r,
86
91
  ...s
87
92
  }) {
88
- return /* @__PURE__ */ o(z, { ...s, children: e ? /* @__PURE__ */ o(H, { companyId: t, locationId: e, className: n, children: r }) : /* @__PURE__ */ o(p, { companyId: t, className: n, children: r }) });
93
+ return /* @__PURE__ */ t(Q, { ...s, children: e ? /* @__PURE__ */ t(V, { companyId: o, locationId: e, className: i, children: r }) : /* @__PURE__ */ t(y, { companyId: o, className: i, children: r }) });
89
94
  }
90
95
  export {
91
- ne as LocationForm
96
+ pe as LocationForm
92
97
  };
93
98
  //# sourceMappingURL=LocationForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LocationForm.js","sources":["../../../../../src/components/Company/Locations/LocationForm/LocationForm.tsx"],"sourcesContent":["import { FormProvider, useForm } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { useLocationsUpdateMutation } from '@gusto/embedded-api/react-query/locationsUpdate'\nimport { useLocationsRetrieveSuspense } from '@gusto/embedded-api/react-query/locationsRetrieve'\nimport { useLocationsCreateMutation } from '@gusto/embedded-api/react-query/locationsCreate'\nimport { type Location } from '@gusto/embedded-api/models/components/location'\nimport { Head } from './Head'\nimport type { LocationFormInputs } from './Form'\nimport { Form, LocationFormSchema } from './Form'\nimport { Actions } from './Actions'\nimport { LocationsFormProvider } from './useLocationForm'\nimport { Form as HtmlForm } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\nimport type { BaseComponentInterface, CommonComponentInterface } from '@/components/Base'\nimport { BaseComponent, useBase } from '@/components/Base'\nimport { useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\nimport type { WithRequired } from '@/types/Helpers'\n\ninterface LocationFormProps extends CommonComponentInterface {\n companyId: string\n locationId?: string\n}\n\n/**Accounting for conditional logic where location data needs to be fetched only if locationId is present */\nfunction RootWithLocation(props: WithRequired<LocationFormProps, 'locationId'>) {\n const {\n data: { location },\n } = useLocationsRetrieveSuspense({ locationId: props.locationId })\n return <Root {...props} location={location} />\n}\n\nfunction Root({\n companyId,\n location,\n className,\n children,\n}: LocationFormProps & { location?: Location }) {\n useI18n('Company.Locations')\n const { onEvent, baseSubmitHandler } = useBase()\n\n const { mutateAsync: createLocation, isPending: isPendingCreate } = useLocationsCreateMutation()\n const { mutateAsync: updateLocation, isPending: isPendingUpdate } = useLocationsUpdateMutation()\n const addressType = ['mailingAddress', 'filingAddress'] as const\n\n const { control, ...methods } = useForm<LocationFormInputs>({\n resolver: zodResolver(LocationFormSchema),\n defaultValues: {\n city: location?.city ?? '',\n phoneNumber: location?.phoneNumber ?? '',\n street1: location?.street1 ?? '',\n street2: location?.street2 ?? '',\n state: location?.state ?? '',\n zip: location?.zip ?? '',\n addressType: addressType.filter(key => location?.[key] ?? false),\n },\n })\n\n const handleCancel = () => {\n onEvent(componentEvents.CANCEL)\n }\n const onSubmit = async (data: LocationFormInputs) => {\n await baseSubmitHandler(data, async innerData => {\n const { addressType, ...payload } = innerData\n\n const requestBody = {\n ...payload,\n mailingAddress: addressType?.includes('mailingAddress'),\n filingAddress: addressType?.includes('filingAddress'),\n }\n\n if (location && location.version !== undefined) {\n const { location: responseData } = await updateLocation({\n request: {\n locationId: location.uuid,\n requestBody: { ...requestBody, version: location.version },\n },\n })\n onEvent(componentEvents.COMPANY_LOCATION_UPDATED, responseData)\n } else {\n const { location: responseData } = await createLocation({\n request: {\n companyId,\n companyLocationRequest: requestBody,\n },\n })\n onEvent(componentEvents.COMPANY_LOCATION_CREATED, responseData)\n }\n })\n }\n\n return (\n <section className={className}>\n <FormProvider {...methods} control={control}>\n <HtmlForm onSubmit={methods.handleSubmit(onSubmit)}>\n <LocationsFormProvider\n value={{ handleCancel, isPending: isPendingCreate || isPendingUpdate }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <Form />\n <Actions />\n </>\n )}\n </Flex>\n </LocationsFormProvider>\n </HtmlForm>\n </FormProvider>\n </section>\n )\n}\n\nexport function LocationForm({\n companyId,\n locationId,\n className,\n children,\n ...props\n}: LocationFormProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n {locationId ? (\n <RootWithLocation companyId={companyId} locationId={locationId} className={className}>\n {children}\n </RootWithLocation>\n ) : (\n <Root companyId={companyId} className={className}>\n {children}\n </Root>\n )}\n </BaseComponent>\n )\n}\n"],"names":["RootWithLocation","props","location","useLocationsRetrieveSuspense","jsx","Root","companyId","className","children","useI18n","onEvent","baseSubmitHandler","useBase","createLocation","isPendingCreate","useLocationsCreateMutation","updateLocation","isPendingUpdate","useLocationsUpdateMutation","addressType","control","methods","useForm","zodResolver","LocationFormSchema","key","handleCancel","componentEvents","onSubmit","data","innerData","payload","requestBody","responseData","FormProvider","HtmlForm","LocationsFormProvider","Flex","jsxs","Fragment","Head","Form","Actions","LocationForm","locationId","BaseComponent"],"mappings":";;;;;;;;;;;;;;;;AAyBA,SAASA,EAAiBC,GAAsD;AAC9E,QAAM;AAAA,IACJ,MAAM,EAAE,UAAAC,EAAA;AAAA,EAAS,IACfC,EAA6B,EAAE,YAAYF,EAAM,YAAY;AACjE,SAAO,gBAAAG,EAACC,GAAA,EAAM,GAAGJ,GAAO,UAAAC,EAAA,CAAoB;AAC9C;AAEA,SAASG,EAAK;AAAA,EACZ,WAAAC;AAAA,EACA,UAAAJ;AAAA,EACA,WAAAK;AAAA,EACA,UAAAC;AACF,GAAgD;AAC9C,EAAAC,EAAQ,mBAAmB;AAC3B,QAAM,EAAE,SAAAC,GAAS,mBAAAC,EAAA,IAAsBC,EAAA,GAEjC,EAAE,aAAaC,GAAgB,WAAWC,EAAA,IAAoBC,EAAA,GAC9D,EAAE,aAAaC,GAAgB,WAAWC,EAAA,IAAoBC,EAAA,GAC9DC,IAAc,CAAC,kBAAkB,eAAe,GAEhD,EAAE,SAAAC,GAAS,GAAGC,EAAA,IAAYC,EAA4B;AAAA,IAC1D,UAAUC,EAAYC,CAAkB;AAAA,IACxC,eAAe;AAAA,MACb,MAAMtB,GAAU,QAAQ;AAAA,MACxB,aAAaA,GAAU,eAAe;AAAA,MACtC,SAASA,GAAU,WAAW;AAAA,MAC9B,SAASA,GAAU,WAAW;AAAA,MAC9B,OAAOA,GAAU,SAAS;AAAA,MAC1B,KAAKA,GAAU,OAAO;AAAA,MACtB,aAAaiB,EAAY,OAAO,OAAOjB,IAAWuB,CAAG,KAAK,EAAK;AAAA,IAAA;AAAA,EACjE,CACD,GAEKC,IAAe,MAAM;AACzB,IAAAhB,EAAQiB,EAAgB,MAAM;AAAA,EAChC,GACMC,IAAW,OAAOC,MAA6B;AACnD,UAAMlB,EAAkBkB,GAAM,OAAMC,MAAa;AAC/C,YAAM,EAAE,aAAAX,GAAa,GAAGY,MAAYD,GAE9BE,IAAc;AAAA,QAClB,GAAGD;AAAA,QACH,gBAAgBZ,GAAa,SAAS,gBAAgB;AAAA,QACtD,eAAeA,GAAa,SAAS,eAAe;AAAA,MAAA;AAGtD,UAAIjB,KAAYA,EAAS,YAAY,QAAW;AAC9C,cAAM,EAAE,UAAU+B,EAAA,IAAiB,MAAMjB,EAAe;AAAA,UACtD,SAAS;AAAA,YACP,YAAYd,EAAS;AAAA,YACrB,aAAa,EAAE,GAAG8B,GAAa,SAAS9B,EAAS,QAAA;AAAA,UAAQ;AAAA,QAC3D,CACD;AACD,QAAAQ,EAAQiB,EAAgB,0BAA0BM,CAAY;AAAA,MAChE,OAAO;AACL,cAAM,EAAE,UAAUA,EAAA,IAAiB,MAAMpB,EAAe;AAAA,UACtD,SAAS;AAAA,YACP,WAAAP;AAAA,YACA,wBAAwB0B;AAAA,UAAA;AAAA,QAC1B,CACD;AACD,QAAAtB,EAAQiB,EAAgB,0BAA0BM,CAAY;AAAA,MAChE;AAAA,IACF,CAAC;AAAA,EACH;AAEA,SACE,gBAAA7B,EAAC,WAAA,EAAQ,WAAAG,GACP,UAAA,gBAAAH,EAAC8B,KAAc,GAAGb,GAAS,SAAAD,GACzB,UAAA,gBAAAhB,EAAC+B,GAAA,EAAS,UAAUd,EAAQ,aAAaO,CAAQ,GAC/C,UAAA,gBAAAxB;AAAA,IAACgC;AAAA,IAAA;AAAA,MACC,OAAO,EAAE,cAAAV,GAAc,WAAWZ,KAAmBG,EAAA;AAAA,MAErD,UAAA,gBAAAb,EAACiC,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAA7B,KAGC,gBAAA8B,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAnC,EAACoC,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,EACF,CACF,GACF,GACF;AAEJ;AAEO,SAASC,GAAa;AAAA,EAC3B,WAAArC;AAAA,EACA,YAAAsC;AAAA,EACA,WAAArC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGP;AACL,GAA+C;AAC7C,2BACG4C,GAAA,EAAe,GAAG5C,GAChB,UAAA2C,sBACE5C,GAAA,EAAiB,WAAAM,GAAsB,YAAAsC,GAAwB,WAAArC,GAC7D,UAAAC,GACH,IAEA,gBAAAJ,EAACC,KAAK,WAAAC,GAAsB,WAAAC,GACzB,UAAAC,GACH,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"LocationForm.js","sources":["../../../../../src/components/Company/Locations/LocationForm/LocationForm.tsx"],"sourcesContent":["import { FormProvider, useForm } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport { useLocationsUpdateMutation } from '@gusto/embedded-api/react-query/locationsUpdate'\nimport { useLocationsRetrieveSuspense } from '@gusto/embedded-api/react-query/locationsRetrieve'\nimport { useLocationsCreateMutation } from '@gusto/embedded-api/react-query/locationsCreate'\nimport { type Location } from '@gusto/embedded-api/models/components/location'\nimport { useQueryClient } from '@tanstack/react-query'\nimport { Head } from './Head'\nimport type { LocationFormInputs } from './Form'\nimport { Form, LocationFormSchema } from './Form'\nimport { Actions } from './Actions'\nimport { LocationsFormProvider } from './useLocationForm'\nimport { Form as HtmlForm } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\nimport type { BaseComponentInterface, CommonComponentInterface } from '@/components/Base'\nimport { BaseComponent, useBase } from '@/components/Base'\nimport { useI18n } from '@/i18n'\nimport { componentEvents } from '@/shared/constants'\nimport type { WithRequired } from '@/types/Helpers'\n\ninterface LocationFormProps extends CommonComponentInterface {\n companyId: string\n locationId?: string\n}\n\n/**Accounting for conditional logic where location data needs to be fetched only if locationId is present */\nfunction RootWithLocation(props: WithRequired<LocationFormProps, 'locationId'>) {\n const {\n data: { location },\n } = useLocationsRetrieveSuspense({ locationId: props.locationId })\n return <Root {...props} location={location} />\n}\n\nfunction Root({\n companyId,\n location,\n className,\n children,\n}: LocationFormProps & { location?: Location }) {\n useI18n('Company.Locations')\n const { onEvent, baseSubmitHandler } = useBase()\n\n const queryClient = useQueryClient()\n const { mutateAsync: createLocation, isPending: isPendingCreate } = useLocationsCreateMutation()\n const { mutateAsync: updateLocation, isPending: isPendingUpdate } = useLocationsUpdateMutation()\n const addressType = ['mailingAddress', 'filingAddress'] as const\n const isMailingLocked = location?.mailingAddress === true\n const isFilingLocked = location?.filingAddress === true\n\n const { control, ...methods } = useForm<LocationFormInputs>({\n resolver: zodResolver(LocationFormSchema),\n defaultValues: {\n city: location?.city ?? '',\n phoneNumber: location?.phoneNumber ?? '',\n street1: location?.street1 ?? '',\n street2: location?.street2 ?? '',\n state: location?.state ?? '',\n zip: location?.zip ?? '',\n addressType: addressType.filter(key => location?.[key] ?? false),\n },\n })\n\n const handleCancel = () => {\n onEvent(componentEvents.CANCEL)\n }\n const onSubmit = async (data: LocationFormInputs) => {\n await baseSubmitHandler(data, async innerData => {\n const { addressType, ...payload } = innerData\n\n // The PUT /v1/locations/:id endpoint treats mailing_address and filing_address\n // as set-only flags: once a location is the company's mailing/filing address,\n // sending false is silently ignored (a company must always have one of each).\n // We mirror this contract by omitting locked fields from the request body.\n const requestBody = {\n ...payload,\n ...(isMailingLocked ? {} : { mailingAddress: addressType?.includes('mailingAddress') }),\n ...(isFilingLocked ? {} : { filingAddress: addressType?.includes('filingAddress') }),\n }\n\n // Setting mailing_address or filing_address on one location silently\n // flips the previous holder's flag server-side, so cached data for every\n // location (and the list) is potentially stale. We must await refetches\n // of *inactive* queries too (refetchType: 'all') because the next form\n // mount initializes useForm defaults synchronously from cache; otherwise\n // useSuspenseQuery returns the stale cached value without re-suspending\n // and the form seeds with a stale addressType on first open.\n const refreshLocationsCache = () =>\n queryClient.invalidateQueries({\n queryKey: ['@gusto/embedded-api', 'Locations'],\n refetchType: 'all',\n })\n\n if (location && location.version !== undefined) {\n const { location: responseData } = await updateLocation({\n request: {\n locationId: location.uuid,\n requestBody: { ...requestBody, version: location.version },\n },\n })\n await refreshLocationsCache()\n onEvent(componentEvents.COMPANY_LOCATION_UPDATED, responseData)\n } else {\n const { location: responseData } = await createLocation({\n request: {\n companyId,\n companyLocationRequest: requestBody,\n },\n })\n await refreshLocationsCache()\n onEvent(componentEvents.COMPANY_LOCATION_CREATED, responseData)\n }\n })\n }\n\n return (\n <section className={className}>\n <FormProvider {...methods} control={control}>\n <HtmlForm onSubmit={methods.handleSubmit(onSubmit)}>\n <LocationsFormProvider\n value={{ handleCancel, isPending: isPendingCreate || isPendingUpdate }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <Form isMailingLocked={isMailingLocked} isFilingLocked={isFilingLocked} />\n <Actions />\n </>\n )}\n </Flex>\n </LocationsFormProvider>\n </HtmlForm>\n </FormProvider>\n </section>\n )\n}\n\nexport function LocationForm({\n companyId,\n locationId,\n className,\n children,\n ...props\n}: LocationFormProps & BaseComponentInterface) {\n return (\n <BaseComponent {...props}>\n {locationId ? (\n <RootWithLocation companyId={companyId} locationId={locationId} className={className}>\n {children}\n </RootWithLocation>\n ) : (\n <Root companyId={companyId} className={className}>\n {children}\n </Root>\n )}\n </BaseComponent>\n )\n}\n"],"names":["RootWithLocation","props","location","useLocationsRetrieveSuspense","jsx","Root","companyId","className","children","useI18n","onEvent","baseSubmitHandler","useBase","queryClient","useQueryClient","createLocation","isPendingCreate","useLocationsCreateMutation","updateLocation","isPendingUpdate","useLocationsUpdateMutation","addressType","isMailingLocked","isFilingLocked","control","methods","useForm","zodResolver","LocationFormSchema","key","handleCancel","componentEvents","onSubmit","data","innerData","payload","requestBody","refreshLocationsCache","responseData","FormProvider","HtmlForm","LocationsFormProvider","Flex","jsxs","Fragment","Head","Form","Actions","LocationForm","locationId","BaseComponent"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,SAASA,EAAiBC,GAAsD;AAC9E,QAAM;AAAA,IACJ,MAAM,EAAE,UAAAC,EAAA;AAAA,EAAS,IACfC,EAA6B,EAAE,YAAYF,EAAM,YAAY;AACjE,SAAO,gBAAAG,EAACC,GAAA,EAAM,GAAGJ,GAAO,UAAAC,EAAA,CAAoB;AAC9C;AAEA,SAASG,EAAK;AAAA,EACZ,WAAAC;AAAA,EACA,UAAAJ;AAAA,EACA,WAAAK;AAAA,EACA,UAAAC;AACF,GAAgD;AAC9C,EAAAC,EAAQ,mBAAmB;AAC3B,QAAM,EAAE,SAAAC,GAAS,mBAAAC,EAAA,IAAsBC,EAAA,GAEjCC,IAAcC,EAAA,GACd,EAAE,aAAaC,GAAgB,WAAWC,EAAA,IAAoBC,EAAA,GAC9D,EAAE,aAAaC,GAAgB,WAAWC,EAAA,IAAoBC,EAAA,GAC9DC,IAAc,CAAC,kBAAkB,eAAe,GAChDC,IAAkBpB,GAAU,mBAAmB,IAC/CqB,IAAiBrB,GAAU,kBAAkB,IAE7C,EAAE,SAAAsB,GAAS,GAAGC,EAAA,IAAYC,EAA4B;AAAA,IAC1D,UAAUC,EAAYC,CAAkB;AAAA,IACxC,eAAe;AAAA,MACb,MAAM1B,GAAU,QAAQ;AAAA,MACxB,aAAaA,GAAU,eAAe;AAAA,MACtC,SAASA,GAAU,WAAW;AAAA,MAC9B,SAASA,GAAU,WAAW;AAAA,MAC9B,OAAOA,GAAU,SAAS;AAAA,MAC1B,KAAKA,GAAU,OAAO;AAAA,MACtB,aAAamB,EAAY,OAAO,OAAOnB,IAAW2B,CAAG,KAAK,EAAK;AAAA,IAAA;AAAA,EACjE,CACD,GAEKC,IAAe,MAAM;AACzB,IAAApB,EAAQqB,EAAgB,MAAM;AAAA,EAChC,GACMC,IAAW,OAAOC,MAA6B;AACnD,UAAMtB,EAAkBsB,GAAM,OAAMC,MAAa;AAC/C,YAAM,EAAE,aAAAb,GAAa,GAAGc,MAAYD,GAM9BE,IAAc;AAAA,QAClB,GAAGD;AAAA,QACH,GAAIb,IAAkB,CAAA,IAAK,EAAE,gBAAgBD,GAAa,SAAS,gBAAgB,EAAA;AAAA,QACnF,GAAIE,IAAiB,CAAA,IAAK,EAAE,eAAeF,GAAa,SAAS,eAAe,EAAA;AAAA,MAAE,GAU9EgB,IAAwB,MAC5BxB,EAAY,kBAAkB;AAAA,QAC5B,UAAU,CAAC,uBAAuB,WAAW;AAAA,QAC7C,aAAa;AAAA,MAAA,CACd;AAEH,UAAIX,KAAYA,EAAS,YAAY,QAAW;AAC9C,cAAM,EAAE,UAAUoC,EAAA,IAAiB,MAAMpB,EAAe;AAAA,UACtD,SAAS;AAAA,YACP,YAAYhB,EAAS;AAAA,YACrB,aAAa,EAAE,GAAGkC,GAAa,SAASlC,EAAS,QAAA;AAAA,UAAQ;AAAA,QAC3D,CACD;AACD,cAAMmC,EAAA,GACN3B,EAAQqB,EAAgB,0BAA0BO,CAAY;AAAA,MAChE,OAAO;AACL,cAAM,EAAE,UAAUA,EAAA,IAAiB,MAAMvB,EAAe;AAAA,UACtD,SAAS;AAAA,YACP,WAAAT;AAAA,YACA,wBAAwB8B;AAAA,UAAA;AAAA,QAC1B,CACD;AACD,cAAMC,EAAA,GACN3B,EAAQqB,EAAgB,0BAA0BO,CAAY;AAAA,MAChE;AAAA,IACF,CAAC;AAAA,EACH;AAEA,SACE,gBAAAlC,EAAC,WAAA,EAAQ,WAAAG,GACP,UAAA,gBAAAH,EAACmC,KAAc,GAAGd,GAAS,SAAAD,GACzB,UAAA,gBAAApB,EAACoC,GAAA,EAAS,UAAUf,EAAQ,aAAaO,CAAQ,GAC/C,UAAA,gBAAA5B;AAAA,IAACqC;AAAA,IAAA;AAAA,MACC,OAAO,EAAE,cAAAX,GAAc,WAAWd,KAAmBG,EAAA;AAAA,MAErD,UAAA,gBAAAf,EAACsC,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAlC,KAGC,gBAAAmC,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAxC,EAACyC,GAAA,EAAK;AAAA,QACN,gBAAAzC,EAAC0C,GAAA,EAAK,iBAAAxB,GAAkC,gBAAAC,EAAA,CAAgC;AAAA,0BACvEwB,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,EACF,CACF,GACF,GACF;AAEJ;AAEO,SAASC,GAAa;AAAA,EAC3B,WAAA1C;AAAA,EACA,YAAA2C;AAAA,EACA,WAAA1C;AAAA,EACA,UAAAC;AAAA,EACA,GAAGP;AACL,GAA+C;AAC7C,2BACGiD,GAAA,EAAe,GAAGjD,GAChB,UAAAgD,sBACEjD,GAAA,EAAiB,WAAAM,GAAsB,YAAA2C,GAAwB,WAAA1C,GAC7D,UAAAC,GACH,IAEA,gBAAAJ,EAACC,KAAK,WAAAC,GAAsB,WAAAC,GACzB,UAAAC,GACH,GAEJ;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ import "./types/i18next.d.ts"
2
+ export { LocationForm } from './LocationForm';
@@ -9,14 +9,18 @@ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
10
  import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "dompurify";
13
+ import "../../../../contexts/LocaleProvider/useLocale.js";
12
14
  import "../../../../shared/constants.js";
15
+ import "classnames";
13
16
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
17
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
18
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [d, L] = o(
19
+ const [y, D] = o(
16
20
  "CompanyDocumentFormContext"
17
21
  );
18
22
  export {
19
- L as LocationsFormProvider,
20
- d as useLocationsForm
23
+ D as LocationsFormProvider,
24
+ y as useLocationsForm
21
25
  };
22
26
  //# sourceMappingURL=useLocationForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocationForm.js","sources":["../../../../../src/components/Company/Locations/LocationForm/useLocationForm.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\n\ntype LocationsFormContextType = {\n isPending: boolean\n handleCancel: () => void\n}\n\nconst [useLocationsForm, LocationsFormProvider] = createCompoundContext<LocationsFormContextType>(\n 'CompanyDocumentFormContext',\n)\n\nexport { useLocationsForm, LocationsFormProvider }\n"],"names":["useLocationsForm","LocationsFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAOA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useLocationForm.js","sources":["../../../../../src/components/Company/Locations/LocationForm/useLocationForm.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\n\ntype LocationsFormContextType = {\n isPending: boolean\n handleCancel: () => void\n}\n\nconst [useLocationsForm, LocationsFormProvider] = createCompoundContext<LocationsFormContextType>(\n 'CompanyDocumentFormContext',\n)\n\nexport { useLocationsForm, LocationsFormProvider }\n"],"names":["useLocationsForm","LocationsFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;;;AAOA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -1,16 +1,18 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
2
  import { useTranslation as s } from "react-i18next";
3
3
  import { useLocationsList as a } from "./useLocationsList.js";
4
+ import "../../../../shared/constants.js";
5
+ import "classnames";
4
6
  import { ActionsLayout as e } from "../../../Common/ActionsLayout/ActionsLayout.js";
5
7
  import { useComponentContext as m } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
6
- function f() {
7
- const { t: o } = s("Company.Locations"), { handleAddLocation: i, handleContinue: r } = a(), n = m();
8
+ function h() {
9
+ const { t: o } = s("Company.Locations"), { handleAddLocation: i, handleContinue: r } = a(), t = m();
8
10
  return /* @__PURE__ */ c(e, { children: [
9
- /* @__PURE__ */ t(n.Button, { variant: "secondary", onClick: i, children: o("addLocationCta") }),
10
- /* @__PURE__ */ t(n.Button, { onClick: r, children: o("continueCta") })
11
+ /* @__PURE__ */ n(t.Button, { variant: "secondary", onClick: i, children: o("addLocationCta") }),
12
+ /* @__PURE__ */ n(t.Button, { onClick: r, children: o("continueCta") })
11
13
  ] });
12
14
  }
13
15
  export {
14
- f as Actions
16
+ h as Actions
15
17
  };
16
18
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/Locations/LocationsList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsList } from './useLocationsList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.Locations')\n const { handleAddLocation, handleContinue } = useLocationsList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleAddLocation}>\n {t('addLocationCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","handleAddLocation","handleContinue","useLocationsList","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,mBAAAC,GAAmB,gBAAAC,EAAA,IAAmBC,EAAA,GACxCC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAC7C,UAAAF,EAAE,gBAAgB,EAAA,CACrB;AAAA,IACA,gBAAAQ,EAACH,EAAW,QAAX,EAAkB,SAASF,GAAiB,UAAAH,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
1
+ {"version":3,"file":"Actions.js","sources":["../../../../../src/components/Company/Locations/LocationsList/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsList } from './useLocationsList'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Actions() {\n const { t } = useTranslation('Company.Locations')\n const { handleAddLocation, handleContinue } = useLocationsList()\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n <Components.Button variant=\"secondary\" onClick={handleAddLocation}>\n {t('addLocationCta')}\n </Components.Button>\n <Components.Button onClick={handleContinue}>{t('continueCta')}</Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","t","useTranslation","handleAddLocation","handleContinue","useLocationsList","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAKO,SAASA,IAAU;AACxB,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,mBAAAC,GAAmB,gBAAAC,EAAA,IAAmBC,EAAA,GACxCC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASH,GAC7C,UAAAF,EAAE,gBAAgB,EAAA,CACrB;AAAA,IACA,gBAAAQ,EAACH,EAAW,QAAX,EAAkB,SAASF,GAAiB,UAAAH,EAAE,aAAa,EAAA,CAAE;AAAA,EAAA,GAChE;AAEJ;"}
@@ -1,84 +1,87 @@
1
- import { jsx as t, Fragment as r, jsxs as n } from "react/jsx-runtime";
1
+ import { jsxs as r, jsx as e, Fragment as o } from "react/jsx-runtime";
2
2
  import { useTranslation as P } from "react-i18next";
3
3
  import { useLocationsList as y } from "./useLocationsList.js";
4
- import b from "../../../../assets/icons/pencil.svg.js";
5
- import { EmptyData as x } from "../../../Common/EmptyData/EmptyData.js";
6
- import { useComponentContext as T } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
7
- import { getStreet as v, getCityStateZip as A } from "../../../../helpers/formattedStrings.js";
8
- import { VisuallyHidden as k } from "../../../Common/VisuallyHidden/VisuallyHidden.js";
9
- import { HamburgerMenu as D } from "../../../Common/HamburgerMenu/HamburgerMenu.js";
10
- import { useDataView as S } from "../../../Common/DataView/useDataView.js";
11
- import { DataView as V } from "../../../Common/DataView/DataView.js";
12
- const q = () => {
13
- const a = T(), {
14
- locationList: o,
4
+ import b from "./List.module.scss.js";
5
+ import x from "../../../../assets/icons/pencil.svg.js";
6
+ import "../../../../shared/constants.js";
7
+ import "classnames";
8
+ import { EmptyData as T } from "../../../Common/EmptyData/EmptyData.js";
9
+ import { useComponentContext as A } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
10
+ import { getStreet as k, getCityStateZip as D } from "../../../../helpers/formattedStrings.js";
11
+ import { VisuallyHidden as S } from "../../../Common/VisuallyHidden/VisuallyHidden.js";
12
+ import { HamburgerMenu as V } from "../../../Common/HamburgerMenu/HamburgerMenu.js";
13
+ import { useDataView as v } from "../../../Common/DataView/useDataView.js";
14
+ import { DataView as w } from "../../../Common/DataView/DataView.js";
15
+ const O = () => {
16
+ const a = A(), {
17
+ locationList: n,
15
18
  handleEditLocation: s,
16
19
  currentPage: d,
17
20
  totalPages: l,
18
21
  totalCount: m,
19
22
  handleFirstPage: c,
20
- handleItemsPerPageChange: g,
21
- handleLastPage: u,
22
- handleNextPage: p,
23
+ handleItemsPerPageChange: p,
24
+ handleLastPage: g,
25
+ handleNextPage: u,
23
26
  handlePreviousPage: h,
24
27
  handleAddLocation: f,
25
- itemsPerPage: L
26
- } = y(), { t: e } = P("Company.Locations"), { ...C } = S({
27
- data: o,
28
+ itemsPerPage: C
29
+ } = y(), { t } = P("Company.Locations"), { ...L } = v({
30
+ data: n,
28
31
  columns: [
29
32
  {
30
33
  key: "name",
31
- title: e("locationListCol1"),
32
- render: (i) => /* @__PURE__ */ t(r, { children: /* @__PURE__ */ n("address", { children: [
33
- /* @__PURE__ */ t(a.Text, { as: "div", children: v(i) }),
34
- /* @__PURE__ */ t(a.Text, { as: "div", size: "sm", children: A(i) })
35
- ] }) })
34
+ title: t("locationListCol1"),
35
+ render: (i) => /* @__PURE__ */ r("address", { className: b.addressCell, children: [
36
+ /* @__PURE__ */ e(a.Text, { as: "span", children: k(i) }),
37
+ /* @__PURE__ */ e(a.Text, { as: "span", children: D(i) })
38
+ ] })
36
39
  },
37
40
  {
38
41
  key: "status",
39
- title: /* @__PURE__ */ t(k, { children: e("locationListCol2") }),
40
- render: (i) => /* @__PURE__ */ n(r, { children: [
41
- i.mailingAddress && /* @__PURE__ */ t(a.Badge, { status: "info", children: e("mailingAddress") }),
42
- i.filingAddress && /* @__PURE__ */ n(r, { children: [
42
+ title: /* @__PURE__ */ e(S, { children: t("locationListCol2") }),
43
+ render: (i) => /* @__PURE__ */ r(o, { children: [
44
+ i.mailingAddress && /* @__PURE__ */ e(a.Badge, { status: "info", children: t("mailingAddress") }),
45
+ i.filingAddress && /* @__PURE__ */ r(o, { children: [
43
46
  " ",
44
- /* @__PURE__ */ t(a.Badge, { status: "info", children: e("filingAddress") })
47
+ /* @__PURE__ */ e(a.Badge, { status: "info", children: t("filingAddress") })
45
48
  ] })
46
49
  ] })
47
50
  }
48
51
  ],
49
- itemMenu: (i) => /* @__PURE__ */ t(
50
- D,
52
+ itemMenu: (i) => /* @__PURE__ */ e(
53
+ V,
51
54
  {
52
55
  items: [
53
56
  {
54
- label: e("editCta"),
57
+ label: t("editCta"),
55
58
  onClick: () => {
56
59
  s(i.uuid);
57
60
  },
58
- icon: /* @__PURE__ */ t(b, { "aria-hidden": !0 }),
61
+ icon: /* @__PURE__ */ e(x, { "aria-hidden": !0 }),
59
62
  "data-testid": "edit-location"
60
63
  }
61
64
  ],
62
65
  "data-testid": "location-hamburger",
63
- triggerLabel: e("hamburgerTitle")
66
+ triggerLabel: t("hamburgerTitle")
64
67
  }
65
68
  ),
66
69
  pagination: {
67
- handleNextPage: p,
70
+ handleNextPage: u,
68
71
  handleFirstPage: c,
69
- handleLastPage: u,
72
+ handleLastPage: g,
70
73
  handlePreviousPage: h,
71
- handleItemsPerPageChange: g,
74
+ handleItemsPerPageChange: p,
72
75
  currentPage: d,
73
76
  totalPages: l,
74
77
  totalCount: m,
75
- itemsPerPage: L
78
+ itemsPerPage: C
76
79
  },
77
- emptyState: () => /* @__PURE__ */ t(x, { title: e("emptyTableTitle"), description: e("emptyTableDescription"), children: /* @__PURE__ */ t(a.Button, { variant: "secondary", onClick: f, children: e("addFirstLocationCta") }) })
80
+ emptyState: () => /* @__PURE__ */ e(T, { title: t("emptyTableTitle"), description: t("emptyTableDescription"), children: /* @__PURE__ */ e(a.Button, { variant: "secondary", onClick: f, children: t("addFirstLocationCta") }) })
78
81
  });
79
- return /* @__PURE__ */ t(V, { label: e("locationListLabel"), ...C });
82
+ return /* @__PURE__ */ e(w, { label: t("locationListLabel"), ...L });
80
83
  };
81
84
  export {
82
- q as List
85
+ O as List
83
86
  };
84
87
  //# sourceMappingURL=List.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"List.js","sources":["../../../../../src/components/Company/Locations/LocationsList/List.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsList } from './useLocationsList'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport { DataView, EmptyData, useDataView, VisuallyHidden } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { getCityStateZip, getStreet } from '@/helpers/formattedStrings'\n\n/**List of employees slot for EmployeeList component */\nexport const List = () => {\n const Components = useComponentContext()\n const {\n locationList,\n handleEditLocation,\n currentPage,\n totalPages,\n totalCount,\n handleFirstPage,\n handleItemsPerPageChange,\n handleLastPage,\n handleNextPage,\n handlePreviousPage,\n handleAddLocation,\n itemsPerPage,\n } = useLocationsList()\n\n const { t } = useTranslation('Company.Locations')\n const { ...dataViewProps } = useDataView({\n data: locationList,\n columns: [\n {\n key: 'name',\n title: t('locationListCol1'),\n render: location => {\n return (\n <>\n <address>\n <Components.Text as=\"div\">{getStreet(location)}</Components.Text>\n <Components.Text as=\"div\" size=\"sm\">\n {getCityStateZip(location)}\n </Components.Text>\n </address>\n </>\n )\n },\n },\n {\n key: 'status',\n title: <VisuallyHidden>{t('locationListCol2')}</VisuallyHidden>,\n render: location => {\n return (\n <>\n {location.mailingAddress && (\n <Components.Badge status={'info'}>{t('mailingAddress')}</Components.Badge>\n )}\n {location.filingAddress && (\n <>\n {' '}\n <Components.Badge status={'info'}>{t('filingAddress')}</Components.Badge>\n </>\n )}\n </>\n )\n },\n },\n ],\n itemMenu: location => {\n return (\n <HamburgerMenu\n items={[\n {\n label: t('editCta'),\n onClick: () => {\n handleEditLocation(location.uuid)\n },\n icon: <PencilSvg aria-hidden />,\n 'data-testid': 'edit-location',\n },\n ]}\n data-testid=\"location-hamburger\"\n triggerLabel={t('hamburgerTitle')}\n />\n )\n },\n pagination: {\n handleNextPage,\n handleFirstPage,\n handleLastPage,\n handlePreviousPage,\n handleItemsPerPageChange,\n currentPage,\n totalPages,\n totalCount,\n itemsPerPage,\n },\n emptyState: () => (\n <EmptyData title={t('emptyTableTitle')} description={t('emptyTableDescription')}>\n <Components.Button variant=\"secondary\" onClick={handleAddLocation}>\n {t('addFirstLocationCta')}\n </Components.Button>\n </EmptyData>\n ),\n })\n return <DataView label={t('locationListLabel')} {...dataViewProps} />\n}\n"],"names":["List","Components","useComponentContext","locationList","handleEditLocation","currentPage","totalPages","totalCount","handleFirstPage","handleItemsPerPageChange","handleLastPage","handleNextPage","handlePreviousPage","handleAddLocation","itemsPerPage","useLocationsList","t","useTranslation","dataViewProps","useDataView","location","jsx","Fragment","getStreet","getCityStateZip","VisuallyHidden","jsxs","HamburgerMenu","PencilSvg","EmptyData","DataView"],"mappings":";;;;;;;;;;;AASO,MAAMA,IAAO,MAAM;AACxB,QAAMC,IAAaC,EAAA,GACb;AAAA,IACJ,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,cAAAC;AAAA,EAAA,IACEC,EAAA,GAEE,EAAE,GAAAC,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,GAAGC,EAAA,IAAkBC,EAAY;AAAA,IACvC,MAAMhB;AAAA,IACN,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,OAAOa,EAAE,kBAAkB;AAAA,QAC3B,QAAQ,CAAAI,MAEJ,gBAAAC,EAAAC,GAAA,EACE,4BAAC,WAAA,EACC,UAAA;AAAA,UAAA,gBAAAD,EAACpB,EAAW,MAAX,EAAgB,IAAG,OAAO,UAAAsB,EAAUH,CAAQ,GAAE;AAAA,UAC/C,gBAAAC,EAACpB,EAAW,MAAX,EAAgB,IAAG,OAAM,MAAK,MAC5B,UAAAuB,EAAgBJ,CAAQ,EAAA,CAC3B;AAAA,QAAA,EAAA,CACF,EAAA,CACF;AAAA,MAEJ;AAAA,MAEF;AAAA,QACE,KAAK;AAAA,QACL,OAAO,gBAAAC,EAACI,GAAA,EAAgB,UAAAT,EAAE,kBAAkB,GAAE;AAAA,QAC9C,QAAQ,CAAAI,MAEJ,gBAAAM,EAAAJ,GAAA,EACG,UAAA;AAAA,UAAAF,EAAS,oCACPnB,EAAW,OAAX,EAAiB,QAAQ,QAAS,UAAAe,EAAE,gBAAgB,EAAA,CAAE;AAAA,UAExDI,EAAS,iBACR,gBAAAM,EAAAJ,GAAA,EACG,UAAA;AAAA,YAAA;AAAA,YACD,gBAAAD,EAACpB,EAAW,OAAX,EAAiB,QAAQ,QAAS,UAAAe,EAAE,eAAe,EAAA,CAAE;AAAA,UAAA,EAAA,CACxD;AAAA,QAAA,GAEJ;AAAA,MAEJ;AAAA,IACF;AAAA,IAEF,UAAU,CAAAI,MAEN,gBAAAC;AAAA,MAACM;AAAA,MAAA;AAAA,QACC,OAAO;AAAA,UACL;AAAA,YACE,OAAOX,EAAE,SAAS;AAAA,YAClB,SAAS,MAAM;AACb,cAAAZ,EAAmBgB,EAAS,IAAI;AAAA,YAClC;AAAA,YACA,MAAM,gBAAAC,EAACO,GAAA,EAAU,eAAW,GAAA,CAAC;AAAA,YAC7B,eAAe;AAAA,UAAA;AAAA,QACjB;AAAA,QAEF,eAAY;AAAA,QACZ,cAAcZ,EAAE,gBAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,IAItC,YAAY;AAAA,MACV,gBAAAL;AAAA,MACA,iBAAAH;AAAA,MACA,gBAAAE;AAAA,MACA,oBAAAE;AAAA,MACA,0BAAAH;AAAA,MACA,aAAAJ;AAAA,MACA,YAAAC;AAAA,MACA,YAAAC;AAAA,MACA,cAAAO;AAAA,IAAA;AAAA,IAEF,YAAY,MACV,gBAAAO,EAACQ,GAAA,EAAU,OAAOb,EAAE,iBAAiB,GAAG,aAAaA,EAAE,uBAAuB,GAC5E,UAAA,gBAAAK,EAACpB,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASY,GAC7C,UAAAG,EAAE,qBAAqB,EAAA,CAC1B,EAAA,CACF;AAAA,EAAA,CAEH;AACD,2BAAQc,GAAA,EAAS,OAAOd,EAAE,mBAAmB,GAAI,GAAGE,GAAe;AACrE;"}
1
+ {"version":3,"file":"List.js","sources":["../../../../../src/components/Company/Locations/LocationsList/List.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useLocationsList } from './useLocationsList'\nimport styles from './List.module.scss'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport { DataView, EmptyData, useDataView, VisuallyHidden } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\nimport { getCityStateZip, getStreet } from '@/helpers/formattedStrings'\n\n/**List of employees slot for EmployeeList component */\nexport const List = () => {\n const Components = useComponentContext()\n const {\n locationList,\n handleEditLocation,\n currentPage,\n totalPages,\n totalCount,\n handleFirstPage,\n handleItemsPerPageChange,\n handleLastPage,\n handleNextPage,\n handlePreviousPage,\n handleAddLocation,\n itemsPerPage,\n } = useLocationsList()\n\n const { t } = useTranslation('Company.Locations')\n const { ...dataViewProps } = useDataView({\n data: locationList,\n columns: [\n {\n key: 'name',\n title: t('locationListCol1'),\n render: location => {\n return (\n <address className={styles.addressCell}>\n <Components.Text as=\"span\">{getStreet(location)}</Components.Text>\n <Components.Text as=\"span\">{getCityStateZip(location)}</Components.Text>\n </address>\n )\n },\n },\n {\n key: 'status',\n title: <VisuallyHidden>{t('locationListCol2')}</VisuallyHidden>,\n render: location => {\n return (\n <>\n {location.mailingAddress && (\n <Components.Badge status={'info'}>{t('mailingAddress')}</Components.Badge>\n )}\n {location.filingAddress && (\n <>\n {' '}\n <Components.Badge status={'info'}>{t('filingAddress')}</Components.Badge>\n </>\n )}\n </>\n )\n },\n },\n ],\n itemMenu: location => {\n return (\n <HamburgerMenu\n items={[\n {\n label: t('editCta'),\n onClick: () => {\n handleEditLocation(location.uuid)\n },\n icon: <PencilSvg aria-hidden />,\n 'data-testid': 'edit-location',\n },\n ]}\n data-testid=\"location-hamburger\"\n triggerLabel={t('hamburgerTitle')}\n />\n )\n },\n pagination: {\n handleNextPage,\n handleFirstPage,\n handleLastPage,\n handlePreviousPage,\n handleItemsPerPageChange,\n currentPage,\n totalPages,\n totalCount,\n itemsPerPage,\n },\n emptyState: () => (\n <EmptyData title={t('emptyTableTitle')} description={t('emptyTableDescription')}>\n <Components.Button variant=\"secondary\" onClick={handleAddLocation}>\n {t('addFirstLocationCta')}\n </Components.Button>\n </EmptyData>\n ),\n })\n return <DataView label={t('locationListLabel')} {...dataViewProps} />\n}\n"],"names":["List","Components","useComponentContext","locationList","handleEditLocation","currentPage","totalPages","totalCount","handleFirstPage","handleItemsPerPageChange","handleLastPage","handleNextPage","handlePreviousPage","handleAddLocation","itemsPerPage","useLocationsList","useTranslation","dataViewProps","useDataView","location","jsxs","styles","jsx","getStreet","getCityStateZip","VisuallyHidden","Fragment","HamburgerMenu","PencilSvg","EmptyData","DataView"],"mappings":";;;;;;;;;;;;;;AAUO,MAAMA,IAAO,MAAM;AACxB,QAAMC,IAAaC,EAAA,GACb;AAAA,IACJ,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,YAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,cAAAC;AAAA,EAAA,IACEC,EAAA,GAEE,EAAE,EAAA,IAAMC,EAAe,mBAAmB,GAC1C,EAAE,GAAGC,EAAA,IAAkBC,EAAY;AAAA,IACvC,MAAMf;AAAA,IACN,SAAS;AAAA,MACP;AAAA,QACE,KAAK;AAAA,QACL,OAAO,EAAE,kBAAkB;AAAA,QAC3B,QAAQ,CAAAgB,MAEJ,gBAAAC,EAAC,WAAA,EAAQ,WAAWC,EAAO,aACzB,UAAA;AAAA,UAAA,gBAAAC,EAACrB,EAAW,MAAX,EAAgB,IAAG,QAAQ,UAAAsB,EAAUJ,CAAQ,GAAE;AAAA,UAChD,gBAAAG,EAACrB,EAAW,MAAX,EAAgB,IAAG,QAAQ,UAAAuB,EAAgBL,CAAQ,EAAA,CAAE;AAAA,QAAA,GACxD;AAAA,MAEJ;AAAA,MAEF;AAAA,QACE,KAAK;AAAA,QACL,OAAO,gBAAAG,EAACG,GAAA,EAAgB,UAAA,EAAE,kBAAkB,GAAE;AAAA,QAC9C,QAAQ,CAAAN,MAEJ,gBAAAC,EAAAM,GAAA,EACG,UAAA;AAAA,UAAAP,EAAS,oCACPlB,EAAW,OAAX,EAAiB,QAAQ,QAAS,UAAA,EAAE,gBAAgB,EAAA,CAAE;AAAA,UAExDkB,EAAS,iBACR,gBAAAC,EAAAM,GAAA,EACG,UAAA;AAAA,YAAA;AAAA,YACD,gBAAAJ,EAACrB,EAAW,OAAX,EAAiB,QAAQ,QAAS,UAAA,EAAE,eAAe,EAAA,CAAE;AAAA,UAAA,EAAA,CACxD;AAAA,QAAA,GAEJ;AAAA,MAEJ;AAAA,IACF;AAAA,IAEF,UAAU,CAAAkB,MAEN,gBAAAG;AAAA,MAACK;AAAA,MAAA;AAAA,QACC,OAAO;AAAA,UACL;AAAA,YACE,OAAO,EAAE,SAAS;AAAA,YAClB,SAAS,MAAM;AACb,cAAAvB,EAAmBe,EAAS,IAAI;AAAA,YAClC;AAAA,YACA,MAAM,gBAAAG,EAACM,GAAA,EAAU,eAAW,GAAA,CAAC;AAAA,YAC7B,eAAe;AAAA,UAAA;AAAA,QACjB;AAAA,QAEF,eAAY;AAAA,QACZ,cAAc,EAAE,gBAAgB;AAAA,MAAA;AAAA,IAAA;AAAA,IAItC,YAAY;AAAA,MACV,gBAAAjB;AAAA,MACA,iBAAAH;AAAA,MACA,gBAAAE;AAAA,MACA,oBAAAE;AAAA,MACA,0BAAAH;AAAA,MACA,aAAAJ;AAAA,MACA,YAAAC;AAAA,MACA,YAAAC;AAAA,MACA,cAAAO;AAAA,IAAA;AAAA,IAEF,YAAY,MACV,gBAAAQ,EAACO,GAAA,EAAU,OAAO,EAAE,iBAAiB,GAAG,aAAa,EAAE,uBAAuB,GAC5E,UAAA,gBAAAP,EAACrB,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASY,GAC7C,UAAA,EAAE,qBAAqB,EAAA,CAC1B,EAAA,CACF;AAAA,EAAA,CAEH;AACD,2BAAQiB,GAAA,EAAS,OAAO,EAAE,mBAAmB,GAAI,GAAGb,GAAe;AACrE;"}
@@ -0,0 +1,8 @@
1
+ const s = "_addressCell_3w9ev_1", e = {
2
+ addressCell: s
3
+ };
4
+ export {
5
+ s as addressCell,
6
+ e as default
7
+ };
8
+ //# sourceMappingURL=List.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"List.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -8,9 +8,10 @@ import { useI18n as E } from "../../../../i18n/I18n.js";
8
8
  import { BaseComponent as N } from "../../../Base/Base.js";
9
9
  import { useBase as P } from "../../../Base/useBase.js";
10
10
  import { Flex as _ } from "../../../Common/Flex/Flex.js";
11
+ import "classnames";
11
12
  import { companyEvents as i } from "../../../../shared/constants.js";
12
13
  import { usePagination as g } from "../../../../hooks/usePagination/usePagination.js";
13
- function H(t) {
14
+ function S(t) {
14
15
  return /* @__PURE__ */ o(N, { ...t, children: /* @__PURE__ */ o(x, { ...t, children: t.children }) });
15
16
  }
16
17
  function x({ companyId: t, className: e, children: r }) {
@@ -43,6 +44,6 @@ function x({ companyId: t, className: e, children: r }) {
43
44
  ) });
44
45
  }
45
46
  export {
46
- H as LocationsList
47
+ S as LocationsList
47
48
  };
48
49
  //# sourceMappingURL=LocationsList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/LocationsList.tsx"],"sourcesContent":["import { useLocationsGetSuspense } from '@gusto/embedded-api/react-query/locationsGet'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { Actions } from './Actions'\nimport { LocationsListProvider } from './useLocationsList'\nimport { useI18n } from '@/i18n'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\nimport { usePagination } from '@/hooks/usePagination/usePagination'\n\ninterface LocationsListProps extends BaseComponentInterface {\n companyId: string\n}\n\nexport function LocationsList(props: LocationsListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, className, children }: LocationsListProps) {\n useI18n('Company.Locations')\n const { onEvent } = useBase()\n\n const { getPaginationProps } = usePagination()\n\n const {\n data: { companyLocationsList, httpMeta },\n } = useLocationsGetSuspense({ companyId })\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_LOCATION_DONE)\n }\n const handleAddLocation = () => {\n onEvent(companyEvents.COMPANY_LOCATION_CREATE)\n }\n const handleEditLocation = (uuid: string) => {\n onEvent(companyEvents.COMPANY_LOCATION_EDIT, { uuid })\n }\n\n return (\n <section className={className}>\n <LocationsListProvider\n value={{\n ...getPaginationProps(httpMeta.response.headers),\n locationList: companyLocationsList ?? [],\n handleAddLocation,\n handleEditLocation,\n handleContinue,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </LocationsListProvider>\n </section>\n )\n}\n"],"names":["LocationsList","props","jsx","BaseComponent","Root","companyId","className","children","useI18n","onEvent","useBase","getPaginationProps","usePagination","companyLocationsList","httpMeta","useLocationsGetSuspense","handleContinue","companyEvents","handleAddLocation","handleEditLocation","uuid","LocationsListProvider","Flex","jsxs","Fragment","Head","List","Actions"],"mappings":";;;;;;;;;;;;AAgBO,SAASA,EAAcC,GAA2B;AACvD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,WAAAC,GAAW,UAAAC,KAAgC;AACpE,EAAAC,EAAQ,mBAAmB;AAC3B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,EAAE,oBAAAC,EAAA,IAAuBC,EAAA,GAEzB;AAAA,IACJ,MAAM,EAAE,sBAAAC,GAAsB,UAAAC,EAAA;AAAA,EAAS,IACrCC,EAAwB,EAAE,WAAAV,GAAW,GAEnCW,IAAiB,MAAM;AAC3B,IAAAP,EAAQQ,EAAc,qBAAqB;AAAA,EAC7C,GACMC,IAAoB,MAAM;AAC9B,IAAAT,EAAQQ,EAAc,uBAAuB;AAAA,EAC/C,GACME,IAAqB,CAACC,MAAiB;AAC3C,IAAAX,EAAQQ,EAAc,uBAAuB,EAAE,MAAAG,EAAA,CAAM;AAAA,EACvD;AAEA,SACE,gBAAAlB,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACmB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,GAAGV,EAAmBG,EAAS,SAAS,OAAO;AAAA,QAC/C,cAAcD,KAAwB,CAAA;AAAA,QACtC,mBAAAK;AAAA,QACA,oBAAAC;AAAA,QACA,gBAAAH;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAd,EAACoB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAf,KAGC,gBAAAgB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAtB,EAACuB,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
1
+ {"version":3,"file":"LocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/LocationsList.tsx"],"sourcesContent":["import { useLocationsGetSuspense } from '@gusto/embedded-api/react-query/locationsGet'\nimport { Head } from './Head'\nimport { List } from './List'\nimport { Actions } from './Actions'\nimport { LocationsListProvider } from './useLocationsList'\nimport { useI18n } from '@/i18n'\nimport { BaseComponent, type BaseComponentInterface } from '@/components/Base/Base'\nimport { useBase } from '@/components/Base/useBase'\nimport { Flex } from '@/components/Common'\nimport { companyEvents } from '@/shared/constants'\nimport { usePagination } from '@/hooks/usePagination/usePagination'\n\ninterface LocationsListProps extends BaseComponentInterface {\n companyId: string\n}\n\nexport function LocationsList(props: LocationsListProps) {\n return (\n <BaseComponent {...props}>\n <Root {...props}>{props.children}</Root>\n </BaseComponent>\n )\n}\n\nfunction Root({ companyId, className, children }: LocationsListProps) {\n useI18n('Company.Locations')\n const { onEvent } = useBase()\n\n const { getPaginationProps } = usePagination()\n\n const {\n data: { companyLocationsList, httpMeta },\n } = useLocationsGetSuspense({ companyId })\n\n const handleContinue = () => {\n onEvent(companyEvents.COMPANY_LOCATION_DONE)\n }\n const handleAddLocation = () => {\n onEvent(companyEvents.COMPANY_LOCATION_CREATE)\n }\n const handleEditLocation = (uuid: string) => {\n onEvent(companyEvents.COMPANY_LOCATION_EDIT, { uuid })\n }\n\n return (\n <section className={className}>\n <LocationsListProvider\n value={{\n ...getPaginationProps(httpMeta.response.headers),\n locationList: companyLocationsList ?? [],\n handleAddLocation,\n handleEditLocation,\n handleContinue,\n }}\n >\n <Flex flexDirection=\"column\" gap={32}>\n {children ? (\n children\n ) : (\n <>\n <Head />\n <List />\n <Actions />\n </>\n )}\n </Flex>\n </LocationsListProvider>\n </section>\n )\n}\n"],"names":["LocationsList","props","jsx","BaseComponent","Root","companyId","className","children","useI18n","onEvent","useBase","getPaginationProps","usePagination","companyLocationsList","httpMeta","useLocationsGetSuspense","handleContinue","companyEvents","handleAddLocation","handleEditLocation","uuid","LocationsListProvider","Flex","jsxs","Fragment","Head","List","Actions"],"mappings":";;;;;;;;;;;;;AAgBO,SAASA,EAAcC,GAA2B;AACvD,SACE,gBAAAC,EAACC,GAAA,EAAe,GAAGF,GACjB,UAAA,gBAAAC,EAACE,KAAM,GAAGH,GAAQ,UAAAA,EAAM,SAAA,CAAS,EAAA,CACnC;AAEJ;AAEA,SAASG,EAAK,EAAE,WAAAC,GAAW,WAAAC,GAAW,UAAAC,KAAgC;AACpE,EAAAC,EAAQ,mBAAmB;AAC3B,QAAM,EAAE,SAAAC,EAAA,IAAYC,EAAA,GAEd,EAAE,oBAAAC,EAAA,IAAuBC,EAAA,GAEzB;AAAA,IACJ,MAAM,EAAE,sBAAAC,GAAsB,UAAAC,EAAA;AAAA,EAAS,IACrCC,EAAwB,EAAE,WAAAV,GAAW,GAEnCW,IAAiB,MAAM;AAC3B,IAAAP,EAAQQ,EAAc,qBAAqB;AAAA,EAC7C,GACMC,IAAoB,MAAM;AAC9B,IAAAT,EAAQQ,EAAc,uBAAuB;AAAA,EAC/C,GACME,IAAqB,CAACC,MAAiB;AAC3C,IAAAX,EAAQQ,EAAc,uBAAuB,EAAE,MAAAG,EAAA,CAAM;AAAA,EACvD;AAEA,SACE,gBAAAlB,EAAC,aAAQ,WAAAI,GACP,UAAA,gBAAAJ;AAAA,IAACmB;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,GAAGV,EAAmBG,EAAS,SAAS,OAAO;AAAA,QAC/C,cAAcD,KAAwB,CAAA;AAAA,QACtC,mBAAAK;AAAA,QACA,oBAAAC;AAAA,QACA,gBAAAH;AAAA,MAAA;AAAA,MAGF,UAAA,gBAAAd,EAACoB,KAAK,eAAc,UAAS,KAAK,IAC/B,UAAAf,KAGC,gBAAAgB,EAAAC,GAAA,EACE,UAAA;AAAA,QAAA,gBAAAtB,EAACuB,GAAA,EAAK;AAAA,0BACLC,GAAA,EAAK;AAAA,0BACLC,GAAA,CAAA,CAAQ;AAAA,MAAA,EAAA,CACX,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
@@ -9,14 +9,18 @@ import "@gusto/embedded-api/models/errors/gustoembeddederror";
9
9
  import "@gusto/embedded-api/models/errors/sdkvalidationerror";
10
10
  import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
11
11
  import "@gusto/embedded-api/models/errors/httpclienterrors";
12
+ import "dompurify";
13
+ import "../../../../contexts/LocaleProvider/useLocale.js";
12
14
  import "../../../../shared/constants.js";
15
+ import "classnames";
13
16
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
17
+ import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
18
  import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
15
- const [d, f] = o(
19
+ const [D, P] = o(
16
20
  "CompanyDocumentListContext"
17
21
  );
18
22
  export {
19
- f as LocationsListProvider,
20
- d as useLocationsList
23
+ P as LocationsListProvider,
24
+ D as useLocationsList
21
25
  };
22
26
  //# sourceMappingURL=useLocationsList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/useLocationsList.ts"],"sourcesContent":["import { type Location } from '@gusto/embedded-api/models/components/location'\nimport { createCompoundContext } from '@/components/Base'\nimport type { PaginationItemsPerPage } from '@/components/Common/PaginationControl/PaginationControlTypes'\n\ntype LocationsListContextType = {\n locationList: Location[]\n totalPages: number\n totalCount: number\n currentPage: number\n itemsPerPage: PaginationItemsPerPage\n handleItemsPerPageChange: (n: PaginationItemsPerPage) => void\n handleFirstPage: () => void\n handlePreviousPage: () => void\n handleNextPage: () => void\n handleLastPage: () => void\n handleEditLocation: (uuid: string) => void\n handleAddLocation: () => void\n handleContinue: () => void\n}\n\nconst [useLocationsList, LocationsListProvider] = createCompoundContext<LocationsListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useLocationsList, LocationsListProvider }\n"],"names":["useLocationsList","LocationsListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAoBA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
1
+ {"version":3,"file":"useLocationsList.js","sources":["../../../../../src/components/Company/Locations/LocationsList/useLocationsList.ts"],"sourcesContent":["import { type Location } from '@gusto/embedded-api/models/components/location'\nimport { createCompoundContext } from '@/components/Base'\nimport type { PaginationItemsPerPage } from '@/components/Common/PaginationControl/PaginationControlTypes'\n\ntype LocationsListContextType = {\n locationList: Location[]\n totalPages: number\n totalCount: number\n currentPage: number\n itemsPerPage: PaginationItemsPerPage\n handleItemsPerPageChange: (n: PaginationItemsPerPage) => void\n handleFirstPage: () => void\n handlePreviousPage: () => void\n handleNextPage: () => void\n handleLastPage: () => void\n handleEditLocation: (uuid: string) => void\n handleAddLocation: () => void\n handleContinue: () => void\n}\n\nconst [useLocationsList, LocationsListProvider] = createCompoundContext<LocationsListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useLocationsList, LocationsListProvider }\n"],"names":["useLocationsList","LocationsListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,MAAM,CAACA,GAAkBC,CAAqB,IAAIC;AAAA,EAChD;AACF;"}
@@ -1,17 +1,19 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as l } from "react-i18next";
3
- import { useOnboardingOverview as m } from "./context.js";
4
- import { Flex as a } from "../../Common/Flex/Flex.js";
5
- import { useComponentContext as d } from "../../../contexts/ComponentAdapter/useComponentContext.js";
6
- const u = () => {
7
- const e = d(), { onboardingCompleted: t, handleDone: r } = m(), { t: n } = l("Company.OnboardingOverview");
8
- return t ? /* @__PURE__ */ i(a, { alignItems: "center", flexDirection: "column", gap: 8, children: [
9
- /* @__PURE__ */ o(e.Heading, { as: "h2", textAlign: "center", children: n("onboardingCompletedTitle") }),
10
- /* @__PURE__ */ o("p", { children: n("onboardingCompletedDescription") }),
11
- /* @__PURE__ */ o(e.Button, { variant: "secondary", onClick: r, children: n("onboardingCompletedCta") })
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
+ import { useTranslation as m } from "react-i18next";
3
+ import { useOnboardingOverview as l } from "./context.js";
4
+ import { Flex as p } from "../../Common/Flex/Flex.js";
5
+ import "classnames";
6
+ import "../../../shared/constants.js";
7
+ import { useComponentContext as a } from "../../../contexts/ComponentAdapter/useComponentContext.js";
8
+ const x = () => {
9
+ const e = a(), { onboardingCompleted: t, handleDone: r } = l(), { t: o } = m("Company.OnboardingOverview");
10
+ return t ? /* @__PURE__ */ i(p, { alignItems: "center", flexDirection: "column", gap: 8, children: [
11
+ /* @__PURE__ */ n(e.Heading, { as: "h2", textAlign: "center", children: o("onboardingCompletedTitle") }),
12
+ /* @__PURE__ */ n("p", { children: o("onboardingCompletedDescription") }),
13
+ /* @__PURE__ */ n(e.Button, { variant: "secondary", onClick: r, children: o("onboardingCompletedCta") })
12
14
  ] }) : null;
13
15
  };
14
16
  export {
15
- u as Completed
17
+ x as Completed
16
18
  };
17
19
  //# sourceMappingURL=Completed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Completed.js","sources":["../../../../src/components/Company/OnboardingOverview/Completed.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useOnboardingOverview } from './context'\nimport { Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Completed = () => {\n const Components = useComponentContext()\n const { onboardingCompleted, handleDone } = useOnboardingOverview()\n const { t } = useTranslation('Company.OnboardingOverview')\n if (!onboardingCompleted) {\n return null\n }\n return (\n <Flex alignItems=\"center\" flexDirection=\"column\" gap={8}>\n <Components.Heading as=\"h2\" textAlign=\"center\">\n {t('onboardingCompletedTitle')}\n </Components.Heading>\n <p>{t('onboardingCompletedDescription')}</p>\n <Components.Button variant=\"secondary\" onClick={handleDone}>\n {t('onboardingCompletedCta')}\n </Components.Button>\n </Flex>\n )\n}\n"],"names":["Completed","Components","useComponentContext","onboardingCompleted","handleDone","useOnboardingOverview","t","useTranslation","Flex","jsx"],"mappings":";;;;;AAKO,MAAMA,IAAY,MAAM;AAC7B,QAAMC,IAAaC,EAAA,GACb,EAAE,qBAAAC,GAAqB,YAAAC,EAAA,IAAeC,EAAA,GACtC,EAAE,GAAAC,EAAA,IAAMC,EAAe,4BAA4B;AACzD,SAAKJ,sBAIFK,GAAA,EAAK,YAAW,UAAS,eAAc,UAAS,KAAK,GACpD,UAAA;AAAA,IAAA,gBAAAC,EAACR,EAAW,SAAX,EAAmB,IAAG,MAAK,WAAU,UACnC,UAAAK,EAAE,0BAA0B,EAAA,CAC/B;AAAA,IACA,gBAAAG,EAAC,KAAA,EAAG,UAAAH,EAAE,gCAAgC,EAAA,CAAE;AAAA,IACxC,gBAAAG,EAACR,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASG,GAC7C,UAAAE,EAAE,wBAAwB,EAAA,CAC7B;AAAA,EAAA,GACF,IAXO;AAaX;"}
1
+ {"version":3,"file":"Completed.js","sources":["../../../../src/components/Company/OnboardingOverview/Completed.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useOnboardingOverview } from './context'\nimport { Flex } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Completed = () => {\n const Components = useComponentContext()\n const { onboardingCompleted, handleDone } = useOnboardingOverview()\n const { t } = useTranslation('Company.OnboardingOverview')\n if (!onboardingCompleted) {\n return null\n }\n return (\n <Flex alignItems=\"center\" flexDirection=\"column\" gap={8}>\n <Components.Heading as=\"h2\" textAlign=\"center\">\n {t('onboardingCompletedTitle')}\n </Components.Heading>\n <p>{t('onboardingCompletedDescription')}</p>\n <Components.Button variant=\"secondary\" onClick={handleDone}>\n {t('onboardingCompletedCta')}\n </Components.Button>\n </Flex>\n )\n}\n"],"names":["Completed","Components","useComponentContext","onboardingCompleted","handleDone","useOnboardingOverview","t","useTranslation","Flex","jsx"],"mappings":";;;;;;;AAKO,MAAMA,IAAY,MAAM;AAC7B,QAAMC,IAAaC,EAAA,GACb,EAAE,qBAAAC,GAAqB,YAAAC,EAAA,IAAeC,EAAA,GACtC,EAAE,GAAAC,EAAA,IAAMC,EAAe,4BAA4B;AACzD,SAAKJ,sBAIFK,GAAA,EAAK,YAAW,UAAS,eAAc,UAAS,KAAK,GACpD,UAAA;AAAA,IAAA,gBAAAC,EAACR,EAAW,SAAX,EAAmB,IAAG,MAAK,WAAU,UACnC,UAAAK,EAAE,0BAA0B,EAAA,CAC/B;AAAA,IACA,gBAAAG,EAAC,KAAA,EAAG,UAAAH,EAAE,gCAAgC,EAAA,CAAE;AAAA,IACxC,gBAAAG,EAACR,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASG,GAC7C,UAAAE,EAAE,wBAAwB,EAAA,CAC7B;AAAA,EAAA,GACF,IAXO;AAaX;"}