@gusto/embedded-react-sdk 0.15.0 → 0.17.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 (329) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/components/Base/Base.js +4 -4
  3. package/dist/components/Common/EmptyData/EmptyData.js +10 -10
  4. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  5. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +5 -3
  6. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  7. package/dist/components/Common/FieldDescription/FieldDescription.module.scss.js +1 -1
  8. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.d.ts +2 -0
  9. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +54 -0
  10. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -0
  11. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes.d.ts +44 -0
  12. package/dist/components/Common/FlowBreadcrumbs/index.d.ts +3 -0
  13. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -12
  14. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  15. package/dist/components/Common/SignatureForm/SignatureFormActions.js +2 -3
  16. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  17. package/dist/components/Common/SignatureForm/SignatureFormFields.js +6 -8
  18. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  19. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.d.ts +2 -0
  20. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +52 -0
  21. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js.map +1 -0
  22. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.module.scss.js +16 -0
  23. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.module.scss.js.map +1 -0
  24. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +41 -0
  25. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js +8 -0
  26. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js.map +1 -0
  27. package/dist/components/Common/UI/Breadcrumbs/index.d.ts +3 -0
  28. package/dist/components/Common/UI/DescriptionList/DescriptionList.d.ts +2 -0
  29. package/dist/components/Common/UI/DescriptionList/DescriptionList.js +16 -0
  30. package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -0
  31. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +10 -0
  32. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js.map +1 -0
  33. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +10 -0
  34. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js +5 -0
  35. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -0
  36. package/dist/components/Common/UI/DescriptionList/index.d.ts +3 -0
  37. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
  38. package/dist/components/Company/AssignSignatory/AssignSignatory.js +5 -7
  39. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  40. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -4
  41. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  42. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -3
  43. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  44. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -8
  45. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  46. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +15 -16
  47. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  48. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -5
  49. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  50. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -3
  51. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  52. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +9 -11
  53. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  54. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +9 -10
  55. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  56. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -5
  57. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  58. package/dist/components/Company/AssignSignatory/TitleSelect.js +3 -5
  59. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  60. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -7
  61. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  62. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -9
  63. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  64. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +4 -6
  65. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  66. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -5
  67. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  68. package/dist/components/Company/BankAccount/BankAccountList/AccountView.js +22 -17
  69. package/dist/components/Company/BankAccount/BankAccountList/AccountView.js.map +1 -1
  70. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +2 -3
  71. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  72. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +6 -7
  73. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  74. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -6
  75. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  76. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -3
  77. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  78. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +8 -10
  79. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  80. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -5
  81. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  82. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +7 -9
  83. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  84. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -5
  85. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  86. package/dist/components/Company/FederalTaxes/Actions.js +6 -7
  87. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  88. package/dist/components/Company/FederalTaxes/FederalTaxes.js +2 -4
  89. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  90. package/dist/components/Company/FederalTaxes/Form.js +4 -4
  91. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +9 -10
  92. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  93. package/dist/components/Company/Industry/Actions.js +7 -8
  94. package/dist/components/Company/Industry/Actions.js.map +1 -1
  95. package/dist/components/Company/Industry/Context.js +7 -8
  96. package/dist/components/Company/Industry/Context.js.map +1 -1
  97. package/dist/components/Company/Industry/Edit.js +2 -4
  98. package/dist/components/Company/Industry/Edit.js.map +1 -1
  99. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -7
  100. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  101. package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
  102. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  103. package/dist/components/Company/Locations/LocationForm/LocationForm.js +8 -10
  104. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  105. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -5
  106. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  107. package/dist/components/Company/Locations/LocationsList/Actions.js +2 -3
  108. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  109. package/dist/components/Company/Locations/LocationsList/List.js +9 -9
  110. package/dist/components/Company/Locations/LocationsList/LocationsList.js +2 -3
  111. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  112. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -5
  113. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  114. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js +10 -10
  115. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
  116. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js +16 -10
  117. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  118. package/dist/components/Company/OnboardingOverview/Completed.js +2 -3
  119. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  120. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -7
  121. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  122. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -8
  123. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  124. package/dist/components/Company/OnboardingOverview/context.js +4 -5
  125. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  126. package/dist/components/Company/PaySchedule/PaySchedule.js +2 -3
  127. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  128. package/dist/components/Company/PaySchedule/_parts/Actions.js +2 -3
  129. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  130. package/dist/components/Company/PaySchedule/_parts/Edit.js +17 -17
  131. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  132. package/dist/components/Company/PaySchedule/_parts/Head.js +7 -8
  133. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  134. package/dist/components/Company/PaySchedule/_parts/List.js +8 -8
  135. package/dist/components/Company/PaySchedule/usePaySchedule.js +6 -7
  136. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  137. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -3
  138. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  139. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -5
  140. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  141. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -3
  142. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  143. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +2 -3
  144. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  145. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -5
  146. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  147. package/dist/components/Contractor/Address/Address.js +3 -5
  148. package/dist/components/Contractor/Address/Address.js.map +1 -1
  149. package/dist/components/Contractor/Address/Form.js +7 -9
  150. package/dist/components/Contractor/Address/Form.js.map +1 -1
  151. package/dist/components/Contractor/Address/useAddress.js +6 -7
  152. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  153. package/dist/components/Contractor/ContractorList/index.js +4 -4
  154. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js +37 -37
  155. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  156. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -12
  157. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  158. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -4
  159. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  160. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  161. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -4
  162. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  163. package/dist/components/Contractor/Submit/Submit.js +19 -20
  164. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  165. package/dist/components/Employee/Compensation/Actions.js +12 -13
  166. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  167. package/dist/components/Employee/Compensation/Edit.js +14 -14
  168. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +9 -10
  169. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  170. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +31 -32
  171. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  172. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +8 -8
  173. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +10 -10
  174. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +22 -23
  175. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js.map +1 -1
  176. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +2 -3
  177. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  178. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +2 -4
  179. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  180. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -4
  181. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  182. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -5
  183. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  184. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +2 -4
  185. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  186. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -5
  187. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  188. package/dist/components/Employee/EmployeeList/Actions.js +6 -7
  189. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  190. package/dist/components/Employee/EmployeeList/EmployeeList.js +2 -4
  191. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  192. package/dist/components/Employee/EmployeeList/Head.js +2 -3
  193. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  194. package/dist/components/Employee/EmployeeList/List.js +10 -10
  195. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -5
  196. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  197. package/dist/components/Employee/FederalTaxes/Actions.js +5 -6
  198. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  199. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -11
  200. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  201. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +4 -5
  202. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  203. package/dist/components/Employee/Landing/Landing.js +2 -3
  204. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  205. package/dist/components/Employee/PaymentMethod/Actions.js +5 -6
  206. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  207. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +3 -5
  208. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  209. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +4 -4
  210. package/dist/components/Employee/PaymentMethod/PaymentMethod.d.ts +1 -0
  211. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +79 -78
  212. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  213. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +11 -13
  214. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  215. package/dist/components/Employee/PaymentMethod/Split.js +7 -7
  216. package/dist/components/Employee/PaymentMethod/usePaymentMethod.d.ts +1 -0
  217. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -7
  218. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  219. package/dist/components/Employee/Profile/Actions.js +5 -6
  220. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  221. package/dist/components/Employee/Profile/AdminPersonalDetails.js +6 -7
  222. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  223. package/dist/components/Employee/Profile/HomeAddress.js +5 -6
  224. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  225. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +23 -25
  226. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  227. package/dist/components/Employee/Profile/useProfile.js +4 -5
  228. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  229. package/dist/components/Employee/StateTaxes/Actions.js +5 -6
  230. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  231. package/dist/components/Employee/StateTaxes/useStateTaxes.js +4 -5
  232. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  233. package/dist/components/Employee/Taxes/Actions.js +6 -7
  234. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  235. package/dist/components/Employee/Taxes/FederalForm.js +10 -11
  236. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  237. package/dist/components/Employee/Taxes/useTaxes.js +4 -5
  238. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  239. package/dist/components/Flow/Flow.js +45 -24
  240. package/dist/components/Flow/Flow.js.map +1 -1
  241. package/dist/components/Flow/useFlow.d.ts +10 -1
  242. package/dist/components/Flow/useFlow.js.map +1 -1
  243. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.d.ts +1 -1
  244. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js +16 -16
  245. package/dist/components/Payroll/PayrollBlocker/PayrollBlocker.js.map +1 -1
  246. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +20 -21
  247. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  248. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +15 -16
  249. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js.map +1 -1
  250. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +97 -82
  251. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  252. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +5 -1
  253. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +88 -84
  254. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  255. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +39 -40
  256. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  257. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +27 -27
  258. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +6 -6
  259. package/dist/components/Payroll/PayrollFlow/PayrollFlow.d.ts +1 -1
  260. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js +20 -19
  261. package/dist/components/Payroll/PayrollFlow/PayrollFlow.js.map +1 -1
  262. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +5 -3
  263. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js +65 -45
  264. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  265. package/dist/components/Payroll/PayrollFlow/index.d.ts +1 -1
  266. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  267. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +233 -96
  268. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  269. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +10 -10
  270. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +8 -9
  271. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  272. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +12 -12
  273. package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +1 -2
  274. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +41 -45
  275. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  276. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +1 -2
  277. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +93 -95
  278. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  279. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.d.ts +1 -2
  280. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js +12 -26
  281. package/dist/components/Payroll/PayrollReceipts/PayrollReceipts.js.map +1 -1
  282. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.d.ts +1 -2
  283. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +40 -44
  284. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  285. package/dist/components/Payroll/usePreparedPayrollData.js +3 -4
  286. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  287. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +46 -42
  288. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  289. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +2 -0
  290. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +4 -0
  291. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  292. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +2 -3
  293. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  294. package/dist/helpers/breadcrumbHelpers.d.ts +33 -0
  295. package/dist/helpers/breadcrumbHelpers.js +46 -0
  296. package/dist/helpers/breadcrumbHelpers.js.map +1 -0
  297. package/dist/helpers/breadcrumbHelpers.test.d.ts +1 -0
  298. package/dist/helpers/dateFormatting.d.ts +4 -0
  299. package/dist/helpers/dateFormatting.js +30 -14
  300. package/dist/helpers/dateFormatting.js.map +1 -1
  301. package/dist/i18n/I18n.d.ts +1 -1
  302. package/dist/i18n/I18n.js +32 -23
  303. package/dist/i18n/I18n.js.map +1 -1
  304. package/dist/i18n/en/Company.PaySchedule.json.js +2 -2
  305. package/dist/i18n/en/Employee.PaymentMethod.json.js +70 -66
  306. package/dist/i18n/en/Employee.PaymentMethod.json.js.map +1 -1
  307. package/dist/i18n/en/Payroll.PayrollBlocker.json.js +28 -0
  308. package/dist/i18n/en/Payroll.PayrollBlocker.json.js.map +1 -0
  309. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +28 -24
  310. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  311. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +28 -26
  312. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  313. package/dist/i18n/en/Payroll.PayrollFlow.json.js +8 -0
  314. package/dist/i18n/en/Payroll.PayrollFlow.json.js.map +1 -0
  315. package/dist/i18n/en/Payroll.PayrollLanding.json.js +2 -2
  316. package/dist/i18n/en/Payroll.PayrollOverview.json.js +60 -56
  317. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  318. package/dist/i18n/en/Payroll.PayrollReceipts.json.js +16 -12
  319. package/dist/i18n/en/Payroll.PayrollReceipts.json.js.map +1 -1
  320. package/dist/shared/constants.d.ts +3 -0
  321. package/dist/shared/constants.js +11 -9
  322. package/dist/shared/constants.js.map +1 -1
  323. package/dist/style.css +1 -1
  324. package/dist/types/i18next.d.ts +160 -149
  325. package/package.json +8 -8
  326. package/dist/i18n/en/Payroll.RunPayroll.json.js +0 -8
  327. package/dist/i18n/en/Payroll.RunPayroll.json.js.map +0 -1
  328. package/dist/i18n/en/PayrollBlocker.json.js +0 -24
  329. package/dist/i18n/en/PayrollBlocker.json.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.0
4
+
5
+ ### Features & Enhancements
6
+
7
+ - Add payroll deadline alert to payroll configuration
8
+ - Enable responsive breadcrumb behavior
9
+ - Add DescriptionList component with flexible term/description support
10
+ - Update payment method copy for self onboarding
11
+
12
+ ### Fixes
13
+
14
+ - Remove base image styles in favor of emptydata styles
15
+ - Remove unused style from base.scss
16
+
17
+ ### Chores & Maintenance
18
+
19
+ - Bump react-i18next from 16.1.0 to 16.2.1
20
+ - Bump lint-staged from 16.2.5 to 16.2.6
21
+
22
+ ## 0.16.0
23
+
24
+ ### Features & Enhancements
25
+
26
+ - Add breadcrumb navigation to payroll flow component
27
+ - Add CTA (Call to Action) functionality to payroll flow breadcrumbs
28
+ - Add translation support for pay schedule names
29
+ - Enable multiple resource file loading in useI18n hook
30
+
31
+ ### Fixes
32
+
33
+ - Memoize employee UUID array and switch to API filtering for better performance
34
+
35
+ ### Chores & Maintenance
36
+
37
+ - Add missing run payroll documentation
38
+ - Bump react-i18next from 16.0.1 to 16.1.0
39
+ - Bump eslint from 9.37.0 to 9.38.0
40
+ - Bump vite from 6.4.0 to 6.4.1
41
+ - Bump typescript-eslint from 8.46.1 to 8.46.2
42
+ - Bump lint-staged from 16.2.4 to 16.2.5
43
+ - Bump msw from 2.11.5 to 2.11.6
44
+
3
45
  ## 0.15.0
4
46
 
5
47
  ### Features & Enhancements
@@ -12,15 +12,15 @@ import { componentEvents as F } from "../../shared/constants.js";
12
12
  import { useAsyncError as K } from "../Common/hooks/useAsyncError.js";
13
13
  import "classnames";
14
14
  import { InternalError as P } from "../Common/InternalError/InternalError.js";
15
- import { useComponentContext as w } from "../../contexts/ComponentAdapter/useComponentContext.js";
16
- import { snakeCaseToCamelCase as M } from "../../helpers/formattedStrings.js";
15
+ import { snakeCaseToCamelCase as w } from "../../helpers/formattedStrings.js";
16
+ import { useComponentContext as M } from "../../contexts/ComponentAdapter/useComponentContext.js";
17
17
  import { useLoadingIndicator as O } from "../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
18
18
  const U = (t) => t.map((n) => n.message ? /* @__PURE__ */ o("li", { children: n.message }, n.key) : null), x = (t, n) => {
19
19
  const m = n ? n + "." : "";
20
20
  if (t.category === "invalid_attribute_value" || t.category === "invalid_operation")
21
21
  return [
22
22
  {
23
- key: M(m + t.errorKey),
23
+ key: w(m + t.errorKey),
24
24
  message: t.message ?? ""
25
25
  }
26
26
  ];
@@ -35,7 +35,7 @@ const U = (t) => t.map((n) => n.message ? /* @__PURE__ */ o("li", { children: n.
35
35
  LoaderComponent: m,
36
36
  onEvent: a
37
37
  }) => {
38
- const [r, l] = E(null), [c, f] = E(null), p = K(), { t: b } = B(), d = w(), { LoadingIndicator: I } = O(), u = m ?? I, v = g((e) => {
38
+ const [r, l] = E(null), [c, f] = E(null), p = K(), { t: b } = B(), d = M(), { LoadingIndicator: I } = O(), u = m ?? I, v = g((e) => {
39
39
  l(e), e || f(null);
40
40
  }, []), L = (e) => {
41
41
  l(e), e instanceof k && Array.isArray(e.errors) && f(e.errors.flatMap((s) => x(s)));
@@ -1,16 +1,16 @@
1
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import { useTranslation as a } from "react-i18next";
1
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import { useTranslation as r } from "react-i18next";
3
3
  import { Flex as l } from "../Flex/Flex.js";
4
- import n from "./EmptyData.module.scss.js";
4
+ import m from "./EmptyData.module.scss.js";
5
5
  import c from "../../../assets/icons/magnifyingGlass.png.js";
6
6
  import { useComponentContext as f } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
- function h({ title: m, description: o, children: e }) {
8
- const { t: r } = a(), { Text: i } = f();
9
- return /* @__PURE__ */ t("div", { className: n.emptyData, "data-testid": "emptydata", children: /* @__PURE__ */ s(l, { flexDirection: "column", alignItems: "center", children: [
10
- /* @__PURE__ */ t("img", { src: c, alt: r("icons.magnifyingGlass") }),
11
- m && /* @__PURE__ */ t(i, { weight: "bold", className: n.title, children: m }),
12
- o && /* @__PURE__ */ t(i, { children: o }),
13
- e && e
7
+ function h({ title: e, description: a, children: o }) {
8
+ const { t: i } = r(), { Text: s } = f();
9
+ return /* @__PURE__ */ t("div", { className: m.emptyData, "data-testid": "emptydata", children: /* @__PURE__ */ n(l, { flexDirection: "column", alignItems: "center", children: [
10
+ /* @__PURE__ */ t("img", { src: c, alt: i("icons.magnifyingGlass"), className: m.image }),
11
+ e && /* @__PURE__ */ t(s, { weight: "bold", className: m.title, children: e }),
12
+ a && /* @__PURE__ */ t(s, { children: a }),
13
+ o && o
14
14
  ] }) });
15
15
  }
16
16
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyData.js","sources":["../../../../src/components/Common/EmptyData/EmptyData.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { Flex } from '../Flex/Flex'\nimport styles from './EmptyData.module.scss'\nimport magnifyingGlass from '@/assets/icons/magnifyingGlass.png'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ntype EmptyDataProps = {\n title?: string\n description?: string\n children?: React.ReactNode\n}\nexport function EmptyData({ title, description, children }: EmptyDataProps) {\n const { t } = useTranslation()\n const { Text } = useComponentContext()\n return (\n <div className={styles.emptyData} data-testid=\"emptydata\">\n <Flex flexDirection=\"column\" alignItems=\"center\">\n <img src={magnifyingGlass} alt={t('icons.magnifyingGlass')} />\n {title && (\n <Text weight=\"bold\" className={styles.title}>\n {title}\n </Text>\n )}\n {description && <Text>{description}</Text>}\n {children && children}\n </Flex>\n </div>\n )\n}\n"],"names":["EmptyData","title","description","children","t","useTranslation","Text","useComponentContext","jsx","styles","jsxs","Flex","magnifyingGlass"],"mappings":";;;;;;AAWO,SAASA,EAAU,EAAE,OAAAC,GAAO,aAAAC,GAAa,UAAAC,KAA4B;AAC1E,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,MAAAC,EAAA,IAASC,EAAA;AACjB,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,WAAW,eAAY,aAC5C,UAAA,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,YAAW,UACtC,UAAA;AAAA,IAAA,gBAAAH,EAAC,SAAI,KAAKI,GAAiB,KAAKR,EAAE,uBAAuB,GAAG;AAAA,IAC3DH,uBACEK,GAAA,EAAK,QAAO,QAAO,WAAWG,EAAO,OACnC,UAAAR,EAAA,CACH;AAAA,IAEDC,KAAe,gBAAAM,EAACF,GAAA,EAAM,UAAAJ,EAAA,CAAY;AAAA,IAClCC,KAAYA;AAAA,EAAA,EAAA,CACf,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"EmptyData.js","sources":["../../../../src/components/Common/EmptyData/EmptyData.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { Flex } from '../Flex/Flex'\nimport styles from './EmptyData.module.scss'\nimport magnifyingGlass from '@/assets/icons/magnifyingGlass.png'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ntype EmptyDataProps = {\n title?: string\n description?: string\n children?: React.ReactNode\n}\nexport function EmptyData({ title, description, children }: EmptyDataProps) {\n const { t } = useTranslation()\n const { Text } = useComponentContext()\n return (\n <div className={styles.emptyData} data-testid=\"emptydata\">\n <Flex flexDirection=\"column\" alignItems=\"center\">\n <img src={magnifyingGlass} alt={t('icons.magnifyingGlass')} className={styles.image} />\n {title && (\n <Text weight=\"bold\" className={styles.title}>\n {title}\n </Text>\n )}\n {description && <Text>{description}</Text>}\n {children && children}\n </Flex>\n </div>\n )\n}\n"],"names":["EmptyData","title","description","children","t","useTranslation","Text","useComponentContext","jsx","styles","jsxs","Flex","magnifyingGlass"],"mappings":";;;;;;AAWO,SAASA,EAAU,EAAE,OAAAC,GAAO,aAAAC,GAAa,UAAAC,KAA4B;AAC1E,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACR,EAAE,MAAAC,EAAA,IAASC,EAAA;AACjB,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,WAAW,eAAY,aAC5C,UAAA,gBAAAC,EAACC,GAAA,EAAK,eAAc,UAAS,YAAW,UACtC,UAAA;AAAA,IAAA,gBAAAH,EAAC,OAAA,EAAI,KAAKI,GAAiB,KAAKR,EAAE,uBAAuB,GAAG,WAAWK,EAAO,MAAA,CAAO;AAAA,IACpFR,uBACEK,GAAA,EAAK,QAAO,QAAO,WAAWG,EAAO,OACnC,UAAAR,EAAA,CACH;AAAA,IAEDC,KAAe,gBAAAM,EAACF,GAAA,EAAM,UAAAJ,EAAA,CAAY;AAAA,IAClCC,KAAYA;AAAA,EAAA,EAAA,CACf,EAAA,CACF;AAEJ;"}
@@ -1,10 +1,12 @@
1
- const t = "_emptyData_vn3oy_1", e = "_title_vn3oy_11", a = {
1
+ const t = "_emptyData_19niy_1", e = "_title_19niy_11", a = "_image_19niy_17", i = {
2
2
  emptyData: t,
3
- title: e
3
+ title: e,
4
+ image: a
4
5
  };
5
6
  export {
6
- a as default,
7
+ i as default,
7
8
  t as emptyData,
9
+ a as image,
8
10
  e as title
9
11
  };
10
12
  //# sourceMappingURL=EmptyData.module.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyData.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"EmptyData.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -1,4 +1,4 @@
1
- const o = "_root_11vye_1", t = {
1
+ const o = "_root_anlja_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -0,0 +1,2 @@
1
+ import { FlowBreadcrumbsProps } from './FlowBreadcrumbsTypes';
2
+ export declare function FlowBreadcrumbs({ breadcrumbs, currentBreadcrumbId, onEvent, }: FlowBreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,54 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { useTranslation as u } from "react-i18next";
3
+ import { useRef as C, useMemo as B } from "react";
4
+ import { useComponentContext as d } from "../../../contexts/ComponentAdapter/useComponentContext.js";
5
+ import { componentEvents as k } from "../../../shared/constants.js";
6
+ import { useI18n as h } from "../../../i18n/I18n.js";
7
+ import { useContainerBreakpoints as v } from "../../../hooks/useContainerBreakpoints/useContainerBreakpoints.js";
8
+ function j({
9
+ breadcrumbs: o,
10
+ currentBreadcrumbId: r,
11
+ onEvent: a
12
+ }) {
13
+ const s = C(null), p = v({ ref: s }).length === 1, { Breadcrumbs: m } = d(), i = o.reduce(
14
+ (e, n) => (n.namespace && e.push(n.namespace), e),
15
+ []
16
+ );
17
+ h(i);
18
+ const { t } = u(i), f = B(
19
+ () => o.map((e) => {
20
+ const n = e.namespace ? t(e.label, {
21
+ ns: e.namespace,
22
+ defaultValue: e.label,
23
+ ...e.variables
24
+ }) : t(e.label, {
25
+ defaultValue: e.label,
26
+ ...e.variables
27
+ });
28
+ return {
29
+ id: e.id,
30
+ label: n
31
+ };
32
+ }),
33
+ [o, t]
34
+ );
35
+ return /* @__PURE__ */ l("div", { ref: s, children: /* @__PURE__ */ l(
36
+ m,
37
+ {
38
+ isSmallContainer: p,
39
+ breadcrumbs: f,
40
+ currentBreadcrumbId: r,
41
+ onClick: (e) => {
42
+ const n = o.find((c) => c.id === e);
43
+ a && n && a(k.BREADCRUMB_NAVIGATE, {
44
+ key: e,
45
+ onNavigate: n.onNavigate
46
+ });
47
+ }
48
+ }
49
+ ) });
50
+ }
51
+ export {
52
+ j as FlowBreadcrumbs
53
+ };
54
+ //# sourceMappingURL=FlowBreadcrumbs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlowBreadcrumbs.js","sources":["../../../../src/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.tsx"],"sourcesContent":["import type { CustomTypeOptions } from 'i18next'\nimport { useTranslation } from 'react-i18next'\nimport { useMemo, useRef } from 'react'\nimport type { FlowBreadcrumbsProps } from './FlowBreadcrumbsTypes'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { componentEvents } from '@/shared/constants'\nimport { useI18n } from '@/i18n/I18n'\nimport { useContainerBreakpoints } from '@/hooks/useContainerBreakpoints/useContainerBreakpoints'\n\nexport function FlowBreadcrumbs({\n breadcrumbs,\n currentBreadcrumbId,\n onEvent,\n}: FlowBreadcrumbsProps) {\n const breadcrumbContainerRef = useRef<HTMLDivElement | null>(null)\n const breakpoints = useContainerBreakpoints({ ref: breadcrumbContainerRef })\n // Small if we only contain the base breakpoint\n const isSmallContainer = breakpoints.length === 1\n\n const { Breadcrumbs } = useComponentContext()\n const namespaces = breadcrumbs.reduce<Array<keyof CustomTypeOptions['resources']>>(\n (acc, breadcrumb) => {\n if (breadcrumb.namespace) {\n acc.push(breadcrumb.namespace as keyof CustomTypeOptions['resources'])\n }\n return acc\n },\n [],\n )\n useI18n(namespaces)\n const { t } = useTranslation(namespaces)\n\n const parsedBreadcrumbs = useMemo(\n () =>\n breadcrumbs.map(breadcrumb => {\n const translatedLabel = breadcrumb.namespace\n ? (t(breadcrumb.label, {\n ns: breadcrumb.namespace,\n defaultValue: breadcrumb.label,\n ...breadcrumb.variables,\n } as never) as unknown as string)\n : (t(breadcrumb.label, {\n defaultValue: breadcrumb.label,\n ...breadcrumb.variables,\n } as never) as unknown as string)\n return {\n id: breadcrumb.id,\n label: translatedLabel,\n }\n }),\n [breadcrumbs, t],\n )\n\n const handleBreadcrumbClick = (breadcrumbId: string) => {\n const breadcrumb = breadcrumbs.find(breadcrumb => breadcrumb.id === breadcrumbId)\n if (onEvent && breadcrumb) {\n onEvent(componentEvents.BREADCRUMB_NAVIGATE, {\n key: breadcrumbId,\n onNavigate: breadcrumb.onNavigate,\n })\n }\n }\n\n return (\n <div ref={breadcrumbContainerRef}>\n <Breadcrumbs\n isSmallContainer={isSmallContainer}\n breadcrumbs={parsedBreadcrumbs}\n currentBreadcrumbId={currentBreadcrumbId}\n onClick={handleBreadcrumbClick}\n />\n </div>\n )\n}\n"],"names":["FlowBreadcrumbs","breadcrumbs","currentBreadcrumbId","onEvent","breadcrumbContainerRef","useRef","isSmallContainer","useContainerBreakpoints","Breadcrumbs","useComponentContext","namespaces","acc","breadcrumb","useI18n","useTranslation","parsedBreadcrumbs","useMemo","translatedLabel","jsx","breadcrumbId","componentEvents"],"mappings":";;;;;;;AASO,SAASA,EAAgB;AAAA,EAC9B,aAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,SAAAC;AACF,GAAyB;AACvB,QAAMC,IAAyBC,EAA8B,IAAI,GAG3DC,IAFcC,EAAwB,EAAE,KAAKH,GAAwB,EAEtC,WAAW,GAE1C,EAAE,aAAAI,EAAA,IAAgBC,EAAA,GAClBC,IAAaT,EAAY;AAAA,IAC7B,CAACU,GAAKC,OACAA,EAAW,aACbD,EAAI,KAAKC,EAAW,SAAiD,GAEhED;AAAA,IAET,CAAA;AAAA,EAAC;AAEH,EAAAE,EAAQH,CAAU;AAClB,QAAM,EAAE,EAAA,IAAMI,EAAeJ,CAAU,GAEjCK,IAAoBC;AAAA,IACxB,MACEf,EAAY,IAAI,CAAAW,MAAc;AAC5B,YAAMK,IAAkBL,EAAW,YAC9B,EAAEA,EAAW,OAAO;AAAA,QACnB,IAAIA,EAAW;AAAA,QACf,cAAcA,EAAW;AAAA,QACzB,GAAGA,EAAW;AAAA,MAAA,CACN,IACT,EAAEA,EAAW,OAAO;AAAA,QACnB,cAAcA,EAAW;AAAA,QACzB,GAAGA,EAAW;AAAA,MAAA,CACN;AACd,aAAO;AAAA,QACL,IAAIA,EAAW;AAAA,QACf,OAAOK;AAAA,MAAA;AAAA,IAEX,CAAC;AAAA,IACH,CAAChB,GAAa,CAAC;AAAA,EAAA;AAajB,SACE,gBAAAiB,EAAC,OAAA,EAAI,KAAKd,GACR,UAAA,gBAAAc;AAAA,IAACV;AAAA,IAAA;AAAA,MACC,kBAAAF;AAAA,MACA,aAAaS;AAAA,MACb,qBAAAb;AAAA,MACA,SAhBwB,CAACiB,MAAyB;AACtD,cAAMP,IAAaX,EAAY,KAAK,CAAAW,MAAcA,EAAW,OAAOO,CAAY;AAChF,QAAIhB,KAAWS,KACbT,EAAQiB,EAAgB,qBAAqB;AAAA,UAC3C,KAAKD;AAAA,UACL,YAAYP,EAAW;AAAA,QAAA,CACxB;AAAA,MAEL;AAAA,IAQe;AAAA,EAAA,GAEb;AAEJ;"}
@@ -0,0 +1,44 @@
1
+ import { OnEventType } from '../../Base/useBase';
2
+ import { EventType } from '../../../types/Helpers';
3
+ export interface FlowBreadcrumb {
4
+ /**
5
+ * Unique key for the breadcrumb step
6
+ */
7
+ id: string;
8
+ /**
9
+ * Translation key for the breadcrumb label
10
+ */
11
+ label: string;
12
+ /**
13
+ * Optional translation namespace
14
+ */
15
+ namespace?: string;
16
+ /**
17
+ * Optional variables for the breadcrumb label
18
+ */
19
+ variables?: Record<string, unknown>;
20
+ /**
21
+ * Event handler for breadcrumb navigation
22
+ */
23
+ onNavigate?: (context: unknown) => unknown;
24
+ }
25
+ export interface BreadcrumbNode {
26
+ /**
27
+ * Parent node key (null for root nodes)
28
+ */
29
+ parent: string | null;
30
+ /**
31
+ * The breadcrumb item data
32
+ */
33
+ item: FlowBreadcrumb;
34
+ }
35
+ export type BreadcrumbNodes = Record<string, BreadcrumbNode>;
36
+ export type BreadcrumbTrail = Record<string, FlowBreadcrumb[]>;
37
+ export interface FlowBreadcrumbsProps {
38
+ breadcrumbs: FlowBreadcrumb[];
39
+ currentBreadcrumbId?: string;
40
+ /**
41
+ * Event handler for breadcrumb navigation
42
+ */
43
+ onEvent?: OnEventType<EventType, unknown>;
44
+ }
@@ -0,0 +1,3 @@
1
+ import "./types/i18next.d.ts"
2
+ export { FlowBreadcrumbs } from './FlowBreadcrumbs';
3
+ export type { FlowBreadcrumbsProps } from './FlowBreadcrumbsTypes';
@@ -2,30 +2,28 @@ 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 e from "./SignatureForm.module.scss.js";
5
+ 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 "classnames";
9
9
  import "../../../shared/constants.js";
10
10
  import "react-i18next";
11
- import "../../../contexts/ComponentAdapter/useComponentContext.js";
12
- import "react";
13
- const p = o.object({
11
+ const f = o.object({
14
12
  signature: o.string().min(1),
15
13
  confirmSignature: o.literal(!0)
16
- }), f = {
14
+ }), p = {
17
15
  signature: ""
18
16
  };
19
- function V({ onSubmit: m, children: i, formProps: n }) {
20
- const t = s({
21
- resolver: l(p),
22
- defaultValues: f,
17
+ function D({ onSubmit: m, children: i, formProps: n }) {
18
+ const e = s({
19
+ resolver: l(f),
20
+ defaultValues: p,
23
21
  ...n
24
22
  });
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 }) }) }) });
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 }) }) }) });
26
24
  }
27
25
  export {
28
- V as SignatureForm,
29
- p as SignatureFormSchema
26
+ D as SignatureForm,
27
+ f as SignatureFormSchema
30
28
  };
31
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;"}
@@ -4,8 +4,7 @@ import "../../../shared/constants.js";
4
4
  import "react-i18next";
5
5
  import { ActionsLayout as p } from "../ActionsLayout/ActionsLayout.js";
6
6
  import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
- 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;"}
@@ -2,11 +2,9 @@ import { jsxs as n, Fragment as s, jsx as r } from "react/jsx-runtime";
2
2
  import "classnames";
3
3
  import "../../../shared/constants.js";
4
4
  import "react-i18next";
5
- import { TextInputField as p } from "../Fields/TextInputField/TextInputField.js";
6
- import "../../../contexts/ComponentAdapter/useComponentContext.js";
7
- import "react";
8
- import { CheckboxField as a } from "../Fields/CheckboxField/CheckboxField.js";
9
- function b({
5
+ import { TextInputField as a } from "../Fields/TextInputField/TextInputField.js";
6
+ import { CheckboxField as u } from "../Fields/CheckboxField/CheckboxField.js";
7
+ function x({
10
8
  signatureLabel: e,
11
9
  signatureDescription: i = "",
12
10
  signatureError: t = "",
@@ -15,7 +13,7 @@ function b({
15
13
  }) {
16
14
  return /* @__PURE__ */ n(s, { children: [
17
15
  /* @__PURE__ */ r(
18
- p,
16
+ a,
19
17
  {
20
18
  name: "signature",
21
19
  label: e,
@@ -25,7 +23,7 @@ function b({
25
23
  }
26
24
  ),
27
25
  /* @__PURE__ */ r(
28
- a,
26
+ u,
29
27
  {
30
28
  name: "confirmSignature",
31
29
  isRequired: !0,
@@ -36,6 +34,6 @@ function b({
36
34
  ] });
37
35
  }
38
36
  export {
39
- b as SignatureFormFields
37
+ x as SignatureFormFields
40
38
  };
41
39
  //# 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;"}
@@ -0,0 +1,2 @@
1
+ import { BreadcrumbsProps } from './BreadcrumbsTypes';
2
+ export declare function Breadcrumbs(rawProps: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,52 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import h from "classnames";
3
+ import { BreadcrumbsDefaults as k } from "./BreadcrumbsTypes.js";
4
+ import r from "./Breadcrumbs.module.scss.js";
5
+ import { applyMissingDefaults as x } from "../../../../helpers/applyMissingDefaults.js";
6
+ import { Flex as u } from "../../Flex/Flex.js";
7
+ function I(p) {
8
+ const f = x(p, k), {
9
+ className: s,
10
+ breadcrumbs: n,
11
+ currentBreadcrumbId: t,
12
+ "aria-label": c,
13
+ onClick: i,
14
+ isSmallContainer: b
15
+ } = f, o = n.findIndex((e) => e.id === t), a = o > 0 ? n[o - 1] : null;
16
+ return b && a && i ? /* @__PURE__ */ l(u, { flexDirection: "column", children: /* @__PURE__ */ l("nav", { "aria-label": c, className: s, children: /* @__PURE__ */ l(
17
+ "button",
18
+ {
19
+ type: "button",
20
+ className: r.smallBack,
21
+ onClick: () => {
22
+ i(a.id);
23
+ },
24
+ children: a.label
25
+ }
26
+ ) }) }) : /* @__PURE__ */ l(u, { flexDirection: "column", children: /* @__PURE__ */ l("nav", { "aria-label": c, className: s, children: /* @__PURE__ */ l("ol", { className: r.list, children: n.map((e) => {
27
+ const m = e.id === t, d = !m && i;
28
+ return /* @__PURE__ */ l(
29
+ "li",
30
+ {
31
+ className: h(r.item, d && r.clickable),
32
+ "aria-current": m ? "step" : !1,
33
+ children: d ? /* @__PURE__ */ l(
34
+ "button",
35
+ {
36
+ type: "button",
37
+ className: r.link,
38
+ onClick: () => {
39
+ i(e.id);
40
+ },
41
+ children: e.label
42
+ }
43
+ ) : /* @__PURE__ */ l("span", { children: e.label })
44
+ },
45
+ e.id
46
+ );
47
+ }) }) }) });
48
+ }
49
+ export {
50
+ I as Breadcrumbs
51
+ };
52
+ //# sourceMappingURL=Breadcrumbs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumbs.js","sources":["../../../../../src/components/Common/UI/Breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import classnames from 'classnames'\nimport { Flex } from '../../Flex'\nimport { type BreadcrumbsProps, BreadcrumbsDefaults } from './BreadcrumbsTypes'\nimport styles from './Breadcrumbs.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\n\nexport function Breadcrumbs(rawProps: BreadcrumbsProps) {\n const resolvedProps = applyMissingDefaults(rawProps, BreadcrumbsDefaults)\n const {\n className,\n breadcrumbs,\n currentBreadcrumbId,\n 'aria-label': ariaLabel,\n onClick,\n isSmallContainer,\n } = resolvedProps\n\n const currentIndex = breadcrumbs.findIndex(b => b.id === currentBreadcrumbId)\n const previousBreadcrumb = currentIndex > 0 ? breadcrumbs[currentIndex - 1] : null\n\n if (isSmallContainer && previousBreadcrumb && onClick) {\n return (\n <Flex flexDirection=\"column\">\n <nav aria-label={ariaLabel} className={className}>\n <button\n type=\"button\"\n className={styles.smallBack}\n onClick={() => {\n onClick(previousBreadcrumb.id)\n }}\n >\n {previousBreadcrumb.label}\n </button>\n </nav>\n </Flex>\n )\n }\n\n return (\n <Flex flexDirection=\"column\">\n <nav aria-label={ariaLabel} className={className}>\n <ol className={styles.list}>\n {breadcrumbs.map(breadcrumb => {\n const isCurrentbreadcrumb = breadcrumb.id === currentBreadcrumbId\n const isClickable = !isCurrentbreadcrumb && onClick\n\n return (\n <li\n key={breadcrumb.id}\n className={classnames(styles.item, isClickable && styles.clickable)}\n aria-current={isCurrentbreadcrumb ? 'step' : false}\n >\n {isClickable ? (\n <button\n type=\"button\"\n className={styles.link}\n onClick={() => {\n onClick(breadcrumb.id)\n }}\n >\n {breadcrumb.label}\n </button>\n ) : (\n <span>{breadcrumb.label}</span>\n )}\n </li>\n )\n })}\n </ol>\n </nav>\n </Flex>\n )\n}\n"],"names":["Breadcrumbs","rawProps","resolvedProps","applyMissingDefaults","BreadcrumbsDefaults","className","breadcrumbs","currentBreadcrumbId","ariaLabel","onClick","isSmallContainer","currentIndex","b","previousBreadcrumb","jsx","Flex","styles","breadcrumb","isCurrentbreadcrumb","isClickable","classnames"],"mappings":";;;;;;AAMO,SAASA,EAAYC,GAA4B;AACtD,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAmB,GAClE;AAAA,IACJ,WAAAC;AAAA,IACA,aAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,cAAcC;AAAA,IACd,SAAAC;AAAA,IACA,kBAAAC;AAAA,EAAA,IACER,GAEES,IAAeL,EAAY,UAAU,CAAAM,MAAKA,EAAE,OAAOL,CAAmB,GACtEM,IAAqBF,IAAe,IAAIL,EAAYK,IAAe,CAAC,IAAI;AAE9E,SAAID,KAAoBG,KAAsBJ,IAE1C,gBAAAK,EAACC,KAAK,eAAc,UAClB,4BAAC,OAAA,EAAI,cAAYP,GAAW,WAAAH,GAC1B,UAAA,gBAAAS;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAWE,EAAO;AAAA,MAClB,SAAS,MAAM;AACb,QAAAP,EAAQI,EAAmB,EAAE;AAAA,MAC/B;AAAA,MAEC,UAAAA,EAAmB;AAAA,IAAA;AAAA,EAAA,GAExB,EAAA,CACF,sBAKDE,GAAA,EAAK,eAAc,UAClB,UAAA,gBAAAD,EAAC,SAAI,cAAYN,GAAW,WAAAH,GAC1B,UAAA,gBAAAS,EAAC,QAAG,WAAWE,EAAO,MACnB,UAAAV,EAAY,IAAI,CAAAW,MAAc;AAC7B,UAAMC,IAAsBD,EAAW,OAAOV,GACxCY,IAAc,CAACD,KAAuBT;AAE5C,WACE,gBAAAK;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAWM,EAAWJ,EAAO,MAAMG,KAAeH,EAAO,SAAS;AAAA,QAClE,gBAAcE,IAAsB,SAAS;AAAA,QAE5C,UAAAC,IACC,gBAAAL;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAWE,EAAO;AAAA,YAClB,SAAS,MAAM;AACb,cAAAP,EAAQQ,EAAW,EAAE;AAAA,YACvB;AAAA,YAEC,UAAAA,EAAW;AAAA,UAAA;AAAA,QAAA,IAGd,gBAAAH,EAAC,QAAA,EAAM,UAAAG,EAAW,MAAA,CAAM;AAAA,MAAA;AAAA,MAfrBA,EAAW;AAAA,IAAA;AAAA,EAmBtB,CAAC,EAAA,CACH,EAAA,CACF,GACF;AAEJ;"}
@@ -0,0 +1,16 @@
1
+ const l = "_list_140kz_2", c = "_item_140kz_10", s = "_clickable_140kz_28", t = "_link_140kz_31", _ = "_smallBack_140kz_45", k = {
2
+ list: l,
3
+ item: c,
4
+ clickable: s,
5
+ link: t,
6
+ smallBack: _
7
+ };
8
+ export {
9
+ s as clickable,
10
+ k as default,
11
+ c as item,
12
+ t as link,
13
+ l as list,
14
+ _ as smallBack
15
+ };
16
+ //# sourceMappingURL=Breadcrumbs.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumbs.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,41 @@
1
+ import { ReactNode } from 'react';
2
+ export interface Breadcrumb {
3
+ id: string;
4
+ label: ReactNode;
5
+ }
6
+ export interface BreadcrumbsProps {
7
+ /**
8
+ * Array of breadcrumbs
9
+ */
10
+ breadcrumbs: Breadcrumb[];
11
+ /**
12
+ * Current breadcrumb id
13
+ */
14
+ currentBreadcrumbId?: string;
15
+ /**
16
+ * Accessibility label for the breadcrumbs
17
+ */
18
+ 'aria-label'?: string;
19
+ /**
20
+ * Additional CSS class name for the breadcrumbs container
21
+ */
22
+ className?: string;
23
+ /**
24
+ * Event handler for breadcrumb navigation
25
+ */
26
+ onClick?: (id: string) => void;
27
+ /**
28
+ * Passed to the breadcrumbs when the container size is small (640px and below)
29
+ * At this size, the breadcrumb typically does not have sufficient size to render
30
+ * completely. In our implementation, we switch to a condensed mobile version of
31
+ * the breadcrumbs
32
+ */
33
+ isSmallContainer?: boolean;
34
+ }
35
+ /**
36
+ * Default prop values for Breadcrumbs component.
37
+ */
38
+ export declare const BreadcrumbsDefaults: {
39
+ readonly isSmallContainer: false;
40
+ readonly 'aria-label': "Breadcrumbs";
41
+ };
@@ -0,0 +1,8 @@
1
+ const a = {
2
+ isSmallContainer: !1,
3
+ "aria-label": "Breadcrumbs"
4
+ };
5
+ export {
6
+ a as BreadcrumbsDefaults
7
+ };
8
+ //# sourceMappingURL=BreadcrumbsTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BreadcrumbsTypes.js","sources":["../../../../../src/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\nexport interface Breadcrumb {\n id: string\n label: ReactNode\n}\nexport interface BreadcrumbsProps {\n /**\n * Array of breadcrumbs\n */\n breadcrumbs: Breadcrumb[]\n /**\n * Current breadcrumb id\n */\n currentBreadcrumbId?: string\n /**\n * Accessibility label for the breadcrumbs\n */\n 'aria-label'?: string\n /**\n * Additional CSS class name for the breadcrumbs container\n */\n className?: string\n /**\n * Event handler for breadcrumb navigation\n */\n onClick?: (id: string) => void\n /**\n * Passed to the breadcrumbs when the container size is small (640px and below)\n * At this size, the breadcrumb typically does not have sufficient size to render\n * completely. In our implementation, we switch to a condensed mobile version of\n * the breadcrumbs\n */\n isSmallContainer?: boolean\n}\n\n/**\n * Default prop values for Breadcrumbs component.\n */\nexport const BreadcrumbsDefaults = {\n isSmallContainer: false,\n 'aria-label': 'Breadcrumbs',\n} as const satisfies Partial<BreadcrumbsProps>\n"],"names":["BreadcrumbsDefaults"],"mappings":"AAuCO,MAAMA,IAAsB;AAAA,EACjC,kBAAkB;AAAA,EAClB,cAAc;AAChB;"}
@@ -0,0 +1,3 @@
1
+ import "./types/i18next.d.ts"
2
+ export { Breadcrumbs } from './Breadcrumbs';
3
+ export type { BreadcrumbsProps, Breadcrumb } from './BreadcrumbsTypes';
@@ -0,0 +1,2 @@
1
+ import { DescriptionListProps } from './DescriptionListTypes';
2
+ export declare function DescriptionList(rawProps: DescriptionListProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { jsx as i, jsxs as d } from "react/jsx-runtime";
2
+ import f from "classnames";
3
+ import { DescriptionListDefaults as u } from "./DescriptionListTypes.js";
4
+ import o from "./DescriptionList.module.scss.js";
5
+ import { applyMissingDefaults as y } from "../../../../helpers/applyMissingDefaults.js";
6
+ function j(n) {
7
+ const m = y(n, u), { items: c, className: a } = m, p = (r) => (Array.isArray(r) ? r : [r]).map((t, e) => /* @__PURE__ */ i("dt", { children: t }, e)), l = (r) => (Array.isArray(r) ? r : [r]).map((t, e) => /* @__PURE__ */ i("dd", { children: t }, e));
8
+ return /* @__PURE__ */ i("dl", { className: f(o.root, a), children: c.map((r, s) => /* @__PURE__ */ d("div", { className: o.item, children: [
9
+ p(r.term),
10
+ l(r.description)
11
+ ] }, s)) });
12
+ }
13
+ export {
14
+ j as DescriptionList
15
+ };
16
+ //# sourceMappingURL=DescriptionList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionList.js","sources":["../../../../../src/components/Common/UI/DescriptionList/DescriptionList.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport type { ReactNode } from 'react'\nimport { type DescriptionListProps, DescriptionListDefaults } from './DescriptionListTypes'\nimport styles from './DescriptionList.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\n\nexport function DescriptionList(rawProps: DescriptionListProps) {\n const resolvedProps = applyMissingDefaults(rawProps, DescriptionListDefaults)\n const { items, className } = resolvedProps\n\n const renderTerms = (term: ReactNode | ReactNode[]) => {\n const terms = Array.isArray(term) ? term : [term]\n return terms.map((t, i) => <dt key={i}>{t}</dt>)\n }\n\n const renderDescriptions = (description: ReactNode | ReactNode[]) => {\n const descriptions = Array.isArray(description) ? description : [description]\n return descriptions.map((d, i) => <dd key={i}>{d}</dd>)\n }\n\n return (\n <dl className={classNames(styles.root, className)}>\n {items.map((item, index) => (\n <div key={index} className={styles.item}>\n {renderTerms(item.term)}\n {renderDescriptions(item.description)}\n </div>\n ))}\n </dl>\n )\n}\n"],"names":["DescriptionList","rawProps","resolvedProps","applyMissingDefaults","DescriptionListDefaults","items","className","renderTerms","term","i","jsx","renderDescriptions","description","d","classNames","styles","item","index"],"mappings":";;;;;AAMO,SAASA,EAAgBC,GAAgC;AAC9D,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAuB,GACtE,EAAE,OAAAC,GAAO,WAAAC,EAAA,IAAcJ,GAEvBK,IAAc,CAACC,OACL,MAAM,QAAQA,CAAI,IAAIA,IAAO,CAACA,CAAI,GACnC,IAAI,CAAC,GAAGC,MAAM,gBAAAC,EAAC,MAAA,EAAY,UAAA,EAAA,GAAJD,CAAM,CAAK,GAG3CE,IAAqB,CAACC,OACL,MAAM,QAAQA,CAAW,IAAIA,IAAc,CAACA,CAAW,GACxD,IAAI,CAACC,GAAGJ,MAAM,gBAAAC,EAAC,MAAA,EAAY,UAAAG,EAAA,GAAJJ,CAAM,CAAK;AAGxD,2BACG,MAAA,EAAG,WAAWK,EAAWC,EAAO,MAAMT,CAAS,GAC7C,UAAAD,EAAM,IAAI,CAACW,GAAMC,wBACf,OAAA,EAAgB,WAAWF,EAAO,MAChC,UAAA;AAAA,IAAAR,EAAYS,EAAK,IAAI;AAAA,IACrBL,EAAmBK,EAAK,WAAW;AAAA,EAAA,KAF5BC,CAGV,CACD,GACH;AAEJ;"}
@@ -0,0 +1,10 @@
1
+ const t = "_root_n7k5c_1", o = "_item_n7k5c_4", e = {
2
+ root: t,
3
+ item: o
4
+ };
5
+ export {
6
+ e as default,
7
+ o as item,
8
+ t as root
9
+ };
10
+ //# sourceMappingURL=DescriptionList.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionList.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export interface DescriptionListItem {
3
+ term: ReactNode | ReactNode[];
4
+ description: ReactNode | ReactNode[];
5
+ }
6
+ export interface DescriptionListProps {
7
+ items: DescriptionListItem[];
8
+ className?: string;
9
+ }
10
+ export declare const DescriptionListDefaults: {};
@@ -0,0 +1,5 @@
1
+ const t = {};
2
+ export {
3
+ t as DescriptionListDefaults
4
+ };
5
+ //# sourceMappingURL=DescriptionListTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionListTypes.js","sources":["../../../../../src/components/Common/UI/DescriptionList/DescriptionListTypes.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\nexport interface DescriptionListItem {\n term: ReactNode | ReactNode[]\n description: ReactNode | ReactNode[]\n}\n\nexport interface DescriptionListProps {\n items: DescriptionListItem[]\n className?: string\n}\n\nexport const DescriptionListDefaults = {} as const satisfies Partial<DescriptionListProps>\n"],"names":["DescriptionListDefaults"],"mappings":"AAYO,MAAMA,IAA0B,CAAA;"}