@gusto/embedded-react-sdk 0.11.3 → 0.12.1

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 (368) hide show
  1. package/CHANGELOG.md +181 -0
  2. package/dist/components/Base/Base.js +18 -19
  3. package/dist/components/Base/Base.js.map +1 -1
  4. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +1 -1
  5. package/dist/components/Common/DocumentList/DocumentList.module.scss.js +1 -1
  6. package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +1 -1
  7. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +1 -1
  8. package/dist/components/Common/FieldErrorMessage/FieldErrorMessage.module.scss.js +1 -1
  9. package/dist/components/Common/FieldLayout/FieldLayout.module.scss.js +6 -6
  10. package/dist/components/Common/Flex/Flex.d.ts +2 -2
  11. package/dist/components/Common/Flex/Flex.js +5 -5
  12. package/dist/components/Common/Flex/Flex.js.map +1 -1
  13. package/dist/components/Common/Form/Form.module.scss.js +2 -2
  14. package/dist/components/Common/Grid/Grid.d.ts +2 -2
  15. package/dist/components/Common/Grid/Grid.js +13 -13
  16. package/dist/components/Common/Grid/Grid.js.map +1 -1
  17. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayout.module.scss.js +12 -12
  18. package/dist/components/Common/InternalError/InternalError.module.scss.js +1 -1
  19. package/dist/components/Common/Loading/Loading.module.scss.js +1 -1
  20. package/dist/components/Common/PaginationControl/PaginationControl.module.scss.js +1 -1
  21. package/dist/components/Common/ReorderableList/ReorderableList.module.scss.js +15 -15
  22. package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +1 -1
  23. package/dist/components/Common/SignatureForm/SignatureForm.js +4 -6
  24. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  25. package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js +6 -6
  26. package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -12
  27. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  28. package/dist/components/Common/SignatureForm/SignatureFormFields.js +6 -8
  29. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  30. package/dist/components/Common/UI/Alert/Alert.module.scss.js +1 -1
  31. package/dist/components/Common/UI/Badge/Badge.module.scss.js +1 -1
  32. package/dist/components/Common/UI/Button/Button.module.scss.js +1 -1
  33. package/dist/components/Common/UI/Button/ButtonIcon.module.scss.js +1 -1
  34. package/dist/components/Common/UI/CalendarPreview/CalendarPreview.module.scss.js +5 -5
  35. package/dist/components/Common/UI/Card/Card.module.scss.js +1 -1
  36. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +8 -8
  37. package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.module.scss.js +1 -1
  38. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +1 -1
  39. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +5 -5
  40. package/dist/components/Common/UI/Input/Input.module.scss.js +7 -7
  41. package/dist/components/Common/UI/Link/Link.module.scss.js +1 -1
  42. package/dist/components/Common/UI/List/List.module.scss.js +1 -1
  43. package/dist/components/Common/UI/Menu/Menu.module.scss.js +5 -5
  44. package/dist/components/Common/UI/NumberInput/NumberInput.js +36 -38
  45. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  46. package/dist/components/Common/UI/ProgressBar/ProgressBar.d.ts +1 -1
  47. package/dist/components/Common/UI/ProgressBar/ProgressBar.js +19 -9
  48. package/dist/components/Common/UI/ProgressBar/ProgressBar.js.map +1 -1
  49. package/dist/components/Common/UI/ProgressBar/ProgressBar.module.scss.js +1 -1
  50. package/dist/components/Common/UI/ProgressBar/ProgressBarTypes.d.ts +4 -0
  51. package/dist/components/Common/UI/Radio/Radio.module.scss.js +1 -1
  52. package/dist/components/Common/UI/RadioGroup/RadioGroup.module.scss.js +1 -1
  53. package/dist/components/Common/UI/Select/Select.module.scss.js +1 -1
  54. package/dist/components/Common/UI/Switch/Switch.module.scss.js +4 -4
  55. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  56. package/dist/components/Common/UI/Text/Text.module.scss.js +14 -14
  57. package/dist/components/Company/AssignSignatory/AssignSignatory.js +2 -3
  58. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  59. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -8
  60. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  61. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -10
  62. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  63. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +11 -11
  64. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +1 -1
  65. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -8
  66. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  67. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  68. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +1 -1
  69. package/dist/components/Company/AssignSignatory/TitleSelect.js +7 -8
  70. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  71. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +1 -1
  72. package/dist/components/Company/BankAccount/BankAccount.js +6 -6
  73. package/dist/components/Company/BankAccount/BankAccount.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/BankAccountForm.js +7 -7
  77. package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js.map +1 -1
  78. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -11
  79. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  80. package/dist/components/Company/BankAccount/BankAccountForm/context.js +1 -1
  81. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -12
  82. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  83. package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js +3 -3
  84. package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js.map +1 -1
  85. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +11 -13
  86. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  87. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -6
  88. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  89. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -7
  90. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  91. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +6 -7
  92. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  93. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +1 -1
  94. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +2 -3
  95. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  96. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +1 -1
  97. package/dist/components/Company/FederalTaxes/Actions.js +7 -9
  98. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  99. package/dist/components/Company/FederalTaxes/FederalTaxes.js +6 -7
  100. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  101. package/dist/components/Company/FederalTaxes/Form.js +3 -5
  102. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  103. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +1 -1
  104. package/dist/components/Company/Industry/Actions.js +5 -7
  105. package/dist/components/Company/Industry/Actions.js.map +1 -1
  106. package/dist/components/Company/Industry/Context.js +1 -1
  107. package/dist/components/Company/Industry/Edit.js +10 -12
  108. package/dist/components/Company/Industry/Edit.js.map +1 -1
  109. package/dist/components/Company/Locations/LocationForm/Actions.js +6 -8
  110. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  111. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  112. package/dist/components/Company/Locations/LocationForm/LocationForm.js +3 -4
  113. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  114. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +1 -1
  115. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -8
  116. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  117. package/dist/components/Company/Locations/LocationsList/List.js +2 -4
  118. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  119. package/dist/components/Company/Locations/LocationsList/LocationsList.js +8 -9
  120. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  121. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +1 -1
  122. package/dist/components/Company/OnboardingOverview/Completed.js +12 -14
  123. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  124. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +6 -8
  125. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  126. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +2 -3
  127. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  128. package/dist/components/Company/OnboardingOverview/context.js +1 -1
  129. package/dist/components/Company/PaySchedule/PaySchedule.js +3 -4
  130. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  131. package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -12
  132. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  133. package/dist/components/Company/PaySchedule/_parts/Edit.js +14 -14
  134. package/dist/components/Company/PaySchedule/_parts/Edit.module.scss.js +1 -1
  135. package/dist/components/Company/PaySchedule/_parts/Head.js +6 -8
  136. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  137. package/dist/components/Company/PaySchedule/_parts/List.js +13 -15
  138. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  139. package/dist/components/Company/PaySchedule/usePaySchedule.js +1 -1
  140. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -7
  141. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  142. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +8 -8
  143. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  144. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +1 -1
  145. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -8
  146. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  147. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -7
  148. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  149. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +1 -1
  150. package/dist/components/Contractor/Address/Address.js +4 -5
  151. package/dist/components/Contractor/Address/Address.js.map +1 -1
  152. package/dist/components/Contractor/Address/Form.js +1 -1
  153. package/dist/components/Contractor/Address/useAddress.js +1 -1
  154. package/dist/components/Contractor/ContractorList/index.d.ts +16 -0
  155. package/dist/components/Contractor/ContractorList/index.js +124 -0
  156. package/dist/components/Contractor/ContractorList/index.js.map +1 -0
  157. package/dist/components/Contractor/{List → ContractorList}/useContractorList.d.ts +1 -3
  158. package/dist/components/Contractor/{List → ContractorList}/useContractorList.js +9 -10
  159. package/dist/components/Contractor/ContractorList/useContractorList.js.map +1 -0
  160. package/dist/components/Contractor/NewHireReport/NewHireReport.js +16 -17
  161. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  162. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.d.ts +2 -0
  163. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js +26 -0
  164. package/dist/components/Contractor/OnboardingFlow/OnboardingFlow.js.map +1 -0
  165. package/dist/components/Contractor/OnboardingFlow/OnboardingFlowComponents.d.ts +27 -0
  166. package/dist/components/Contractor/OnboardingFlow/OnboardingFlowComponents.js +91 -0
  167. package/dist/components/Contractor/OnboardingFlow/OnboardingFlowComponents.js.map +1 -0
  168. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.d.ts +9 -0
  169. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js +137 -0
  170. package/dist/components/Contractor/OnboardingFlow/onboardingStateMachine.js.map +1 -0
  171. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +5 -7
  172. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  173. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  174. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  175. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -3
  176. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  177. package/dist/components/Contractor/Profile/ContractorProfile.js +38 -17
  178. package/dist/components/Contractor/Profile/ContractorProfile.js.map +1 -1
  179. package/dist/components/Contractor/Profile/ContractorProfileForm.d.ts +3 -1
  180. package/dist/components/Contractor/Profile/ContractorProfileForm.js +73 -74
  181. package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
  182. package/dist/components/Contractor/Profile/useContractorProfile.d.ts +29 -28
  183. package/dist/components/Contractor/Profile/useContractorProfile.js +158 -151
  184. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  185. package/dist/components/Contractor/Submit/Submit.d.ts +7 -0
  186. package/dist/components/Contractor/Submit/Submit.js +76 -0
  187. package/dist/components/Contractor/Submit/Submit.js.map +1 -0
  188. package/dist/components/Contractor/Submit/SubmitDone.js +11 -11
  189. package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
  190. package/dist/components/Contractor/index.d.ts +3 -2
  191. package/dist/components/Contractor/index.js +10 -8
  192. package/dist/components/Contractor/index.js.map +1 -1
  193. package/dist/components/Employee/Compensation/Actions.js +5 -6
  194. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  195. package/dist/components/Employee/Compensation/Edit.js +14 -15
  196. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  197. package/dist/components/Employee/Compensation/List.js +23 -25
  198. package/dist/components/Employee/Compensation/List.js.map +1 -1
  199. package/dist/components/Employee/Deductions/Deductions.d.ts +8 -14
  200. package/dist/components/Employee/Deductions/Deductions.js +47 -140
  201. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  202. package/dist/components/Employee/Deductions/DeductionsComponents.d.ts +23 -0
  203. package/dist/components/Employee/Deductions/DeductionsComponents.js +31 -0
  204. package/dist/components/Employee/Deductions/DeductionsComponents.js.map +1 -0
  205. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.d.ts +41 -0
  206. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +134 -0
  207. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -0
  208. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.d.ts +6 -0
  209. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +98 -0
  210. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -0
  211. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.d.ts +15 -0
  212. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +48 -0
  213. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js.map +1 -0
  214. package/dist/components/Employee/Deductions/stateMachine.d.ts +7 -0
  215. package/dist/components/Employee/Deductions/stateMachine.js +107 -0
  216. package/dist/components/Employee/Deductions/stateMachine.js.map +1 -0
  217. package/dist/components/Employee/Deductions/useDeductions.d.ts +2 -2
  218. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -8
  219. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  220. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +6 -7
  221. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  222. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -4
  223. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  224. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +1 -1
  225. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +7 -8
  226. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  227. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +1 -1
  228. package/dist/components/Employee/EmployeeList/Actions.js +4 -6
  229. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  230. package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -4
  231. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  232. package/dist/components/Employee/EmployeeList/Head.js +5 -7
  233. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  234. package/dist/components/Employee/EmployeeList/List.js +14 -15
  235. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  236. package/dist/components/Employee/EmployeeList/useEmployeeList.js +1 -1
  237. package/dist/components/Employee/Landing/Landing.js +12 -13
  238. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  239. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  240. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.module.scss.js +6 -6
  241. package/dist/components/Employee/PaymentMethod/Actions.js +7 -9
  242. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  243. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -6
  244. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  245. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +8 -10
  246. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  247. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +2 -3
  248. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  249. package/dist/components/Employee/PaymentMethod/Split.js +10 -11
  250. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  251. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +1 -1
  252. package/dist/components/Employee/Profile/Actions.js +7 -9
  253. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  254. package/dist/components/Employee/Profile/AdminPersonalDetails.d.ts +6 -6
  255. package/dist/components/Employee/Profile/AdminPersonalDetails.js +9 -10
  256. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  257. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  258. package/dist/components/Employee/Profile/PersonalDetailsInputs.d.ts +2 -2
  259. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
  260. package/dist/components/Employee/Profile/useProfile.js +1 -1
  261. package/dist/components/Employee/Taxes/Actions.js +8 -10
  262. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  263. package/dist/components/Employee/Taxes/FederalForm.js +12 -14
  264. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  265. package/dist/components/Employee/Taxes/useTaxes.js +1 -1
  266. package/dist/components/Flow/Flow.js +15 -13
  267. package/dist/components/Flow/Flow.js.map +1 -1
  268. package/dist/components/Flow/useFlow.d.ts +1 -0
  269. package/dist/components/Flow/useFlow.js.map +1 -1
  270. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.d.ts +6 -0
  271. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +41 -0
  272. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -0
  273. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +11 -0
  274. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +78 -0
  275. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -0
  276. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.d.ts +6 -0
  277. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +19 -0
  278. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -0
  279. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -0
  280. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +21 -0
  281. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -0
  282. package/dist/components/Payroll/PayrollList/PayrollList.d.ts +6 -0
  283. package/dist/components/Payroll/PayrollList/PayrollList.js +17 -0
  284. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -0
  285. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +9 -0
  286. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +49 -0
  287. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -0
  288. package/dist/components/Payroll/PayrollOverview/PayrollOverview.d.ts +7 -0
  289. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +32 -0
  290. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -0
  291. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +6 -0
  292. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +68 -0
  293. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -0
  294. package/dist/components/Payroll/RunPayrollFlow/RunPayroll.d.ts +16 -0
  295. package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js +55 -0
  296. package/dist/components/Payroll/RunPayrollFlow/RunPayroll.js.map +1 -0
  297. package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.d.ts +6 -0
  298. package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js +20 -0
  299. package/dist/components/Payroll/RunPayrollFlow/RunPayrollFlow.js.map +1 -0
  300. package/dist/components/Payroll/index.d.ts +6 -0
  301. package/dist/components/Payroll/index.js +13 -0
  302. package/dist/components/Payroll/index.js.map +1 -0
  303. package/dist/components/index.d.ts +1 -0
  304. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +3 -3
  305. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +5 -7
  306. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  307. package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +1 -5
  308. package/dist/contexts/ThemeProvider/ThemeProvider.js +18 -60
  309. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  310. package/dist/contexts/ThemeProvider/theme.d.ts +42 -11
  311. package/dist/contexts/ThemeProvider/theme.js +31 -15
  312. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  313. package/dist/helpers/responsive.d.ts +0 -3
  314. package/dist/helpers/responsive.js +20 -34
  315. package/dist/helpers/responsive.js.map +1 -1
  316. package/dist/i18n/I18n.js +1 -1
  317. package/dist/i18n/I18n.js.map +1 -1
  318. package/dist/i18n/en/Contractor.ContractorList.json.js +16 -10
  319. package/dist/i18n/en/Contractor.ContractorList.json.js.map +1 -1
  320. package/dist/i18n/en/Contractor.Profile.json.js +1 -1
  321. package/dist/i18n/en/Contractor.Submit.json.js +22 -0
  322. package/dist/i18n/en/Contractor.Submit.json.js.map +1 -0
  323. package/dist/i18n/en/Employee.Deductions.json.js +49 -51
  324. package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
  325. package/dist/index.js +11 -9
  326. package/dist/index.js.map +1 -1
  327. package/dist/shared/constants.d.ts +46 -2
  328. package/dist/shared/constants.js +82 -45
  329. package/dist/shared/constants.js.map +1 -1
  330. package/dist/style.css +1 -1
  331. package/dist/types/i18next.d.ts +27 -17
  332. package/package.json +9 -8
  333. package/dist/components/Common/UI/NumberInput/NumberInput.module.scss.js +0 -8
  334. package/dist/components/Common/UI/NumberInput/NumberInput.module.scss.js.map +0 -1
  335. package/dist/components/Contractor/List/index.d.ts +0 -25
  336. package/dist/components/Contractor/List/index.js +0 -81
  337. package/dist/components/Contractor/List/index.js.map +0 -1
  338. package/dist/components/Contractor/List/useContractorList.js.map +0 -1
  339. package/dist/components/Contractor/Submit/ContractorSubmitWithApi.d.ts +0 -6
  340. package/dist/components/Contractor/Submit/ContractorSubmitWithApi.js +0 -27
  341. package/dist/components/Contractor/Submit/ContractorSubmitWithApi.js.map +0 -1
  342. package/dist/components/Contractor/Submit/index.d.ts +0 -6
  343. package/dist/components/Contractor/Submit/index.js +0 -20
  344. package/dist/components/Contractor/Submit/index.js.map +0 -1
  345. package/dist/components/Contractor/Submit/index.module.scss.js +0 -8
  346. package/dist/components/Contractor/Submit/index.module.scss.js.map +0 -1
  347. package/dist/components/Employee/Deductions/Actions.js +0 -27
  348. package/dist/components/Employee/Deductions/Actions.js.map +0 -1
  349. package/dist/components/Employee/Deductions/DeductionForm.d.ts +0 -1
  350. package/dist/components/Employee/Deductions/DeductionForm.js +0 -78
  351. package/dist/components/Employee/Deductions/DeductionForm.js.map +0 -1
  352. package/dist/components/Employee/Deductions/DeductionsList.d.ts +0 -2
  353. package/dist/components/Employee/Deductions/DeductionsList.js +0 -60
  354. package/dist/components/Employee/Deductions/DeductionsList.js.map +0 -1
  355. package/dist/components/Employee/Deductions/Head.js +0 -13
  356. package/dist/components/Employee/Deductions/Head.js.map +0 -1
  357. package/dist/components/Employee/Deductions/IncludeDeductionsForm.d.ts +0 -1
  358. package/dist/components/Employee/Deductions/IncludeDeductionsForm.js +0 -27
  359. package/dist/components/Employee/Deductions/IncludeDeductionsForm.js.map +0 -1
  360. package/dist/components/Employee/Deductions/useDeductions.js +0 -33
  361. package/dist/components/Employee/Deductions/useDeductions.js.map +0 -1
  362. package/dist/contexts/ThemeProvider/createTheme.d.ts +0 -21
  363. package/dist/contexts/ThemeProvider/createTheme.js +0 -269
  364. package/dist/contexts/ThemeProvider/createTheme.js.map +0 -1
  365. package/dist/i18n/en/Contractor.ContractorSubmit.json.js +0 -18
  366. package/dist/i18n/en/Contractor.ContractorSubmit.json.js.map +0 -1
  367. package/dist/types/GTheme.d.ts +0 -254
  368. /package/dist/contexts/ThemeProvider/{createTheme.test.d.ts → theme.test.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- const s = "_list_k1b3f_1", t = "_listItem_k1b3f_5", c = "_listItemIcon_k1b3f_22", e = "_success_k1b3f_35", _ = {
1
+ const s = "_list_1m8z2_1", t = "_listItem_1m8z2_5", c = "_listItemIcon_1m8z2_22", e = "_success_1m8z2_35", _ = {
2
2
  list: s,
3
3
  listItem: t,
4
4
  listItemIcon: c,
@@ -5,24 +5,22 @@ import { zodResolver as l } from "@hookform/resolvers/zod";
5
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
- import "classnames";
9
- import "../../../shared/constants.js";
10
8
  const f = o.object({
11
9
  signature: o.string().min(1),
12
10
  confirmSignature: o.literal(!0)
13
- }), p = {
11
+ }), d = {
14
12
  signature: ""
15
13
  };
16
- function z({ onSubmit: m, children: i, formProps: n }) {
14
+ function b({ onSubmit: m, children: i, formProps: n }) {
17
15
  const e = s({
18
16
  resolver: l(f),
19
- defaultValues: p,
17
+ defaultValues: d,
20
18
  ...n
21
19
  });
22
20
  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 }) }) }) });
23
21
  }
24
22
  export {
25
- z as SignatureForm,
23
+ b as SignatureForm,
26
24
  f as SignatureFormSchema
27
25
  };
28
26
  //# sourceMappingURL=SignatureForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignatureForm.js","sources":["../../../../src/components/Common/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { FormProvider, useForm, type UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport styles from './SignatureForm.module.scss'\nimport { Form } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\n\nexport const SignatureFormSchema = z.object({\n signature: z.string().min(1),\n confirmSignature: z.literal(true),\n})\n\nconst signatureFormDefaultValues = {\n signature: '',\n}\n\nexport type SignatureFormInputs = z.infer<typeof SignatureFormSchema>\n\ninterface SignatureFormProps {\n onSubmit: (data: SignatureFormInputs) => void | Promise<void>\n children?: React.ReactNode\n formProps?: Partial<UseFormProps<SignatureFormInputs>>\n}\n\nexport function SignatureForm({ onSubmit, children, formProps }: SignatureFormProps) {\n const methods = useForm<SignatureFormInputs>({\n resolver: zodResolver(SignatureFormSchema),\n defaultValues: signatureFormDefaultValues,\n ...formProps,\n })\n\n return (\n <FormProvider {...methods}>\n <Form onSubmit={methods.handleSubmit(onSubmit)} className={styles.container}>\n <div className={styles.formFields}>\n <Flex flexDirection=\"column\" gap={20}>\n {children}\n </Flex>\n </div>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["SignatureFormSchema","z","signatureFormDefaultValues","SignatureForm","onSubmit","children","formProps","methods","useForm","zodResolver","jsx","FormProvider","Form","styles","Flex"],"mappings":";;;;;;;;;AAOO,MAAMA,IAAsBC,EAAE,OAAO;AAAA,EAC1C,WAAWA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC3B,kBAAkBA,EAAE,QAAQ,EAAI;AAClC,CAAC,GAEKC,IAA6B;AAAA,EACjC,WAAW;AACb;AAUO,SAASC,EAAc,EAAE,UAAAC,GAAU,UAAAC,GAAU,WAAAC,KAAiC;AACnF,QAAMC,IAAUC,EAA6B;AAAA,IAC3C,UAAUC,EAAYT,CAAmB;AAAA,IACzC,eAAeE;AAAA,IACf,GAAGI;AAAA,EAAA,CACJ;AAED,SACE,gBAAAI,EAACC,GAAA,EAAc,GAAGJ,GAChB,UAAA,gBAAAG,EAACE,GAAA,EAAK,UAAUL,EAAQ,aAAaH,CAAQ,GAAG,WAAWS,EAAO,WAChE,UAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWG,EAAO,YACrB,UAAA,gBAAAH,EAACI,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAT,EAAA,CACH,EAAA,CACF,EAAA,CACF,GACF;AAEJ;"}
1
+ {"version":3,"file":"SignatureForm.js","sources":["../../../../src/components/Common/SignatureForm/SignatureForm.tsx"],"sourcesContent":["import { z } from 'zod'\nimport { FormProvider, useForm, type UseFormProps } from 'react-hook-form'\nimport { zodResolver } from '@hookform/resolvers/zod'\nimport styles from './SignatureForm.module.scss'\nimport { Form } from '@/components/Common/Form'\nimport { Flex } from '@/components/Common'\n\nexport const SignatureFormSchema = z.object({\n signature: z.string().min(1),\n confirmSignature: z.literal(true),\n})\n\nconst signatureFormDefaultValues = {\n signature: '',\n}\n\nexport type SignatureFormInputs = z.infer<typeof SignatureFormSchema>\n\ninterface SignatureFormProps {\n onSubmit: (data: SignatureFormInputs) => void | Promise<void>\n children?: React.ReactNode\n formProps?: Partial<UseFormProps<SignatureFormInputs>>\n}\n\nexport function SignatureForm({ onSubmit, children, formProps }: SignatureFormProps) {\n const methods = useForm<SignatureFormInputs>({\n resolver: zodResolver(SignatureFormSchema),\n defaultValues: signatureFormDefaultValues,\n ...formProps,\n })\n\n return (\n <FormProvider {...methods}>\n <Form onSubmit={methods.handleSubmit(onSubmit)} className={styles.container}>\n <div className={styles.formFields}>\n <Flex flexDirection=\"column\" gap={20}>\n {children}\n </Flex>\n </div>\n </Form>\n </FormProvider>\n )\n}\n"],"names":["SignatureFormSchema","z","signatureFormDefaultValues","SignatureForm","onSubmit","children","formProps","methods","useForm","zodResolver","jsx","FormProvider","Form","styles","Flex"],"mappings":";;;;;;;AAOO,MAAMA,IAAsBC,EAAE,OAAO;AAAA,EAC1C,WAAWA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC3B,kBAAkBA,EAAE,QAAQ,EAAI;AAClC,CAAC,GAEKC,IAA6B;AAAA,EACjC,WAAW;AACb;AAUO,SAASC,EAAc,EAAE,UAAAC,GAAU,UAAAC,GAAU,WAAAC,KAAiC;AACnF,QAAMC,IAAUC,EAA6B;AAAA,IAC3C,UAAUC,EAAYT,CAAmB;AAAA,IACzC,eAAeE;AAAA,IACf,GAAGI;AAAA,EAAA,CACJ;AAED,SACE,gBAAAI,EAACC,GAAA,EAAc,GAAGJ,GAChB,UAAA,gBAAAG,EAACE,GAAA,EAAK,UAAUL,EAAQ,aAAaH,CAAQ,GAAG,WAAWS,EAAO,WAChE,UAAA,gBAAAH,EAAC,OAAA,EAAI,WAAWG,EAAO,YACrB,UAAA,gBAAAH,EAACI,GAAA,EAAK,eAAc,UAAS,KAAK,IAC/B,UAAAT,EAAA,CACH,EAAA,CACF,EAAA,CACF,GACF;AAEJ;"}
@@ -1,10 +1,10 @@
1
- const o = "_container_199qg_1", e = "_formFields_199qg_5", n = {
2
- container: o,
3
- formFields: e
1
+ const t = "_container_1htg1_1", o = "_formFields_1htg1_5", e = {
2
+ container: t,
3
+ formFields: o
4
4
  };
5
5
  export {
6
- o as container,
7
- n as default,
8
- e as formFields
6
+ t as container,
7
+ e as default,
8
+ o as formFields
9
9
  };
10
10
  //# sourceMappingURL=SignatureForm.module.scss.js.map
@@ -1,21 +1,19 @@
1
- import { jsxs as m, jsx as n } from "react/jsx-runtime";
2
- import "classnames";
3
- import "../../../shared/constants.js";
4
- import { ActionsLayout as s } from "../ActionsLayout/ActionsLayout.js";
5
- import { useComponentContext as p } from "../../../contexts/ComponentAdapter/useComponentContext.js";
6
- function d({
1
+ import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
+ import { ActionsLayout as m } from "../ActionsLayout/ActionsLayout.js";
3
+ import { useComponentContext as u } from "../../../contexts/ComponentAdapter/useComponentContext.js";
4
+ function f({
7
5
  onBack: t,
8
6
  backLabel: r,
9
- submitLabel: i,
10
- isLoading: e = !1
7
+ submitLabel: e,
8
+ isLoading: i = !1
11
9
  }) {
12
- const o = p();
13
- return /* @__PURE__ */ m(s, { children: [
10
+ const o = u();
11
+ return /* @__PURE__ */ s(m, { children: [
14
12
  t && /* @__PURE__ */ n(o.Button, { variant: "secondary", type: "button", onClick: t, children: r }),
15
- /* @__PURE__ */ n(o.Button, { type: "submit", isLoading: e, children: i })
13
+ /* @__PURE__ */ n(o.Button, { type: "submit", isLoading: i, children: e })
16
14
  ] });
17
15
  }
18
16
  export {
19
- d as SignatureFormActions
17
+ f as SignatureFormActions
20
18
  };
21
19
  //# 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,16 +1,14 @@
1
- import { jsxs as n, Fragment as s, jsx as e } from "react/jsx-runtime";
2
- import "classnames";
3
- import "../../../shared/constants.js";
1
+ import { jsxs as s, Fragment as m, jsx as e } from "react/jsx-runtime";
4
2
  import { TextInputField as a } from "../Fields/TextInputField/TextInputField.js";
5
3
  import { CheckboxField as u } from "../Fields/CheckboxField/CheckboxField.js";
6
- function f({
4
+ function p({
7
5
  signatureLabel: r,
8
6
  signatureDescription: i = "",
9
7
  signatureError: t = "",
10
8
  confirmationLabel: o,
11
- confirmationError: m = ""
9
+ confirmationError: n = ""
12
10
  }) {
13
- return /* @__PURE__ */ n(s, { children: [
11
+ return /* @__PURE__ */ s(m, { children: [
14
12
  /* @__PURE__ */ e(
15
13
  a,
16
14
  {
@@ -27,12 +25,12 @@ function f({
27
25
  name: "confirmSignature",
28
26
  isRequired: !0,
29
27
  label: o,
30
- errorMessage: m
28
+ errorMessage: n
31
29
  }
32
30
  )
33
31
  ] });
34
32
  }
35
33
  export {
36
- f as SignatureFormFields
34
+ p as SignatureFormFields
37
35
  };
38
36
  //# 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
- const t = "_root_1vxup_1", o = "_alert_1vxup_1", n = "_icon_1vxup_14", _ = "_content_1vxup_29", c = {
1
+ const t = "_root_1pj1j_1", o = "_alert_1pj1j_1", n = "_icon_1pj1j_14", _ = "_content_1pj1j_29", c = {
2
2
  root: t,
3
3
  alert: o,
4
4
  icon: n,
@@ -1,4 +1,4 @@
1
- const e = "_badge_imm46_1", a = {
1
+ const e = "_badge_1h2ej_1", a = {
2
2
  badge: e
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_root_q0mct_1", t = {
1
+ const o = "_root_kyosy_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_root_zhhey_1", t = {
1
+ const o = "_root_vi5i4_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,13 +1,13 @@
1
- const a = "_calendar_p8rau_1", r = "_calendarWrapper_p8rau_1", e = "_calendarHeader_p8rau_5", d = "_dateMarker_p8rau_44", c = {
1
+ const a = "_calendar_1riep_1", e = "_calendarWrapper_1riep_1", r = "_calendarHeader_1riep_5", d = "_dateMarker_1riep_44", c = {
2
2
  calendar: a,
3
- calendarWrapper: r,
4
- calendarHeader: e,
3
+ calendarWrapper: e,
4
+ calendarHeader: r,
5
5
  dateMarker: d
6
6
  };
7
7
  export {
8
8
  a as calendar,
9
- e as calendarHeader,
10
- r as calendarWrapper,
9
+ r as calendarHeader,
10
+ e as calendarWrapper,
11
11
  d as dateMarker,
12
12
  c as default
13
13
  };
@@ -1,4 +1,4 @@
1
- const a = "_cardContainer_baj0w_1", n = {
1
+ const a = "_cardContainer_17qsq_1", n = {
2
2
  cardContainer: a
3
3
  };
4
4
  export {
@@ -1,14 +1,14 @@
1
- const c = "_checkboxWrapper_topwn_1", o = "_checkbox_topwn_1", e = "_check_topwn_1", t = "_checkboxInput_topwn_29", p = {
1
+ const c = "_checkboxWrapper_wiqs9_1", e = "_checkbox_wiqs9_1", o = "_check_wiqs9_1", h = "_checkboxInput_wiqs9_29", k = {
2
2
  checkboxWrapper: c,
3
- checkbox: o,
4
- check: e,
5
- checkboxInput: t
3
+ checkbox: e,
4
+ check: o,
5
+ checkboxInput: h
6
6
  };
7
7
  export {
8
- e as check,
9
- o as checkbox,
10
- t as checkboxInput,
8
+ o as check,
9
+ e as checkbox,
10
+ h as checkboxInput,
11
11
  c as checkboxWrapper,
12
- p as default
12
+ k as default
13
13
  };
14
14
  //# sourceMappingURL=Checkbox.module.scss.js.map
@@ -1,4 +1,4 @@
1
- const o = "_root_1b3le_1", t = {
1
+ const o = "_root_zsz14_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_root_198mo_1", s = "_icons_198mo_66", t = "_popover_198mo_76", _ = {
1
+ const o = "_root_hjm4b_1", s = "_icons_hjm4b_66", t = "_popover_hjm4b_76", _ = {
2
2
  root: o,
3
3
  icons: s,
4
4
  popover: t
@@ -1,14 +1,14 @@
1
- const o = "_container_tvtmp_1", t = "_root_tvtmp_5", n = "_popover_tvtmp_99", _ = "_icons_tvtmp_228", c = {
1
+ const o = "_container_1l0mw_1", n = "_root_1l0mw_5", t = "_popover_1l0mw_99", _ = "_icons_1l0mw_231", c = {
2
2
  container: o,
3
- root: t,
4
- popover: n,
3
+ root: n,
4
+ popover: t,
5
5
  icons: _
6
6
  };
7
7
  export {
8
8
  o as container,
9
9
  c as default,
10
10
  _ as icons,
11
- n as popover,
12
- t as root
11
+ t as popover,
12
+ n as root
13
13
  };
14
14
  //# sourceMappingURL=DatePicker.module.scss.js.map
@@ -1,9 +1,9 @@
1
- const n = "_container_uh9m2_1", t = "_hasAdornmentStart_uh9m2_10", o = "_hasAdornmentEnd_uh9m2_14", a = "_invalidIcon_uh9m2_47", r = "_inputContainer_uh9m2_62", d = "_adornmentStart_uh9m2_78", e = "_adornmentEnd_uh9m2_83", _ = {
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", _ = {
2
2
  container: n,
3
3
  hasAdornmentStart: t,
4
- hasAdornmentEnd: o,
5
- invalidIcon: a,
6
- inputContainer: r,
4
+ hasAdornmentEnd: r,
5
+ invalidIcon: o,
6
+ inputContainer: a,
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
- o as hasAdornmentEnd,
15
+ r as hasAdornmentEnd,
16
16
  t as hasAdornmentStart,
17
- r as inputContainer,
18
- a as invalidIcon
17
+ a as inputContainer,
18
+ o as invalidIcon
19
19
  };
20
20
  //# sourceMappingURL=Input.module.scss.js.map
@@ -1,4 +1,4 @@
1
- const o = "_root_1uv7z_1", t = {
1
+ const o = "_root_ybzaq_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const t = "_list_1n4ir_1", s = "_item_1n4ir_13", i = {
1
+ const t = "_list_1ui59_1", s = "_item_1ui59_13", i = {
2
2
  list: t,
3
3
  item: s
4
4
  };
@@ -1,12 +1,12 @@
1
- const o = "_root_hzjfv_1", n = "_menuItem_hzjfv_14", t = "_menuIcon_hzjfv_43", e = {
2
- root: o,
3
- menuItem: n,
1
+ const n = "_root_17n45_1", o = "_menuItem_17n45_13", t = "_menuIcon_17n45_42", e = {
2
+ root: n,
3
+ menuItem: o,
4
4
  menuIcon: t
5
5
  };
6
6
  export {
7
7
  e as default,
8
8
  t as menuIcon,
9
- n as menuItem,
10
- o as root
9
+ o as menuItem,
10
+ n as root
11
11
  };
12
12
  //# sourceMappingURL=Menu.module.scss.js.map
@@ -1,91 +1,89 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as O } from "react";
3
3
  import { NumberField as P, Group as T } from "react-aria-components";
4
- import k from "classnames";
5
- import { useFieldIds as z } from "../hooks/useFieldIds.js";
6
- import A from "./NumberInput.module.scss.js";
7
- import { FieldLayout as C } from "../../FieldLayout/FieldLayout.js";
8
- import { useLocale as H } from "../../../../contexts/LocaleProvider/useLocale.js";
9
- import { Input as J } from "../Input/Input.js";
10
- function q({
4
+ import { useFieldIds as k } from "../hooks/useFieldIds.js";
5
+ import { FieldLayout as z } from "../../FieldLayout/FieldLayout.js";
6
+ import { useLocale as A } from "../../../../contexts/LocaleProvider/useLocale.js";
7
+ import { Input as C } from "../Input/Input.js";
8
+ function Y({
11
9
  name: y,
12
10
  format: r,
13
- inputRef: d,
11
+ inputRef: s,
14
12
  id: p,
15
- value: f,
13
+ value: b,
16
14
  description: i,
17
15
  errorMessage: c,
18
- isRequired: m,
19
- placeholder: b,
16
+ isRequired: u,
17
+ placeholder: f,
20
18
  isInvalid: I,
21
- isDisabled: l,
19
+ isDisabled: m,
22
20
  onChange: F,
23
- onBlur: N,
24
- label: h,
21
+ onBlur: h,
22
+ label: N,
25
23
  min: t,
26
- max: o,
24
+ max: n,
27
25
  shouldVisuallyHideLabel: g,
28
26
  adornmentStart: v,
29
27
  adornmentEnd: D,
30
28
  className: w,
31
29
  maximumFractionDigits: x,
32
30
  minimumFractionDigits: B,
33
- ...u
31
+ ...l
34
32
  }) {
35
- const { locale: a, currency: n } = H(), { inputId: s, errorMessageId: E, descriptionId: L, ariaDescribedBy: S } = z({
33
+ const { locale: a, currency: o } = A(), { inputId: d, errorMessageId: E, descriptionId: L, ariaDescribedBy: S } = k({
36
34
  inputId: p,
37
35
  errorMessage: c,
38
36
  description: i
39
- }), V = typeof t == "string" ? Number(t) : t, j = typeof o == "string" ? Number(o) : o, G = O(() => new Intl.NumberFormat(a, {
37
+ }), V = typeof t == "string" ? Number(t) : t, j = typeof n == "string" ? Number(n) : n, G = O(() => new Intl.NumberFormat(a, {
40
38
  style: "currency",
41
- currency: n
42
- }).formatToParts(0).find((M) => M.type === "currency")?.value, [n, a]);
39
+ currency: o
40
+ }).formatToParts(0).find((M) => M.type === "currency")?.value, [o, a]);
43
41
  return /* @__PURE__ */ e(
44
- C,
42
+ z,
45
43
  {
46
- label: h,
44
+ label: N,
47
45
  description: i,
48
46
  errorMessage: c,
49
- isRequired: m,
50
- htmlFor: s,
47
+ isRequired: u,
48
+ htmlFor: d,
51
49
  errorMessageId: E,
52
50
  descriptionId: L,
53
51
  shouldVisuallyHideLabel: g,
54
- className: k(A.root, w),
52
+ className: w,
55
53
  withErrorIcon: !1,
56
- ...u,
54
+ ...l,
57
55
  children: /* @__PURE__ */ e(
58
56
  P,
59
57
  {
60
- value: f,
58
+ value: b,
61
59
  name: y,
62
60
  formatOptions: {
63
61
  style: "decimal",
64
62
  minimumFractionDigits: r === "currency" ? 2 : B,
65
63
  maximumFractionDigits: r === "currency" ? 2 : x,
66
- currency: n,
64
+ currency: o,
67
65
  currencyDisplay: "symbol"
68
66
  },
69
67
  isInvalid: I,
70
- isDisabled: l,
71
- isRequired: m,
68
+ isDisabled: m,
69
+ isRequired: u,
72
70
  validationBehavior: "aria",
73
71
  onChange: F,
74
72
  "aria-labelledby": " ",
75
73
  minValue: V,
76
74
  maxValue: j,
77
- ...u,
75
+ ...l,
78
76
  children: /* @__PURE__ */ e(T, { children: /* @__PURE__ */ e(
79
- J,
77
+ C,
80
78
  {
81
79
  adornmentStart: v || (r === "currency" ? G : null),
82
80
  adornmentEnd: D || (r === "percent" ? "%" : null),
83
- id: s,
84
- inputRef: d,
85
- onBlur: N,
86
- placeholder: b,
81
+ id: d,
82
+ inputRef: s,
83
+ onBlur: h,
84
+ placeholder: f,
87
85
  "aria-describedby": S,
88
- isDisabled: l
86
+ isDisabled: m
89
87
  }
90
88
  ) })
91
89
  }
@@ -94,6 +92,6 @@ function q({
94
92
  );
95
93
  }
96
94
  export {
97
- q as NumberInput
95
+ Y as NumberInput
98
96
  };
99
97
  //# sourceMappingURL=NumberInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumberInput.js","sources":["../../../../../src/components/Common/UI/NumberInput/NumberInput.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { Group, NumberField as AriaNumberField } from 'react-aria-components'\nimport classNames from 'classnames'\nimport { Input } from '../Input'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport styles from './NumberInput.module.scss'\nimport type { NumberInputProps } from './NumberInputTypes'\nimport { FieldLayout } from '@/components/Common/FieldLayout'\nimport { useLocale } from '@/contexts/LocaleProvider'\n\nexport function NumberInput({\n name,\n format,\n inputRef,\n id,\n value,\n description,\n errorMessage,\n isRequired,\n placeholder,\n isInvalid,\n isDisabled,\n onChange,\n onBlur,\n label,\n min,\n max,\n shouldVisuallyHideLabel,\n adornmentStart,\n adornmentEnd,\n className,\n maximumFractionDigits,\n minimumFractionDigits,\n ...props\n}: NumberInputProps) {\n const { locale, currency } = useLocale()\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n })\n\n const minValue = typeof min === 'string' ? Number(min) : min\n const maxValue = typeof max === 'string' ? Number(max) : max\n\n const currencySymbol = useMemo(() => {\n return new Intl.NumberFormat(locale, {\n style: 'currency',\n currency,\n })\n .formatToParts(0)\n .find(part => part.type === 'currency')?.value\n }, [currency, locale])\n\n return (\n <FieldLayout\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={isRequired}\n htmlFor={inputId}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n className={classNames(styles.root, className)}\n withErrorIcon={false}\n {...props}\n >\n <AriaNumberField\n value={value}\n name={name}\n formatOptions={{\n style: 'decimal',\n minimumFractionDigits: format === 'currency' ? 2 : minimumFractionDigits,\n maximumFractionDigits: format === 'currency' ? 2 : maximumFractionDigits,\n currency,\n currencyDisplay: 'symbol',\n }}\n isInvalid={isInvalid}\n isDisabled={isDisabled}\n isRequired={isRequired}\n validationBehavior=\"aria\"\n onChange={onChange}\n // This is a hack to silence an unnecessary react-aria warning. The FieldLayout component\n // already associates the label and input with htmlFor + ID. If we include a label id here,\n // the label will get read twice by assistive tech. This evaluates to an empty string which\n // does not get associated with any elements and does not get read.\n aria-labelledby=\" \"\n minValue={minValue}\n maxValue={maxValue}\n {...props}\n >\n <Group>\n <Input\n adornmentStart={adornmentStart || (format === 'currency' ? currencySymbol : null)}\n adornmentEnd={adornmentEnd || (format === 'percent' ? '%' : null)}\n id={inputId}\n inputRef={inputRef}\n onBlur={onBlur}\n placeholder={placeholder}\n aria-describedby={ariaDescribedBy}\n isDisabled={isDisabled}\n />\n </Group>\n </AriaNumberField>\n </FieldLayout>\n )\n}\n"],"names":["NumberInput","name","format","inputRef","id","value","description","errorMessage","isRequired","placeholder","isInvalid","isDisabled","onChange","onBlur","label","min","max","shouldVisuallyHideLabel","adornmentStart","adornmentEnd","className","maximumFractionDigits","minimumFractionDigits","props","locale","currency","useLocale","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","minValue","maxValue","currencySymbol","useMemo","part","jsx","FieldLayout","classNames","styles","AriaNumberField","Group","Input"],"mappings":";;;;;;;;;AAUO,SAASA,EAAY;AAAA,EAC1B,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,KAAAC;AAAA,EACA,KAAAC;AAAA,EACA,yBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,GAAGC;AACL,GAAqB;AACnB,QAAM,EAAE,QAAAC,GAAQ,UAAAC,EAAA,IAAaC,EAAA,GACvB,EAAE,SAAAC,GAAS,gBAAAC,GAAgB,eAAAC,GAAe,iBAAAC,EAAA,IAAoBC,EAAY;AAAA,IAC9E,SAAS3B;AAAA,IACT,cAAAG;AAAA,IACA,aAAAD;AAAA,EAAA,CACD,GAEK0B,IAAW,OAAOjB,KAAQ,WAAW,OAAOA,CAAG,IAAIA,GACnDkB,IAAW,OAAOjB,KAAQ,WAAW,OAAOA,CAAG,IAAIA,GAEnDkB,IAAiBC,EAAQ,MACtB,IAAI,KAAK,aAAaX,GAAQ;AAAA,IACnC,OAAO;AAAA,IACP,UAAAC;AAAA,EAAA,CACD,EACE,cAAc,CAAC,EACf,KAAK,CAAAW,MAAQA,EAAK,SAAS,UAAU,GAAG,OAC1C,CAACX,GAAUD,CAAM,CAAC;AAErB,SACE,gBAAAa;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAxB;AAAA,MACA,aAAAR;AAAA,MACA,cAAAC;AAAA,MACA,YAAAC;AAAA,MACA,SAASmB;AAAA,MACT,gBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,yBAAAZ;AAAA,MACA,WAAWsB,EAAWC,EAAO,MAAMpB,CAAS;AAAA,MAC5C,eAAe;AAAA,MACd,GAAGG;AAAA,MAEJ,UAAA,gBAAAc;AAAA,QAACI;AAAAA,QAAA;AAAA,UACC,OAAApC;AAAA,UACA,MAAAJ;AAAA,UACA,eAAe;AAAA,YACb,OAAO;AAAA,YACP,uBAAuBC,MAAW,aAAa,IAAIoB;AAAA,YACnD,uBAAuBpB,MAAW,aAAa,IAAImB;AAAA,YACnD,UAAAI;AAAA,YACA,iBAAiB;AAAA,UAAA;AAAA,UAEnB,WAAAf;AAAA,UACA,YAAAC;AAAA,UACA,YAAAH;AAAA,UACA,oBAAmB;AAAA,UACnB,UAAAI;AAAA,UAKA,mBAAgB;AAAA,UAChB,UAAAoB;AAAA,UACA,UAAAC;AAAA,UACC,GAAGV;AAAA,UAEJ,4BAACmB,GAAA,EACC,UAAA,gBAAAL;AAAA,YAACM;AAAA,YAAA;AAAA,cACC,gBAAgBzB,MAAmBhB,MAAW,aAAagC,IAAiB;AAAA,cAC5E,cAAcf,MAAiBjB,MAAW,YAAY,MAAM;AAAA,cAC5D,IAAIyB;AAAA,cACJ,UAAAxB;AAAA,cACA,QAAAU;AAAA,cACA,aAAAJ;AAAA,cACA,oBAAkBqB;AAAA,cAClB,YAAAnB;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"NumberInput.js","sources":["../../../../../src/components/Common/UI/NumberInput/NumberInput.tsx"],"sourcesContent":["import { useMemo } from 'react'\nimport { Group, NumberField as AriaNumberField } from 'react-aria-components'\nimport { Input } from '../Input'\nimport { useFieldIds } from '../hooks/useFieldIds'\nimport type { NumberInputProps } from './NumberInputTypes'\nimport { FieldLayout } from '@/components/Common/FieldLayout'\nimport { useLocale } from '@/contexts/LocaleProvider'\n\nexport function NumberInput({\n name,\n format,\n inputRef,\n id,\n value,\n description,\n errorMessage,\n isRequired,\n placeholder,\n isInvalid,\n isDisabled,\n onChange,\n onBlur,\n label,\n min,\n max,\n shouldVisuallyHideLabel,\n adornmentStart,\n adornmentEnd,\n className,\n maximumFractionDigits,\n minimumFractionDigits,\n ...props\n}: NumberInputProps) {\n const { locale, currency } = useLocale()\n const { inputId, errorMessageId, descriptionId, ariaDescribedBy } = useFieldIds({\n inputId: id,\n errorMessage,\n description,\n })\n\n const minValue = typeof min === 'string' ? Number(min) : min\n const maxValue = typeof max === 'string' ? Number(max) : max\n\n const currencySymbol = useMemo(() => {\n return new Intl.NumberFormat(locale, {\n style: 'currency',\n currency,\n })\n .formatToParts(0)\n .find(part => part.type === 'currency')?.value\n }, [currency, locale])\n\n return (\n <FieldLayout\n label={label}\n description={description}\n errorMessage={errorMessage}\n isRequired={isRequired}\n htmlFor={inputId}\n errorMessageId={errorMessageId}\n descriptionId={descriptionId}\n shouldVisuallyHideLabel={shouldVisuallyHideLabel}\n className={className}\n withErrorIcon={false}\n {...props}\n >\n <AriaNumberField\n value={value}\n name={name}\n formatOptions={{\n style: 'decimal',\n minimumFractionDigits: format === 'currency' ? 2 : minimumFractionDigits,\n maximumFractionDigits: format === 'currency' ? 2 : maximumFractionDigits,\n currency,\n currencyDisplay: 'symbol',\n }}\n isInvalid={isInvalid}\n isDisabled={isDisabled}\n isRequired={isRequired}\n validationBehavior=\"aria\"\n onChange={onChange}\n // This is a hack to silence an unnecessary react-aria warning. The FieldLayout component\n // already associates the label and input with htmlFor + ID. If we include a label id here,\n // the label will get read twice by assistive tech. This evaluates to an empty string which\n // does not get associated with any elements and does not get read.\n aria-labelledby=\" \"\n minValue={minValue}\n maxValue={maxValue}\n {...props}\n >\n <Group>\n <Input\n adornmentStart={adornmentStart || (format === 'currency' ? currencySymbol : null)}\n adornmentEnd={adornmentEnd || (format === 'percent' ? '%' : null)}\n id={inputId}\n inputRef={inputRef}\n onBlur={onBlur}\n placeholder={placeholder}\n aria-describedby={ariaDescribedBy}\n isDisabled={isDisabled}\n />\n </Group>\n </AriaNumberField>\n </FieldLayout>\n )\n}\n"],"names":["NumberInput","name","format","inputRef","id","value","description","errorMessage","isRequired","placeholder","isInvalid","isDisabled","onChange","onBlur","label","min","max","shouldVisuallyHideLabel","adornmentStart","adornmentEnd","className","maximumFractionDigits","minimumFractionDigits","props","locale","currency","useLocale","inputId","errorMessageId","descriptionId","ariaDescribedBy","useFieldIds","minValue","maxValue","currencySymbol","useMemo","part","jsx","FieldLayout","AriaNumberField","Group","Input"],"mappings":";;;;;;;AAQO,SAASA,EAAY;AAAA,EAC1B,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,KAAAC;AAAA,EACA,KAAAC;AAAA,EACA,yBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,WAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,GAAGC;AACL,GAAqB;AACnB,QAAM,EAAE,QAAAC,GAAQ,UAAAC,EAAA,IAAaC,EAAA,GACvB,EAAE,SAAAC,GAAS,gBAAAC,GAAgB,eAAAC,GAAe,iBAAAC,EAAA,IAAoBC,EAAY;AAAA,IAC9E,SAAS3B;AAAA,IACT,cAAAG;AAAA,IACA,aAAAD;AAAA,EAAA,CACD,GAEK0B,IAAW,OAAOjB,KAAQ,WAAW,OAAOA,CAAG,IAAIA,GACnDkB,IAAW,OAAOjB,KAAQ,WAAW,OAAOA,CAAG,IAAIA,GAEnDkB,IAAiBC,EAAQ,MACtB,IAAI,KAAK,aAAaX,GAAQ;AAAA,IACnC,OAAO;AAAA,IACP,UAAAC;AAAA,EAAA,CACD,EACE,cAAc,CAAC,EACf,KAAK,CAAAW,MAAQA,EAAK,SAAS,UAAU,GAAG,OAC1C,CAACX,GAAUD,CAAM,CAAC;AAErB,SACE,gBAAAa;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,OAAAxB;AAAA,MACA,aAAAR;AAAA,MACA,cAAAC;AAAA,MACA,YAAAC;AAAA,MACA,SAASmB;AAAA,MACT,gBAAAC;AAAA,MACA,eAAAC;AAAA,MACA,yBAAAZ;AAAA,MACA,WAAAG;AAAA,MACA,eAAe;AAAA,MACd,GAAGG;AAAA,MAEJ,UAAA,gBAAAc;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,OAAAlC;AAAA,UACA,MAAAJ;AAAA,UACA,eAAe;AAAA,YACb,OAAO;AAAA,YACP,uBAAuBC,MAAW,aAAa,IAAIoB;AAAA,YACnD,uBAAuBpB,MAAW,aAAa,IAAImB;AAAA,YACnD,UAAAI;AAAA,YACA,iBAAiB;AAAA,UAAA;AAAA,UAEnB,WAAAf;AAAA,UACA,YAAAC;AAAA,UACA,YAAAH;AAAA,UACA,oBAAmB;AAAA,UACnB,UAAAI;AAAA,UAKA,mBAAgB;AAAA,UAChB,UAAAoB;AAAA,UACA,UAAAC;AAAA,UACC,GAAGV;AAAA,UAEJ,4BAACiB,GAAA,EACC,UAAA,gBAAAH;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,gBAAgBvB,MAAmBhB,MAAW,aAAagC,IAAiB;AAAA,cAC5E,cAAcf,MAAiBjB,MAAW,YAAY,MAAM;AAAA,cAC5D,IAAIyB;AAAA,cACJ,UAAAxB;AAAA,cACA,QAAAU;AAAA,cACA,aAAAJ;AAAA,cACA,oBAAkBqB;AAAA,cAClB,YAAAnB;AAAA,YAAA;AAAA,UAAA,EACF,CACF;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA;AAGN;"}
@@ -1,2 +1,2 @@
1
1
  import { ProgressBarProps } from './ProgressBarTypes';
2
- export declare function ProgressBar({ className, totalSteps, currentStep, label }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
2
+ export declare function ProgressBar({ className, totalSteps, currentStep, label, cta: Cta, }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,24 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import l from "classnames";
3
- import t from "./ProgressBar.module.scss.js";
4
- import { VisuallyHidden as n } from "../../VisuallyHidden/VisuallyHidden.js";
5
- function g({ className: o, totalSteps: r, currentStep: a, label: m }) {
6
- const e = Math.max(1, Math.min(a, r)), i = {
7
- "--g-progress-bar-width": `${e * 100 / r}%`
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import c from "classnames";
3
+ import { Flex as n } from "../../Flex/Flex.js";
4
+ import p from "./ProgressBar.module.scss.js";
5
+ import { VisuallyHidden as d } from "../../VisuallyHidden/VisuallyHidden.js";
6
+ function y({
7
+ className: i,
8
+ totalSteps: e,
9
+ currentStep: m,
10
+ label: a,
11
+ cta: o
12
+ }) {
13
+ const s = Math.max(1, Math.min(m, e)), l = {
14
+ "--g-progress-bar-width": `${s * 100 / e}%`
8
15
  };
9
- return /* @__PURE__ */ s("div", { className: l(t.root, o), style: i, children: /* @__PURE__ */ s(n, { children: /* @__PURE__ */ s("progress", { "aria-label": m, value: e, max: r }) }) });
16
+ return /* @__PURE__ */ t(n, { flexDirection: "column", children: [
17
+ o && /* @__PURE__ */ r(o, {}),
18
+ /* @__PURE__ */ r("div", { className: c(p.root, i), style: l, children: /* @__PURE__ */ r(d, { children: /* @__PURE__ */ r("progress", { "aria-label": a, value: s, max: e }) }) })
19
+ ] });
10
20
  }
11
21
  export {
12
- g as ProgressBar
22
+ y as ProgressBar
13
23
  };
14
24
  //# sourceMappingURL=ProgressBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.js","sources":["../../../../../src/components/Common/UI/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import classnames from 'classnames'\nimport { VisuallyHidden } from '../../VisuallyHidden'\nimport type { ProgressBarProps } from './ProgressBarTypes'\nimport styles from './ProgressBar.module.scss'\n\nexport function ProgressBar({ className, totalSteps, currentStep, label }: ProgressBarProps) {\n const clampedStep = Math.max(1, Math.min(currentStep, totalSteps))\n const progressBarStyle = {\n '--g-progress-bar-width': `${(clampedStep * 100) / totalSteps}%`,\n } as React.CSSProperties\n return (\n <div className={classnames(styles.root, className)} style={progressBarStyle}>\n <VisuallyHidden>\n <progress aria-label={label} value={clampedStep} max={totalSteps}></progress>\n </VisuallyHidden>\n </div>\n )\n}\n"],"names":["ProgressBar","className","totalSteps","currentStep","label","clampedStep","progressBarStyle","jsx","classnames","styles","VisuallyHidden"],"mappings":";;;;AAKO,SAASA,EAAY,EAAE,WAAAC,GAAW,YAAAC,GAAY,aAAAC,GAAa,OAAAC,KAA2B;AAC3F,QAAMC,IAAc,KAAK,IAAI,GAAG,KAAK,IAAIF,GAAaD,CAAU,CAAC,GAC3DI,IAAmB;AAAA,IACvB,0BAA0B,GAAID,IAAc,MAAOH,CAAU;AAAA,EAAA;AAE/D,SACE,gBAAAK,EAAC,SAAI,WAAWC,EAAWC,EAAO,MAAMR,CAAS,GAAG,OAAOK,GACzD,4BAACI,GAAA,EACC,UAAA,gBAAAH,EAAC,cAAS,cAAYH,GAAO,OAAOC,GAAa,KAAKH,GAAY,EAAA,CACpE,EAAA,CACF;AAEJ;"}
1
+ {"version":3,"file":"ProgressBar.js","sources":["../../../../../src/components/Common/UI/ProgressBar/ProgressBar.tsx"],"sourcesContent":["import classnames from 'classnames'\nimport { VisuallyHidden } from '../../VisuallyHidden'\nimport { Flex } from '../../Flex'\nimport type { ProgressBarProps } from './ProgressBarTypes'\nimport styles from './ProgressBar.module.scss'\n\nexport function ProgressBar({\n className,\n totalSteps,\n currentStep,\n label,\n cta: Cta,\n}: ProgressBarProps) {\n const clampedStep = Math.max(1, Math.min(currentStep, totalSteps))\n const progressBarStyle = {\n '--g-progress-bar-width': `${(clampedStep * 100) / totalSteps}%`,\n } as React.CSSProperties\n return (\n <Flex flexDirection=\"column\">\n {Cta && <Cta />}\n <div className={classnames(styles.root, className)} style={progressBarStyle}>\n <VisuallyHidden>\n <progress aria-label={label} value={clampedStep} max={totalSteps}></progress>\n </VisuallyHidden>\n </div>\n </Flex>\n )\n}\n"],"names":["ProgressBar","className","totalSteps","currentStep","label","Cta","clampedStep","progressBarStyle","jsxs","Flex","jsx","classnames","styles","VisuallyHidden"],"mappings":";;;;;AAMO,SAASA,EAAY;AAAA,EAC1B,WAAAC;AAAA,EACA,YAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,KAAKC;AACP,GAAqB;AACnB,QAAMC,IAAc,KAAK,IAAI,GAAG,KAAK,IAAIH,GAAaD,CAAU,CAAC,GAC3DK,IAAmB;AAAA,IACvB,0BAA0B,GAAID,IAAc,MAAOJ,CAAU;AAAA,EAAA;AAE/D,SACE,gBAAAM,EAACC,GAAA,EAAK,eAAc,UACjB,UAAA;AAAA,IAAAJ,uBAAQA,GAAA,EAAI;AAAA,IACb,gBAAAK,EAAC,SAAI,WAAWC,EAAWC,EAAO,MAAMX,CAAS,GAAG,OAAOM,GACzD,4BAACM,GAAA,EACC,UAAA,gBAAAH,EAAC,cAAS,cAAYN,GAAO,OAAOE,GAAa,KAAKJ,EAAA,CAAY,EAAA,CACpE,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,4 +1,4 @@
1
- const o = "_root_x6ixa_1", t = {
1
+ const o = "_root_16byn_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -15,4 +15,8 @@ export interface ProgressBarProps {
15
15
  * Accessible label describing the progress bar's purpose
16
16
  */
17
17
  label: string;
18
+ /**
19
+ * Component to render as the progress bar's CTA
20
+ */
21
+ cta?: React.ComponentType | null;
18
22
  }
@@ -1,4 +1,4 @@
1
- const o = "_radioWrapper_1gv6h_1", r = "_radio_1gv6h_1", a = "_checked_1gv6h_21", d = "_radioDot_1gv6h_25", t = "_radioInput_1gv6h_32", _ = {
1
+ const o = "_radioWrapper_1nzs4_1", r = "_radio_1nzs4_1", a = "_checked_1nzs4_21", d = "_radioDot_1nzs4_25", t = "_radioInput_1nzs4_32", _ = {
2
2
  radioWrapper: o,
3
3
  radio: r,
4
4
  checked: a,
@@ -1,4 +1,4 @@
1
- const o = "_root_yubia_1", t = {
1
+ const o = "_root_11w4w_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_root_197so_1", s = "_icons_197so_17", t = "_popover_197so_92", _ = {
1
+ const o = "_root_lmlas_1", s = "_icons_lmlas_17", t = "_popover_lmlas_67", _ = {
2
2
  root: o,
3
3
  icons: s,
4
4
  popover: t
@@ -1,12 +1,12 @@
1
- const o = "_root_x5ly8_1", t = "_body_x5ly8_10", _ = "_indicator_x5ly8_21", c = {
1
+ const o = "_root_1b3s4_1", t = "_body_1b3s4_7", s = "_indicator_1b3s4_18", _ = {
2
2
  root: o,
3
3
  body: t,
4
- indicator: _
4
+ indicator: s
5
5
  };
6
6
  export {
7
7
  t as body,
8
- c as default,
9
- _ as indicator,
8
+ _ as default,
9
+ s as indicator,
10
10
  o as root
11
11
  };
12
12
  //# sourceMappingURL=Switch.module.scss.js.map
@@ -1,4 +1,4 @@
1
- const o = "_root_197gq_1", t = {
1
+ const o = "_root_1bvng_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {