@gusto/embedded-react-sdk 0.24.1 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (504) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/dist/assets/icons/icon-file-jpg.svg.js +10 -0
  3. package/dist/assets/icons/icon-file-jpg.svg.js.map +1 -0
  4. package/dist/assets/icons/icon-file-pdf.svg.js +10 -0
  5. package/dist/assets/icons/icon-file-pdf.svg.js.map +1 -0
  6. package/dist/assets/icons/icon-file-png.svg.js +10 -0
  7. package/dist/assets/icons/icon-file-png.svg.js.map +1 -0
  8. package/dist/assets/icons/icon-trashcan.svg.js +10 -0
  9. package/dist/assets/icons/icon-trashcan.svg.js.map +1 -0
  10. package/dist/assets/icons/slash-circle.svg.js +10 -0
  11. package/dist/assets/icons/slash-circle.svg.js.map +1 -0
  12. package/dist/components/Base/Base.d.ts +1 -1
  13. package/dist/components/Base/Base.js +12 -13
  14. package/dist/components/Base/Base.js.map +1 -1
  15. package/dist/components/Common/Fields/FileInputField/FileInputField.d.ts +5 -0
  16. package/dist/components/Common/Fields/FileInputField/FileInputField.js +34 -0
  17. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -0
  18. package/dist/components/Common/Fields/FileInputField/index.d.ts +2 -0
  19. package/dist/components/Common/PaginationControl/PaginationControl.js +41 -40
  20. package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
  21. package/dist/components/Common/PaginationControl/PaginationControlTypes.d.ts +1 -0
  22. package/dist/components/Common/SignatureForm/SignatureForm.js +2 -3
  23. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  24. package/dist/components/Common/SignatureForm/SignatureFormActions.js +3 -4
  25. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  26. package/dist/components/Common/SignatureForm/SignatureFormFields.js +6 -7
  27. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  28. package/dist/components/Common/UI/Alert/Alert.js +10 -10
  29. package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
  30. package/dist/components/Common/UI/Alert/Alert.module.scss.js +14 -14
  31. package/dist/components/Common/UI/Badge/Badge.module.scss.js +1 -1
  32. package/dist/components/Common/UI/Banner/Banner.module.scss.js +4 -4
  33. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +6 -6
  34. package/dist/components/Common/UI/FileInput/FileInput.d.ts +2 -0
  35. package/dist/components/Common/UI/FileInput/FileInput.js +150 -0
  36. package/dist/components/Common/UI/FileInput/FileInput.js.map +1 -0
  37. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js +36 -0
  38. package/dist/components/Common/UI/FileInput/FileInput.module.scss.js.map +1 -0
  39. package/dist/components/Common/UI/FileInput/FileInputTypes.d.ts +45 -0
  40. package/dist/components/Common/UI/FileInput/FileInputTypes.js +8 -0
  41. package/dist/components/Common/UI/FileInput/FileInputTypes.js.map +1 -0
  42. package/dist/components/Common/UI/FileInput/index.d.ts +4 -0
  43. package/dist/components/Common/UI/Input/Input.module.scss.js +7 -7
  44. package/dist/components/Common/UI/List/List.module.scss.js +1 -1
  45. package/dist/components/Common/UI/Modal/Modal.js +41 -40
  46. package/dist/components/Common/UI/Modal/Modal.js.map +1 -1
  47. package/dist/components/Common/UI/Modal/Modal.module.scss.js +4 -4
  48. package/dist/components/Common/UI/Select/Select.module.scss.js +6 -6
  49. package/dist/components/Common/UI/TextArea/TextArea.module.scss.js +4 -4
  50. package/dist/components/Common/UI/TextInput/TextInput.js +27 -23
  51. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  52. package/dist/components/Common/UI/TextInput/TextInputTypes.d.ts +1 -1
  53. package/dist/components/Common/UI/TextInput/TextInputTypes.js.map +1 -1
  54. package/dist/components/Company/AssignSignatory/AssignSignatory.js +2 -3
  55. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  56. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -3
  57. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  58. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
  59. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  60. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +5 -6
  61. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  62. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +5 -4
  63. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  64. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
  65. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  66. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +4 -5
  67. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  68. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +5 -4
  69. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  70. package/dist/components/Company/AssignSignatory/TitleSelect.js +3 -4
  71. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  72. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +7 -6
  73. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  74. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -9
  75. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  76. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +4 -5
  77. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  78. package/dist/components/Company/BankAccount/BankAccountForm/context.js +5 -4
  79. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  80. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +2 -3
  81. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  82. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +6 -7
  83. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  84. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -5
  85. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  86. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
  87. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  88. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +8 -9
  89. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  90. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +5 -4
  91. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  92. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  93. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  94. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +5 -4
  95. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  96. package/dist/components/Company/FederalTaxes/Actions.js +6 -7
  97. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  98. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -3
  99. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  100. package/dist/components/Company/FederalTaxes/Form.js +2 -3
  101. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  102. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -9
  103. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  104. package/dist/components/Company/Industry/Actions.js +7 -8
  105. package/dist/components/Company/Industry/Actions.js.map +1 -1
  106. package/dist/components/Company/Industry/Context.js +8 -7
  107. package/dist/components/Company/Industry/Context.js.map +1 -1
  108. package/dist/components/Company/Industry/Edit.js +2 -3
  109. package/dist/components/Company/Industry/Edit.js.map +1 -1
  110. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
  111. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  112. package/dist/components/Company/Locations/LocationForm/Form.js +4 -5
  113. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  114. package/dist/components/Company/Locations/LocationForm/LocationForm.js +2 -3
  115. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  116. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +5 -4
  117. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  118. package/dist/components/Company/Locations/LocationsList/Actions.js +2 -3
  119. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  120. package/dist/components/Company/Locations/LocationsList/List.js +31 -30
  121. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  122. package/dist/components/Company/Locations/LocationsList/LocationsList.js +29 -29
  123. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  124. package/dist/components/Company/Locations/LocationsList/useLocationsList.d.ts +1 -0
  125. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +5 -4
  126. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  127. package/dist/components/Company/OnboardingOverview/Completed.js +10 -11
  128. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  129. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -7
  130. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  131. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -7
  132. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  133. package/dist/components/Company/OnboardingOverview/context.js +5 -4
  134. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  135. package/dist/components/Company/PaySchedule/PaySchedule.js +2 -3
  136. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  137. package/dist/components/Company/PaySchedule/_parts/Actions.js +2 -3
  138. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  139. package/dist/components/Company/PaySchedule/_parts/Edit.js +9 -10
  140. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  141. package/dist/components/Company/PaySchedule/_parts/Head.js +8 -9
  142. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  143. package/dist/components/Company/PaySchedule/_parts/List.js +5 -6
  144. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  145. package/dist/components/Company/PaySchedule/usePaySchedule.js +7 -6
  146. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  147. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
  148. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  149. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +5 -4
  150. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  151. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
  152. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  153. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +2 -3
  154. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  155. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +5 -4
  156. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  157. package/dist/components/Contractor/Address/Address.js +3 -4
  158. package/dist/components/Contractor/Address/Address.js.map +1 -1
  159. package/dist/components/Contractor/Address/Form.js +6 -7
  160. package/dist/components/Contractor/Address/Form.js.map +1 -1
  161. package/dist/components/Contractor/Address/useAddress.js +7 -6
  162. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  163. package/dist/components/Contractor/ContractorList/index.js +24 -24
  164. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  165. package/dist/components/Contractor/NewHireReport/NewHireReport.js +13 -14
  166. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  167. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -11
  168. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  169. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  170. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  171. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
  172. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  173. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +108 -92
  174. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  175. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +33 -32
  176. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  177. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +25 -7
  178. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js.map +1 -1
  179. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +8 -0
  180. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +58 -0
  181. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -0
  182. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.d.ts +6 -0
  183. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js +18 -0
  184. package/dist/components/Contractor/Payments/CreatePayment/GenericBlocker.js.map +1 -0
  185. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +5 -1
  186. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +84 -52
  187. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  188. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.d.ts +4 -0
  189. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +32 -13
  190. package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
  191. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.d.ts +2 -0
  192. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js +100 -53
  193. package/dist/components/Contractor/Payments/PaymentFlow/paymentStateMachine.js.map +1 -1
  194. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.d.ts +1 -2
  195. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js +46 -21
  196. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistory.js.map +1 -1
  197. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.d.ts +6 -15
  198. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +115 -100
  199. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  200. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js +8 -0
  201. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.module.scss.js.map +1 -0
  202. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.d.ts +8 -0
  203. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +51 -0
  204. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -0
  205. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.d.ts +11 -0
  206. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +155 -0
  207. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -0
  208. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +22 -0
  209. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -0
  210. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.d.ts +8 -0
  211. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +45 -0
  212. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -0
  213. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.d.ts +15 -0
  214. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +125 -0
  215. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -0
  216. package/dist/components/Contractor/Payments/PaymentSummary/index.d.ts +3 -0
  217. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +37 -28
  218. package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
  219. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.d.ts +5 -1
  220. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +61 -60
  221. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  222. package/dist/components/Contractor/Profile/useContractorProfile.js +1 -1
  223. package/dist/components/Contractor/Submit/Submit.js +19 -20
  224. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  225. package/dist/components/Employee/Compensation/Actions.js +12 -13
  226. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  227. package/dist/components/Employee/Compensation/Edit.js +2 -3
  228. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  229. package/dist/components/Employee/Compensation/List.js +22 -23
  230. package/dist/components/Employee/Compensation/List.js.map +1 -1
  231. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +4 -3
  232. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  233. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +4 -3
  234. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  235. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +4 -3
  236. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  237. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +2 -3
  238. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  239. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +2 -3
  240. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  241. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +2 -3
  242. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  243. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +2 -3
  244. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  245. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -3
  246. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  247. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +5 -4
  248. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  249. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  250. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  251. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +5 -4
  252. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  253. package/dist/components/Employee/EmployeeList/Actions.js +6 -7
  254. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  255. package/dist/components/Employee/EmployeeList/EmployeeList.js +55 -54
  256. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  257. package/dist/components/Employee/EmployeeList/Head.js +5 -6
  258. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  259. package/dist/components/Employee/EmployeeList/List.js +32 -31
  260. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  261. package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +1 -0
  262. package/dist/components/Employee/EmployeeList/useEmployeeList.js +5 -4
  263. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  264. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibility.d.ts +3 -0
  265. package/dist/components/Employee/EmploymentEligibility/EmploymentEligibilityPresentation.d.ts +37 -0
  266. package/dist/components/Employee/EmploymentEligibility/index.d.ts +4 -0
  267. package/dist/components/Employee/FederalTaxes/Actions.js +5 -6
  268. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  269. package/dist/components/Employee/FederalTaxes/FederalForm.js +4 -5
  270. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  271. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +5 -4
  272. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  273. package/dist/components/Employee/Landing/Landing.js +2 -3
  274. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  275. package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
  276. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  277. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -3
  278. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  279. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +2 -3
  280. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  281. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +5 -6
  282. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  283. package/dist/components/Employee/PaymentMethod/Split.js +2 -3
  284. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  285. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +7 -6
  286. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  287. package/dist/components/Employee/Profile/Actions.js +5 -6
  288. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  289. package/dist/components/Employee/Profile/AdminPersonalDetails.js +4 -5
  290. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  291. package/dist/components/Employee/Profile/HomeAddress.js +8 -9
  292. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  293. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +8 -9
  294. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  295. package/dist/components/Employee/Profile/useProfile.js +5 -4
  296. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  297. package/dist/components/Employee/StateTaxes/Actions.js +5 -6
  298. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  299. package/dist/components/Employee/StateTaxes/useStateTaxes.js +5 -4
  300. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  301. package/dist/components/Employee/Taxes/Actions.js +6 -7
  302. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  303. package/dist/components/Employee/Taxes/FederalForm.js +6 -7
  304. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  305. package/dist/components/Employee/Taxes/useTaxes.js +5 -4
  306. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  307. package/dist/components/Flow/Flow.js +7 -8
  308. package/dist/components/Flow/Flow.js.map +1 -1
  309. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +15 -0
  310. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +162 -0
  311. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -0
  312. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js +20 -0
  313. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.module.scss.js.map +1 -0
  314. package/dist/components/InformationRequests/InformationRequestForm/index.d.ts +2 -0
  315. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.d.ts +8 -0
  316. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +96 -0
  317. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -0
  318. package/dist/components/InformationRequests/InformationRequestList/index.d.ts +2 -0
  319. package/dist/components/InformationRequests/InformationRequests.d.ts +7 -0
  320. package/dist/components/InformationRequests/InformationRequests.js +68 -0
  321. package/dist/components/InformationRequests/InformationRequests.js.map +1 -0
  322. package/dist/components/InformationRequests/InformationRequestsComponents.d.ts +19 -0
  323. package/dist/components/InformationRequests/InformationRequestsComponents.js +20 -0
  324. package/dist/components/InformationRequests/InformationRequestsComponents.js.map +1 -0
  325. package/dist/components/InformationRequests/index.d.ts +4 -0
  326. package/dist/components/InformationRequests/index.js +9 -0
  327. package/dist/components/InformationRequests/index.js.map +1 -0
  328. package/dist/components/InformationRequests/informationRequestsStateMachine.d.ts +13 -0
  329. package/dist/components/InformationRequests/informationRequestsStateMachine.js +47 -0
  330. package/dist/components/InformationRequests/informationRequestsStateMachine.js.map +1 -0
  331. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js +69 -59
  332. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  333. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +0 -1
  334. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  335. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js +61 -52
  336. package/dist/components/Payroll/ConfirmWireDetails/WireInstructions/WireInstructions.js.map +1 -1
  337. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +17 -18
  338. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  339. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.d.ts +5 -13
  340. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +102 -27
  341. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  342. package/dist/components/Payroll/PayrollBlocker/index.d.ts +0 -1
  343. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js +14 -14
  344. package/dist/components/Payroll/PayrollBlocker/payrollHelpers.js.map +1 -1
  345. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +116 -130
  346. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  347. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +6 -3
  348. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +165 -156
  349. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  350. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js +2 -4
  351. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.module.scss.js.map +1 -1
  352. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +21 -0
  353. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +105 -0
  354. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -0
  355. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +41 -37
  356. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  357. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -4
  358. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +151 -146
  359. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  360. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +6 -6
  361. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  362. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
  363. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +45 -38
  364. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  365. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  366. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +179 -97
  367. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  368. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +28 -28
  369. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  370. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +2 -2
  371. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +86 -106
  372. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  373. package/dist/components/Payroll/PayrollLanding/PayrollLanding.d.ts +2 -1
  374. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js +28 -22
  375. package/dist/components/Payroll/PayrollLanding/PayrollLanding.js.map +1 -1
  376. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.d.ts +4 -0
  377. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +74 -47
  378. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  379. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.d.ts +2 -0
  380. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js +159 -57
  381. package/dist/components/Payroll/PayrollLanding/payrollLandingStateMachine.js.map +1 -1
  382. package/dist/components/Payroll/PayrollList/PayrollList.js +14 -17
  383. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  384. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +1 -2
  385. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +137 -132
  386. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  387. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +8 -4
  388. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  389. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +102 -96
  390. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  391. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +7 -5
  392. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +253 -250
  393. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  394. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.d.ts +6 -0
  395. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js +5 -0
  396. package/dist/components/Payroll/PayrollOverview/PayrollOverviewTypes.js.map +1 -0
  397. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -2
  398. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +2 -3
  399. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  400. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.d.ts +2 -2
  401. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/GenericBlocker.js.map +1 -1
  402. package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js +8 -0
  403. package/dist/components/Payroll/RecoveryCases/RecoveryCaseErrorCode.module.scss.js.map +1 -0
  404. package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +6 -0
  405. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js +55 -0
  406. package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -0
  407. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.d.ts +19 -0
  408. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js +19 -0
  409. package/dist/components/Payroll/RecoveryCases/RecoveryCasesComponents.js.map +1 -0
  410. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.d.ts +7 -0
  411. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +104 -0
  412. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -0
  413. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js +8 -0
  414. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.module.scss.js.map +1 -0
  415. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/index.d.ts +2 -0
  416. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.d.ts +14 -0
  417. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +69 -0
  418. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -0
  419. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/index.d.ts +2 -0
  420. package/dist/components/Payroll/RecoveryCases/index.d.ts +3 -0
  421. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.d.ts +13 -0
  422. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js +47 -0
  423. package/dist/components/Payroll/RecoveryCases/recoveryCasesStateMachine.js.map +1 -0
  424. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.d.ts +7 -0
  425. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +65 -0
  426. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -0
  427. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +1 -1
  428. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +1 -1
  429. package/dist/components/Payroll/helpers.d.ts +12 -0
  430. package/dist/components/Payroll/helpers.js +129 -117
  431. package/dist/components/Payroll/helpers.js.map +1 -1
  432. package/dist/components/Payroll/index.d.ts +2 -1
  433. package/dist/components/Payroll/index.js +12 -10
  434. package/dist/components/Payroll/index.js.map +1 -1
  435. package/dist/components/Payroll/usePreparedPayrollData.d.ts +5 -2
  436. package/dist/components/Payroll/usePreparedPayrollData.js +44 -32
  437. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  438. package/dist/components/index.d.ts +1 -0
  439. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +27 -25
  440. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  441. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  442. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +5 -0
  443. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +17 -15
  444. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  445. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +2 -0
  446. package/dist/contexts/ComponentAdapter/useComponentContext.js +3 -3
  447. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  448. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +1 -1
  449. package/dist/contexts/ThemeProvider/theme.js +5 -5
  450. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  451. package/dist/helpers/dateFormatting.d.ts +1 -0
  452. package/dist/helpers/dateFormatting.js +1 -0
  453. package/dist/helpers/dateFormatting.js.map +1 -1
  454. package/dist/helpers/formattedStrings.d.ts +1 -0
  455. package/dist/helpers/formattedStrings.js +27 -21
  456. package/dist/helpers/formattedStrings.js.map +1 -1
  457. package/dist/helpers/responsive.js +1 -1
  458. package/dist/helpers/responsive.js.map +1 -1
  459. package/dist/i18n/I18n.js +9 -9
  460. package/dist/i18n/I18n.js.map +1 -1
  461. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +44 -36
  462. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  463. package/dist/i18n/en/Contractor.Payments.PaymentHistory.json.js +11 -11
  464. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js +28 -0
  465. package/dist/i18n/en/Contractor.Payments.PaymentStatement.json.js.map +1 -0
  466. package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js +58 -0
  467. package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js.map +1 -0
  468. package/dist/i18n/en/Contractor.Payments.PaymentsList.json.js +14 -14
  469. package/dist/i18n/en/Employee.EmploymentEligibility.json.js +28 -0
  470. package/dist/i18n/en/Employee.EmploymentEligibility.json.js.map +1 -0
  471. package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js +20 -0
  472. package/dist/i18n/en/InformationRequests.InformationRequestForm.json.js.map +1 -0
  473. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js +18 -0
  474. package/dist/i18n/en/InformationRequests.InformationRequestList.json.js.map +1 -0
  475. package/dist/i18n/en/Payroll.ConfirmWireDetailsBanner.json.js +1 -1
  476. package/dist/i18n/en/Payroll.PayrollBlocker.json.js +24 -20
  477. package/dist/i18n/en/Payroll.PayrollBlocker.json.js.map +1 -1
  478. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +27 -21
  479. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  480. package/dist/i18n/en/Payroll.PayrollHistory.json.js +6 -6
  481. package/dist/i18n/en/Payroll.PayrollLanding.json.js +7 -3
  482. package/dist/i18n/en/Payroll.PayrollLanding.json.js.map +1 -1
  483. package/dist/i18n/en/Payroll.PayrollOverview.json.js +32 -28
  484. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  485. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js +18 -0
  486. package/dist/i18n/en/Payroll.RecoveryCasesList.json.js.map +1 -0
  487. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js +10 -0
  488. package/dist/i18n/en/Payroll.RecoveryCasesResubmit.json.js.map +1 -0
  489. package/dist/i18n/en/Payroll.WireInstructions.json.js +20 -16
  490. package/dist/i18n/en/Payroll.WireInstructions.json.js.map +1 -1
  491. package/dist/i18n/en/common.json.d.ts +5 -0
  492. package/dist/i18n/en/common.json.js +4 -2
  493. package/dist/i18n/en/common.json.js.map +1 -1
  494. package/dist/index.js +10 -8
  495. package/dist/index.js.map +1 -1
  496. package/dist/shared/constants.d.ts +30 -0
  497. package/dist/shared/constants.js +73 -54
  498. package/dist/shared/constants.js.map +1 -1
  499. package/dist/style.css +1 -1
  500. package/dist/types/i18next.d.ts +321 -3
  501. package/package.json +32 -21
  502. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.d.ts +0 -6
  503. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js +0 -32
  504. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js.map +0 -1
@@ -6,7 +6,6 @@ import t 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
8
  import "react-i18next";
9
- import "classnames";
10
9
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
11
10
  import "react";
12
11
  const f = o.object({
@@ -15,7 +14,7 @@ const f = o.object({
15
14
  }), p = {
16
15
  signature: ""
17
16
  };
18
- function N({ onSubmit: m, children: i, formProps: n }) {
17
+ function D({ onSubmit: m, children: i, formProps: n }) {
19
18
  const e = s({
20
19
  resolver: l(f),
21
20
  defaultValues: p,
@@ -24,7 +23,7 @@ function N({ onSubmit: m, children: i, formProps: n }) {
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
24
  }
26
25
  export {
27
- N as SignatureForm,
26
+ D as SignatureForm,
28
27
  f as SignatureFormSchema
29
28
  };
30
29
  //# 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,11 +1,10 @@
1
1
  import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
2
  import "../../../shared/constants.js";
3
- import "react-i18next";
4
- import "classnames";
5
3
  import { ActionsLayout as p } from "../ActionsLayout/ActionsLayout.js";
4
+ import "react-i18next";
6
5
  import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
6
  import "react";
8
- function y({
7
+ function x({
9
8
  onBack: t,
10
9
  backLabel: r,
11
10
  submitLabel: i,
@@ -18,6 +17,6 @@ function y({
18
17
  ] });
19
18
  }
20
19
  export {
21
- y as SignatureFormActions
20
+ x as SignatureFormActions
22
21
  };
23
22
  //# 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,12 +1,11 @@
1
1
  import { jsxs as n, Fragment as s, jsx as r } from "react/jsx-runtime";
2
2
  import "../../../shared/constants.js";
3
3
  import "react-i18next";
4
- import "classnames";
5
4
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
6
5
  import "react";
7
- import { TextInputField as p } from "../Fields/TextInputField/TextInputField.js";
8
- import { CheckboxField as a } from "../Fields/CheckboxField/CheckboxField.js";
9
- function b({
6
+ import { TextInputField as a } from "../Fields/TextInputField/TextInputField.js";
7
+ import { CheckboxField as p } from "../Fields/CheckboxField/CheckboxField.js";
8
+ function F({
10
9
  signatureLabel: e,
11
10
  signatureDescription: i = "",
12
11
  signatureError: t = "",
@@ -15,7 +14,7 @@ function b({
15
14
  }) {
16
15
  return /* @__PURE__ */ n(s, { children: [
17
16
  /* @__PURE__ */ r(
18
- p,
17
+ a,
19
18
  {
20
19
  name: "signature",
21
20
  label: e,
@@ -25,7 +24,7 @@ function b({
25
24
  }
26
25
  ),
27
26
  /* @__PURE__ */ r(
28
- a,
27
+ p,
29
28
  {
30
29
  name: "confirmSignature",
31
30
  isRequired: !0,
@@ -36,6 +35,6 @@ function b({
36
35
  ] });
37
36
  }
38
37
  export {
39
- b as SignatureFormFields
38
+ F as SignatureFormFields
40
39
  };
41
40
  //# 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,4 +1,4 @@
1
- import { jsx as r, jsxs as n } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
2
  import { useId as p, useRef as v, useEffect as g } from "react";
3
3
  import N from "classnames";
4
4
  import { ButtonIcon as b } from "../Button/ButtonIcon.js";
@@ -10,26 +10,26 @@ import x from "../../../../assets/icons/success_check.svg.js";
10
10
  import y from "../../../../assets/icons/warning.svg.js";
11
11
  import C from "../../../../assets/icons/error.svg.js";
12
12
  import D from "../../../../assets/icons/close.svg.js";
13
- function z(l) {
14
- const c = S(l, I), { label: m, children: d, status: i, icon: f, className: h, onDismiss: o, disableScrollIntoView: a } = c, t = p(), s = v(null), u = i === "info" ? /* @__PURE__ */ r(w, { "aria-hidden": !0 }) : i === "success" ? /* @__PURE__ */ r(x, { "aria-hidden": !0 }) : i === "warning" ? /* @__PURE__ */ r(y, { "aria-hidden": !0 }) : /* @__PURE__ */ r(C, { "aria-hidden": !0 });
13
+ function z(c) {
14
+ const m = S(c, I), { label: d, children: o, status: i, icon: f, className: h, onDismiss: a, disableScrollIntoView: t } = m, n = p(), s = v(null), u = i === "info" ? /* @__PURE__ */ r(w, { "aria-hidden": !0 }) : i === "success" ? /* @__PURE__ */ r(x, { "aria-hidden": !0 }) : i === "warning" ? /* @__PURE__ */ r(y, { "aria-hidden": !0 }) : /* @__PURE__ */ r(C, { "aria-hidden": !0 });
15
15
  return g(() => {
16
- !a && s.current && (s.current.scrollIntoView({ behavior: "smooth" }), s.current.focus());
17
- }, [a]), /* @__PURE__ */ r("div", { className: N(e.root, h), children: /* @__PURE__ */ n(
16
+ !t && s.current && (s.current.scrollIntoView({ behavior: "smooth" }), s.current.focus());
17
+ }, [t]), /* @__PURE__ */ r("div", { className: N(e.root, h), children: /* @__PURE__ */ l(
18
18
  "div",
19
19
  {
20
20
  className: e.alert,
21
21
  role: "alert",
22
- "aria-labelledby": t,
22
+ "aria-labelledby": n,
23
23
  "data-variant": i,
24
24
  ref: s,
25
25
  tabIndex: -1,
26
26
  children: [
27
- /* @__PURE__ */ r("div", { className: e.header, children: /* @__PURE__ */ n("div", { className: e.iconLabelContainer, children: [
27
+ /* @__PURE__ */ r("div", { className: e.header, children: /* @__PURE__ */ l("div", { className: e.iconLabelContainer, children: [
28
28
  /* @__PURE__ */ r("div", { className: e.icon, children: f || u }),
29
- /* @__PURE__ */ r("h6", { id: t, children: m }),
30
- o && /* @__PURE__ */ r("div", { className: e.dismiss, children: /* @__PURE__ */ r(b, { variant: "tertiary", onClick: o, "aria-label": "Dismiss alert", children: /* @__PURE__ */ r(D, { width: 36, height: 36 }) }) })
29
+ /* @__PURE__ */ r("h6", { id: n, children: d }),
30
+ a && /* @__PURE__ */ r("div", { className: e.dismiss, children: /* @__PURE__ */ r(b, { variant: "tertiary", onClick: a, "aria-label": "Dismiss alert", children: /* @__PURE__ */ r(D, { width: 36, height: 36 }) }) })
31
31
  ] }) }),
32
- /* @__PURE__ */ r("div", { className: e.content, children: d })
32
+ o && /* @__PURE__ */ r("div", { className: e.content, children: o })
33
33
  ]
34
34
  }
35
35
  ) });
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","sources":["../../../../../src/components/Common/UI/Alert/Alert.tsx"],"sourcesContent":["import { useEffect, useId, useRef } from 'react'\nimport classNames from 'classnames'\nimport { ButtonIcon } from '../Button/ButtonIcon'\nimport { type AlertProps, AlertDefaults } from './AlertTypes'\nimport styles from './Alert.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport InfoIcon from '@/assets/icons/info.svg?react'\nimport SuccessIcon from '@/assets/icons/success_check.svg?react'\nimport WarningIcon from '@/assets/icons/warning.svg?react'\nimport ErrorIcon from '@/assets/icons/error.svg?react'\nimport CloseIcon from '@/assets/icons/close.svg?react'\n\nexport function Alert(rawProps: AlertProps) {\n const resolvedProps = applyMissingDefaults(rawProps, AlertDefaults)\n const { label, children, status, icon, className, onDismiss, disableScrollIntoView } =\n resolvedProps\n const id = useId()\n const alertRef = useRef<HTMLDivElement>(null)\n const defaultIcon =\n status === 'info' ? (\n <InfoIcon aria-hidden />\n ) : status === 'success' ? (\n <SuccessIcon aria-hidden />\n ) : status === 'warning' ? (\n <WarningIcon aria-hidden />\n ) : (\n <ErrorIcon aria-hidden />\n )\n\n useEffect(() => {\n if (!disableScrollIntoView && alertRef.current) {\n alertRef.current.scrollIntoView({ behavior: 'smooth' })\n alertRef.current.focus()\n }\n }, [disableScrollIntoView])\n\n return (\n <div className={classNames(styles.root, className)}>\n <div\n className={styles.alert}\n role=\"alert\"\n aria-labelledby={id}\n data-variant={status}\n ref={alertRef}\n tabIndex={-1}\n >\n <div className={styles.header}>\n <div className={styles.iconLabelContainer}>\n <div className={styles.icon}>{icon || defaultIcon}</div>\n <h6 id={id}>{label}</h6>\n {onDismiss && (\n <div className={styles.dismiss}>\n <ButtonIcon variant=\"tertiary\" onClick={onDismiss} aria-label=\"Dismiss alert\">\n <CloseIcon width={36} height={36} />\n </ButtonIcon>\n </div>\n )}\n </div>\n </div>\n <div className={styles.content}>{children}</div>\n </div>\n </div>\n )\n}\n"],"names":["Alert","rawProps","resolvedProps","applyMissingDefaults","AlertDefaults","label","children","status","icon","className","onDismiss","disableScrollIntoView","id","useId","alertRef","useRef","defaultIcon","jsx","InfoIcon","SuccessIcon","WarningIcon","ErrorIcon","useEffect","classNames","styles","jsxs","ButtonIcon","CloseIcon"],"mappings":";;;;;;;;;;;;AAYO,SAASA,EAAMC,GAAsB;AAC1C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAa,GAC5D,EAAE,OAAAC,GAAO,UAAAC,GAAU,QAAAC,GAAQ,MAAAC,GAAM,WAAAC,GAAW,WAAAC,GAAW,uBAAAC,MAC3DT,GACIU,IAAKC,EAAA,GACLC,IAAWC,EAAuB,IAAI,GACtCC,IACJT,MAAW,SACT,gBAAAU,EAACC,GAAA,EAAS,eAAW,GAAA,CAAC,IACpBX,MAAW,YACb,gBAAAU,EAACE,GAAA,EAAY,eAAW,GAAA,CAAC,IACvBZ,MAAW,YACb,gBAAAU,EAACG,GAAA,EAAY,eAAW,GAAA,CAAC,IAEzB,gBAAAH,EAACI,GAAA,EAAU,eAAW,GAAA,CAAC;AAG3B,SAAAC,EAAU,MAAM;AACd,IAAI,CAACX,KAAyBG,EAAS,YACrCA,EAAS,QAAQ,eAAe,EAAE,UAAU,UAAU,GACtDA,EAAS,QAAQ,MAAA;AAAA,EAErB,GAAG,CAACH,CAAqB,CAAC,qBAGvB,OAAA,EAAI,WAAWY,EAAWC,EAAO,MAAMf,CAAS,GAC/C,UAAA,gBAAAgB;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD,EAAO;AAAA,MAClB,MAAK;AAAA,MACL,mBAAiBZ;AAAA,MACjB,gBAAcL;AAAA,MACd,KAAKO;AAAA,MACL,UAAU;AAAA,MAEV,UAAA;AAAA,QAAA,gBAAAG,EAAC,OAAA,EAAI,WAAWO,EAAO,QACrB,4BAAC,OAAA,EAAI,WAAWA,EAAO,oBACrB,UAAA;AAAA,UAAA,gBAAAP,EAAC,OAAA,EAAI,WAAWO,EAAO,MAAO,eAAQR,GAAY;AAAA,UAClD,gBAAAC,EAAC,MAAA,EAAG,IAAAL,GAAS,UAAAP,EAAA,CAAM;AAAA,UAClBK,uBACE,OAAA,EAAI,WAAWc,EAAO,SACrB,UAAA,gBAAAP,EAACS,KAAW,SAAQ,YAAW,SAAShB,GAAW,cAAW,iBAC5D,UAAA,gBAAAO,EAACU,GAAA,EAAU,OAAO,IAAI,QAAQ,GAAA,CAAI,EAAA,CACpC,EAAA,CACF;AAAA,QAAA,EAAA,CAEJ,EAAA,CACF;AAAA,QACA,gBAAAV,EAAC,OAAA,EAAI,WAAWO,EAAO,SAAU,UAAAlB,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAE9C;AAEJ;"}
1
+ {"version":3,"file":"Alert.js","sources":["../../../../../src/components/Common/UI/Alert/Alert.tsx"],"sourcesContent":["import { useEffect, useId, useRef } from 'react'\nimport classNames from 'classnames'\nimport { ButtonIcon } from '../Button/ButtonIcon'\nimport { type AlertProps, AlertDefaults } from './AlertTypes'\nimport styles from './Alert.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport InfoIcon from '@/assets/icons/info.svg?react'\nimport SuccessIcon from '@/assets/icons/success_check.svg?react'\nimport WarningIcon from '@/assets/icons/warning.svg?react'\nimport ErrorIcon from '@/assets/icons/error.svg?react'\nimport CloseIcon from '@/assets/icons/close.svg?react'\n\nexport function Alert(rawProps: AlertProps) {\n const resolvedProps = applyMissingDefaults(rawProps, AlertDefaults)\n const { label, children, status, icon, className, onDismiss, disableScrollIntoView } =\n resolvedProps\n const id = useId()\n const alertRef = useRef<HTMLDivElement>(null)\n const defaultIcon =\n status === 'info' ? (\n <InfoIcon aria-hidden />\n ) : status === 'success' ? (\n <SuccessIcon aria-hidden />\n ) : status === 'warning' ? (\n <WarningIcon aria-hidden />\n ) : (\n <ErrorIcon aria-hidden />\n )\n\n useEffect(() => {\n if (!disableScrollIntoView && alertRef.current) {\n alertRef.current.scrollIntoView({ behavior: 'smooth' })\n alertRef.current.focus()\n }\n }, [disableScrollIntoView])\n\n return (\n <div className={classNames(styles.root, className)}>\n <div\n className={styles.alert}\n role=\"alert\"\n aria-labelledby={id}\n data-variant={status}\n ref={alertRef}\n tabIndex={-1}\n >\n <div className={styles.header}>\n <div className={styles.iconLabelContainer}>\n <div className={styles.icon}>{icon || defaultIcon}</div>\n <h6 id={id}>{label}</h6>\n {onDismiss && (\n <div className={styles.dismiss}>\n <ButtonIcon variant=\"tertiary\" onClick={onDismiss} aria-label=\"Dismiss alert\">\n <CloseIcon width={36} height={36} />\n </ButtonIcon>\n </div>\n )}\n </div>\n </div>\n {children && <div className={styles.content}>{children}</div>}\n </div>\n </div>\n )\n}\n"],"names":["Alert","rawProps","resolvedProps","applyMissingDefaults","AlertDefaults","label","children","status","icon","className","onDismiss","disableScrollIntoView","id","useId","alertRef","useRef","defaultIcon","jsx","InfoIcon","SuccessIcon","WarningIcon","ErrorIcon","useEffect","classNames","styles","jsxs","ButtonIcon","CloseIcon"],"mappings":";;;;;;;;;;;;AAYO,SAASA,EAAMC,GAAsB;AAC1C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAa,GAC5D,EAAE,OAAAC,GAAO,UAAAC,GAAU,QAAAC,GAAQ,MAAAC,GAAM,WAAAC,GAAW,WAAAC,GAAW,uBAAAC,MAC3DT,GACIU,IAAKC,EAAA,GACLC,IAAWC,EAAuB,IAAI,GACtCC,IACJT,MAAW,SACT,gBAAAU,EAACC,GAAA,EAAS,eAAW,GAAA,CAAC,IACpBX,MAAW,YACb,gBAAAU,EAACE,GAAA,EAAY,eAAW,GAAA,CAAC,IACvBZ,MAAW,YACb,gBAAAU,EAACG,GAAA,EAAY,eAAW,GAAA,CAAC,IAEzB,gBAAAH,EAACI,GAAA,EAAU,eAAW,GAAA,CAAC;AAG3B,SAAAC,EAAU,MAAM;AACd,IAAI,CAACX,KAAyBG,EAAS,YACrCA,EAAS,QAAQ,eAAe,EAAE,UAAU,UAAU,GACtDA,EAAS,QAAQ,MAAA;AAAA,EAErB,GAAG,CAACH,CAAqB,CAAC,qBAGvB,OAAA,EAAI,WAAWY,EAAWC,EAAO,MAAMf,CAAS,GAC/C,UAAA,gBAAAgB;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD,EAAO;AAAA,MAClB,MAAK;AAAA,MACL,mBAAiBZ;AAAA,MACjB,gBAAcL;AAAA,MACd,KAAKO;AAAA,MACL,UAAU;AAAA,MAEV,UAAA;AAAA,QAAA,gBAAAG,EAAC,OAAA,EAAI,WAAWO,EAAO,QACrB,4BAAC,OAAA,EAAI,WAAWA,EAAO,oBACrB,UAAA;AAAA,UAAA,gBAAAP,EAAC,OAAA,EAAI,WAAWO,EAAO,MAAO,eAAQR,GAAY;AAAA,UAClD,gBAAAC,EAAC,MAAA,EAAG,IAAAL,GAAS,UAAAP,EAAA,CAAM;AAAA,UAClBK,uBACE,OAAA,EAAI,WAAWc,EAAO,SACrB,UAAA,gBAAAP,EAACS,KAAW,SAAQ,YAAW,SAAShB,GAAW,cAAW,iBAC5D,UAAA,gBAAAO,EAACU,GAAA,EAAU,OAAO,IAAI,QAAQ,GAAA,CAAI,EAAA,CACpC,EAAA,CACF;AAAA,QAAA,EAAA,CAEJ,EAAA,CACF;AAAA,QACCrB,KAAY,gBAAAW,EAAC,OAAA,EAAI,WAAWO,EAAO,SAAU,UAAAlB,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAE3D;AAEJ;"}
@@ -1,20 +1,20 @@
1
- const e = "_root_virge_1", o = "_alert_virge_4", n = "_header_virge_18", t = "_iconLabelContainer_virge_23", i = "_icon_virge_23", _ = "_content_virge_44", r = "_dismiss_virge_53", s = {
2
- root: e,
3
- alert: o,
4
- header: n,
5
- iconLabelContainer: t,
6
- icon: i,
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 = {
2
+ root: o,
3
+ alert: n,
4
+ header: t,
5
+ iconLabelContainer: c,
6
+ icon: e,
7
7
  content: _,
8
- dismiss: r
8
+ dismiss: s
9
9
  };
10
10
  export {
11
- o as alert,
11
+ n as alert,
12
12
  _ as content,
13
- s as default,
14
- r as dismiss,
15
- n as header,
16
- i as icon,
17
- t as iconLabelContainer,
18
- e as root
13
+ i as default,
14
+ s as dismiss,
15
+ t as header,
16
+ e as icon,
17
+ c as iconLabelContainer,
18
+ o as root
19
19
  };
20
20
  //# sourceMappingURL=Alert.module.scss.js.map
@@ -1,4 +1,4 @@
1
- const e = "_badge_1h2ej_1", a = {
1
+ const e = "_badge_6p7jj_1", a = {
2
2
  badge: e
3
3
  };
4
4
  export {
@@ -1,13 +1,13 @@
1
- const t = "_banner_tub6c_1", e = "_header_tub6c_12", n = "_title_tub6c_19", c = "_content_tub6c_25", _ = {
1
+ const t = "_banner_igmbf_1", e = "_header_igmbf_12", n = "_title_igmbf_19", _ = "_content_igmbf_25", o = {
2
2
  banner: t,
3
3
  header: e,
4
4
  title: n,
5
- content: c
5
+ content: _
6
6
  };
7
7
  export {
8
8
  t as banner,
9
- c as content,
10
- _ as default,
9
+ _ as content,
10
+ o as default,
11
11
  e as header,
12
12
  n as title
13
13
  };
@@ -1,12 +1,12 @@
1
- const o = "_root_wz8lv_1", s = "_icons_wz8lv_66", t = "_popover_wz8lv_76", _ = {
1
+ const o = "_root_1ikr6_1", r = "_icons_1ikr6_67", s = "_popover_1ikr6_77", t = {
2
2
  root: o,
3
- icons: s,
4
- popover: t
3
+ icons: r,
4
+ popover: s
5
5
  };
6
6
  export {
7
- _ as default,
8
- s as icons,
9
- t as popover,
7
+ t as default,
8
+ r as icons,
9
+ s as popover,
10
10
  o as root
11
11
  };
12
12
  //# sourceMappingURL=ComboBox.module.scss.js.map
@@ -0,0 +1,2 @@
1
+ import { FileInputProps } from './FileInputTypes';
2
+ export declare function FileInput(rawProps: FileInputProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,150 @@
1
+ import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
+ import { DropZone as C, FileTrigger as E, Button as G } from "react-aria-components";
3
+ import q from "classnames";
4
+ import { useTranslation as A, Trans as J } from "react-i18next";
5
+ import { useFieldIds as U } from "../hooks/useFieldIds.js";
6
+ import { FileInputDefaults as K } from "./FileInputTypes.js";
7
+ import n from "./FileInput.module.scss.js";
8
+ import { applyMissingDefaults as L } from "../../../../helpers/applyMissingDefaults.js";
9
+ import { FieldLayout as O } from "../../FieldLayout/FieldLayout.js";
10
+ import { ButtonIcon as R } from "../Button/ButtonIcon.js";
11
+ import W from "../../../../assets/icons/icon-trashcan.svg.js";
12
+ import Z from "../../../../assets/icons/icon-file-outline.svg.js";
13
+ import $ from "../../../../assets/icons/icon-file-pdf.svg.js";
14
+ import H from "../../../../assets/icons/icon-file-png.svg.js";
15
+ import V from "../../../../assets/icons/icon-file-jpg.svg.js";
16
+ import { Flex as y } from "../../Flex/Flex.js";
17
+ function Q(i) {
18
+ return i === "application/pdf" ? $ : i === "image/png" ? H : i === "image/jpeg" || i === "image/jpg" ? V : Z;
19
+ }
20
+ function X(i) {
21
+ return i.kind === "file";
22
+ }
23
+ function Y(i) {
24
+ if (i === 0) return "0 Bytes";
25
+ const r = 1024, d = ["Bytes", "KB", "MB", "GB"], o = Math.floor(Math.log(i) / Math.log(r));
26
+ return `${parseFloat((i / Math.pow(r, o)).toFixed(0))} ${d[o]}`;
27
+ }
28
+ const _ = {
29
+ "image/jpeg": "JPG",
30
+ "image/jpg": "JPG",
31
+ "image/png": "PNG",
32
+ "application/pdf": "PDF"
33
+ };
34
+ function h(i) {
35
+ if (!i || i.length === 0 || i.includes("*/*")) return null;
36
+ const r = i.map((o) => o.startsWith(".") ? o.slice(1).toUpperCase() : _[o]).filter(Boolean);
37
+ return r.length === 0 ? null : [...new Set(r)].join(", ");
38
+ }
39
+ function ge(i) {
40
+ const { t: r } = A("common"), d = L(i, K), {
41
+ label: o,
42
+ description: s,
43
+ errorMessage: g,
44
+ isRequired: B,
45
+ isInvalid: D,
46
+ isDisabled: p,
47
+ id: T,
48
+ value: a,
49
+ onChange: u,
50
+ onBlur: b,
51
+ accept: l,
52
+ className: x,
53
+ "aria-describedby": S
54
+ } = d, { inputId: I, errorMessageId: P, descriptionId: F, ariaDescribedBy: M } = U({
55
+ inputId: T,
56
+ errorMessage: g,
57
+ description: s,
58
+ ariaDescribedBy: S
59
+ }), j = (t) => {
60
+ const c = t?.[0] ?? null;
61
+ u(c);
62
+ }, z = async (t) => {
63
+ const c = t.items.find(X);
64
+ if (c) {
65
+ const N = await c.getFile();
66
+ u(N);
67
+ }
68
+ }, k = (t) => (l ?? ["*/*"]).some((f) => f === "*/*" ? !0 : f.startsWith(".") ? t.has("application/octet-stream") || t.has("Files") : t.has(f)) ? "copy" : "cancel", w = () => {
69
+ u(null);
70
+ }, v = a ? Q(a.type) : null;
71
+ return /* @__PURE__ */ e(
72
+ O,
73
+ {
74
+ label: o,
75
+ errorMessage: g,
76
+ isRequired: B,
77
+ htmlFor: I,
78
+ errorMessageId: P,
79
+ descriptionId: F,
80
+ className: x,
81
+ shouldVisuallyHideLabel: !0,
82
+ withErrorIcon: !1,
83
+ children: /* @__PURE__ */ e(
84
+ "div",
85
+ {
86
+ className: n.root,
87
+ "data-disabled": p || void 0,
88
+ "data-invalid": D || void 0,
89
+ children: a ? /* @__PURE__ */ e(
90
+ "div",
91
+ {
92
+ className: q(n.filePreview, { [n.disabled]: p }),
93
+ children: /* @__PURE__ */ m(y, { alignItems: "center", gap: 12, children: [
94
+ /* @__PURE__ */ e("div", { className: n.fileIcon, children: v && /* @__PURE__ */ e(v, { "aria-hidden": "true" }) }),
95
+ /* @__PURE__ */ e("div", { className: n.fileInfo, children: /* @__PURE__ */ m(y, { flexDirection: "column", gap: 0, children: [
96
+ /* @__PURE__ */ e("span", { className: n.fileName, children: a.name }),
97
+ /* @__PURE__ */ e("span", { className: n.fileSize, children: Y(a.size) })
98
+ ] }) }),
99
+ /* @__PURE__ */ e(
100
+ R,
101
+ {
102
+ "aria-label": r("fileInput.removeFile"),
103
+ onClick: w,
104
+ isDisabled: p,
105
+ children: /* @__PURE__ */ e(W, { "aria-hidden": "true", className: n.removeButton })
106
+ }
107
+ )
108
+ ] })
109
+ }
110
+ ) : /* @__PURE__ */ e(
111
+ C,
112
+ {
113
+ onDrop: z,
114
+ getDropOperation: k,
115
+ className: n.dropZone,
116
+ children: /* @__PURE__ */ e(E, { onSelect: j, acceptedFileTypes: l, children: /* @__PURE__ */ e(
117
+ G,
118
+ {
119
+ id: I,
120
+ isDisabled: p,
121
+ "aria-describedby": M,
122
+ onBlur: b,
123
+ className: n.trigger,
124
+ children: /* @__PURE__ */ m("span", { className: n.triggerContent, children: [
125
+ /* @__PURE__ */ e("span", { className: n.triggerText, children: /* @__PURE__ */ e(
126
+ J,
127
+ {
128
+ i18nKey: "fileInput.uploadInstructions",
129
+ ns: "common",
130
+ components: { clickToUpload: /* @__PURE__ */ e("span", { className: n.clickToUpload }) }
131
+ }
132
+ ) }),
133
+ (h(l) || s) && /* @__PURE__ */ m("span", { className: n.hintContainer, children: [
134
+ h(l) && /* @__PURE__ */ e("span", { className: n.hint, children: r("fileInput.acceptedTypes", { types: h(l) }) }),
135
+ s && /* @__PURE__ */ e("span", { id: F, className: n.hint, children: s })
136
+ ] })
137
+ ] })
138
+ }
139
+ ) })
140
+ }
141
+ )
142
+ }
143
+ )
144
+ }
145
+ );
146
+ }
147
+ export {
148
+ ge as FileInput
149
+ };
150
+ //# sourceMappingURL=FileInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileInput.js","sources":["../../../../../src/components/Common/UI/FileInput/FileInput.tsx"],"sourcesContent":["import {\n FileTrigger,\n Button as AriaButton,\n DropZone,\n type DropItem,\n type FileDropItem,\n} from 'react-aria-components'\nimport classNames from 'classnames'\nimport { Trans, useTranslation } from 'react-i18next'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport type { FileInputProps } from './FileInputTypes'\nimport { FileInputDefaults } from './FileInputTypes'\nimport styles from './FileInput.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { FieldLayout } from '@/components/Common/FieldLayout'\nimport { Flex } from '@/components/Common/Flex'\nimport { ButtonIcon } from '@/components/Common/UI/Button/ButtonIcon'\nimport TrashCanIcon from '@/assets/icons/icon-trashcan.svg?react'\nimport FileIcon from '@/assets/icons/icon-file-outline.svg?react'\nimport PdfIcon from '@/assets/icons/icon-file-pdf.svg?react'\nimport PngIcon from '@/assets/icons/icon-file-png.svg?react'\nimport JpgIcon from '@/assets/icons/icon-file-jpg.svg?react'\n\nfunction getFileIcon(mimeType: string) {\n if (mimeType === 'application/pdf') {\n return PdfIcon\n }\n\n if (mimeType === 'image/png') {\n return PngIcon\n }\n\n if (mimeType === 'image/jpeg' || mimeType === 'image/jpg') {\n return JpgIcon\n }\n\n return FileIcon\n}\n\nfunction isFileDropItem(item: DropItem): item is FileDropItem {\n return item.kind === 'file'\n}\n\nfunction formatFileSize(bytes: number): string {\n if (bytes === 0) return '0 Bytes'\n const k = 1024\n const sizes = ['Bytes', 'KB', 'MB', 'GB'] as const\n const i = Math.floor(Math.log(bytes) / Math.log(k))\n const size = parseFloat((bytes / Math.pow(k, i)).toFixed(0))\n return `${size} ${sizes[i]}`\n}\n\nconst mimeToExtension: Record<string, string> = {\n 'image/jpeg': 'JPG',\n 'image/jpg': 'JPG',\n 'image/png': 'PNG',\n 'application/pdf': 'PDF',\n}\n\nfunction formatAcceptedTypes(accept: string[] | undefined): string | null {\n if (!accept || accept.length === 0 || accept.includes('*/*')) return null\n\n const extensions = accept\n .map(type => {\n if (type.startsWith('.')) {\n return type.slice(1).toUpperCase()\n }\n return mimeToExtension[type]\n })\n .filter(Boolean)\n\n if (extensions.length === 0) return null\n\n const uniqueExtensions = [...new Set(extensions)]\n return uniqueExtensions.join(', ')\n}\n\nexport function FileInput(rawProps: FileInputProps) {\n const { t } = useTranslation('common')\n const resolvedProps = applyMissingDefaults(rawProps, FileInputDefaults)\n const {\n label,\n description,\n errorMessage,\n isRequired,\n isInvalid,\n isDisabled,\n id,\n value,\n onChange,\n onBlur,\n accept,\n className,\n 'aria-describedby': ariaDescribedByFromProps,\n } = resolvedProps\n\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n ariaDescribedBy: ariaDescribedByFromProps,\n })\n\n const handleSelect = (files: FileList | null) => {\n const file = files?.[0] ?? null\n onChange(file)\n }\n\n const handleDrop = async (e: { items: DropItem[] }) => {\n const fileItem = e.items.find(isFileDropItem)\n if (fileItem) {\n const file = await fileItem.getFile()\n onChange(file)\n }\n }\n\n const getDropOperation = (types: { has: (type: string) => boolean }) => {\n const acceptedTypes = accept ?? ['*/*']\n const hasAcceptedType = acceptedTypes.some(type => {\n if (type === '*/*') return true\n if (type.startsWith('.')) {\n return types.has('application/octet-stream') || types.has('Files')\n }\n return types.has(type)\n })\n return hasAcceptedType ? 'copy' : 'cancel'\n }\n\n const handleRemove = () => {\n onChange(null)\n }\n\n const FileTypeIcon = value ? getFileIcon(value.type) : null\n\n return (\n <FieldLayout\n label={label}\n errorMessage={errorMessage}\n isRequired={isRequired}\n htmlFor={inputId}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n className={className}\n shouldVisuallyHideLabel\n withErrorIcon={false}\n >\n <div\n className={styles.root}\n data-disabled={isDisabled || undefined}\n data-invalid={isInvalid || undefined}\n >\n {value ? (\n <div\n className={classNames(styles.filePreview, { [styles.disabled as string]: isDisabled })}\n >\n <Flex alignItems=\"center\" gap={12}>\n <div className={styles.fileIcon}>\n {FileTypeIcon && <FileTypeIcon aria-hidden=\"true\" />}\n </div>\n <div className={styles.fileInfo}>\n <Flex flexDirection=\"column\" gap={0}>\n <span className={styles.fileName}>{value.name}</span>\n <span className={styles.fileSize}>{formatFileSize(value.size)}</span>\n </Flex>\n </div>\n <ButtonIcon\n aria-label={t('fileInput.removeFile')}\n onClick={handleRemove}\n isDisabled={isDisabled}\n >\n <TrashCanIcon aria-hidden=\"true\" className={styles.removeButton} />\n </ButtonIcon>\n </Flex>\n </div>\n ) : (\n <DropZone\n onDrop={handleDrop}\n getDropOperation={getDropOperation}\n className={styles.dropZone}\n >\n <FileTrigger onSelect={handleSelect} acceptedFileTypes={accept}>\n <AriaButton\n id={inputId}\n isDisabled={isDisabled}\n aria-describedby={ariaDescribedBy}\n onBlur={onBlur}\n className={styles.trigger}\n >\n <span className={styles.triggerContent}>\n <span className={styles.triggerText}>\n <Trans\n i18nKey=\"fileInput.uploadInstructions\"\n ns=\"common\"\n components={{ clickToUpload: <span className={styles.clickToUpload} /> }}\n />\n </span>\n {(formatAcceptedTypes(accept) || description) && (\n <span className={styles.hintContainer}>\n {formatAcceptedTypes(accept) && (\n <span className={styles.hint}>\n {t('fileInput.acceptedTypes', { types: formatAcceptedTypes(accept) })}\n </span>\n )}\n {description && (\n <span id={descriptionId} className={styles.hint}>\n {description}\n </span>\n )}\n </span>\n )}\n </span>\n </AriaButton>\n </FileTrigger>\n </DropZone>\n )}\n </div>\n </FieldLayout>\n )\n}\n"],"names":["getFileIcon","mimeType","PdfIcon","PngIcon","JpgIcon","FileIcon","isFileDropItem","item","formatFileSize","bytes","k","sizes","i","mimeToExtension","formatAcceptedTypes","accept","extensions","type","FileInput","rawProps","t","useTranslation","resolvedProps","applyMissingDefaults","FileInputDefaults","label","description","errorMessage","isRequired","isInvalid","isDisabled","id","value","onChange","onBlur","className","ariaDescribedByFromProps","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","handleSelect","files","file","handleDrop","e","fileItem","getDropOperation","types","handleRemove","FileTypeIcon","jsx","FieldLayout","styles","classNames","jsxs","Flex","ButtonIcon","TrashCanIcon","DropZone","FileTrigger","AriaButton","Trans"],"mappings":"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"}
@@ -0,0 +1,36 @@
1
+ const t = "_root_wtxia_1", e = "_dropZone_wtxia_5", i = "_trigger_wtxia_12", o = "_triggerContent_wtxia_34", n = "_triggerText_wtxia_41", _ = "_clickToUpload_wtxia_45", r = "_hintContainer_wtxia_50", a = "_hint_wtxia_50", l = "_filePreview_wtxia_61", c = "_disabled_wtxia_64", s = "_fileIcon_wtxia_69", f = "_fileInfo_wtxia_81", x = "_fileName_wtxia_85", g = "_fileSize_wtxia_95", w = "_removeButton_wtxia_100", d = {
2
+ root: t,
3
+ dropZone: e,
4
+ trigger: i,
5
+ triggerContent: o,
6
+ triggerText: n,
7
+ clickToUpload: _,
8
+ hintContainer: r,
9
+ hint: a,
10
+ filePreview: l,
11
+ disabled: c,
12
+ fileIcon: s,
13
+ fileInfo: f,
14
+ fileName: x,
15
+ fileSize: g,
16
+ removeButton: w
17
+ };
18
+ export {
19
+ _ as clickToUpload,
20
+ d as default,
21
+ c as disabled,
22
+ e as dropZone,
23
+ s as fileIcon,
24
+ f as fileInfo,
25
+ x as fileName,
26
+ l as filePreview,
27
+ g as fileSize,
28
+ a as hint,
29
+ r as hintContainer,
30
+ w as removeButton,
31
+ t as root,
32
+ i as trigger,
33
+ o as triggerContent,
34
+ n as triggerText
35
+ };
36
+ //# sourceMappingURL=FileInput.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileInput.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,45 @@
1
+ import { SharedFieldLayoutProps } from '../../FieldLayout/FieldLayoutTypes';
2
+ export interface FileInputProps extends Omit<SharedFieldLayoutProps, 'shouldVisuallyHideLabel'> {
3
+ /**
4
+ * ID for the file input element
5
+ */
6
+ id?: string;
7
+ /**
8
+ * Currently selected file
9
+ */
10
+ value: File | null;
11
+ /**
12
+ * Callback when file selection changes
13
+ */
14
+ onChange: (file: File | null) => void;
15
+ /**
16
+ * Handler for blur events
17
+ */
18
+ onBlur?: () => void;
19
+ /**
20
+ * Accepted file types (MIME types or extensions)
21
+ * @example ['image/jpeg', 'image/png', 'application/pdf']
22
+ * @example ['.jpg', '.png', '.pdf']
23
+ */
24
+ accept?: string[];
25
+ /**
26
+ * Indicates that the field has an error
27
+ */
28
+ isInvalid?: boolean;
29
+ /**
30
+ * Disables the input and prevents interaction
31
+ */
32
+ isDisabled?: boolean;
33
+ /**
34
+ * Additional CSS class name
35
+ */
36
+ className?: string;
37
+ /**
38
+ * Aria-describedby attribute for accessibility
39
+ */
40
+ 'aria-describedby'?: string;
41
+ }
42
+ export declare const FileInputDefaults: {
43
+ readonly isInvalid: false;
44
+ readonly isDisabled: false;
45
+ };
@@ -0,0 +1,8 @@
1
+ const s = {
2
+ isInvalid: !1,
3
+ isDisabled: !1
4
+ };
5
+ export {
6
+ s as FileInputDefaults
7
+ };
8
+ //# sourceMappingURL=FileInputTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileInputTypes.js","sources":["../../../../../src/components/Common/UI/FileInput/FileInputTypes.ts"],"sourcesContent":["import type { SharedFieldLayoutProps } from '@/components/Common/FieldLayout/FieldLayoutTypes'\n\nexport interface FileInputProps extends Omit<SharedFieldLayoutProps, 'shouldVisuallyHideLabel'> {\n /**\n * ID for the file input element\n */\n id?: string\n /**\n * Currently selected file\n */\n value: File | null\n /**\n * Callback when file selection changes\n */\n onChange: (file: File | null) => void\n /**\n * Handler for blur events\n */\n onBlur?: () => void\n /**\n * Accepted file types (MIME types or extensions)\n * @example ['image/jpeg', 'image/png', 'application/pdf']\n * @example ['.jpg', '.png', '.pdf']\n */\n accept?: string[]\n /**\n * Indicates that the field has an error\n */\n isInvalid?: boolean\n /**\n * Disables the input and prevents interaction\n */\n isDisabled?: boolean\n /**\n * Additional CSS class name\n */\n className?: string\n /**\n * Aria-describedby attribute for accessibility\n */\n 'aria-describedby'?: string\n}\n\nexport const FileInputDefaults = {\n isInvalid: false,\n isDisabled: false,\n} as const satisfies Partial<FileInputProps>\n"],"names":["FileInputDefaults"],"mappings":"AA2CO,MAAMA,IAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,YAAY;AACd;"}
@@ -0,0 +1,4 @@
1
+ import "./types/i18next.d.ts"
2
+ export { FileInput } from './FileInput';
3
+ export type { FileInputProps } from './FileInputTypes';
4
+ export { FileInputDefaults } from './FileInputTypes';
@@ -1,9 +1,9 @@
1
- const n = "_container_6gzur_1", t = "_hasAdornmentStart_6gzur_10", r = "_hasAdornmentEnd_6gzur_14", o = "_invalidIcon_6gzur_47", a = "_inputContainer_6gzur_62", d = "_adornmentStart_6gzur_78", e = "_adornmentEnd_6gzur_83", _ = {
1
+ const n = "_container_mov6t_1", t = "_hasAdornmentStart_mov6t_10", o = "_hasAdornmentEnd_mov6t_14", a = "_invalidIcon_mov6t_48", r = "_inputContainer_mov6t_63", d = "_adornmentStart_mov6t_79", e = "_adornmentEnd_mov6t_84", _ = {
2
2
  container: n,
3
3
  hasAdornmentStart: t,
4
- hasAdornmentEnd: r,
5
- invalidIcon: o,
6
- inputContainer: a,
4
+ hasAdornmentEnd: o,
5
+ invalidIcon: a,
6
+ inputContainer: r,
7
7
  adornmentStart: d,
8
8
  adornmentEnd: e
9
9
  };
@@ -12,9 +12,9 @@ export {
12
12
  d as adornmentStart,
13
13
  n as container,
14
14
  _ as default,
15
- r as hasAdornmentEnd,
15
+ o as hasAdornmentEnd,
16
16
  t as hasAdornmentStart,
17
- a as inputContainer,
18
- o as invalidIcon
17
+ r as inputContainer,
18
+ a as invalidIcon
19
19
  };
20
20
  //# sourceMappingURL=Input.module.scss.js.map
@@ -1,4 +1,4 @@
1
- const t = "_list_1tff9_1", s = "_item_1tff9_17", e = {
1
+ const t = "_list_b105q_1", s = "_item_b105q_10", e = {
2
2
  list: t,
3
3
  item: s
4
4
  };