@gusto/embedded-react-sdk 0.26.0 → 0.27.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 (360) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/assets/icons/plus-circle.svg.js +5 -5
  3. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  4. package/dist/components/Base/Base.js +13 -12
  5. package/dist/components/Base/Base.js.map +1 -1
  6. package/dist/components/Common/DocumentList/DocumentList.js +23 -23
  7. package/dist/components/Common/DocumentList/DocumentList.js.map +1 -1
  8. package/dist/components/Common/DocumentList/DocumentList.module.scss.js +6 -10
  9. package/dist/components/Common/DocumentList/DocumentList.module.scss.js.map +1 -1
  10. package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +12 -12
  11. package/dist/components/Common/InlineSpinner/InlineSpinner.module.scss.js +1 -1
  12. package/dist/components/Common/InternalError/InternalError.module.scss.js +4 -4
  13. package/dist/components/Common/ReorderableList/ReorderableList.module.scss.js +8 -8
  14. package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +1 -1
  15. package/dist/components/Common/SignatureForm/SignatureForm.js +12 -10
  16. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  17. package/dist/components/Common/SignatureForm/SignatureFormActions.js +3 -2
  18. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  19. package/dist/components/Common/SignatureForm/SignatureFormFields.js +7 -6
  20. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  21. package/dist/components/Common/UI/Alert/Alert.module.scss.js +9 -9
  22. package/dist/components/Common/UI/Banner/Banner.module.scss.js +1 -1
  23. package/dist/components/Common/UI/Button/Button.module.scss.js +1 -1
  24. package/dist/components/Common/UI/CalendarPreview/CalendarPreview.module.scss.js +4 -4
  25. package/dist/components/Common/UI/Card/Card.module.scss.js +1 -1
  26. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +1 -1
  27. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +3 -3
  28. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +4 -4
  29. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +1 -1
  30. package/dist/components/Common/UI/Dialog/Dialog.module.scss.js +2 -2
  31. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +26 -26
  32. package/dist/components/Common/UI/Input/Input.module.scss.js +8 -8
  33. package/dist/components/Common/UI/Modal/Modal.module.scss.js +12 -12
  34. package/dist/components/Common/UI/Radio/Radio.module.scss.js +6 -6
  35. package/dist/components/Common/UI/Select/Select.module.scss.js +4 -4
  36. package/dist/components/Common/UI/Table/Table.js +1 -1
  37. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  38. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  39. package/dist/components/Common/UI/Tabs/Tabs.module.scss.js +1 -1
  40. package/dist/components/Common/UI/Text/Text.module.scss.js +17 -15
  41. package/dist/components/Common/UI/Text/Text.module.scss.js.map +1 -1
  42. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +4 -4
  43. package/dist/components/Company/AssignSignatory/AssignSignatory.js +3 -2
  44. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  45. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +4 -3
  46. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  47. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +3 -2
  48. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  49. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +1 -1
  50. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
  51. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  52. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  53. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +3 -2
  54. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  55. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +1 -1
  56. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  57. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  58. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  59. package/dist/components/Company/AssignSignatory/TitleSelect.js +4 -3
  60. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  61. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  62. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  63. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
  64. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  65. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +7 -5
  66. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  67. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  68. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  69. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +3 -2
  70. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  71. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +7 -6
  72. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  73. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +7 -5
  74. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  75. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +3 -2
  76. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  77. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +9 -8
  78. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  79. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  80. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  81. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +4 -3
  82. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  83. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  84. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  85. package/dist/components/Company/FederalTaxes/Actions.js +7 -6
  86. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  87. package/dist/components/Company/FederalTaxes/FederalTaxes.js +4 -3
  88. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  89. package/dist/components/Company/FederalTaxes/Form.js +5 -3
  90. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  91. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
  92. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  93. package/dist/components/Company/Industry/Actions.js +8 -7
  94. package/dist/components/Company/Industry/Actions.js.map +1 -1
  95. package/dist/components/Company/Industry/Context.js +7 -6
  96. package/dist/components/Company/Industry/Context.js.map +1 -1
  97. package/dist/components/Company/Industry/Edit.js +3 -2
  98. package/dist/components/Company/Industry/Edit.js.map +1 -1
  99. package/dist/components/Company/Locations/LocationForm/Actions.js +7 -6
  100. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  101. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  102. package/dist/components/Company/Locations/LocationForm/LocationForm.js +4 -3
  103. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  104. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  105. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  106. package/dist/components/Company/Locations/LocationsList/Actions.js +3 -2
  107. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  108. package/dist/components/Company/Locations/LocationsList/List.js +7 -6
  109. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  110. package/dist/components/Company/Locations/LocationsList/LocationsList.js +8 -7
  111. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  112. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  113. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  114. package/dist/components/Company/OnboardingOverview/Completed.js +12 -10
  115. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  116. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +8 -6
  117. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  118. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +8 -7
  119. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  120. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  121. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  122. package/dist/components/Company/PaySchedule/PaySchedule.js +4 -3
  123. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  124. package/dist/components/Company/PaySchedule/_parts/Actions.js +3 -2
  125. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  126. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  127. package/dist/components/Company/PaySchedule/_parts/Head.js +13 -11
  128. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  129. package/dist/components/Company/PaySchedule/_parts/List.js +15 -13
  130. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  131. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -5
  132. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  133. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +3 -2
  134. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  135. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  136. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  137. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +3 -2
  138. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  139. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +3 -2
  140. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  141. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  142. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  143. package/dist/components/Contractor/Address/Address.js +5 -4
  144. package/dist/components/Contractor/Address/Address.js.map +1 -1
  145. package/dist/components/Contractor/Address/Form.js +1 -1
  146. package/dist/components/Contractor/Address/useAddress.js +6 -5
  147. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  148. package/dist/components/Contractor/ContractorList/index.js +32 -31
  149. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  150. package/dist/components/Contractor/NewHireReport/NewHireReport.js +14 -13
  151. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  152. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +12 -11
  153. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  154. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +3 -2
  155. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  156. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +4 -3
  157. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  158. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +4 -2
  159. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  160. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  161. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +9 -7
  162. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  163. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +9 -8
  164. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  165. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +11 -9
  166. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  167. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +8 -6
  168. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  169. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +14 -14
  170. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +4 -2
  171. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  172. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +4 -2
  173. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  174. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  175. package/dist/components/Contractor/Profile/ContractorProfileForm.module.scss.js +1 -1
  176. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  177. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  178. package/dist/components/Contractor/Submit/Submit.js +21 -20
  179. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  180. package/dist/components/Employee/Compensation/Actions.js +13 -12
  181. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  182. package/dist/components/Employee/Compensation/Edit.js +17 -16
  183. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  184. package/dist/components/Employee/Compensation/List.js +23 -22
  185. package/dist/components/Employee/Compensation/List.js.map +1 -1
  186. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.d.ts +3 -1
  187. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +145 -137
  188. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  189. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.d.ts +2 -1
  190. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +106 -101
  191. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  192. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +90 -87
  193. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  194. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.d.ts +2 -1
  195. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +110 -104
  196. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  197. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +51 -45
  198. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  199. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +31 -30
  200. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  201. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js +4 -8
  202. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.module.scss.js.map +1 -1
  203. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +3 -2
  204. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  205. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +3 -2
  206. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  207. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +4 -2
  208. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  209. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  210. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  211. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +3 -2
  212. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  213. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  214. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  215. package/dist/components/Employee/EmployeeList/Actions.js +7 -6
  216. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  217. package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -3
  218. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  219. package/dist/components/Employee/EmployeeList/Head.js +7 -5
  220. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  221. package/dist/components/Employee/EmployeeList/List.js +3 -2
  222. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  223. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  224. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  225. package/dist/components/Employee/FederalTaxes/Actions.js +6 -5
  226. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  227. package/dist/components/Employee/FederalTaxes/FederalForm.js +12 -11
  228. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  229. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -3
  230. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  231. package/dist/components/Employee/Landing/Landing.js +11 -10
  232. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  233. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  234. package/dist/components/Employee/PaymentMethod/Actions.js +6 -5
  235. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  236. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -4
  237. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  238. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +3 -2
  239. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  240. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -6
  241. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  242. package/dist/components/Employee/PaymentMethod/Split.js +11 -10
  243. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  244. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  245. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  246. package/dist/components/Employee/Profile/Actions.js +6 -5
  247. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  248. package/dist/components/Employee/Profile/AdminPersonalDetails.js +6 -5
  249. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  250. package/dist/components/Employee/Profile/AdminPersonalDetails.module.scss.js +1 -1
  251. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  252. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
  253. package/dist/components/Employee/Profile/useProfile.js +4 -3
  254. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  255. package/dist/components/Employee/StateTaxes/Actions.js +6 -5
  256. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  257. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -3
  258. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  259. package/dist/components/Employee/Taxes/Actions.js +7 -6
  260. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  261. package/dist/components/Employee/Taxes/FederalForm.js +14 -13
  262. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  263. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  264. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  265. package/dist/components/Flow/Flow.js +9 -7
  266. package/dist/components/Flow/Flow.js.map +1 -1
  267. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +17 -16
  268. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  269. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +4 -4
  270. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +38 -36
  271. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  272. package/dist/components/InformationRequests/InformationRequests.d.ts +7 -2
  273. package/dist/components/InformationRequests/InformationRequests.js +78 -45
  274. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  275. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +10 -9
  276. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  277. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.module.scss.js +10 -10
  278. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.d.ts +2 -0
  279. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js +33 -0
  280. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelection.js.map +1 -0
  281. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.d.ts +7 -0
  282. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +39 -0
  283. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -0
  284. package/dist/components/Payroll/OffCycleReasonSelection/index.d.ts +5 -0
  285. package/dist/components/Payroll/OffCycleReasonSelection/types.d.ts +15 -0
  286. package/dist/components/Payroll/OffCycleReasonSelection/types.js +14 -0
  287. package/dist/components/Payroll/OffCycleReasonSelection/types.js.map +1 -0
  288. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.d.ts +2 -0
  289. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js +35 -0
  290. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateForm.js.map +1 -0
  291. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.d.ts +2 -0
  292. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js +65 -0
  293. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.js.map +1 -0
  294. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js +18 -0
  295. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormPresentation.module.scss.js.map +1 -0
  296. package/dist/components/Payroll/PayPeriodDateForm/PayPeriodDateFormTypes.d.ts +53 -0
  297. package/dist/components/Payroll/PayPeriodDateForm/index.d.ts +3 -0
  298. package/dist/components/Payroll/PayPeriodDateForm/usePayPeriodDateValidation.d.ts +5 -0
  299. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +4 -2
  300. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  301. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +19 -18
  302. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  303. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +36 -36
  304. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +5 -5
  305. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +21 -19
  306. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  307. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +17 -15
  308. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  309. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +26 -24
  310. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  311. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +30 -29
  312. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  313. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +4 -2
  314. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  315. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +3 -2
  316. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  317. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +18 -18
  318. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +4 -1
  319. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +34 -28
  320. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -1
  321. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +29 -29
  322. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  323. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +12 -11
  324. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  325. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +4 -2
  326. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  327. package/dist/components/Payroll/index.d.ts +4 -0
  328. package/dist/components/Payroll/index.js +12 -8
  329. package/dist/components/Payroll/index.js.map +1 -1
  330. package/dist/components/Payroll/usePreparedPayrollData.js +3 -2
  331. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  332. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +3 -2
  333. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  334. package/dist/contexts/ThemeProvider/theme.d.ts +8 -3
  335. package/dist/contexts/ThemeProvider/theme.js +29 -24
  336. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  337. package/dist/helpers/dateFormatting.d.ts +3 -0
  338. package/dist/helpers/dateFormatting.js.map +1 -1
  339. package/dist/i18n/I18n.js +1 -1
  340. package/dist/i18n/I18n.js.map +1 -1
  341. package/dist/i18n/en/Employee.Deductions.json.js +157 -161
  342. package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
  343. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js +12 -10
  344. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js.map +1 -1
  345. package/dist/i18n/en/InformationRequests.json.js +8 -0
  346. package/dist/i18n/en/InformationRequests.json.js.map +1 -0
  347. package/dist/i18n/en/Payroll.OffCycleReasonSelection.json.js +12 -0
  348. package/dist/i18n/en/Payroll.OffCycleReasonSelection.json.js.map +1 -0
  349. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js +32 -0
  350. package/dist/i18n/en/Payroll.PayPeriodDateForm.json.js.map +1 -0
  351. package/dist/shared/constants.d.ts +4 -0
  352. package/dist/shared/constants.js +10 -8
  353. package/dist/shared/constants.js.map +1 -1
  354. package/dist/style.css +1 -1
  355. package/dist/types/i18next.d.ts +51 -3
  356. package/package.json +11 -11
  357. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js +0 -8
  358. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.module.scss.js.map +0 -1
  359. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js +0 -14
  360. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.module.scss.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,75 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.27.0
4
+
5
+ ### Features & Enhancements
6
+
7
+ - Update top level RFI flow to show an alert on submission
8
+ - Add pay period configuration component
9
+ - Implement offcycle payroll selection component
10
+ - Deductions: only show county field when counties are selectable
11
+
12
+ ### Fixes
13
+
14
+ - Add additional line heights and xs size to text component
15
+ - Deductions UI: remove back button, add cancel button, handle empty states, spacing, and county field visibility
16
+ - Update theme border colors and form component styles
17
+
18
+ ### Chores & Maintenance
19
+
20
+ - Add PR template and create-pr command guidance
21
+ - Ignore ESLint 10 major version in dependabot
22
+ - Bump @types/react from 19.2.13 to 19.2.14
23
+ - Bump i18next from 25.8.4 to 25.8.5
24
+ - Bump msw from 2.12.8 to 2.12.10
25
+ - Bump @storybook/react-vite, addon-docs, addon-onboarding, addon-a11y from 10.2.7 to 10.2.8
26
+ - Bump eslint-plugin-storybook from 10.2.7 to 10.2.8
27
+ - Bump typescript-eslint from 8.54.0 to 8.55.0
28
+ - Bump @playwright/test from 1.58.1 to 1.58.2
29
+
30
+ ### Breaking changes
31
+
32
+ #### Theme variable `fontLineHeight` removed
33
+
34
+ The theme variable `fontLineHeight` has been removed. Update your theme object to use the new line height variables:
35
+
36
+ ```tsx
37
+ // Before
38
+ theme={{
39
+ typography: {
40
+ fontLineHeight: '24px',
41
+ }
42
+ }}
43
+
44
+ // After
45
+ theme={{
46
+ fontLineHeightRegular: '24px',
47
+ // Optional: Add more specific line heights if needed
48
+ fontLineHeightSmall: '20px',
49
+ fontLineHeightLarge: '28px',
50
+ fontLineHeightExtraSmall: '18px',
51
+ }}
52
+ ```
53
+
54
+ #### Theme `colorBorder` replaced with `colorBorderPrimary` and `colorBorderSecondary`
55
+
56
+ The single `colorBorder` theme variable has been replaced with two variables for clearer border styling.
57
+
58
+ For a consistent experience, use the same color for both new variables:
59
+
60
+ ```tsx
61
+ // Before
62
+ theme={{
63
+ colorBorder: '#E0E0E0'
64
+ }}
65
+
66
+ // After
67
+ theme={{
68
+ colorBorderPrimary: '#E0E0E0',
69
+ colorBorderSecondary: '#E0E0E0'
70
+ }}
71
+ ```
72
+
3
73
  ## 0.26.0
4
74
 
5
75
  ### Features & Enhancements
@@ -1,10 +1,10 @@
1
1
  import * as e from "react";
2
- const i = ({
2
+ const l = ({
3
3
  title: t,
4
- titleId: l,
5
- ...r
6
- }) => /* @__PURE__ */ e.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": l, ...r }, t ? /* @__PURE__ */ e.createElement("title", { id: l }, t) : null, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_10596_21547)" }, /* @__PURE__ */ e.createElement("path", { d: "M10.0003 6.66667V13.3333M6.66699 10H13.3337M18.3337 10C18.3337 14.6024 14.6027 18.3333 10.0003 18.3333C5.39795 18.3333 1.66699 14.6024 1.66699 10C1.66699 5.39763 5.39795 1.66667 10.0003 1.66667C14.6027 1.66667 18.3337 5.39763 18.3337 10Z", stroke: "currentColor", strokeWidth: 1.66667, strokeLinecap: "round", strokeLinejoin: "round" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_10596_21547" }, /* @__PURE__ */ e.createElement("rect", { width: 20, height: 20, fill: "white" }))));
4
+ titleId: r,
5
+ ...o
6
+ }) => /* @__PURE__ */ e.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-labelledby": r, ...o }, t ? /* @__PURE__ */ e.createElement("title", { id: r }, t) : null, /* @__PURE__ */ e.createElement("path", { d: "M9.99984 6.66666V13.3333M6.6665 9.99999H13.3332M18.3332 9.99999C18.3332 14.6024 14.6022 18.3333 9.99984 18.3333C5.39746 18.3333 1.6665 14.6024 1.6665 9.99999C1.6665 5.39762 5.39746 1.66666 9.99984 1.66666C14.6022 1.66666 18.3332 5.39762 18.3332 9.99999Z", stroke: "#A4A7AE", strokeWidth: 1.66667, strokeLinecap: "round", strokeLinejoin: "round" }));
7
7
  export {
8
- i as default
8
+ l as default
9
9
  };
10
10
  //# sourceMappingURL=plus-circle.svg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plus-circle.svg.js","sources":["../../../src/assets/icons/plus-circle.svg?react"],"sourcesContent":["import * as React from \"react\";\nconst SvgPlusCircle = ({\n title,\n titleId,\n ...props\n}) => /* @__PURE__ */ React.createElement(\"svg\", { width: 20, height: 20, viewBox: \"0 0 20 20\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-labelledby\": titleId, ...props }, title ? /* @__PURE__ */ React.createElement(\"title\", { id: titleId }, title) : null, /* @__PURE__ */ React.createElement(\"g\", { clipPath: \"url(#clip0_10596_21547)\" }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M10.0003 6.66667V13.3333M6.66699 10H13.3337M18.3337 10C18.3337 14.6024 14.6027 18.3333 10.0003 18.3333C5.39795 18.3333 1.66699 14.6024 1.66699 10C1.66699 5.39763 5.39795 1.66667 10.0003 1.66667C14.6027 1.66667 18.3337 5.39763 18.3337 10Z\", stroke: \"currentColor\", strokeWidth: 1.66667, strokeLinecap: \"round\", strokeLinejoin: \"round\" })), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"clipPath\", { id: \"clip0_10596_21547\" }, /* @__PURE__ */ React.createElement(\"rect\", { width: 20, height: 20, fill: \"white\" }))));\nexport default SvgPlusCircle;\n"],"names":["SvgPlusCircle","title","titleId","props","React"],"mappings":";AACK,MAACA,IAAgB,CAAC;AAAA,EACrB,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,MAAsB,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,OAAO,8BAA8B,mBAAmBF,GAAS,GAAGC,EAAK,GAAIF,IAAwB,gBAAAG,EAAM,cAAc,SAAS,EAAE,IAAIF,KAAWD,CAAK,IAAI,MAAsB,gBAAAG,EAAM,cAAc,KAAK,EAAE,UAAU,0BAAyB,GAAoB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,GAAG,iPAAiP,QAAQ,gBAAgB,aAAa,SAAS,eAAe,SAAS,gBAAgB,QAAO,CAAE,CAAC,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,MAAsB,gBAAAA,EAAM,cAAc,YAAY,EAAE,IAAI,oBAAmB,GAAoB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,OAAO,IAAI,QAAQ,IAAI,MAAM,QAAO,CAAE,CAAC,CAAC,CAAC;"}
1
+ {"version":3,"file":"plus-circle.svg.js","sources":["../../../src/assets/icons/plus-circle.svg?react"],"sourcesContent":["import * as React from \"react\";\nconst SvgPlusCircle = ({\n title,\n titleId,\n ...props\n}) => /* @__PURE__ */ React.createElement(\"svg\", { width: 20, height: 20, viewBox: \"0 0 20 20\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", \"aria-labelledby\": titleId, ...props }, title ? /* @__PURE__ */ React.createElement(\"title\", { id: titleId }, title) : null, /* @__PURE__ */ React.createElement(\"path\", { d: \"M9.99984 6.66666V13.3333M6.6665 9.99999H13.3332M18.3332 9.99999C18.3332 14.6024 14.6022 18.3333 9.99984 18.3333C5.39746 18.3333 1.6665 14.6024 1.6665 9.99999C1.6665 5.39762 5.39746 1.66666 9.99984 1.66666C14.6022 1.66666 18.3332 5.39762 18.3332 9.99999Z\", stroke: \"#A4A7AE\", strokeWidth: 1.66667, strokeLinecap: \"round\", strokeLinejoin: \"round\" }));\nexport default SvgPlusCircle;\n"],"names":["SvgPlusCircle","title","titleId","props","React"],"mappings":";AACK,MAACA,IAAgB,CAAC;AAAA,EACrB,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,GAAGC;AACL,MAAsB,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,MAAM,QAAQ,OAAO,8BAA8B,mBAAmBF,GAAS,GAAGC,EAAK,GAAIF,IAAwB,gBAAAG,EAAM,cAAc,SAAS,EAAE,IAAIF,KAAWD,CAAK,IAAI,MAAsB,gBAAAG,EAAM,cAAc,QAAQ,EAAE,GAAG,iQAAiQ,QAAQ,WAAW,aAAa,SAAS,eAAe,SAAS,gBAAgB,SAAS,CAAC;"}
@@ -9,17 +9,18 @@ import { FadeIn as g } from "../Common/FadeIn/FadeIn.js";
9
9
  import { BaseContext as y } from "./useBase.js";
10
10
  import { useBaseSubmit as b } from "./useBaseSubmit.js";
11
11
  import { componentEvents as R } from "../../shared/constants.js";
12
+ import "classnames";
12
13
  import { InternalError as c } from "../Common/InternalError/InternalError.js";
13
14
  import { useComponentContext as S } from "../../contexts/ComponentAdapter/useComponentContext.js";
14
15
  import { useLoadingIndicator as p } from "../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
15
16
  import { renderErrorList as F } from "../../helpers/apiErrorToList.js";
16
- const J = ({
17
+ const M = ({
17
18
  children: i,
18
19
  FallbackComponent: o = c,
19
20
  LoaderComponent: n,
20
21
  onEvent: t
21
22
  }) => {
22
- const { error: e, fieldErrors: s, baseSubmitHandler: a, setError: u } = b(), { LoadingIndicator: f } = p(), m = n ?? f, l = (L) => {
23
+ const { error: e, fieldErrors: m, baseSubmitHandler: s, setError: u } = b(), { LoadingIndicator: f } = p(), a = n ?? f, l = (L) => {
23
24
  t(R.ERROR, L);
24
25
  };
25
26
  return /* @__PURE__ */ r(
@@ -27,19 +28,19 @@ const J = ({
27
28
  {
28
29
  value: {
29
30
  error: e,
30
- fieldErrors: s,
31
+ fieldErrors: m,
31
32
  setError: u,
32
33
  onEvent: t,
33
- baseSubmitHandler: a,
34
- LoadingIndicator: m
34
+ baseSubmitHandler: s,
35
+ LoadingIndicator: a
35
36
  },
36
37
  children: /* @__PURE__ */ r(
37
38
  j,
38
39
  {
39
40
  FallbackComponent: o,
40
- LoaderComponent: m,
41
+ LoaderComponent: a,
41
42
  onErrorBoundaryError: l,
42
- children: /* @__PURE__ */ r(T, { error: e, fieldErrors: s, children: i })
43
+ children: /* @__PURE__ */ r(T, { error: e, fieldErrors: m, children: i })
43
44
  }
44
45
  )
45
46
  }
@@ -60,20 +61,20 @@ const J = ({
60
61
  LoaderComponent: n,
61
62
  onErrorBoundaryError: t
62
63
  }) => {
63
- const { LoadingIndicator: e } = p(), s = n ?? e;
64
- return /* @__PURE__ */ r(h, { children: ({ reset: a }) => /* @__PURE__ */ r(
64
+ const { LoadingIndicator: e } = p(), m = n ?? e;
65
+ return /* @__PURE__ */ r(h, { children: ({ reset: s }) => /* @__PURE__ */ r(
65
66
  E,
66
67
  {
67
68
  FallbackComponent: o,
68
- onReset: a,
69
+ onReset: s,
69
70
  onError: t,
70
- children: /* @__PURE__ */ r(C, { fallback: /* @__PURE__ */ r(s, {}), children: i })
71
+ children: /* @__PURE__ */ r(C, { fallback: /* @__PURE__ */ r(m, {}), children: i })
71
72
  }
72
73
  ) });
73
74
  };
74
75
  export {
75
76
  j as BaseBoundaries,
76
- J as BaseComponent,
77
+ M as BaseComponent,
77
78
  T as BaseLayout
78
79
  };
79
80
  //# sourceMappingURL=Base.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Base.js","sources":["../../../src/components/Base/Base.tsx"],"sourcesContent":["import type { ReactNode, JSX, ErrorInfo } from 'react'\nimport { Suspense } from 'react'\nimport type { FallbackProps } from 'react-error-boundary'\nimport { ErrorBoundary } from 'react-error-boundary'\nimport { useTranslation } from 'react-i18next'\nimport { APIError } from '@gusto/embedded-api/models/errors/apierror'\nimport { SDKValidationError } from '@gusto/embedded-api/models/errors/sdkvalidationerror'\nimport { QueryErrorResetBoundary } from '@tanstack/react-query'\nimport type { EntityErrorObject } from '@gusto/embedded-api/models/components/entityerrorobject'\nimport { FadeIn } from '../Common/FadeIn/FadeIn'\nimport { BaseContext, type KnownErrors, type OnEventType } from './useBase'\nimport { useBaseSubmit } from './useBaseSubmit'\nimport { componentEvents, type EventType } from '@/shared/constants'\nimport { InternalError } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\nimport { useLoadingIndicator } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\nimport type { LoadingIndicatorContextProps } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\nimport { renderErrorList } from '@/helpers/apiErrorToList'\n\nexport interface CommonComponentInterface<TResourceKey extends keyof Resources = keyof Resources> {\n children?: ReactNode\n className?: string\n defaultValues?: unknown\n dictionary?: ResourceDictionary<TResourceKey>\n}\n\n// Base component wrapper with error and suspense handling\nexport interface BaseComponentInterface<\n TResourceKey extends keyof Resources = keyof Resources,\n> extends CommonComponentInterface<TResourceKey> {\n FallbackComponent?: BaseBoundariesProps['FallbackComponent']\n LoaderComponent?: BaseBoundariesProps['LoaderComponent']\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport const BaseComponent = <TResourceKey extends keyof Resources = keyof Resources>({\n children,\n FallbackComponent = InternalError,\n LoaderComponent: LoadingIndicatorFromProps,\n onEvent,\n}: BaseComponentInterface<TResourceKey>) => {\n const { error, fieldErrors, baseSubmitHandler, setError } = useBaseSubmit()\n\n const { LoadingIndicator: LoadingIndicatorFromContext } = useLoadingIndicator()\n const LoaderComponent = LoadingIndicatorFromProps ?? LoadingIndicatorFromContext\n\n const onErrorBoundaryError = (error: unknown) => {\n onEvent(componentEvents.ERROR, error)\n }\n\n return (\n <BaseContext.Provider\n value={{\n error,\n fieldErrors,\n setError,\n onEvent,\n baseSubmitHandler,\n LoadingIndicator: LoaderComponent,\n }}\n >\n <BaseBoundaries\n FallbackComponent={FallbackComponent}\n LoaderComponent={LoaderComponent}\n onErrorBoundaryError={onErrorBoundaryError}\n >\n <BaseLayout error={error} fieldErrors={fieldErrors}>\n {children}\n </BaseLayout>\n </BaseBoundaries>\n </BaseContext.Provider>\n )\n}\n\ninterface BaseLayoutProps {\n children?: ReactNode\n error: KnownErrors | null\n fieldErrors: Array<EntityErrorObject> | null\n}\n\nexport const BaseLayout = ({ children, error, fieldErrors }: BaseLayoutProps) => {\n const Components = useComponentContext()\n const { t } = useTranslation()\n\n return (\n <FadeIn>\n {(error || fieldErrors) && (\n <Components.Alert label={t('status.errorEncountered')} status=\"error\">\n {fieldErrors && <Components.UnorderedList items={renderErrorList(fieldErrors)} />}\n {error && error instanceof APIError && <Components.Text>{error.message}</Components.Text>}\n {error && error instanceof SDKValidationError && (\n <Components.Text as=\"pre\">{error.pretty()}</Components.Text>\n )}\n </Components.Alert>\n )}\n {children}\n </FadeIn>\n )\n}\n\nexport interface BaseBoundariesProps {\n children?: ReactNode\n FallbackComponent?: (props: FallbackProps) => JSX.Element\n LoaderComponent?: LoadingIndicatorContextProps['LoadingIndicator']\n onErrorBoundaryError?: (error: unknown, info: ErrorInfo) => void\n}\n\nexport const BaseBoundaries = ({\n children,\n FallbackComponent = InternalError,\n LoaderComponent: LoadingIndicatorFromProps,\n onErrorBoundaryError,\n}: BaseBoundariesProps) => {\n const { LoadingIndicator: LoadingIndicatorFromContext } = useLoadingIndicator()\n const LoaderComponent = LoadingIndicatorFromProps ?? LoadingIndicatorFromContext\n\n return (\n <QueryErrorResetBoundary>\n {({ reset: resetQueries }) => (\n <ErrorBoundary\n FallbackComponent={FallbackComponent}\n onReset={resetQueries}\n onError={onErrorBoundaryError}\n >\n <Suspense fallback={<LoaderComponent />}>{children}</Suspense>\n </ErrorBoundary>\n )}\n </QueryErrorResetBoundary>\n )\n}\n"],"names":["BaseComponent","children","FallbackComponent","InternalError","LoadingIndicatorFromProps","onEvent","error","fieldErrors","baseSubmitHandler","setError","useBaseSubmit","LoadingIndicatorFromContext","useLoadingIndicator","LoaderComponent","onErrorBoundaryError","componentEvents","jsx","BaseContext","BaseBoundaries","BaseLayout","Components","useComponentContext","t","useTranslation","FadeIn","jsxs","renderErrorList","APIError","SDKValidationError","QueryErrorResetBoundary","resetQueries","ErrorBoundary","Suspense"],"mappings":";;;;;;;;;;;;;;;AAoCO,MAAMA,IAAgB,CAAyD;AAAA,EACpF,UAAAC;AAAA,EACA,mBAAAC,IAAoBC;AAAA,EACpB,iBAAiBC;AAAA,EACjB,SAAAC;AACF,MAA4C;AAC1C,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,mBAAAC,GAAmB,UAAAC,EAAA,IAAaC,EAAA,GAEtD,EAAE,kBAAkBC,EAAA,IAAgCC,EAAA,GACpDC,IAAkBT,KAA6BO,GAE/CG,IAAuB,CAACR,MAAmB;AAC/C,IAAAD,EAAQU,EAAgB,OAAOT,CAAK;AAAA,EACtC;AAEA,SACE,gBAAAU;AAAA,IAACC,EAAY;AAAA,IAAZ;AAAA,MACC,OAAO;AAAA,QACL,OAAAX;AAAA,QACA,aAAAC;AAAA,QACA,UAAAE;AAAA,QACA,SAAAJ;AAAA,QACA,mBAAAG;AAAA,QACA,kBAAkBK;AAAA,MAAA;AAAA,MAGpB,UAAA,gBAAAG;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,mBAAAhB;AAAA,UACA,iBAAAW;AAAA,UACA,sBAAAC;AAAA,UAEA,UAAA,gBAAAE,EAACG,GAAA,EAAW,OAAAb,GAAc,aAAAC,GACvB,UAAAN,EAAA,CACH;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN,GAQakB,IAAa,CAAC,EAAE,UAAAlB,GAAU,OAAAK,GAAO,aAAAC,QAAmC;AAC/E,QAAMa,IAAaC,EAAA,GACb,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAEd,2BACGC,GAAA,EACG,UAAA;AAAA,KAAAlB,KAASC,MACT,gBAAAkB,EAACL,EAAW,OAAX,EAAiB,OAAOE,EAAE,yBAAyB,GAAG,QAAO,SAC3D,UAAA;AAAA,MAAAf,uBAAgBa,EAAW,eAAX,EAAyB,OAAOM,EAAgBnB,CAAW,GAAG;AAAA,MAC9ED,KAASA,aAAiBqB,KAAY,gBAAAX,EAACI,EAAW,MAAX,EAAiB,YAAM,SAAQ;AAAA,MACtEd,KAASA,aAAiBsB,KACzB,gBAAAZ,EAACI,EAAW,MAAX,EAAgB,IAAG,OAAO,UAAAd,EAAM,OAAA,EAAO,CAAE;AAAA,IAAA,GAE9C;AAAA,IAEDL;AAAA,EAAA,GACH;AAEJ,GASaiB,IAAiB,CAAC;AAAA,EAC7B,UAAAjB;AAAA,EACA,mBAAAC,IAAoBC;AAAA,EACpB,iBAAiBC;AAAA,EACjB,sBAAAU;AACF,MAA2B;AACzB,QAAM,EAAE,kBAAkBH,EAAA,IAAgCC,EAAA,GACpDC,IAAkBT,KAA6BO;AAErD,2BACGkB,GAAA,EACE,UAAA,CAAC,EAAE,OAAOC,QACT,gBAAAd;AAAA,IAACe;AAAA,IAAA;AAAA,MACC,mBAAA7B;AAAA,MACA,SAAS4B;AAAA,MACT,SAAShB;AAAA,MAET,4BAACkB,GAAA,EAAS,UAAU,gBAAAhB,EAACH,GAAA,EAAgB,GAAK,UAAAZ,EAAA,CAAS;AAAA,IAAA;AAAA,EAAA,GAGzD;AAEJ;"}
1
+ {"version":3,"file":"Base.js","sources":["../../../src/components/Base/Base.tsx"],"sourcesContent":["import type { ReactNode, JSX, ErrorInfo } from 'react'\nimport { Suspense } from 'react'\nimport type { FallbackProps } from 'react-error-boundary'\nimport { ErrorBoundary } from 'react-error-boundary'\nimport { useTranslation } from 'react-i18next'\nimport { APIError } from '@gusto/embedded-api/models/errors/apierror'\nimport { SDKValidationError } from '@gusto/embedded-api/models/errors/sdkvalidationerror'\nimport { QueryErrorResetBoundary } from '@tanstack/react-query'\nimport type { EntityErrorObject } from '@gusto/embedded-api/models/components/entityerrorobject'\nimport { FadeIn } from '../Common/FadeIn/FadeIn'\nimport { BaseContext, type KnownErrors, type OnEventType } from './useBase'\nimport { useBaseSubmit } from './useBaseSubmit'\nimport { componentEvents, type EventType } from '@/shared/constants'\nimport { InternalError } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport type { ResourceDictionary, Resources } from '@/types/Helpers'\nimport { useLoadingIndicator } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\nimport type { LoadingIndicatorContextProps } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\nimport { renderErrorList } from '@/helpers/apiErrorToList'\n\nexport interface CommonComponentInterface<TResourceKey extends keyof Resources = keyof Resources> {\n children?: ReactNode\n className?: string\n defaultValues?: unknown\n dictionary?: ResourceDictionary<TResourceKey>\n}\n\n// Base component wrapper with error and suspense handling\nexport interface BaseComponentInterface<\n TResourceKey extends keyof Resources = keyof Resources,\n> extends CommonComponentInterface<TResourceKey> {\n FallbackComponent?: BaseBoundariesProps['FallbackComponent']\n LoaderComponent?: BaseBoundariesProps['LoaderComponent']\n onEvent: OnEventType<EventType, unknown>\n}\n\nexport const BaseComponent = <TResourceKey extends keyof Resources = keyof Resources>({\n children,\n FallbackComponent = InternalError,\n LoaderComponent: LoadingIndicatorFromProps,\n onEvent,\n}: BaseComponentInterface<TResourceKey>) => {\n const { error, fieldErrors, baseSubmitHandler, setError } = useBaseSubmit()\n\n const { LoadingIndicator: LoadingIndicatorFromContext } = useLoadingIndicator()\n const LoaderComponent = LoadingIndicatorFromProps ?? LoadingIndicatorFromContext\n\n const onErrorBoundaryError = (error: unknown) => {\n onEvent(componentEvents.ERROR, error)\n }\n\n return (\n <BaseContext.Provider\n value={{\n error,\n fieldErrors,\n setError,\n onEvent,\n baseSubmitHandler,\n LoadingIndicator: LoaderComponent,\n }}\n >\n <BaseBoundaries\n FallbackComponent={FallbackComponent}\n LoaderComponent={LoaderComponent}\n onErrorBoundaryError={onErrorBoundaryError}\n >\n <BaseLayout error={error} fieldErrors={fieldErrors}>\n {children}\n </BaseLayout>\n </BaseBoundaries>\n </BaseContext.Provider>\n )\n}\n\ninterface BaseLayoutProps {\n children?: ReactNode\n error: KnownErrors | null\n fieldErrors: Array<EntityErrorObject> | null\n}\n\nexport const BaseLayout = ({ children, error, fieldErrors }: BaseLayoutProps) => {\n const Components = useComponentContext()\n const { t } = useTranslation()\n\n return (\n <FadeIn>\n {(error || fieldErrors) && (\n <Components.Alert label={t('status.errorEncountered')} status=\"error\">\n {fieldErrors && <Components.UnorderedList items={renderErrorList(fieldErrors)} />}\n {error && error instanceof APIError && <Components.Text>{error.message}</Components.Text>}\n {error && error instanceof SDKValidationError && (\n <Components.Text as=\"pre\">{error.pretty()}</Components.Text>\n )}\n </Components.Alert>\n )}\n {children}\n </FadeIn>\n )\n}\n\nexport interface BaseBoundariesProps {\n children?: ReactNode\n FallbackComponent?: (props: FallbackProps) => JSX.Element\n LoaderComponent?: LoadingIndicatorContextProps['LoadingIndicator']\n onErrorBoundaryError?: (error: unknown, info: ErrorInfo) => void\n}\n\nexport const BaseBoundaries = ({\n children,\n FallbackComponent = InternalError,\n LoaderComponent: LoadingIndicatorFromProps,\n onErrorBoundaryError,\n}: BaseBoundariesProps) => {\n const { LoadingIndicator: LoadingIndicatorFromContext } = useLoadingIndicator()\n const LoaderComponent = LoadingIndicatorFromProps ?? LoadingIndicatorFromContext\n\n return (\n <QueryErrorResetBoundary>\n {({ reset: resetQueries }) => (\n <ErrorBoundary\n FallbackComponent={FallbackComponent}\n onReset={resetQueries}\n onError={onErrorBoundaryError}\n >\n <Suspense fallback={<LoaderComponent />}>{children}</Suspense>\n </ErrorBoundary>\n )}\n </QueryErrorResetBoundary>\n )\n}\n"],"names":["BaseComponent","children","FallbackComponent","InternalError","LoadingIndicatorFromProps","onEvent","error","fieldErrors","baseSubmitHandler","setError","useBaseSubmit","LoadingIndicatorFromContext","useLoadingIndicator","LoaderComponent","onErrorBoundaryError","componentEvents","jsx","BaseContext","BaseBoundaries","BaseLayout","Components","useComponentContext","t","useTranslation","FadeIn","jsxs","renderErrorList","APIError","SDKValidationError","QueryErrorResetBoundary","resetQueries","ErrorBoundary","Suspense"],"mappings":";;;;;;;;;;;;;;;;AAoCO,MAAMA,IAAgB,CAAyD;AAAA,EACpF,UAAAC;AAAA,EACA,mBAAAC,IAAoBC;AAAA,EACpB,iBAAiBC;AAAA,EACjB,SAAAC;AACF,MAA4C;AAC1C,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,mBAAAC,GAAmB,UAAAC,EAAA,IAAaC,EAAA,GAEtD,EAAE,kBAAkBC,EAAA,IAAgCC,EAAA,GACpDC,IAAkBT,KAA6BO,GAE/CG,IAAuB,CAACR,MAAmB;AAC/C,IAAAD,EAAQU,EAAgB,OAAOT,CAAK;AAAA,EACtC;AAEA,SACE,gBAAAU;AAAA,IAACC,EAAY;AAAA,IAAZ;AAAA,MACC,OAAO;AAAA,QACL,OAAAX;AAAA,QACA,aAAAC;AAAA,QACA,UAAAE;AAAA,QACA,SAAAJ;AAAA,QACA,mBAAAG;AAAA,QACA,kBAAkBK;AAAA,MAAA;AAAA,MAGpB,UAAA,gBAAAG;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,mBAAAhB;AAAA,UACA,iBAAAW;AAAA,UACA,sBAAAC;AAAA,UAEA,UAAA,gBAAAE,EAACG,GAAA,EAAW,OAAAb,GAAc,aAAAC,GACvB,UAAAN,EAAA,CACH;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN,GAQakB,IAAa,CAAC,EAAE,UAAAlB,GAAU,OAAAK,GAAO,aAAAC,QAAmC;AAC/E,QAAMa,IAAaC,EAAA,GACb,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAEd,2BACGC,GAAA,EACG,UAAA;AAAA,KAAAlB,KAASC,MACT,gBAAAkB,EAACL,EAAW,OAAX,EAAiB,OAAOE,EAAE,yBAAyB,GAAG,QAAO,SAC3D,UAAA;AAAA,MAAAf,uBAAgBa,EAAW,eAAX,EAAyB,OAAOM,EAAgBnB,CAAW,GAAG;AAAA,MAC9ED,KAASA,aAAiBqB,KAAY,gBAAAX,EAACI,EAAW,MAAX,EAAiB,YAAM,SAAQ;AAAA,MACtEd,KAASA,aAAiBsB,KACzB,gBAAAZ,EAACI,EAAW,MAAX,EAAgB,IAAG,OAAO,UAAAd,EAAM,OAAA,EAAO,CAAE;AAAA,IAAA,GAE9C;AAAA,IAEDL;AAAA,EAAA,GACH;AAEJ,GASaiB,IAAiB,CAAC;AAAA,EAC7B,UAAAjB;AAAA,EACA,mBAAAC,IAAoBC;AAAA,EACpB,iBAAiBC;AAAA,EACjB,sBAAAU;AACF,MAA2B;AACzB,QAAM,EAAE,kBAAkBH,EAAA,IAAgCC,EAAA,GACpDC,IAAkBT,KAA6BO;AAErD,2BACGkB,GAAA,EACE,UAAA,CAAC,EAAE,OAAOC,QACT,gBAAAd;AAAA,IAACe;AAAA,IAAA;AAAA,MACC,mBAAA7B;AAAA,MACA,SAAS4B;AAAA,MACT,SAAShB;AAAA,MAET,4BAACkB,GAAA,EAAS,UAAU,gBAAAhB,EAACH,GAAA,EAAgB,GAAK,UAAAZ,EAAA,CAAS;AAAA,IAAA;AAAA,EAAA,GAGzD;AAEJ;"}
@@ -1,40 +1,40 @@
1
- import { jsxs as f, jsx as t, Fragment as h } from "react/jsx-runtime";
2
- import { EmptyData as g } from "../EmptyData/EmptyData.js";
3
- import i from "./DocumentList.module.scss.js";
4
- import { useComponentContext as C } from "../../../contexts/ComponentAdapter/useComponentContext.js";
5
- import { useDataView as v } from "../DataView/useDataView.js";
6
- import { DataView as x } from "../DataView/DataView.js";
7
- function j({
8
- forms: s,
1
+ import { jsxs as g, jsx as t, Fragment as h } from "react/jsx-runtime";
2
+ import { EmptyData as f } from "../EmptyData/EmptyData.js";
3
+ import n from "./DocumentList.module.scss.js";
4
+ import { useComponentContext as x } from "../../../contexts/ComponentAdapter/useComponentContext.js";
5
+ import { useDataView as C } from "../DataView/useDataView.js";
6
+ import { DataView as w } from "../DataView/DataView.js";
7
+ function V({
8
+ forms: o,
9
9
  canSign: a = !0,
10
- onRequestSign: c,
11
- withError: m = !1,
10
+ onRequestSign: m,
11
+ withError: c = !1,
12
12
  label: d,
13
- columnLabels: o,
14
- statusLabels: n,
13
+ columnLabels: s,
14
+ statusLabels: r,
15
15
  emptyStateLabel: l,
16
16
  errorLabel: p
17
17
  }) {
18
- const r = C(), { ...u } = v({
19
- data: s,
18
+ const e = x(), { ...u } = C({
19
+ data: o,
20
20
  columns: [
21
21
  {
22
- title: o.form,
23
- render: (e) => /* @__PURE__ */ f(h, { children: [
24
- /* @__PURE__ */ t("div", { className: i.formTitle, children: e.title }),
25
- /* @__PURE__ */ t("div", { className: i.formDescription, children: e.description })
22
+ title: s.form,
23
+ render: (i) => /* @__PURE__ */ g(h, { children: [
24
+ /* @__PURE__ */ t(e.Text, { weight: "medium", size: "sm", children: i.title }),
25
+ /* @__PURE__ */ t(e.Text, { variant: "supporting", size: "sm", children: i.description })
26
26
  ] })
27
27
  },
28
28
  {
29
- title: o.action,
30
- render: (e) => /* @__PURE__ */ t("div", { className: i.statusCell, children: e.requires_signing ? a ? /* @__PURE__ */ t(r.Button, { variant: "secondary", onClick: () => c?.(e), children: n.signCta }) : /* @__PURE__ */ t(r.Badge, { status: "warning", children: n.notSigned }) : /* @__PURE__ */ t(r.Badge, { status: "success", children: n.complete }) })
29
+ title: s.action,
30
+ render: (i) => /* @__PURE__ */ t("div", { className: n.statusCell, children: i.requires_signing ? a ? /* @__PURE__ */ t(e.Button, { variant: "secondary", onClick: () => m?.(i), children: r.signCta }) : /* @__PURE__ */ t(e.Badge, { status: "warning", children: r.notSigned }) : /* @__PURE__ */ t(e.Badge, { status: "success", children: r.complete }) })
31
31
  }
32
32
  ],
33
- emptyState: () => m ? /* @__PURE__ */ t(r.Text, { className: i.documentListError, children: p }) : /* @__PURE__ */ t(g, { title: l })
33
+ emptyState: () => c ? /* @__PURE__ */ t(e.Text, { className: n.documentListError, children: p }) : /* @__PURE__ */ t(f, { title: l })
34
34
  });
35
- return /* @__PURE__ */ t("div", { className: i.documentList, children: /* @__PURE__ */ t(x, { label: d, ...u }) });
35
+ return /* @__PURE__ */ t("div", { className: n.documentList, children: /* @__PURE__ */ t(w, { label: d, ...u }) });
36
36
  }
37
37
  export {
38
- j as DocumentList
38
+ V as DocumentList
39
39
  };
40
40
  //# sourceMappingURL=DocumentList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentList.js","sources":["../../../../src/components/Common/DocumentList/DocumentList.tsx"],"sourcesContent":["import { DataView, useDataView } from '../DataView'\nimport { EmptyData } from '../EmptyData/EmptyData'\nimport styles from './DocumentList.module.scss'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport interface FormData {\n uuid: string\n title?: string\n description?: string\n requires_signing?: boolean\n}\n\ninterface DocumentListProps {\n forms: FormData[]\n canSign?: boolean\n onRequestSign?: (form: FormData) => void\n withError?: boolean\n label: string\n columnLabels: {\n form: string\n action: string\n }\n statusLabels: {\n signCta: string\n notSigned: string\n complete: string\n }\n emptyStateLabel: string\n errorLabel: string\n}\n\nfunction DocumentList({\n forms,\n canSign = true,\n onRequestSign,\n withError = false,\n label,\n columnLabels,\n statusLabels,\n emptyStateLabel,\n errorLabel,\n}: DocumentListProps) {\n const Components = useComponentContext()\n const { ...dataViewProps } = useDataView({\n data: forms,\n columns: [\n {\n title: columnLabels.form,\n render: (form: FormData) => (\n <>\n <div className={styles.formTitle}>{form.title}</div>\n <div className={styles.formDescription}>{form.description}</div>\n </>\n ),\n },\n {\n title: columnLabels.action,\n render: (form: FormData) => (\n <div className={styles.statusCell}>\n {form.requires_signing ? (\n canSign ? (\n <Components.Button variant=\"secondary\" onClick={() => onRequestSign?.(form)}>\n {statusLabels.signCta}\n </Components.Button>\n ) : (\n <Components.Badge status=\"warning\">{statusLabels.notSigned}</Components.Badge>\n )\n ) : (\n <Components.Badge status=\"success\">{statusLabels.complete}</Components.Badge>\n )}\n </div>\n ),\n },\n ],\n emptyState: () =>\n withError ? (\n <Components.Text className={styles.documentListError}>{errorLabel}</Components.Text>\n ) : (\n <EmptyData title={emptyStateLabel} />\n ),\n })\n\n return (\n <div className={styles.documentList}>\n <DataView label={label} {...dataViewProps} />\n </div>\n )\n}\n\nexport { DocumentList }\n"],"names":["DocumentList","forms","canSign","onRequestSign","withError","label","columnLabels","statusLabels","emptyStateLabel","errorLabel","Components","useComponentContext","dataViewProps","useDataView","form","jsxs","Fragment","jsx","styles","EmptyData","DataView"],"mappings":";;;;;;AA+BA,SAASA,EAAa;AAAA,EACpB,OAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,eAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AACF,GAAsB;AACpB,QAAMC,IAAaC,EAAA,GACb,EAAE,GAAGC,EAAA,IAAkBC,EAAY;AAAA,IACvC,MAAMZ;AAAA,IACN,SAAS;AAAA,MACP;AAAA,QACE,OAAOK,EAAa;AAAA,QACpB,QAAQ,CAACQ,MACP,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,UAAA,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,WAAY,YAAK,OAAM;AAAA,4BAC7C,OAAA,EAAI,WAAWA,EAAO,iBAAkB,YAAK,YAAA,CAAY;AAAA,QAAA,EAAA,CAC5D;AAAA,MAAA;AAAA,MAGJ;AAAA,QACE,OAAOZ,EAAa;AAAA,QACpB,QAAQ,CAACQ,wBACN,OAAA,EAAI,WAAWI,EAAO,YACpB,UAAAJ,EAAK,mBACJZ,IACE,gBAAAe,EAACP,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAAS,MAAMP,IAAgBW,CAAI,GACvE,UAAAP,EAAa,SAChB,IAEA,gBAAAU,EAACP,EAAW,OAAX,EAAiB,QAAO,WAAW,UAAAH,EAAa,WAAU,IAG7D,gBAAAU,EAACP,EAAW,OAAX,EAAiB,QAAO,WAAW,UAAAH,EAAa,UAAS,EAAA,CAE9D;AAAA,MAAA;AAAA,IAEJ;AAAA,IAEF,YAAY,MACVH,IACE,gBAAAa,EAACP,EAAW,MAAX,EAAgB,WAAWQ,EAAO,mBAAoB,UAAAT,EAAA,CAAW,IAElE,gBAAAQ,EAACE,GAAA,EAAU,OAAOX,EAAA,CAAiB;AAAA,EAAA,CAExC;AAED,SACE,gBAAAS,EAAC,OAAA,EAAI,WAAWC,EAAO,cACrB,4BAACE,GAAA,EAAS,OAAAf,GAAe,GAAGO,EAAA,CAAe,EAAA,CAC7C;AAEJ;"}
1
+ {"version":3,"file":"DocumentList.js","sources":["../../../../src/components/Common/DocumentList/DocumentList.tsx"],"sourcesContent":["import { DataView, useDataView } from '../DataView'\nimport { EmptyData } from '../EmptyData/EmptyData'\nimport styles from './DocumentList.module.scss'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport interface FormData {\n uuid: string\n title?: string\n description?: string\n requires_signing?: boolean\n}\n\ninterface DocumentListProps {\n forms: FormData[]\n canSign?: boolean\n onRequestSign?: (form: FormData) => void\n withError?: boolean\n label: string\n columnLabels: {\n form: string\n action: string\n }\n statusLabels: {\n signCta: string\n notSigned: string\n complete: string\n }\n emptyStateLabel: string\n errorLabel: string\n}\n\nfunction DocumentList({\n forms,\n canSign = true,\n onRequestSign,\n withError = false,\n label,\n columnLabels,\n statusLabels,\n emptyStateLabel,\n errorLabel,\n}: DocumentListProps) {\n const Components = useComponentContext()\n const { ...dataViewProps } = useDataView({\n data: forms,\n columns: [\n {\n title: columnLabels.form,\n render: (form: FormData) => (\n <>\n <Components.Text weight=\"medium\" size=\"sm\">\n {form.title}\n </Components.Text>\n <Components.Text variant=\"supporting\" size=\"sm\">\n {form.description}\n </Components.Text>\n </>\n ),\n },\n {\n title: columnLabels.action,\n render: (form: FormData) => (\n <div className={styles.statusCell}>\n {form.requires_signing ? (\n canSign ? (\n <Components.Button variant=\"secondary\" onClick={() => onRequestSign?.(form)}>\n {statusLabels.signCta}\n </Components.Button>\n ) : (\n <Components.Badge status=\"warning\">{statusLabels.notSigned}</Components.Badge>\n )\n ) : (\n <Components.Badge status=\"success\">{statusLabels.complete}</Components.Badge>\n )}\n </div>\n ),\n },\n ],\n emptyState: () =>\n withError ? (\n <Components.Text className={styles.documentListError}>{errorLabel}</Components.Text>\n ) : (\n <EmptyData title={emptyStateLabel} />\n ),\n })\n\n return (\n <div className={styles.documentList}>\n <DataView label={label} {...dataViewProps} />\n </div>\n )\n}\n\nexport { DocumentList }\n"],"names":["DocumentList","forms","canSign","onRequestSign","withError","label","columnLabels","statusLabels","emptyStateLabel","errorLabel","Components","useComponentContext","dataViewProps","useDataView","form","jsxs","Fragment","jsx","styles","EmptyData","DataView"],"mappings":";;;;;;AA+BA,SAASA,EAAa;AAAA,EACpB,OAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,eAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AACF,GAAsB;AACpB,QAAMC,IAAaC,EAAA,GACb,EAAE,GAAGC,EAAA,IAAkBC,EAAY;AAAA,IACvC,MAAMZ;AAAA,IACN,SAAS;AAAA,MACP;AAAA,QACE,OAAOK,EAAa;AAAA,QACpB,QAAQ,CAACQ,MACP,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,UAAA,gBAAAC,EAACP,EAAW,MAAX,EAAgB,QAAO,UAAS,MAAK,MACnC,YAAK,MAAA,CACR;AAAA,UACA,gBAAAO,EAACP,EAAW,MAAX,EAAgB,SAAQ,cAAa,MAAK,MACxC,UAAAI,EAAK,YAAA,CACR;AAAA,QAAA,EAAA,CACF;AAAA,MAAA;AAAA,MAGJ;AAAA,QACE,OAAOR,EAAa;AAAA,QACpB,QAAQ,CAACQ,wBACN,OAAA,EAAI,WAAWI,EAAO,YACpB,UAAAJ,EAAK,mBACJZ,IACE,gBAAAe,EAACP,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAAS,MAAMP,IAAgBW,CAAI,GACvE,UAAAP,EAAa,SAChB,IAEA,gBAAAU,EAACP,EAAW,OAAX,EAAiB,QAAO,WAAW,UAAAH,EAAa,WAAU,IAG7D,gBAAAU,EAACP,EAAW,OAAX,EAAiB,QAAO,WAAW,UAAAH,EAAa,UAAS,EAAA,CAE9D;AAAA,MAAA;AAAA,IAEJ;AAAA,IAEF,YAAY,MACVH,IACE,gBAAAa,EAACP,EAAW,MAAX,EAAgB,WAAWQ,EAAO,mBAAoB,UAAAT,EAAA,CAAW,IAElE,gBAAAQ,EAACE,GAAA,EAAU,OAAOX,EAAA,CAAiB;AAAA,EAAA,CAExC;AAED,SACE,gBAAAS,EAAC,OAAA,EAAI,WAAWC,EAAO,cACrB,4BAACE,GAAA,EAAS,OAAAf,GAAe,GAAGO,EAAA,CAAe,EAAA,CAC7C;AAEJ;"}
@@ -1,16 +1,12 @@
1
- const t = "_documentList_y7zef_1", o = "_formTitle_y7zef_8", s = "_formDescription_y7zef_12", e = "_statusCell_y7zef_16", r = "_documentListError_y7zef_20", c = {
1
+ const t = "_documentList_y7zef_1", s = "_statusCell_y7zef_16", e = "_documentListError_y7zef_20", o = {
2
2
  documentList: t,
3
- formTitle: o,
4
- formDescription: s,
5
- statusCell: e,
6
- documentListError: r
3
+ statusCell: s,
4
+ documentListError: e
7
5
  };
8
6
  export {
9
- c as default,
7
+ o as default,
10
8
  t as documentList,
11
- r as documentListError,
12
- s as formDescription,
13
- o as formTitle,
14
- e as statusCell
9
+ e as documentListError,
10
+ s as statusCell
15
11
  };
16
12
  //# sourceMappingURL=DocumentList.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DocumentList.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
1
+ {"version":3,"file":"DocumentList.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,18 +1,18 @@
1
- const n = "_container_1ux7f_1", d = "_embedPdf_1ux7f_4", e = "_smallEmbedPdfContainer_1ux7f_9", o = "_smallEmbedPdf_1ux7f_9", s = "_heading_1ux7f_23", t = "_downloadInstructions_1ux7f_26", a = {
1
+ const n = "_container_xao0m_1", o = "_embedPdf_xao0m_4", d = "_smallEmbedPdfContainer_xao0m_9", a = "_smallEmbedPdf_xao0m_9", e = "_heading_xao0m_23", s = "_downloadInstructions_xao0m_26", t = {
2
2
  container: n,
3
- embedPdf: d,
4
- smallEmbedPdfContainer: e,
5
- smallEmbedPdf: o,
6
- heading: s,
7
- downloadInstructions: t
3
+ embedPdf: o,
4
+ smallEmbedPdfContainer: d,
5
+ smallEmbedPdf: a,
6
+ heading: e,
7
+ downloadInstructions: s
8
8
  };
9
9
  export {
10
10
  n as container,
11
- a as default,
12
- t as downloadInstructions,
13
- d as embedPdf,
14
- s as heading,
15
- o as smallEmbedPdf,
16
- e as smallEmbedPdfContainer
11
+ t as default,
12
+ s as downloadInstructions,
13
+ o as embedPdf,
14
+ e as heading,
15
+ a as smallEmbedPdf,
16
+ d as smallEmbedPdfContainer
17
17
  };
18
18
  //# sourceMappingURL=DocumentViewer.module.scss.js.map
@@ -1,4 +1,4 @@
1
- const n = "_inlineSpinner_by46n_1", e = "_spinnerIcon_by46n_7", i = {
1
+ const n = "_inlineSpinner_6ut1u_1", e = "_spinnerIcon_6ut1u_7", i = {
2
2
  inlineSpinner: n,
3
3
  spinnerIcon: e
4
4
  };
@@ -1,11 +1,11 @@
1
- const r = "_internalErrorCardTitle_nf5ok_1", e = "_internalErrorCard_nf5ok_1", n = "_errorMessage_nf5ok_19", a = {
1
+ const r = "_internalErrorCardTitle_im0am_1", e = "_internalErrorCard_im0am_1", a = "_errorMessage_im0am_19", n = {
2
2
  internalErrorCardTitle: r,
3
3
  internalErrorCard: e,
4
- errorMessage: n
4
+ errorMessage: a
5
5
  };
6
6
  export {
7
- a as default,
8
- n as errorMessage,
7
+ n as default,
8
+ a as errorMessage,
9
9
  e as internalErrorCard,
10
10
  r as internalErrorCardTitle
11
11
  };
@@ -1,7 +1,7 @@
1
- const e = "_reorderableList_q2syr_1", r = "_disabled_q2syr_10", o = "_reorderableItem_q2syr_10", n = "_contentContainer_q2syr_16", t = "_dragging_q2syr_37", s = "_reordering_q2syr_40", d = "_dragHandle_q2syr_45", _ = "_dropZoneContainer_q2syr_71", i = "_dropZone_q2syr_71", a = "_isHighlighted_q2syr_89", g = "_activeDropZone_q2syr_89", c = {
1
+ const e = "_reorderableList_soqel_1", o = "_disabled_soqel_10", r = "_reorderableItem_soqel_10", n = "_contentContainer_soqel_16", t = "_dragging_soqel_37", s = "_reordering_soqel_40", d = "_dragHandle_soqel_45", _ = "_dropZoneContainer_soqel_71", i = "_dropZone_soqel_71", a = "_isHighlighted_soqel_89", l = "_activeDropZone_soqel_89", g = {
2
2
  reorderableList: e,
3
- disabled: r,
4
- reorderableItem: o,
3
+ disabled: o,
4
+ reorderableItem: r,
5
5
  contentContainer: n,
6
6
  dragging: t,
7
7
  reordering: s,
@@ -9,19 +9,19 @@ const e = "_reorderableList_q2syr_1", r = "_disabled_q2syr_10", o = "_reorderabl
9
9
  dropZoneContainer: _,
10
10
  dropZone: i,
11
11
  isHighlighted: a,
12
- activeDropZone: g
12
+ activeDropZone: l
13
13
  };
14
14
  export {
15
- g as activeDropZone,
15
+ l as activeDropZone,
16
16
  n as contentContainer,
17
- c as default,
18
- r as disabled,
17
+ g as default,
18
+ o as disabled,
19
19
  d as dragHandle,
20
20
  t as dragging,
21
21
  i as dropZone,
22
22
  _ as dropZoneContainer,
23
23
  a as isHighlighted,
24
- o as reorderableItem,
24
+ r as reorderableItem,
25
25
  e as reorderableList,
26
26
  s as reordering
27
27
  };
@@ -1,4 +1,4 @@
1
- const s = "_list_19wwb_1", t = "_listItem_19wwb_12", c = "_listItemIcon_19wwb_29", e = "_success_19wwb_42", _ = {
1
+ const s = "_list_1bks2_1", t = "_listItem_1bks2_12", c = "_listItemIcon_1bks2_29", e = "_success_1bks2_42", _ = {
2
2
  list: s,
3
3
  listItem: t,
4
4
  listItemIcon: c,
@@ -2,28 +2,30 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import { z as o } from "zod";
3
3
  import { useForm as s, FormProvider as a } from "react-hook-form";
4
4
  import { zodResolver as l } from "@hookform/resolvers/zod";
5
- import t from "./SignatureForm.module.scss.js";
5
+ import e from "./SignatureForm.module.scss.js";
6
6
  import { Form as u } from "../Form/Form.js";
7
7
  import { Flex as c } from "../Flex/Flex.js";
8
+ import "classnames";
9
+ import "../../../shared/constants.js";
8
10
  import "react-i18next";
9
11
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
10
12
  import "react";
11
- const f = o.object({
13
+ const p = o.object({
12
14
  signature: o.string().min(1),
13
15
  confirmSignature: o.literal(!0)
14
- }), p = {
16
+ }), f = {
15
17
  signature: ""
16
18
  };
17
- function D({ onSubmit: m, children: i, formProps: n }) {
18
- const e = s({
19
- resolver: l(f),
20
- defaultValues: p,
19
+ function V({ onSubmit: m, children: i, formProps: n }) {
20
+ const t = s({
21
+ resolver: l(p),
22
+ defaultValues: f,
21
23
  ...n
22
24
  });
23
- return /* @__PURE__ */ r(a, { ...e, children: /* @__PURE__ */ r(u, { onSubmit: e.handleSubmit(m), className: t.container, children: /* @__PURE__ */ r("div", { className: t.formFields, children: /* @__PURE__ */ r(c, { flexDirection: "column", gap: 20, children: i }) }) }) });
25
+ return /* @__PURE__ */ r(a, { ...t, children: /* @__PURE__ */ r(u, { onSubmit: t.handleSubmit(m), className: e.container, children: /* @__PURE__ */ r("div", { className: e.formFields, children: /* @__PURE__ */ r(c, { flexDirection: "column", gap: 20, children: i }) }) }) });
24
26
  }
25
27
  export {
26
- D as SignatureForm,
27
- f as SignatureFormSchema
28
+ V as SignatureForm,
29
+ p as SignatureFormSchema
28
30
  };
29
31
  //# sourceMappingURL=SignatureForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureForm.js","sources":["../../../../src/components/Common/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { FormProvider, useForm, type UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport styles from './SignatureForm.module.scss'\nimport { Form } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\n\nexport const SignatureFormSchema = z.object({\n signature: z.string().min(1),\n confirmSignature: z.literal(true),\n})\n\nconst signatureFormDefaultValues = {\n signature: '',\n}\n\nexport type SignatureFormInputs = z.infer<typeof SignatureFormSchema>\n\ninterface SignatureFormProps {\n onSubmit: (data: SignatureFormInputs) => void | Promise<void>\n children?: React.ReactNode\n formProps?: Partial<UseFormProps<SignatureFormInputs>>\n}\n\nexport function SignatureForm({ onSubmit, children, formProps }: SignatureFormProps) {\n const methods = useForm<SignatureFormInputs>({\n resolver: zodResolver(SignatureFormSchema),\n defaultValues: signatureFormDefaultValues,\n ...formProps,\n })\n\n return (\n <FormProvider {...methods}>\n <Form onSubmit={methods.handleSubmit(onSubmit)} className={styles.container}>\n <div className={styles.formFields}>\n <Flex flexDirection=\"column\" gap={20}>\n {children}\n </Flex>\n </div>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["SignatureFormSchema","z","signatureFormDefaultValues","SignatureForm","onSubmit","children","formProps","methods","useForm","zodResolver","jsx","FormProvider","Form","styles","Flex"],"mappings":";;;;;;;;;;AAOO,MAAMA,IAAsBC,EAAE,OAAO;AAAA,EAC1C,WAAWA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC3B,kBAAkBA,EAAE,QAAQ,EAAI;AAClC,CAAC,GAEKC,IAA6B;AAAA,EACjC,WAAW;AACb;AAUO,SAASC,EAAc,EAAE,UAAAC,GAAU,UAAAC,GAAU,WAAAC,KAAiC;AACnF,QAAMC,IAAUC,EAA6B;AAAA,IAC3C,UAAUC,EAAYT,CAAmB;AAAA,IACzC,eAAeE;AAAA,IACf,GAAGI;AAAA,EAAA,CACJ;AAED,SACE,gBAAAI,EAACC,GAAA,EAAc,GAAGJ,GAChB,UAAA,gBAAAG,EAACE,GAAA,EAAK,UAAUL,EAAQ,aAAaH,CAAQ,GAAG,WAAWS,EAAO,WAChE,UAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWG,EAAO,YACrB,UAAA,gBAAAH,EAACI,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAT,EAAA,CACH,EAAA,CACF,EAAA,CACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"SignatureForm.js","sources":["../../../../src/components/Common/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { FormProvider, useForm, type UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport styles from './SignatureForm.module.scss'\nimport { Form } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\n\nexport const SignatureFormSchema = z.object({\n signature: z.string().min(1),\n confirmSignature: z.literal(true),\n})\n\nconst signatureFormDefaultValues = {\n signature: '',\n}\n\nexport type SignatureFormInputs = z.infer<typeof SignatureFormSchema>\n\ninterface SignatureFormProps {\n onSubmit: (data: SignatureFormInputs) => void | Promise<void>\n children?: React.ReactNode\n formProps?: Partial<UseFormProps<SignatureFormInputs>>\n}\n\nexport function SignatureForm({ onSubmit, children, formProps }: SignatureFormProps) {\n const methods = useForm<SignatureFormInputs>({\n resolver: zodResolver(SignatureFormSchema),\n defaultValues: signatureFormDefaultValues,\n ...formProps,\n })\n\n return (\n <FormProvider {...methods}>\n <Form onSubmit={methods.handleSubmit(onSubmit)} className={styles.container}>\n <div className={styles.formFields}>\n <Flex flexDirection=\"column\" gap={20}>\n {children}\n </Flex>\n </div>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["SignatureFormSchema","z","signatureFormDefaultValues","SignatureForm","onSubmit","children","formProps","methods","useForm","zodResolver","jsx","FormProvider","Form","styles","Flex"],"mappings":";;;;;;;;;;;;AAOO,MAAMA,IAAsBC,EAAE,OAAO;AAAA,EAC1C,WAAWA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC3B,kBAAkBA,EAAE,QAAQ,EAAI;AAClC,CAAC,GAEKC,IAA6B;AAAA,EACjC,WAAW;AACb;AAUO,SAASC,EAAc,EAAE,UAAAC,GAAU,UAAAC,GAAU,WAAAC,KAAiC;AACnF,QAAMC,IAAUC,EAA6B;AAAA,IAC3C,UAAUC,EAAYT,CAAmB;AAAA,IACzC,eAAeE;AAAA,IACf,GAAGI;AAAA,EAAA,CACJ;AAED,SACE,gBAAAI,EAACC,GAAA,EAAc,GAAGJ,GAChB,UAAA,gBAAAG,EAACE,GAAA,EAAK,UAAUL,EAAQ,aAAaH,CAAQ,GAAG,WAAWS,EAAO,WAChE,UAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWG,EAAO,YACrB,UAAA,gBAAAH,EAACI,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAT,EAAA,CACH,EAAA,CACF,EAAA,CACF,GACF;AAEJ;"}
@@ -1,10 +1,11 @@
1
1
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
2
  import "../../../shared/constants.js";
3
+ import "classnames";
3
4
  import { ActionsLayout as p } from "../ActionsLayout/ActionsLayout.js";
4
5
  import "react-i18next";
5
6
  import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
6
7
  import "react";
7
- function x({
8
+ function y({
8
9
  onBack: t,
9
10
  backLabel: r,
10
11
  submitLabel: i,
@@ -17,6 +18,6 @@ function x({
17
18
  ] });
18
19
  }
19
20
  export {
20
- x as SignatureFormActions
21
+ y as SignatureFormActions
21
22
  };
22
23
  //# sourceMappingURL=SignatureFormActions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureFormActions.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormActions.tsx"],"sourcesContent":["import { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormActionsProps {\n onBack?: () => void\n backLabel: string\n submitLabel: string\n isLoading?: boolean\n}\n\nexport function SignatureFormActions({\n onBack,\n backLabel,\n submitLabel,\n isLoading = false,\n}: SignatureFormActionsProps) {\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {onBack && (\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onBack}>\n {backLabel}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isLoading}>\n {submitLabel}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["SignatureFormActions","onBack","backLabel","submitLabel","isLoading","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;AAUO,SAASA,EAAqB;AAAA,EACnC,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC,IAAY;AACd,GAA8B;AAC5B,QAAMC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACE,UAAA;AAAA,IAAAN,KACC,gBAAAO,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,MAAK,UAAS,SAASJ,GAC3D,UAAAC,EAAA,CACH;AAAA,sBAEDG,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAAD,GAC9B,UAAAD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"SignatureFormActions.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormActions.tsx"],"sourcesContent":["import { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface SignatureFormActionsProps {\n onBack?: () => void\n backLabel: string\n submitLabel: string\n isLoading?: boolean\n}\n\nexport function SignatureFormActions({\n onBack,\n backLabel,\n submitLabel,\n isLoading = false,\n}: SignatureFormActionsProps) {\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {onBack && (\n <Components.Button variant=\"secondary\" type=\"button\" onClick={onBack}>\n {backLabel}\n </Components.Button>\n )}\n <Components.Button type=\"submit\" isLoading={isLoading}>\n {submitLabel}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["SignatureFormActions","onBack","backLabel","submitLabel","isLoading","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;;;AAUO,SAASA,EAAqB;AAAA,EACnC,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC,IAAY;AACd,GAA8B;AAC5B,QAAMC,IAAaC,EAAA;AAEnB,2BACGC,GAAA,EACE,UAAA;AAAA,IAAAN,KACC,gBAAAO,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,MAAK,UAAS,SAASJ,GAC3D,UAAAC,EAAA,CACH;AAAA,sBAEDG,EAAW,QAAX,EAAkB,MAAK,UAAS,WAAAD,GAC9B,UAAAD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,11 +1,12 @@
1
1
  import { jsxs as n, Fragment as s, jsx as r } from "react/jsx-runtime";
2
2
  import "../../../shared/constants.js";
3
+ import "classnames";
4
+ import { TextInputField as p } from "../Fields/TextInputField/TextInputField.js";
3
5
  import "react-i18next";
4
6
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
5
7
  import "react";
6
- import { TextInputField as a } from "../Fields/TextInputField/TextInputField.js";
7
- import { CheckboxField as p } from "../Fields/CheckboxField/CheckboxField.js";
8
- function F({
8
+ import { CheckboxField as a } from "../Fields/CheckboxField/CheckboxField.js";
9
+ function b({
9
10
  signatureLabel: e,
10
11
  signatureDescription: i = "",
11
12
  signatureError: t = "",
@@ -14,7 +15,7 @@ function F({
14
15
  }) {
15
16
  return /* @__PURE__ */ n(s, { children: [
16
17
  /* @__PURE__ */ r(
17
- a,
18
+ p,
18
19
  {
19
20
  name: "signature",
20
21
  label: e,
@@ -24,7 +25,7 @@ function F({
24
25
  }
25
26
  ),
26
27
  /* @__PURE__ */ r(
27
- p,
28
+ a,
28
29
  {
29
30
  name: "confirmSignature",
30
31
  isRequired: !0,
@@ -35,6 +36,6 @@ function F({
35
36
  ] });
36
37
  }
37
38
  export {
38
- F as SignatureFormFields
39
+ b as SignatureFormFields
39
40
  };
40
41
  //# sourceMappingURL=SignatureFormFields.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureFormFields.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormFields.tsx"],"sourcesContent":["import { TextInputField, CheckboxField } from '@/components/Common'\n\ninterface SignatureFormFieldsProps {\n signatureLabel: string\n signatureDescription?: string\n signatureError?: string\n confirmationLabel: string\n confirmationError?: string\n}\n\nexport function SignatureFormFields({\n signatureLabel,\n signatureDescription = '',\n signatureError = '',\n confirmationLabel,\n confirmationError = '',\n}: SignatureFormFieldsProps) {\n return (\n <>\n <TextInputField\n name=\"signature\"\n label={signatureLabel}\n description={signatureDescription}\n errorMessage={signatureError}\n isRequired\n />\n <CheckboxField\n name=\"confirmSignature\"\n isRequired\n label={confirmationLabel}\n errorMessage={confirmationError}\n />\n </>\n )\n}\n"],"names":["SignatureFormFields","signatureLabel","signatureDescription","signatureError","confirmationLabel","confirmationError","jsxs","Fragment","jsx","TextInputField","CheckboxField"],"mappings":";;;;;;;AAUO,SAASA,EAAoB;AAAA,EAClC,gBAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,EACvB,gBAAAC,IAAiB;AAAA,EACjB,mBAAAC;AAAA,EACA,mBAAAC,IAAoB;AACtB,GAA6B;AAC3B,SACE,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOR;AAAA,QACP,aAAaC;AAAA,QACb,cAAcC;AAAA,QACd,YAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEZ,gBAAAK;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAON;AAAA,QACP,cAAcC;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
1
+ {"version":3,"file":"SignatureFormFields.js","sources":["../../../../src/components/Common/SignatureForm/SignatureFormFields.tsx"],"sourcesContent":["import { TextInputField, CheckboxField } from '@/components/Common'\n\ninterface SignatureFormFieldsProps {\n signatureLabel: string\n signatureDescription?: string\n signatureError?: string\n confirmationLabel: string\n confirmationError?: string\n}\n\nexport function SignatureFormFields({\n signatureLabel,\n signatureDescription = '',\n signatureError = '',\n confirmationLabel,\n confirmationError = '',\n}: SignatureFormFieldsProps) {\n return (\n <>\n <TextInputField\n name=\"signature\"\n label={signatureLabel}\n description={signatureDescription}\n errorMessage={signatureError}\n isRequired\n />\n <CheckboxField\n name=\"confirmSignature\"\n isRequired\n label={confirmationLabel}\n errorMessage={confirmationError}\n />\n </>\n )\n}\n"],"names":["SignatureFormFields","signatureLabel","signatureDescription","signatureError","confirmationLabel","confirmationError","jsxs","Fragment","jsx","TextInputField","CheckboxField"],"mappings":";;;;;;;;AAUO,SAASA,EAAoB;AAAA,EAClC,gBAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,EACvB,gBAAAC,IAAiB;AAAA,EACjB,mBAAAC;AAAA,EACA,mBAAAC,IAAoB;AACtB,GAA6B;AAC3B,SACE,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,OAAOR;AAAA,QACP,aAAaC;AAAA,QACb,cAAcC;AAAA,QACd,YAAU;AAAA,MAAA;AAAA,IAAA;AAAA,IAEZ,gBAAAK;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAON;AAAA,QACP,cAAcC;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;"}
@@ -1,20 +1,20 @@
1
- const o = "_root_jh0c6_1", n = "_alert_jh0c6_4", t = "_header_jh0c6_18", c = "_iconLabelContainer_jh0c6_23", e = "_icon_jh0c6_23", _ = "_content_jh0c6_44", s = "_dismiss_jh0c6_51", i = {
1
+ const o = "_root_s8mkw_1", s = "_alert_s8mkw_4", n = "_header_s8mkw_18", t = "_iconLabelContainer_s8mkw_23", e = "_icon_s8mkw_23", _ = "_content_s8mkw_44", c = "_dismiss_s8mkw_51", i = {
2
2
  root: o,
3
- alert: n,
4
- header: t,
5
- iconLabelContainer: c,
3
+ alert: s,
4
+ header: n,
5
+ iconLabelContainer: t,
6
6
  icon: e,
7
7
  content: _,
8
- dismiss: s
8
+ dismiss: c
9
9
  };
10
10
  export {
11
- n as alert,
11
+ s as alert,
12
12
  _ as content,
13
13
  i as default,
14
- s as dismiss,
15
- t as header,
14
+ c as dismiss,
15
+ n as header,
16
16
  e as icon,
17
- c as iconLabelContainer,
17
+ t as iconLabelContainer,
18
18
  o as root
19
19
  };
20
20
  //# sourceMappingURL=Alert.module.scss.js.map
@@ -1,4 +1,4 @@
1
- const t = "_banner_igmbf_1", e = "_header_igmbf_12", n = "_title_igmbf_19", _ = "_content_igmbf_25", o = {
1
+ const t = "_banner_1v6k8_1", e = "_header_1v6k8_12", n = "_title_1v6k8_19", _ = "_content_1v6k8_25", o = {
2
2
  banner: t,
3
3
  header: e,
4
4
  title: n,