@gusto/embedded-react-sdk 0.37.0 → 0.38.0-rc.2

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 (969) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +3 -0
  3. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  4. package/dist/UNSTABLE_Hooks.js +65 -47
  5. package/dist/UNSTABLE_Hooks.js.map +1 -1
  6. package/dist/assets/icons/filter-funnel.svg.js +10 -0
  7. package/dist/assets/icons/filter-funnel.svg.js.map +1 -0
  8. package/dist/assets/icons/percent-circle.svg.js +10 -0
  9. package/dist/assets/icons/percent-circle.svg.js.map +1 -0
  10. package/dist/assets/icons/plus-circle.svg.js +1 -1
  11. package/dist/assets/icons/plus-circle.svg.js.map +1 -1
  12. package/dist/components/Base/Base.js +2 -3
  13. package/dist/components/Base/Base.js.map +1 -1
  14. package/dist/components/Base/createCompoundContext.js.map +1 -1
  15. package/dist/components/Common/DataView/DataCards/DataCards.d.ts +5 -3
  16. package/dist/components/Common/DataView/DataCards/DataCards.js +58 -39
  17. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  18. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +9 -7
  19. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js.map +1 -1
  20. package/dist/components/Common/DataView/DataTable/DataTable.d.ts +4 -2
  21. package/dist/components/Common/DataView/DataTable/DataTable.js +95 -76
  22. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  23. package/dist/components/Common/DataView/DataView.d.ts +4 -3
  24. package/dist/components/Common/DataView/DataView.js +24 -22
  25. package/dist/components/Common/DataView/DataView.js.map +1 -1
  26. package/dist/components/Common/DataView/useDataView.d.ts +33 -6
  27. package/dist/components/Common/DataView/useDataView.js +23 -20
  28. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  29. package/dist/components/Common/DataView/useSelectionState.d.ts +5 -0
  30. package/dist/components/Common/DataView/useSelectionState.js +8 -0
  31. package/dist/components/Common/DataView/useSelectionState.js.map +1 -0
  32. package/dist/components/Common/DateRangeFilter/DateRangeFilter.d.ts +19 -0
  33. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js +94 -0
  34. package/dist/components/Common/DateRangeFilter/DateRangeFilter.js.map +1 -0
  35. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js +14 -0
  36. package/dist/components/Common/DateRangeFilter/DateRangeFilter.module.scss.js.map +1 -0
  37. package/dist/components/Common/DetailViewLayout/DetailViewLayout.d.ts +2 -0
  38. package/dist/components/Common/DetailViewLayout/DetailViewLayoutTypes.d.ts +40 -0
  39. package/dist/components/Common/DetailViewLayout/index.d.ts +3 -0
  40. package/dist/components/Common/EmptyData/EmptyData.d.ts +2 -1
  41. package/dist/components/Common/EmptyData/EmptyData.js +15 -13
  42. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  43. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +6 -4
  44. package/dist/components/Common/EmptyData/EmptyData.module.scss.js.map +1 -1
  45. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +26 -24
  46. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  47. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
  48. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
  49. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  50. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
  51. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
  52. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  53. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +1 -1
  54. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +40 -38
  55. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  56. package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
  57. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
  58. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
  59. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
  60. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +27 -25
  61. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  62. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +1 -1
  63. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +34 -32
  64. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  65. package/dist/components/Common/Fields/SelectField/SelectField.d.ts +1 -1
  66. package/dist/components/Common/Fields/SelectField/SelectField.js +34 -32
  67. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  68. package/dist/components/Common/Fields/SwitchField/SwitchField.js +26 -24
  69. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  70. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
  71. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
  72. package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -24
  73. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  74. package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
  75. package/dist/components/Common/Fields/hooks/useField.js +37 -33
  76. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  77. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.d.ts +2 -2
  78. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js +2 -2
  79. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js.map +1 -1
  80. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js +21 -20
  81. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbs.js.map +1 -1
  82. package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes.d.ts +5 -0
  83. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.d.ts +1 -1
  84. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js +10 -8
  85. package/dist/components/Common/FlowBreadcrumbs/breadcrumbTransitionHelpers.js.map +1 -1
  86. package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
  87. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
  88. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  89. package/dist/components/Common/SignatureForm/SignatureFormActions.js +9 -12
  90. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  91. package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -18
  92. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  93. package/dist/components/Common/UI/Box/Box.d.ts +1 -1
  94. package/dist/components/Common/UI/Box/Box.js +9 -8
  95. package/dist/components/Common/UI/Box/Box.js.map +1 -1
  96. package/dist/components/Common/UI/Box/Box.module.scss.js +12 -8
  97. package/dist/components/Common/UI/Box/Box.module.scss.js.map +1 -1
  98. package/dist/components/Common/UI/Box/BoxTypes.d.ts +2 -9
  99. package/dist/components/Common/UI/BoxHeader/BoxHeader.d.ts +2 -0
  100. package/dist/components/Common/UI/BoxHeader/BoxHeader.js +23 -0
  101. package/dist/components/Common/UI/BoxHeader/BoxHeader.js.map +1 -0
  102. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js +8 -0
  103. package/dist/components/Common/UI/BoxHeader/BoxHeader.module.scss.js.map +1 -0
  104. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.d.ts +10 -0
  105. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js +7 -0
  106. package/dist/components/Common/UI/BoxHeader/BoxHeaderTypes.js.map +1 -0
  107. package/dist/components/Common/UI/BoxHeader/index.d.ts +2 -0
  108. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +17 -17
  109. package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js.map +1 -1
  110. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.d.ts +5 -0
  111. package/dist/components/Common/UI/Breadcrumbs/BreadcrumbsTypes.js.map +1 -1
  112. package/dist/components/Common/UI/Button/Button.js +33 -29
  113. package/dist/components/Common/UI/Button/Button.js.map +1 -1
  114. package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
  115. package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
  116. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
  117. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  118. package/dist/components/Common/UI/Checkbox/Checkbox.js +60 -49
  119. package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -1
  120. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +10 -6
  121. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js.map +1 -1
  122. package/dist/components/Common/UI/ComboBox/ComboBox.js +1 -1
  123. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  124. package/dist/components/Common/UI/ComboBox/ComboBoxTypes.d.ts +1 -1
  125. package/dist/components/Common/UI/DatePicker/DatePicker.d.ts +1 -1
  126. package/dist/components/Common/UI/DatePicker/DatePicker.js +88 -69
  127. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  128. package/dist/components/Common/UI/DatePicker/DatePickerTypes.d.ts +13 -0
  129. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.d.ts +2 -0
  130. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js +72 -0
  131. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.js.map +1 -0
  132. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js +30 -0
  133. package/dist/components/Common/UI/DateRangePicker/DateRangePicker.module.scss.js.map +1 -0
  134. package/dist/components/Common/UI/DateRangePicker/DateRangePickerTypes.d.ts +14 -0
  135. package/dist/components/Common/UI/DateRangePicker/index.d.ts +2 -0
  136. package/dist/components/Common/UI/DescriptionList/DescriptionList.js +19 -12
  137. package/dist/components/Common/UI/DescriptionList/DescriptionList.js.map +1 -1
  138. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +6 -4
  139. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js.map +1 -1
  140. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.d.ts +6 -1
  141. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js +4 -1
  142. package/dist/components/Common/UI/DescriptionList/DescriptionListTypes.js.map +1 -1
  143. package/dist/components/Common/UI/Heading/Heading.d.ts +1 -1
  144. package/dist/components/Common/UI/Heading/Heading.js +11 -9
  145. package/dist/components/Common/UI/Heading/Heading.js.map +1 -1
  146. package/dist/components/Common/UI/Heading/Heading.module.scss.js +15 -15
  147. package/dist/components/Common/UI/Heading/HeadingTypes.d.ts +1 -1
  148. package/dist/components/Common/UI/Input/Input.js.map +1 -1
  149. package/dist/components/Common/UI/Menu/Menu.module.scss.js +5 -5
  150. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
  151. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  152. package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
  153. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  154. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.d.ts +1 -1
  155. package/dist/components/Common/UI/RadioGroup/RadioGroupTypes.js.map +1 -1
  156. package/dist/components/Common/UI/Select/Select.js +22 -22
  157. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  158. package/dist/components/Common/UI/Select/SelectTypes.d.ts +1 -1
  159. package/dist/components/Common/UI/Table/Table.js +12 -12
  160. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  161. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  162. package/dist/components/Common/UI/Table/TableTypes.d.ts +3 -3
  163. package/dist/components/Common/UI/Table/TableTypes.js +3 -3
  164. package/dist/components/Common/UI/Table/TableTypes.js.map +1 -1
  165. package/dist/components/Common/UI/TextArea/TextArea.js +1 -1
  166. package/dist/components/Common/UI/TextArea/TextArea.js.map +1 -1
  167. package/dist/components/Common/UI/TextInput/TextInput.js +13 -13
  168. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  169. package/dist/components/Common/index.d.ts +2 -0
  170. package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
  171. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  172. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +2 -5
  173. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  174. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +2 -4
  175. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  176. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
  177. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  178. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
  179. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  180. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  181. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  182. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +2 -4
  183. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  184. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
  185. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  186. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -14
  187. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  188. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  189. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  190. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
  191. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  192. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  193. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  194. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +8 -10
  195. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  196. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
  197. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  198. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  199. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  200. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +8 -10
  201. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  202. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +8 -10
  203. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  204. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
  205. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  206. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +2 -4
  207. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  208. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
  209. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  210. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  211. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  212. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  213. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  214. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  215. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  216. package/dist/components/Company/FederalTaxes/Actions.js +7 -9
  217. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  218. package/dist/components/Company/FederalTaxes/FederalTaxes.js +22 -26
  219. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  220. package/dist/components/Company/FederalTaxes/Form.js +7 -9
  221. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  222. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -9
  223. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  224. package/dist/components/Company/Industry/Actions.js +7 -9
  225. package/dist/components/Company/Industry/Actions.js.map +1 -1
  226. package/dist/components/Company/Industry/Context.js +6 -7
  227. package/dist/components/Company/Industry/Context.js.map +1 -1
  228. package/dist/components/Company/Industry/Edit.js +4 -7
  229. package/dist/components/Company/Industry/Edit.js.map +1 -1
  230. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -10
  231. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  232. package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
  233. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  234. package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
  235. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  236. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  237. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  238. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -8
  239. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  240. package/dist/components/Company/Locations/LocationsList/List.js +15 -16
  241. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  242. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
  243. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  244. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  245. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  246. package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
  247. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  248. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
  249. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  250. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
  251. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  252. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  253. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  254. package/dist/components/Company/PaySchedule/PaySchedule.js +94 -91
  255. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  256. package/dist/components/Company/PaySchedule/_parts/Actions.js +16 -18
  257. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  258. package/dist/components/Company/PaySchedule/_parts/Edit.js +47 -39
  259. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  260. package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
  261. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  262. package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
  263. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  264. package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +6 -5
  265. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -6
  266. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  267. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +2 -4
  268. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  269. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js +33 -33
  270. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  271. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  272. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  273. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +2 -4
  274. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  275. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -7
  276. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  277. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +14 -14
  278. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
  279. package/dist/components/Company/StateTaxes/StateTaxesList/context.d.ts +2 -2
  280. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  281. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  282. package/dist/components/Contractor/Address/Address.js +3 -7
  283. package/dist/components/Contractor/Address/Address.js.map +1 -1
  284. package/dist/components/Contractor/Address/Form.js +2 -4
  285. package/dist/components/Contractor/Address/Form.js.map +1 -1
  286. package/dist/components/Contractor/Address/useAddress.js +5 -6
  287. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  288. package/dist/components/Contractor/ContractorList/index.js +33 -34
  289. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  290. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  291. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  292. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -13
  293. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  294. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  295. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  296. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
  297. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  298. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +135 -126
  299. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  300. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +2 -1
  301. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +72 -71
  302. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  303. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  304. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.d.ts +2 -1
  305. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
  306. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  307. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.d.ts +2 -1
  308. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +83 -84
  309. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  310. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
  311. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  312. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js +10 -10
  313. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatement.js.map +1 -1
  314. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +67 -79
  315. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  316. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js +10 -12
  317. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.module.scss.js.map +1 -1
  318. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +47 -49
  319. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  320. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +63 -66
  321. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  322. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.module.scss.js +4 -4
  323. package/dist/components/Contractor/Profile/ContractorProfileForm.js +13 -13
  324. package/dist/components/Contractor/Profile/useContractorProfile.js +31 -30
  325. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  326. package/dist/components/Contractor/Submit/Submit.d.ts +2 -2
  327. package/dist/components/Contractor/Submit/Submit.js +44 -46
  328. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  329. package/dist/components/Employee/Compensation/Actions.js +12 -14
  330. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  331. package/dist/components/Employee/Compensation/Compensation.js +80 -77
  332. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  333. package/dist/components/Employee/Compensation/Edit.js +27 -28
  334. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  335. package/dist/components/Employee/Compensation/List.js +22 -23
  336. package/dist/components/Employee/Compensation/List.js.map +1 -1
  337. package/dist/components/Employee/Dashboard/BasicDetailsView.d.ts +13 -0
  338. package/dist/components/Employee/Dashboard/BasicDetailsView.js +107 -0
  339. package/dist/components/Employee/Dashboard/BasicDetailsView.js.map +1 -0
  340. package/dist/components/Employee/Dashboard/Dashboard.d.ts +5 -0
  341. package/dist/components/Employee/Dashboard/Dashboard.js +146 -0
  342. package/dist/components/Employee/Dashboard/Dashboard.js.map +1 -0
  343. package/dist/components/Employee/Dashboard/DashboardComponents.d.ts +5 -0
  344. package/dist/components/Employee/Dashboard/DashboardComponents.js +12 -0
  345. package/dist/components/Employee/Dashboard/DashboardComponents.js.map +1 -0
  346. package/dist/components/Employee/Dashboard/DashboardFlow.d.ts +5 -0
  347. package/dist/components/Employee/Dashboard/DashboardFlow.js +25 -0
  348. package/dist/components/Employee/Dashboard/DashboardFlow.js.map +1 -0
  349. package/dist/components/Employee/Dashboard/DocumentsView.d.ts +7 -0
  350. package/dist/components/Employee/Dashboard/DocumentsView.js +51 -0
  351. package/dist/components/Employee/Dashboard/DocumentsView.js.map +1 -0
  352. package/dist/components/Employee/Dashboard/JobAndPayView.d.ts +22 -0
  353. package/dist/components/Employee/Dashboard/JobAndPayView.js +211 -0
  354. package/dist/components/Employee/Dashboard/JobAndPayView.js.map +1 -0
  355. package/dist/components/Employee/Dashboard/TaxesView.d.ts +13 -0
  356. package/dist/components/Employee/Dashboard/TaxesView.js +97 -0
  357. package/dist/components/Employee/Dashboard/TaxesView.js.map +1 -0
  358. package/dist/components/Employee/Dashboard/dashboardStateMachine.d.ts +3 -0
  359. package/dist/components/Employee/Dashboard/dashboardStateMachine.js +8 -0
  360. package/dist/components/Employee/Dashboard/dashboardStateMachine.js.map +1 -0
  361. package/dist/components/Employee/Dashboard/hooks/index.d.ts +9 -0
  362. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.d.ts +20 -0
  363. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js +29 -0
  364. package/dist/components/Employee/Dashboard/hooks/useEmployeeBasicDetails.js.map +1 -0
  365. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.d.ts +30 -0
  366. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js +52 -0
  367. package/dist/components/Employee/Dashboard/hooks/useEmployeeCompensation.js.map +1 -0
  368. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.d.ts +16 -0
  369. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js +22 -0
  370. package/dist/components/Employee/Dashboard/hooks/useEmployeeForms.js.map +1 -0
  371. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.d.ts +20 -0
  372. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js +24 -0
  373. package/dist/components/Employee/Dashboard/hooks/useEmployeeTaxes.js.map +1 -0
  374. package/dist/components/Employee/Dashboard/index.d.ts +14 -0
  375. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +57 -53
  376. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  377. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +17 -18
  378. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  379. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  380. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +11 -12
  381. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  382. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
  383. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  384. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -7
  385. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  386. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -8
  387. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  388. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
  389. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  390. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
  391. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  392. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  393. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  394. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js +22 -22
  395. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibility.js.map +1 -1
  396. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
  397. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  398. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +12 -14
  399. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  400. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  401. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  402. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  403. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  404. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
  405. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  406. package/dist/components/Employee/EmployeeList/EmployeeList.d.ts +3 -7
  407. package/dist/components/Employee/EmployeeList/EmployeeList.js +45 -95
  408. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  409. package/dist/components/Employee/EmployeeList/EmployeeListView.d.ts +15 -0
  410. package/dist/components/Employee/EmployeeList/EmployeeListView.js +130 -0
  411. package/dist/components/Employee/EmployeeList/EmployeeListView.js.map +1 -0
  412. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.d.ts +9 -0
  413. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.js +81 -0
  414. package/dist/components/Employee/EmployeeList/ManagementEmployeeList.js.map +1 -0
  415. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.d.ts +17 -0
  416. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js +193 -0
  417. package/dist/components/Employee/EmployeeList/ManagementEmployeeListView.js.map +1 -0
  418. package/dist/components/Employee/EmployeeList/index.d.ts +3 -0
  419. package/dist/components/Employee/EmployeeList/useEmployeeList.d.ts +36 -23
  420. package/dist/components/Employee/EmployeeList/useEmployeeList.js +114 -19
  421. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  422. package/dist/components/Employee/FederalTaxes/Actions.js +7 -9
  423. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  424. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -12
  425. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  426. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -4
  427. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  428. package/dist/components/Employee/Landing/Landing.js +14 -15
  429. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  430. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js +4 -4
  431. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  432. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.d.ts +1 -0
  433. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js +14 -8
  434. package/dist/components/Employee/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  435. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js +10 -11
  436. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  437. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  438. package/dist/components/Employee/PaymentMethod/Actions.js +6 -8
  439. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  440. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
  441. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  442. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +12 -13
  443. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  444. package/dist/components/Employee/PaymentMethod/PaymentMethod.js +44 -43
  445. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  446. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
  447. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  448. package/dist/components/Employee/PaymentMethod/Split.js +9 -10
  449. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  450. package/dist/components/Employee/PaymentMethod/usePaymentMethod.d.ts +1 -0
  451. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -6
  452. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  453. package/dist/components/Employee/Profile/Actions.js +7 -9
  454. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  455. package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -16
  456. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  457. package/dist/components/Employee/Profile/HomeAddress.js +9 -10
  458. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  459. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -12
  460. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  461. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  462. package/dist/components/Employee/Profile/useProfile.js +3 -4
  463. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  464. package/dist/components/Employee/StateTaxes/Actions.js +8 -10
  465. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  466. package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -4
  467. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  468. package/dist/components/Employee/Taxes/Actions.js +8 -10
  469. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  470. package/dist/components/Employee/Taxes/FederalForm.js +10 -12
  471. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  472. package/dist/components/Employee/Taxes/useTaxes.js +3 -4
  473. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  474. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +48 -48
  475. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -1
  476. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +14 -17
  477. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -1
  478. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +1 -0
  479. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +37 -33
  480. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -1
  481. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +1 -0
  482. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +57 -45
  483. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -1
  484. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +8 -11
  485. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -1
  486. package/dist/components/Employee/index.d.ts +3 -0
  487. package/dist/components/Employee/index.js +38 -34
  488. package/dist/components/Employee/index.js.map +1 -1
  489. package/dist/components/Flow/Flow.js +20 -23
  490. package/dist/components/Flow/Flow.js.map +1 -1
  491. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
  492. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  493. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
  494. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  495. package/dist/components/InformationRequests/InformationRequests.js +3 -4
  496. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  497. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  498. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -10
  499. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  500. package/dist/components/Payroll/Dismissal/DismissalFlow.js +14 -14
  501. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -1
  502. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +2 -2
  503. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +21 -20
  504. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
  505. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +2 -1
  506. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +57 -55
  507. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -1
  508. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +8 -11
  509. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -1
  510. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
  511. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +85 -74
  512. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  513. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +7 -7
  514. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
  515. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  516. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +24 -18
  517. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  518. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +2 -0
  519. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +28 -22
  520. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  521. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +92 -84
  522. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  523. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +30 -32
  524. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  525. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +17 -24
  526. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  527. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.d.ts +1 -1
  528. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +21 -21
  529. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  530. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +3 -3
  531. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +13 -13
  532. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  533. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -8
  534. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  535. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -13
  536. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  537. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
  538. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  539. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  540. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +194 -190
  541. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  542. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +1 -1
  543. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +69 -69
  544. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  545. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +4 -3
  546. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +102 -76
  547. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  548. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +2 -2
  549. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +235 -238
  550. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  551. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.module.scss.js +7 -7
  552. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.d.ts +11 -0
  553. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +63 -30
  554. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  555. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +2 -1
  556. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +43 -41
  557. package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
  558. package/dist/components/Payroll/PayrollExecutionFlow/index.d.ts +1 -1
  559. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.d.ts +1 -1
  560. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +62 -51
  561. package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js.map +1 -1
  562. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +13 -6
  563. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -1
  564. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js +22 -20
  565. package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
  566. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +1 -0
  567. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  568. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +35 -14
  569. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -1
  570. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +80 -69
  571. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  572. package/dist/components/Payroll/PayrollHistory/PayrollHistory.d.ts +0 -1
  573. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +59 -66
  574. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  575. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +5 -4
  576. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +97 -105
  577. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  578. package/dist/components/Payroll/PayrollList/PayrollList.js +98 -64
  579. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  580. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +11 -3
  581. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +225 -123
  582. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  583. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +10 -8
  584. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  585. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +106 -105
  586. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  587. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +2 -1
  588. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +222 -213
  589. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  590. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.d.ts +2 -1
  591. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
  592. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  593. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +103 -114
  594. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  595. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js +16 -18
  596. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.module.scss.js.map +1 -1
  597. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
  598. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  599. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
  600. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  601. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
  602. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  603. package/dist/components/Payroll/Transition/TransitionFlow.d.ts +1 -1
  604. package/dist/components/Payroll/Transition/TransitionFlow.js +29 -27
  605. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -1
  606. package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +1 -0
  607. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
  608. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +67 -63
  609. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -1
  610. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +12 -14
  611. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -1
  612. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +1 -1
  613. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +5 -5
  614. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -1
  615. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +13 -13
  616. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -1
  617. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +44 -55
  618. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -1
  619. package/dist/components/Payroll/helpers.d.ts +6 -1
  620. package/dist/components/Payroll/helpers.js +81 -74
  621. package/dist/components/Payroll/helpers.js.map +1 -1
  622. package/dist/components/Payroll/usePreparedPayrollData.d.ts +2 -2
  623. package/dist/components/Payroll/usePreparedPayrollData.js +7 -8
  624. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  625. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +2 -2
  626. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +6 -9
  627. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -1
  628. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +1 -1
  629. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -1
  630. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +1 -2
  631. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -1
  632. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.d.ts +48 -0
  633. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js +94 -0
  634. package/dist/components/UNSTABLE_Hooks/form/buildFormSchema.js.map +1 -0
  635. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +3 -2
  636. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +24 -23
  637. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -1
  638. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +3 -2
  639. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +22 -17
  640. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -1
  641. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +3 -2
  642. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +31 -30
  643. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -1
  644. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +3 -2
  645. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +27 -26
  646. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -1
  647. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +3 -2
  648. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +28 -27
  649. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -1
  650. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +3 -2
  651. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +24 -23
  652. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -1
  653. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +5 -4
  654. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +28 -27
  655. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -1
  656. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +1 -1
  657. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -1
  658. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +5 -5
  659. package/dist/components/UNSTABLE_Hooks/form/preprocessors.d.ts +3 -0
  660. package/dist/components/UNSTABLE_Hooks/form/preprocessors.js +15 -0
  661. package/dist/components/UNSTABLE_Hooks/form/preprocessors.js.map +1 -0
  662. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
  663. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +14 -0
  664. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -0
  665. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.d.ts +17 -0
  666. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js +21 -0
  667. package/dist/components/UNSTABLE_Hooks/form/useDeriveFieldsMetadata.js.map +1 -0
  668. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +1 -1
  669. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +8 -8
  670. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -1
  671. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +22 -0
  672. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
  673. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -0
  674. package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +1 -1
  675. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -1
  676. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +3 -5
  677. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -1
  678. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +48 -42
  679. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +48 -79
  680. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -1
  681. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +2 -2
  682. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -1
  683. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +2 -2
  684. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +13 -15
  685. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +109 -110
  686. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -1
  687. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +16 -18
  688. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -1
  689. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +13 -4
  690. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +31 -25
  691. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -1
  692. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +5 -4
  693. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +27 -27
  694. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -1
  695. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +1 -1
  696. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +8 -22
  697. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +81 -84
  698. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -1
  699. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.d.ts +5 -0
  700. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js +172 -0
  701. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.js.map +1 -0
  702. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js +14 -0
  703. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/PayScheduleForm.module.scss.js.map +1 -0
  704. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.d.ts +23 -0
  705. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js +37 -0
  706. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/fields.js.map +1 -0
  707. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/index.d.ts +7 -0
  708. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.d.ts +55 -0
  709. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js +54 -0
  710. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/payScheduleSchema.js.map +1 -0
  711. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.d.ts +69 -0
  712. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js +180 -0
  713. package/dist/components/UNSTABLE_Hooks/hooks/usePayScheduleForm/usePayScheduleForm.js.map +1 -0
  714. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.d.ts +5 -0
  715. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js +69 -0
  716. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/SignCompanyForm.js.map +1 -0
  717. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.d.ts +9 -0
  718. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js +14 -0
  719. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/fields.js.map +1 -0
  720. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/index.d.ts +7 -0
  721. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.d.ts +25 -0
  722. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js +24 -0
  723. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/signCompanyFormSchema.js.map +1 -0
  724. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.d.ts +57 -0
  725. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js +101 -0
  726. package/dist/components/UNSTABLE_Hooks/hooks/useSignCompanyForm/useSignCompanyForm.js.map +1 -0
  727. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.d.ts +5 -0
  728. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js +71 -0
  729. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeForm.js.map +1 -0
  730. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.d.ts +5 -0
  731. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js +179 -0
  732. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/SignEmployeeI9Form.js.map +1 -0
  733. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.d.ts +53 -0
  734. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js +164 -0
  735. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/fields.js.map +1 -0
  736. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/index.d.ts +9 -0
  737. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.d.ts +150 -0
  738. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js +152 -0
  739. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -0
  740. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.d.ts +151 -0
  741. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js +172 -0
  742. package/dist/components/UNSTABLE_Hooks/hooks/useSignEmployeeForm/useSignEmployeeForm.js.map +1 -0
  743. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +15 -17
  744. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -1
  745. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +1 -1
  746. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -1
  747. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +1 -1
  748. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +9 -10
  749. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +85 -83
  750. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -1
  751. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +8 -4
  752. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +18 -17
  753. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -1
  754. package/dist/components/UNSTABLE_Hooks/index.d.ts +10 -7
  755. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.d.ts +5 -0
  756. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js +46 -0
  757. package/dist/components/UNSTABLE_TimeOff/AddEmployeesHoliday/AddEmployeesHoliday.js.map +1 -0
  758. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.d.ts +5 -0
  759. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js +46 -0
  760. package/dist/components/UNSTABLE_TimeOff/AddEmployeesToPolicy/AddEmployeesToPolicy.js.map +1 -0
  761. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.d.ts +5 -0
  762. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js +49 -0
  763. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionForm.js.map +1 -0
  764. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.d.ts +2 -0
  765. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js +55 -0
  766. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormPresentation.js.map +1 -0
  767. package/dist/components/UNSTABLE_TimeOff/HolidaySelectionForm/HolidaySelectionFormTypes.d.ts +25 -0
  768. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.d.ts +5 -0
  769. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js +73 -0
  770. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyList.js.map +1 -0
  771. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.d.ts +2 -0
  772. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js +122 -0
  773. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.js.map +1 -0
  774. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js +8 -0
  775. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListPresentation.module.scss.js.map +1 -0
  776. package/dist/components/UNSTABLE_TimeOff/PolicyList/PolicyListTypes.d.ts +17 -0
  777. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.d.ts +5 -0
  778. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js +46 -0
  779. package/dist/components/UNSTABLE_TimeOff/PolicySettings/PolicySettings.js.map +1 -0
  780. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.d.ts +7 -0
  781. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js +29 -0
  782. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelector.js.map +1 -0
  783. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.d.ts +2 -0
  784. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js +66 -0
  785. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorPresentation.js.map +1 -0
  786. package/dist/components/UNSTABLE_TimeOff/PolicyTypeSelector/PolicyTypeSelectorTypes.d.ts +6 -0
  787. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.d.ts +2 -0
  788. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js +25 -0
  789. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlow.js.map +1 -0
  790. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.d.ts +29 -0
  791. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js +103 -0
  792. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/TimeOffFlowComponents.js.map +1 -0
  793. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/index.d.ts +3 -0
  794. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.d.ts +14 -0
  795. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js +290 -0
  796. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.js.map +1 -0
  797. package/dist/components/UNSTABLE_TimeOff/TimeOffFlow/timeOffStateMachine.test.d.ts +1 -0
  798. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.d.ts +8 -0
  799. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js +71 -0
  800. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.js.map +1 -0
  801. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js +12 -0
  802. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationForm.module.scss.js.map +1 -0
  803. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.d.ts +2 -0
  804. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js +206 -0
  805. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormPresentation.js.map +1 -0
  806. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/PolicyConfigurationFormTypes.d.ts +20 -0
  807. package/dist/components/UNSTABLE_TimeOff/TimeOffManagement/PolicyConfigurationForm/index.d.ts +6 -0
  808. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.d.ts +5 -0
  809. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js +35 -0
  810. package/dist/components/UNSTABLE_TimeOff/ViewHolidayEmployees/ViewHolidayEmployees.js.map +1 -0
  811. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.d.ts +5 -0
  812. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js +35 -0
  813. package/dist/components/UNSTABLE_TimeOff/ViewHolidaySchedule/ViewHolidaySchedule.js.map +1 -0
  814. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.d.ts +5 -0
  815. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js +35 -0
  816. package/dist/components/UNSTABLE_TimeOff/ViewPolicyDetails/ViewPolicyDetails.js.map +1 -0
  817. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.d.ts +5 -0
  818. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js +35 -0
  819. package/dist/components/UNSTABLE_TimeOff/ViewPolicyEmployees/ViewPolicyEmployees.js.map +1 -0
  820. package/dist/components/UNSTABLE_TimeOff/index.d.ts +25 -0
  821. package/dist/components/UNSTABLE_TimeOff/index.js +27 -0
  822. package/dist/components/UNSTABLE_TimeOff/index.js.map +1 -0
  823. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTable.d.ts +2 -0
  824. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/EmployeeTableTypes.d.ts +26 -0
  825. package/dist/components/UNSTABLE_TimeOff/shared/EmployeeTable/index.d.ts +4 -0
  826. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.d.ts +30 -0
  827. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js +97 -0
  828. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.js.map +1 -0
  829. package/dist/components/UNSTABLE_TimeOff/shared/holidayHelpers.test.d.ts +1 -0
  830. package/dist/components/index.d.ts +1 -0
  831. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +66 -62
  832. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  833. package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +1 -0
  834. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +10 -0
  835. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +28 -21
  836. package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
  837. package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +4 -0
  838. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  839. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +10 -12
  840. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  841. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
  842. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
  843. package/dist/contexts/ThemeProvider/theme.d.ts +2 -0
  844. package/dist/contexts/ThemeProvider/theme.js +4 -2
  845. package/dist/contexts/ThemeProvider/theme.js.map +1 -1
  846. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  847. package/dist/helpers/breadcrumbHelpers.d.ts +14 -0
  848. package/dist/helpers/breadcrumbHelpers.js +35 -26
  849. package/dist/helpers/breadcrumbHelpers.js.map +1 -1
  850. package/dist/helpers/buildQueryErrorHandling.d.ts +22 -0
  851. package/dist/helpers/buildQueryErrorHandling.js +11 -0
  852. package/dist/helpers/buildQueryErrorHandling.js.map +1 -0
  853. package/dist/{components/UNSTABLE_Hooks → helpers}/collectErrors.d.ts +1 -1
  854. package/dist/{components/UNSTABLE_Hooks → helpers}/collectErrors.js +1 -1
  855. package/dist/helpers/collectErrors.js.map +1 -0
  856. package/dist/helpers/dateFormatting.d.ts +2 -0
  857. package/dist/helpers/dateFormatting.js +38 -33
  858. package/dist/helpers/dateFormatting.js.map +1 -1
  859. package/dist/helpers/formattedStrings.js +40 -33
  860. package/dist/helpers/formattedStrings.js.map +1 -1
  861. package/dist/hooks/useCompanyPaymentSpeed.d.ts +6 -0
  862. package/dist/hooks/useCompanyPaymentSpeed.js +19 -0
  863. package/dist/hooks/useCompanyPaymentSpeed.js.map +1 -0
  864. package/dist/hooks/useCompanyPaymentSpeed.test.d.ts +1 -0
  865. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.d.ts +20 -0
  866. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.js +38 -0
  867. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.js.map +1 -0
  868. package/dist/hooks/useDateRangeFilter/useDateRangeFilter.test.d.ts +1 -0
  869. package/dist/{components/UNSTABLE_Hooks → hooks}/useErrorHandling.d.ts +2 -2
  870. package/dist/{components/UNSTABLE_Hooks → hooks}/useErrorHandling.js +1 -1
  871. package/dist/hooks/useErrorHandling.js.map +1 -0
  872. package/dist/hooks/useErrorHandling.test.d.ts +1 -0
  873. package/dist/hooks/usePagination/usePagination.d.ts +2 -0
  874. package/dist/hooks/usePagination/usePagination.js +32 -29
  875. package/dist/hooks/usePagination/usePagination.js.map +1 -1
  876. package/dist/i18n/I18n.js +21 -21
  877. package/dist/i18n/I18n.js.map +1 -1
  878. package/dist/i18n/en/Company.PaySchedule.json.js +6 -6
  879. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +24 -0
  880. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
  881. package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +32 -0
  882. package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js.map +1 -0
  883. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +28 -0
  884. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
  885. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js +28 -0
  886. package/dist/i18n/en/Company.TimeOff.SelectPolicyType.json.js.map +1 -0
  887. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +38 -0
  888. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
  889. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
  890. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
  891. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
  892. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
  893. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js +36 -34
  894. package/dist/i18n/en/Contractor.Payments.CreatePayment.json.js.map +1 -1
  895. package/dist/i18n/en/Employee.Dashboard.json.js +26 -0
  896. package/dist/i18n/en/Employee.Dashboard.json.js.map +1 -0
  897. package/dist/i18n/en/Employee.EmployeeList.json.js +22 -20
  898. package/dist/i18n/en/Employee.EmployeeList.json.js.map +1 -1
  899. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js +40 -0
  900. package/dist/i18n/en/Employee.ManagementEmployeeList.json.js.map +1 -0
  901. package/dist/i18n/en/Payroll.GrossUpModal.json.js +16 -14
  902. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  903. package/dist/i18n/en/Payroll.OffCycle.json.js +1 -1
  904. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +5 -5
  905. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +5 -5
  906. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +38 -34
  907. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
  908. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +29 -25
  909. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  910. package/dist/i18n/en/Payroll.PayrollHistory.json.js +12 -12
  911. package/dist/i18n/en/Payroll.PayrollList.json.js +30 -22
  912. package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
  913. package/dist/i18n/en/Payroll.PayrollOverview.json.js +64 -58
  914. package/dist/i18n/en/Payroll.PayrollOverview.json.js.map +1 -1
  915. package/dist/i18n/en/Payroll.TransitionCreation.json.js +9 -9
  916. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +8 -8
  917. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js +24 -0
  918. package/dist/i18n/en/UNSTABLE.PayScheduleForm.json.js.map +1 -0
  919. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js +20 -0
  920. package/dist/i18n/en/UNSTABLE.SignCompanyForm.json.js.map +1 -0
  921. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js +22 -0
  922. package/dist/i18n/en/UNSTABLE.SignEmployeeForm.json.js.map +1 -0
  923. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js +70 -0
  924. package/dist/i18n/en/UNSTABLE.SignEmployeeI9Form.json.js.map +1 -0
  925. package/dist/i18n/en/common.json.d.ts +3 -1
  926. package/dist/i18n/en/common.json.js +5 -5
  927. package/dist/index.js +18 -16
  928. package/dist/index.js.map +1 -1
  929. package/dist/shared/constants.d.ts +56 -0
  930. package/dist/shared/constants.js +100 -70
  931. package/dist/shared/constants.js.map +1 -1
  932. package/dist/style.css +1 -1
  933. package/dist/types/i18next.d.ts +817 -12
  934. package/dist/{components/UNSTABLE_Hooks/types.d.ts → types/sdkHooks.d.ts} +29 -5
  935. package/docs/reference/endpoint-inventory.json +659 -391
  936. package/package.json +33 -24
  937. package/dist/components/Employee/EmployeeList/Actions.d.ts +0 -1
  938. package/dist/components/Employee/EmployeeList/Actions.js +0 -16
  939. package/dist/components/Employee/EmployeeList/Actions.js.map +0 -1
  940. package/dist/components/Employee/EmployeeList/Head.d.ts +0 -1
  941. package/dist/components/Employee/EmployeeList/Head.js +0 -15
  942. package/dist/components/Employee/EmployeeList/Head.js.map +0 -1
  943. package/dist/components/Employee/EmployeeList/List.d.ts +0 -2
  944. package/dist/components/Employee/EmployeeList/List.js +0 -125
  945. package/dist/components/Employee/EmployeeList/List.js.map +0 -1
  946. package/dist/components/Employee/EmployeeList/List.module.scss.js +0 -8
  947. package/dist/components/Employee/EmployeeList/List.module.scss.js.map +0 -1
  948. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js +0 -8
  949. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.module.scss.js.map +0 -1
  950. package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +0 -1
  951. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +0 -26
  952. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +0 -24
  953. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +0 -1
  954. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +0 -3
  955. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +0 -14
  956. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +0 -1
  957. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +0 -6
  958. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +0 -14
  959. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +0 -1
  960. package/dist/components/UNSTABLE_Hooks/form/types.d.ts +0 -27
  961. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +0 -4
  962. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +0 -9
  963. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +0 -1
  964. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +0 -1
  965. package/dist/helpers/requiredIf.d.ts +0 -13
  966. package/dist/helpers/requiredIf.js +0 -8
  967. package/dist/helpers/requiredIf.js.map +0 -1
  968. /package/dist/components/UNSTABLE_Hooks/form/{deriveFieldsMetadata.test.d.ts → buildFormSchema.test.d.ts} +0 -0
  969. /package/dist/components/UNSTABLE_Hooks/{useErrorHandling.test.d.ts → hooks/useCompensationForm/compensationSchemaParity.test.d.ts} +0 -0
@@ -24,6 +24,7 @@ declare const defaultThemeColors: {
24
24
  colorSuccessContent: string;
25
25
  colorBorderPrimary: string;
26
26
  colorBorderSecondary: string;
27
+ colorButtonIcon: string;
27
28
  };
28
29
  export type GustoSDKThemeColors = Partial<typeof defaultThemeColors>;
29
30
  export declare const createTheme: (colors?: GustoSDKThemeColors) => {
@@ -94,6 +95,7 @@ export declare const createTheme: (colors?: GustoSDKThemeColors) => {
94
95
  colorSuccessContent: string;
95
96
  colorBorderPrimary: string;
96
97
  colorBorderSecondary: string;
98
+ colorButtonIcon: string;
97
99
  };
98
100
  export type GustoSDKTheme = Partial<ReturnType<typeof createTheme>>;
99
101
  export declare const mergePartnerTheme: (partnerTheme: GustoSDKTheme) => GustoSDKTheme;
@@ -5,6 +5,7 @@ const o = {
5
5
  100: "#F5F5F5",
6
6
  200: "#E9EAEB",
7
7
  300: "#D5D7DA",
8
+ 400: "#A4A7AE",
8
9
  600: "#535862",
9
10
  700: "#414651",
10
11
  900: "#181D27",
@@ -54,7 +55,8 @@ const o = {
54
55
  colorSuccessAccent: o.success[500],
55
56
  colorSuccessContent: o.success[800],
56
57
  colorBorderPrimary: o.neutral[300],
57
- colorBorderSecondary: o.neutral[200]
58
+ colorBorderSecondary: o.neutral[200],
59
+ colorButtonIcon: o.neutral[400]
58
60
  }, d = (r = {}) => ({
59
61
  // Colors
60
62
  ...i,
@@ -111,7 +113,7 @@ const o = {
111
113
  focusRingWidth: "2px"
112
114
  }), C = (r) => {
113
115
  const a = Object.entries(i).reduce(
114
- (e, [t, c]) => (e[t] = r[t] || c, e),
116
+ (t, [e, c]) => (t[e] = r[e] || c, t),
115
117
  {}
116
118
  );
117
119
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sources":["../../../src/contexts/ThemeProvider/theme.ts"],"sourcesContent":["import { getRootFontSize, toRem } from '@/helpers/rem'\n\n// Colors are for internal use in our theme currently\n// We don't export them for partner use or overrides\nconst baseColors = {\n neutral: {\n 25: '#FFFFFF',\n 50: '#FAFAFA',\n 100: '#F5F5F5',\n 200: '#E9EAEB',\n 300: '#D5D7DA',\n 400: '#A4A7AE',\n 500: '#717680',\n 600: '#535862',\n 700: '#414651',\n 800: '#252B37',\n 900: '#181D27',\n 1000: '#0A0D12',\n },\n error: {\n 100: '#FEF3F2',\n 500: '#C5271C',\n 800: '#D92D20',\n },\n warning: {\n 100: '#FFFAF2',\n 500: '#E9B550',\n 700: '#B88023',\n 800: '#B88023',\n },\n success: {\n 100: '#F3FAFB',\n 400: '#2BABAD',\n 500: '#0A8080',\n 800: '#005961',\n },\n info: {\n 100: '#F4F4F3',\n 500: '#DCDCDC',\n 800: '#1C1C1C',\n },\n}\n\nexport const transitionDuration = 200\n\nconst defaultThemeColors = {\n colorBody: baseColors.neutral[25],\n colorBodyAccent: baseColors.neutral[100],\n colorBodyContent: baseColors.neutral[1000],\n colorBodySubContent: baseColors.neutral[700],\n colorPrimary: baseColors.neutral[1000],\n colorPrimaryAccent: baseColors.neutral[900],\n colorPrimaryContent: baseColors.neutral[100],\n colorSecondary: baseColors.neutral[25],\n colorSecondaryAccent: baseColors.neutral[100],\n colorSecondaryContent: baseColors.neutral[600],\n colorInfo: baseColors.info[100],\n colorInfoAccent: baseColors.info[500],\n colorInfoContent: baseColors.info[800],\n colorWarning: baseColors.warning[100],\n colorWarningAccent: baseColors.warning[500],\n colorWarningContent: baseColors.warning[800],\n colorError: baseColors.error[100],\n colorErrorAccent: baseColors.error[500],\n colorErrorContent: baseColors.error[800],\n colorSuccess: baseColors.success[100],\n colorSuccessAccent: baseColors.success[500],\n colorSuccessContent: baseColors.success[800],\n colorBorderPrimary: baseColors.neutral[300],\n colorBorderSecondary: baseColors.neutral[200],\n}\n\nexport type GustoSDKThemeColors = Partial<typeof defaultThemeColors>\n\nexport const createTheme = (colors: GustoSDKThemeColors = {}) => {\n return {\n // Colors\n ...defaultThemeColors,\n ...colors,\n // Input Colors\n inputBackgroundColor: colors.colorBody,\n inputBorderColor: baseColors.neutral[300],\n inputContentColor: colors.colorBodyContent,\n inputBorderWidth: '1px',\n inputPlaceholderColor: colors.colorBodySubContent,\n inputAdornmentColor: colors.colorBodySubContent,\n inputDisabledBackgroundColor: colors.colorBodyAccent,\n // Field Colors\n inputLabelColor: colors.colorBodyContent,\n inputLabelFontSize: toRem(16),\n inputLabelFontWeight: '500',\n inputDescriptionColor: colors.colorBodySubContent,\n inputErrorColor: colors.colorErrorAccent,\n // Radius\n inputRadius: toRem(8),\n buttonRadius: toRem(8),\n cardRadius: toRem(8),\n badgeRadius: toRem(6),\n bannerRadius: toRem(8),\n boxRadius: toRem(8),\n // Font\n fontSizeRoot: getRootFontSize(),\n fontFamily: 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif',\n fontLineHeightLarge: toRem(28),\n fontLineHeightRegular: toRem(24),\n fontLineHeightSmall: toRem(20),\n fontLineHeightExtraSmall: toRem(18),\n fontSizeExtraSmall: toRem(12),\n fontSizeSmall: toRem(14),\n fontSizeRegular: toRem(16),\n fontSizeLarge: toRem(18),\n fontSizeHeading1: toRem(32),\n fontSizeHeading2: toRem(24),\n fontSizeHeading3: toRem(20),\n fontSizeHeading4: toRem(18),\n fontSizeHeading5: toRem(16),\n fontSizeHeading6: toRem(14),\n fontWeightRegular: '400',\n fontWeightMedium: '500',\n fontWeightSemibold: '600',\n fontWeightBold: '700',\n // Transitions\n transitionDuration: `${transitionDuration}ms`,\n // Shadows\n shadowResting: '0px 1px 2px 0px rgba(10, 13, 18, 0.05)',\n shadowTopmost:\n '0px 4px 6px 0px rgba(28, 28, 28, 0.05), 0px 10px 15px 0px rgba(28, 28, 28, 0.10)',\n // Focus\n focusRingColor: colors.colorPrimary,\n focusRingWidth: '2px',\n }\n}\n\nexport type GustoSDKTheme = Partial<ReturnType<typeof createTheme>>\n\nexport const mergePartnerTheme = (partnerTheme: GustoSDKTheme): GustoSDKTheme => {\n const colors = Object.entries(defaultThemeColors).reduce(\n (acc: GustoSDKThemeColors, [key, value]) => {\n acc[key as keyof typeof defaultThemeColors] =\n partnerTheme[key as keyof typeof defaultThemeColors] || value\n return acc\n },\n {},\n )\n\n const theme = createTheme(colors)\n\n return {\n ...theme,\n ...partnerTheme,\n }\n}\n"],"names":["baseColors","transitionDuration","defaultThemeColors","createTheme","colors","toRem","getRootFontSize","mergePartnerTheme","partnerTheme","acc","key","value"],"mappings":";AAIA,MAAMA,IAAa;AA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kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,mBAAmB;AAAA,EACnB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,gBAAgB;AAAA;AAAA,EAEhB,oBAAoB,GAAGJ,CAAkB;AAAA;AAAA,EAEzC,eAAe;AAAA,EACf,eACE;AAAA;AAAA,EAEF,gBAAgBG,EAAO;AAAA,EACvB,gBAAgB;AAAA,IAMPG,IAAoB,CAACC,MAA+C;AAC/E,QAAMJ,IAAS,OAAO,QAAQF,CAAkB,EAAE;AAAA,IAChD,CAACO,GAA0B,CAACC,GAAKC,CAAK,OACpCF,EAAIC,CAAsC,IACxCF,EAAaE,CAAsC,KAAKC,GACnDF;AAAA,IAET,CAAA;AAAA,EAAC;AAKH,SAAO;AAAA,IACL,GAHYN,EAAYC,CAAM;AAAA,IAI9B,GAAGI;AAAA,EAAA;AAEP;"}
1
+ {"version":3,"file":"theme.js","sources":["../../../src/contexts/ThemeProvider/theme.ts"],"sourcesContent":["import { getRootFontSize, toRem } from '@/helpers/rem'\n\n// Colors are for internal use in our theme currently\n// We don't export them for partner use or overrides\nconst baseColors = {\n neutral: {\n 25: '#FFFFFF',\n 50: '#FAFAFA',\n 100: '#F5F5F5',\n 200: '#E9EAEB',\n 300: '#D5D7DA',\n 400: '#A4A7AE',\n 500: '#717680',\n 600: '#535862',\n 700: '#414651',\n 800: '#252B37',\n 900: '#181D27',\n 1000: '#0A0D12',\n },\n error: {\n 100: '#FEF3F2',\n 500: '#C5271C',\n 800: '#D92D20',\n },\n warning: {\n 100: '#FFFAF2',\n 500: '#E9B550',\n 700: '#B88023',\n 800: '#B88023',\n },\n success: {\n 100: '#F3FAFB',\n 400: '#2BABAD',\n 500: '#0A8080',\n 800: '#005961',\n },\n info: {\n 100: '#F4F4F3',\n 500: '#DCDCDC',\n 800: '#1C1C1C',\n },\n}\n\nexport const transitionDuration = 200\n\nconst defaultThemeColors = {\n colorBody: baseColors.neutral[25],\n colorBodyAccent: baseColors.neutral[100],\n colorBodyContent: baseColors.neutral[1000],\n colorBodySubContent: baseColors.neutral[700],\n colorPrimary: baseColors.neutral[1000],\n colorPrimaryAccent: baseColors.neutral[900],\n colorPrimaryContent: baseColors.neutral[100],\n colorSecondary: baseColors.neutral[25],\n colorSecondaryAccent: baseColors.neutral[100],\n colorSecondaryContent: baseColors.neutral[600],\n colorInfo: baseColors.info[100],\n colorInfoAccent: baseColors.info[500],\n colorInfoContent: baseColors.info[800],\n colorWarning: baseColors.warning[100],\n colorWarningAccent: baseColors.warning[500],\n colorWarningContent: baseColors.warning[800],\n colorError: baseColors.error[100],\n colorErrorAccent: baseColors.error[500],\n colorErrorContent: baseColors.error[800],\n colorSuccess: baseColors.success[100],\n colorSuccessAccent: baseColors.success[500],\n colorSuccessContent: baseColors.success[800],\n colorBorderPrimary: baseColors.neutral[300],\n colorBorderSecondary: baseColors.neutral[200],\n colorButtonIcon: baseColors.neutral[400],\n}\n\nexport type GustoSDKThemeColors = Partial<typeof defaultThemeColors>\n\nexport const createTheme = (colors: GustoSDKThemeColors = {}) => {\n return {\n // Colors\n ...defaultThemeColors,\n ...colors,\n // Input Colors\n inputBackgroundColor: colors.colorBody,\n inputBorderColor: baseColors.neutral[300],\n inputContentColor: colors.colorBodyContent,\n inputBorderWidth: '1px',\n inputPlaceholderColor: colors.colorBodySubContent,\n inputAdornmentColor: colors.colorBodySubContent,\n inputDisabledBackgroundColor: colors.colorBodyAccent,\n // Field Colors\n inputLabelColor: colors.colorBodyContent,\n inputLabelFontSize: toRem(16),\n inputLabelFontWeight: '500',\n inputDescriptionColor: colors.colorBodySubContent,\n inputErrorColor: colors.colorErrorAccent,\n // Radius\n inputRadius: toRem(8),\n buttonRadius: toRem(8),\n cardRadius: toRem(8),\n badgeRadius: toRem(6),\n bannerRadius: toRem(8),\n boxRadius: toRem(8),\n // Font\n fontSizeRoot: getRootFontSize(),\n fontFamily: 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif',\n fontLineHeightLarge: toRem(28),\n fontLineHeightRegular: toRem(24),\n fontLineHeightSmall: toRem(20),\n fontLineHeightExtraSmall: toRem(18),\n fontSizeExtraSmall: toRem(12),\n fontSizeSmall: toRem(14),\n fontSizeRegular: toRem(16),\n fontSizeLarge: toRem(18),\n fontSizeHeading1: toRem(32),\n fontSizeHeading2: toRem(24),\n fontSizeHeading3: toRem(20),\n fontSizeHeading4: toRem(18),\n fontSizeHeading5: toRem(16),\n fontSizeHeading6: toRem(14),\n fontWeightRegular: '400',\n fontWeightMedium: '500',\n fontWeightSemibold: '600',\n fontWeightBold: '700',\n // Transitions\n transitionDuration: `${transitionDuration}ms`,\n // Shadows\n shadowResting: '0px 1px 2px 0px rgba(10, 13, 18, 0.05)',\n shadowTopmost:\n '0px 4px 6px 0px rgba(28, 28, 28, 0.05), 0px 10px 15px 0px rgba(28, 28, 28, 0.10)',\n // Focus\n focusRingColor: colors.colorPrimary,\n focusRingWidth: '2px',\n }\n}\n\nexport type GustoSDKTheme = Partial<ReturnType<typeof createTheme>>\n\nexport const mergePartnerTheme = (partnerTheme: GustoSDKTheme): GustoSDKTheme => {\n const colors = Object.entries(defaultThemeColors).reduce(\n (acc: GustoSDKThemeColors, [key, value]) => {\n acc[key as keyof typeof defaultThemeColors] =\n partnerTheme[key as keyof typeof defaultThemeColors] || value\n return acc\n },\n {},\n )\n\n const theme = createTheme(colors)\n\n return {\n ...theme,\n ...partnerTheme,\n }\n}\n"],"names":["baseColors","transitionDuration","defaultThemeColors","createTheme","colors","toRem","getRootFontSize","mergePartnerTheme","partnerTheme","acc","key","value"],"mappings":";AAIA,MAAMA,IAAa;AAAA,EACjB,SAAS;AAAA,IACP,IAAI;AAAA,IAEJ,KAA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A,EACvB,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,kBAAkBA,EAAM,EAAE;AAAA,EAC1B,mBAAmB;AAAA,EACnB,kBAAkB;AAAA,EAClB,oBAAoB;AAAA,EACpB,gBAAgB;AAAA;AAAA,EAEhB,oBAAoB,GAAGJ,CAAkB;AAAA;AAAA,EAEzC,eAAe;AAAA,EACf,eACE;AAAA;AAAA,EAEF,gBAAgBG,EAAO;AAAA,EACvB,gBAAgB;AAAA,IAMPG,IAAoB,CAACC,MAA+C;AAC/E,QAAMJ,IAAS,OAAO,QAAQF,CAAkB,EAAE;AAAA,IAChD,CAACO,GAA0B,CAACC,GAAKC,CAAK,OACpCF,EAAIC,CAAsC,IACxCF,EAAaE,CAAsC,KAAKC,GACnDF;AAAA,IAET,CAAA;AAAA,EAAC;AAKH,SAAO;AAAA,IACL,GAHYN,EAAYC,CAAM;AAAA,IAI9B,GAAGI;AAAA,EAAA;AAEP;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTheme.js","sources":["../../../src/contexts/ThemeProvider/useTheme.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\n\nexport interface ThemeContextProps {\n container: React.RefObject<HTMLElement>\n}\nexport const ThemeContext = createContext<ThemeContextProps>({} as ThemeContextProps)\n\nexport const useTheme = () => useContext(ThemeContext)\n"],"names":["ThemeContext","createContext","useTheme","useContext"],"mappings":";AAKO,MAAMA,IAAeC,EAAiC,CAAA,CAAuB,GAEvEC,IAAW,MAAMC,EAAWH,CAAY;"}
1
+ {"version":3,"file":"useTheme.js","sources":["../../../src/contexts/ThemeProvider/useTheme.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\n\nexport interface ThemeContextProps {\n container: React.RefObject<HTMLElement>\n}\nexport const ThemeContext = createContext({} as ThemeContextProps)\n\nexport const useTheme = () => useContext(ThemeContext)\n"],"names":["ThemeContext","createContext","useTheme","useContext"],"mappings":";AAKO,MAAMA,IAAeC,EAAc,CAAA,CAAuB,GAEpDC,IAAW,MAAMC,EAAWH,CAAY;"}
@@ -15,6 +15,20 @@ export declare const buildBreadcrumbs: (nodes: BreadcrumbNodes) => BreadcrumbTra
15
15
  * Non-template strings are returned as-is.
16
16
  */
17
17
  export declare const resolveBreadcrumbVariables: (variables: Record<string, string> | undefined, context: Record<string, unknown>) => Record<string, unknown>;
18
+ /**
19
+ * Removes a breadcrumb from all trails in the context.
20
+ * Use this in state machine reducers to hide a step entirely (e.g. after payroll submission).
21
+ */
22
+ export declare const hideBreadcrumb: <T extends {
23
+ breadcrumbs?: BreadcrumbTrail;
24
+ }>(breadcrumbId: string, context: T) => T;
25
+ /**
26
+ * Marks a breadcrumb as non-navigable across all trails in the context.
27
+ * Use this in state machine reducers to disable backward navigation to a specific step.
28
+ */
29
+ export declare const lockBreadcrumb: <T extends {
30
+ breadcrumbs?: BreadcrumbTrail;
31
+ }>(breadcrumbId: string, context: T) => T;
18
32
  /**
19
33
  * Updates the breadcrumb trail for a specific state with resolved variables.
20
34
  *
@@ -1,45 +1,54 @@
1
- const a = (r) => {
2
- const t = {};
3
- for (const [c, n] of Object.entries(r)) {
4
- const s = [];
5
- let e = n;
6
- for (; e; ) {
7
- s.unshift(e.item);
8
- const o = e.parent;
9
- e = o ? r[o] ?? null : null;
1
+ const o = (r) => {
2
+ const e = {};
3
+ for (const [c, s] of Object.entries(r)) {
4
+ const n = [];
5
+ let t = s;
6
+ for (; t; ) {
7
+ n.unshift(t.item);
8
+ const a = t.parent;
9
+ t = a ? r[a] ?? null : null;
10
10
  }
11
- t[c] = s;
11
+ e[c] = n;
12
12
  }
13
- return t;
14
- }, u = (r, t) => {
13
+ return e;
14
+ }, u = (r, e) => {
15
15
  if (!r)
16
16
  return {};
17
17
  const c = {};
18
- for (const [n, s] of Object.entries(r)) {
19
- const e = s.match(/{{(.*?)}}/);
20
- if (e?.[1]) {
21
- const o = e[1].trim();
22
- c[n] = t[o] ?? "";
18
+ for (const [s, n] of Object.entries(r)) {
19
+ const t = n.match(/{{(.*?)}}/);
20
+ if (t?.[1]) {
21
+ const a = t[1].trim();
22
+ c[s] = e[a] ?? "";
23
23
  } else
24
- c[n] = s;
24
+ c[s] = n;
25
25
  }
26
26
  return c;
27
- }, l = (r, t, c) => {
28
- const n = t.breadcrumbs ?? {}, e = (n[r] ?? []).map((o) => ({
29
- ...o,
30
- variables: u(c, t)
27
+ }, b = (r, e) => {
28
+ const c = e.breadcrumbs ?? {}, s = Object.fromEntries(
29
+ Object.entries(c).map(([n, t]) => [
30
+ n,
31
+ t.filter((a) => a.id !== r)
32
+ ])
33
+ );
34
+ return { ...e, breadcrumbs: s };
35
+ }, l = (r, e, c) => {
36
+ const s = e.breadcrumbs ?? {}, t = (s[r] ?? []).map((a) => ({
37
+ ...a,
38
+ variables: u(c, e)
31
39
  }));
32
40
  return {
33
- ...t,
41
+ ...e,
34
42
  breadcrumbs: {
35
- ...n,
36
- [r]: e
43
+ ...s,
44
+ [r]: t
37
45
  },
38
46
  currentBreadcrumbId: r
39
47
  };
40
48
  };
41
49
  export {
42
- a as buildBreadcrumbs,
50
+ o as buildBreadcrumbs,
51
+ b as hideBreadcrumb,
43
52
  u as resolveBreadcrumbVariables,
44
53
  l as updateBreadcrumbs
45
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumbHelpers.js","sources":["../../src/helpers/breadcrumbHelpers.ts"],"sourcesContent":["import type {\n BreadcrumbNode,\n BreadcrumbNodes,\n BreadcrumbTrail,\n FlowBreadcrumb,\n} from '@/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes'\n\n/**\n * Builds a complete breadcrumb trail map from a hierarchical node structure.\n *\n * Takes a tree structure of breadcrumb nodes and generates a map where each state\n * has its complete breadcrumb trail from root to that state. This is useful for\n * initializing breadcrumb navigation in state machines or multi-step flows.\n */\nexport const buildBreadcrumbs = (nodes: BreadcrumbNodes): BreadcrumbTrail => {\n const map: Record<string, FlowBreadcrumb[]> = {}\n\n for (const [state, node] of Object.entries(nodes)) {\n const trail: FlowBreadcrumb[] = []\n let current: BreadcrumbNode | null = node\n\n while (current) {\n trail.unshift(current.item)\n const parentKey: string | null = current.parent\n current = parentKey ? (nodes[parentKey] ?? null) : null\n }\n\n map[state] = trail\n }\n\n return map\n}\n\n/**\n * Resolves template variables in breadcrumb labels using values from a context object.\n *\n * Supports Handlebars-style template syntax ({{variableName}}) for dynamic breadcrumb labels.\n * Variables enclosed in double braces are replaced with their corresponding values from the context.\n * Non-template strings are returned as-is.\n */\nexport const resolveBreadcrumbVariables = (\n variables: Record<string, string> | undefined,\n context: Record<string, unknown>,\n): Record<string, unknown> => {\n if (!variables) {\n return {}\n }\n\n const resolved: Record<string, unknown> = {}\n for (const [key, value] of Object.entries(variables)) {\n const match = value.match(/{{(.*?)}}/)\n if (match?.[1]) {\n const ctxKey = match[1].trim()\n resolved[key] = context[ctxKey] ?? ''\n } else {\n resolved[key] = value\n }\n }\n return resolved\n}\n\n/**\n * Updates the breadcrumb trail for a specific state with resolved variables.\n *\n * This function is typically used in state machine transitions to update breadcrumb\n * navigation when moving between states. It preserves all existing breadcrumb trails\n * for other states and only updates the trail for the specified state by resolving\n * any template variables for that state's breadcrumb.\n\n */\nexport const updateBreadcrumbs = <\n T extends { breadcrumbs?: BreadcrumbTrail; currentBreadcrumb?: string },\n>(\n stateName: string,\n context: T,\n variables?: Record<string, string>,\n): Omit<T, 'breadcrumbs' | 'currentBreadcrumb'> & {\n breadcrumbs: BreadcrumbTrail\n currentBreadcrumbId: string\n} => {\n const allBreadcrumbs = context.breadcrumbs ?? {}\n const trail = allBreadcrumbs[stateName] ?? []\n const resolvedTrail = trail.map(breadcrumb => {\n return {\n ...breadcrumb,\n variables: resolveBreadcrumbVariables(variables, context as Record<string, unknown>),\n }\n })\n return {\n ...context,\n breadcrumbs: {\n ...allBreadcrumbs,\n [stateName]: resolvedTrail,\n },\n currentBreadcrumbId: stateName,\n }\n}\n"],"names":["buildBreadcrumbs","nodes","map","state","node","trail","current","parentKey","resolveBreadcrumbVariables","variables","context","resolved","key","value","match","ctxKey","updateBreadcrumbs","stateName","allBreadcrumbs","resolvedTrail","breadcrumb"],"mappings":"AAcO,MAAMA,IAAmB,CAACC,MAA4C;AAC3E,QAAMC,IAAwC,CAAA;AAE9C,aAAW,CAACC,GAAOC,CAAI,KAAK,OAAO,QAAQH,CAAK,GAAG;AACjD,UAAMI,IAA0B,CAAA;AAChC,QAAIC,IAAiCF;AAErC,WAAOE,KAAS;AACd,MAAAD,EAAM,QAAQC,EAAQ,IAAI;AAC1B,YAAMC,IAA2BD,EAAQ;AACzC,MAAAA,IAAUC,IAAaN,EAAMM,CAAS,KAAK,OAAQ;AAAA,IACrD;AAEA,IAAAL,EAAIC,CAAK,IAAIE;AAAA,EACf;AAEA,SAAOH;AACT,GASaM,IAA6B,CACxCC,GACAC,MAC4B;AAC5B,MAAI,CAACD;AACH,WAAO,CAAA;AAGT,QAAME,IAAoC,CAAA;AAC1C,aAAW,CAACC,GAAKC,CAAK,KAAK,OAAO,QAAQJ,CAAS,GAAG;AACpD,UAAMK,IAAQD,EAAM,MAAM,WAAW;AACrC,QAAIC,IAAQ,CAAC,GAAG;AACd,YAAMC,IAASD,EAAM,CAAC,EAAE,KAAA;AACxB,MAAAH,EAASC,CAAG,IAAIF,EAAQK,CAAM,KAAK;AAAA,IACrC;AACE,MAAAJ,EAASC,CAAG,IAAIC;AAAA,EAEpB;AACA,SAAOF;AACT,GAWaK,IAAoB,CAG/BC,GACAP,GACAD,MAIG;AACH,QAAMS,IAAiBR,EAAQ,eAAe,CAAA,GAExCS,KADQD,EAAeD,CAAS,KAAK,CAAA,GACf,IAAI,CAAAG,OACvB;AAAA,IACL,GAAGA;AAAA,IACH,WAAWZ,EAA2BC,GAAWC,CAAkC;AAAA,EAAA,EAEtF;AACD,SAAO;AAAA,IACL,GAAGA;AAAA,IACH,aAAa;AAAA,MACX,GAAGQ;AAAA,MACH,CAACD,CAAS,GAAGE;AAAA,IAAA;AAAA,IAEf,qBAAqBF;AAAA,EAAA;AAEzB;"}
1
+ {"version":3,"file":"breadcrumbHelpers.js","sources":["../../src/helpers/breadcrumbHelpers.ts"],"sourcesContent":["import type {\n BreadcrumbNode,\n BreadcrumbNodes,\n BreadcrumbTrail,\n FlowBreadcrumb,\n} from '@/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes'\n\n/**\n * Builds a complete breadcrumb trail map from a hierarchical node structure.\n *\n * Takes a tree structure of breadcrumb nodes and generates a map where each state\n * has its complete breadcrumb trail from root to that state. This is useful for\n * initializing breadcrumb navigation in state machines or multi-step flows.\n */\nexport const buildBreadcrumbs = (nodes: BreadcrumbNodes): BreadcrumbTrail => {\n const map: Record<string, FlowBreadcrumb[]> = {}\n\n for (const [state, node] of Object.entries(nodes)) {\n const trail: FlowBreadcrumb[] = []\n let current: BreadcrumbNode | null = node\n\n while (current) {\n trail.unshift(current.item)\n const parentKey: string | null = current.parent\n current = parentKey ? (nodes[parentKey] ?? null) : null\n }\n\n map[state] = trail\n }\n\n return map\n}\n\n/**\n * Resolves template variables in breadcrumb labels using values from a context object.\n *\n * Supports Handlebars-style template syntax ({{variableName}}) for dynamic breadcrumb labels.\n * Variables enclosed in double braces are replaced with their corresponding values from the context.\n * Non-template strings are returned as-is.\n */\nexport const resolveBreadcrumbVariables = (\n variables: Record<string, string> | undefined,\n context: Record<string, unknown>,\n): Record<string, unknown> => {\n if (!variables) {\n return {}\n }\n\n const resolved: Record<string, unknown> = {}\n for (const [key, value] of Object.entries(variables)) {\n const match = value.match(/{{(.*?)}}/)\n if (match?.[1]) {\n const ctxKey = match[1].trim()\n resolved[key] = context[ctxKey] ?? ''\n } else {\n resolved[key] = value\n }\n }\n return resolved\n}\n\n/**\n * Removes a breadcrumb from all trails in the context.\n * Use this in state machine reducers to hide a step entirely (e.g. after payroll submission).\n */\nexport const hideBreadcrumb = <T extends { breadcrumbs?: BreadcrumbTrail }>(\n breadcrumbId: string,\n context: T,\n): T => {\n const allBreadcrumbs = context.breadcrumbs ?? {}\n const updatedBreadcrumbs = Object.fromEntries(\n Object.entries(allBreadcrumbs).map(([stateKey, trail]) => [\n stateKey,\n trail.filter(b => b.id !== breadcrumbId),\n ]),\n )\n return { ...context, breadcrumbs: updatedBreadcrumbs }\n}\n\n/**\n * Marks a breadcrumb as non-navigable across all trails in the context.\n * Use this in state machine reducers to disable backward navigation to a specific step.\n */\nexport const lockBreadcrumb = <T extends { breadcrumbs?: BreadcrumbTrail }>(\n breadcrumbId: string,\n context: T,\n): T => {\n const allBreadcrumbs = context.breadcrumbs ?? {}\n const updatedBreadcrumbs = Object.fromEntries(\n Object.entries(allBreadcrumbs).map(([stateKey, trail]) => [\n stateKey,\n trail.map(b => (b.id === breadcrumbId ? { ...b, isNavigable: false } : b)),\n ]),\n )\n return { ...context, breadcrumbs: updatedBreadcrumbs }\n}\n\n/**\n * Updates the breadcrumb trail for a specific state with resolved variables.\n *\n * This function is typically used in state machine transitions to update breadcrumb\n * navigation when moving between states. It preserves all existing breadcrumb trails\n * for other states and only updates the trail for the specified state by resolving\n * any template variables for that state's breadcrumb.\n\n */\nexport const updateBreadcrumbs = <\n T extends { breadcrumbs?: BreadcrumbTrail; currentBreadcrumb?: string },\n>(\n stateName: string,\n context: T,\n variables?: Record<string, string>,\n): Omit<T, 'breadcrumbs' | 'currentBreadcrumb'> & {\n breadcrumbs: BreadcrumbTrail\n currentBreadcrumbId: string\n} => {\n const allBreadcrumbs = context.breadcrumbs ?? {}\n const trail = allBreadcrumbs[stateName] ?? []\n const resolvedTrail = trail.map(breadcrumb => {\n return {\n ...breadcrumb,\n variables: resolveBreadcrumbVariables(variables, context as Record<string, unknown>),\n }\n })\n return {\n ...context,\n breadcrumbs: {\n ...allBreadcrumbs,\n [stateName]: resolvedTrail,\n },\n currentBreadcrumbId: stateName,\n }\n}\n"],"names":["buildBreadcrumbs","nodes","map","state","node","trail","current","parentKey","resolveBreadcrumbVariables","variables","context","resolved","key","value","match","ctxKey","hideBreadcrumb","breadcrumbId","allBreadcrumbs","updatedBreadcrumbs","stateKey","b","updateBreadcrumbs","stateName","resolvedTrail","breadcrumb"],"mappings":"AAcO,MAAMA,IAAmB,CAACC,MAA4C;AAC3E,QAAMC,IAAwC,CAAA;AAE9C,aAAW,CAACC,GAAOC,CAAI,KAAK,OAAO,QAAQH,CAAK,GAAG;AACjD,UAAMI,IAA0B,CAAA;AAChC,QAAIC,IAAiCF;AAErC,WAAOE,KAAS;AACd,MAAAD,EAAM,QAAQC,EAAQ,IAAI;AAC1B,YAAMC,IAA2BD,EAAQ;AACzC,MAAAA,IAAUC,IAAaN,EAAMM,CAAS,KAAK,OAAQ;AAAA,IACrD;AAEA,IAAAL,EAAIC,CAAK,IAAIE;AAAA,EACf;AAEA,SAAOH;AACT,GASaM,IAA6B,CACxCC,GACAC,MAC4B;AAC5B,MAAI,CAACD;AACH,WAAO,CAAA;AAGT,QAAME,IAAoC,CAAA;AAC1C,aAAW,CAACC,GAAKC,CAAK,KAAK,OAAO,QAAQJ,CAAS,GAAG;AACpD,UAAMK,IAAQD,EAAM,MAAM,WAAW;AACrC,QAAIC,IAAQ,CAAC,GAAG;AACd,YAAMC,IAASD,EAAM,CAAC,EAAE,KAAA;AACxB,MAAAH,EAASC,CAAG,IAAIF,EAAQK,CAAM,KAAK;AAAA,IACrC;AACE,MAAAJ,EAASC,CAAG,IAAIC;AAAA,EAEpB;AACA,SAAOF;AACT,GAMaK,IAAiB,CAC5BC,GACAP,MACM;AACN,QAAMQ,IAAiBR,EAAQ,eAAe,CAAA,GACxCS,IAAqB,OAAO;AAAA,IAChC,OAAO,QAAQD,CAAc,EAAE,IAAI,CAAC,CAACE,GAAUf,CAAK,MAAM;AAAA,MACxDe;AAAA,MACAf,EAAM,OAAO,CAAAgB,MAAKA,EAAE,OAAOJ,CAAY;AAAA,IAAA,CACxC;AAAA,EAAA;AAEH,SAAO,EAAE,GAAGP,GAAS,aAAaS,EAAA;AACpC,GA6BaG,IAAoB,CAG/BC,GACAb,GACAD,MAIG;AACH,QAAMS,IAAiBR,EAAQ,eAAe,CAAA,GAExCc,KADQN,EAAeK,CAAS,KAAK,CAAA,GACf,IAAI,CAAAE,OACvB;AAAA,IACL,GAAGA;AAAA,IACH,WAAWjB,EAA2BC,GAAWC,CAAkC;AAAA,EAAA,EAEtF;AACD,SAAO;AAAA,IACL,GAAGA;AAAA,IACH,aAAa;AAAA,MACX,GAAGQ;AAAA,MACH,CAACK,CAAS,GAAGC;AAAA,IAAA;AAAA,IAEf,qBAAqBD;AAAA,EAAA;AAEzB;"}
@@ -0,0 +1,22 @@
1
+ import { UseQueryResult } from '@tanstack/react-query';
2
+ import { HookErrorHandling } from '../types/sdkHooks';
3
+ type QueryWithRefetch = Pick<UseQueryResult, 'error' | 'refetch'>;
4
+ /**
5
+ * Builds error handling for read-only queries (no submit state).
6
+ *
7
+ * Used by dashboard-style components that only fetch data and don't have
8
+ * form submissions or mutations.
9
+ *
10
+ * @param queries - Array of React Query query objects with error and refetch
11
+ * @returns HookErrorHandling object with normalized errors and retry function
12
+ *
13
+ * @example
14
+ * ```typescript
15
+ * const employeeQuery = useEmployeesGetSuspense({ employeeId })
16
+ * const addressesQuery = useEmployeeAddressesGetSuspense({ employeeId })
17
+ *
18
+ * const errorHandling = buildQueryErrorHandling([employeeQuery, addressesQuery])
19
+ * ```
20
+ */
21
+ export declare function buildQueryErrorHandling(queries: QueryWithRefetch[]): HookErrorHandling;
22
+ export {};
@@ -0,0 +1,11 @@
1
+ import { normalizeToSDKError as e } from "../types/sdkError.js";
2
+ function u(o) {
3
+ return { errors: o.filter((r) => r.error != null).map((r) => e(r.error)), retryQueries: () => {
4
+ o.filter((r) => r.error != null).forEach((r) => void r.refetch());
5
+ }, clearSubmitError: () => {
6
+ } };
7
+ }
8
+ export {
9
+ u as buildQueryErrorHandling
10
+ };
11
+ //# sourceMappingURL=buildQueryErrorHandling.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildQueryErrorHandling.js","sources":["../../src/helpers/buildQueryErrorHandling.ts"],"sourcesContent":["import type { UseQueryResult } from '@tanstack/react-query'\nimport { normalizeToSDKError } from '@/types/sdkError'\nimport type { HookErrorHandling } from '@/types/sdkHooks'\n\ntype QueryWithRefetch = Pick<UseQueryResult, 'error' | 'refetch'>\n\n/**\n * Builds error handling for read-only queries (no submit state).\n *\n * Used by dashboard-style components that only fetch data and don't have\n * form submissions or mutations.\n *\n * @param queries - Array of React Query query objects with error and refetch\n * @returns HookErrorHandling object with normalized errors and retry function\n *\n * @example\n * ```typescript\n * const employeeQuery = useEmployeesGetSuspense({ employeeId })\n * const addressesQuery = useEmployeeAddressesGetSuspense({ employeeId })\n *\n * const errorHandling = buildQueryErrorHandling([employeeQuery, addressesQuery])\n * ```\n */\nexport function buildQueryErrorHandling(queries: QueryWithRefetch[]): HookErrorHandling {\n const errors = queries.filter(q => q.error != null).map(q => normalizeToSDKError(q.error))\n\n const retryQueries = () => {\n queries.filter(q => q.error != null).forEach(q => void q.refetch())\n }\n\n const clearSubmitError = () => {\n // No-op for read-only queries (no submit state to clear)\n }\n\n return { errors, retryQueries, clearSubmitError }\n}\n"],"names":["buildQueryErrorHandling","queries","q","normalizeToSDKError"],"mappings":";AAuBO,SAASA,EAAwBC,GAAgD;AAWtF,SAAO,EAAE,QAVMA,EAAQ,OAAO,CAAAC,MAAKA,EAAE,SAAS,IAAI,EAAE,IAAI,CAAAA,MAAKC,EAAoBD,EAAE,KAAK,CAAC,GAUxE,cARI,MAAM;AACzB,IAAAD,EAAQ,OAAO,CAAAC,MAAKA,EAAE,SAAS,IAAI,EAAE,QAAQ,CAAAA,MAAK,KAAKA,EAAE,QAAA,CAAS;AAAA,EACpE,GAM+B,kBAJN,MAAM;AAAA,EAE/B,EAE+B;AACjC;"}
@@ -1,4 +1,4 @@
1
- import { SDKError } from '../../types/sdkError';
1
+ import { SDKError } from '../types/sdkError';
2
2
  interface QueryWithError {
3
3
  error: Error | null;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { normalizeToSDKError as n } from "../../types/sdkError.js";
1
+ import { normalizeToSDKError as n } from "../types/sdkError.js";
2
2
  function c(l, o) {
3
3
  const e = l.filter((r) => r.error != null).map((r) => n(r.error));
4
4
  return o && e.push(o), e;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collectErrors.js","sources":["../../src/helpers/collectErrors.ts"],"sourcesContent":["import { type SDKError, normalizeToSDKError } from '@/types/sdkError'\n\ninterface QueryWithError {\n error: Error | null\n}\n\nexport function collectErrors(queries: QueryWithError[], submitError: SDKError | null): SDKError[] {\n const queryErrors = queries\n .filter((q): q is QueryWithError & { error: Error } => q.error != null)\n .map(q => normalizeToSDKError(q.error))\n\n if (submitError) {\n queryErrors.push(submitError)\n }\n\n return queryErrors\n}\n"],"names":["collectErrors","queries","submitError","queryErrors","q","normalizeToSDKError"],"mappings":";AAMO,SAASA,EAAcC,GAA2BC,GAA0C;AACjG,QAAMC,IAAcF,EACjB,OAAO,CAACG,MAA8CA,EAAE,SAAS,IAAI,EACrE,IAAI,CAAAA,MAAKC,EAAoBD,EAAE,KAAK,CAAC;AAExC,SAAIF,KACFC,EAAY,KAAKD,CAAW,GAGvBC;AACT;"}
@@ -33,3 +33,5 @@ export declare const getDaysUntil: (deadline?: Date | string | null) => number |
33
33
  export declare const isWeekend: (date: Date) => boolean;
34
34
  export declare const addDays: (date: Date, days: number) => Date;
35
35
  export declare const addBusinessDays: (startDate: Date, businessDays: number) => Date;
36
+ /** Formats numeric month and day as a zero-padded `MM-DD` string. */
37
+ export declare function formatMonthDay(month?: number, day?: number): string | undefined;
@@ -1,20 +1,20 @@
1
- const i = (t) => {
1
+ const s = (t) => {
2
2
  if (!t) return null;
3
3
  if (typeof t == "string") {
4
4
  if (/^\d{4}-\d{2}-\d{2}$/.test(t)) {
5
5
  const e = t.split("-");
6
6
  if (e.length !== 3) return null;
7
- const r = e.map(Number), o = r[0], s = r[1], a = r[2];
8
- return o === void 0 || s === void 0 || a === void 0 || isNaN(o) || isNaN(s) || isNaN(a) || s < 1 || s > 12 || a < 1 || a > 31 ? null : new Date(o, s - 1, a);
7
+ const r = e.map(Number), o = r[0], i = r[1], a = r[2];
8
+ return o === void 0 || i === void 0 || a === void 0 || isNaN(o) || isNaN(i) || isNaN(a) || i < 1 || i > 12 || a < 1 || a > 31 ? null : new Date(o, i - 1, a);
9
9
  }
10
10
  const n = new Date(t);
11
11
  return isNaN(n.getTime()) ? null : n;
12
12
  }
13
13
  return t instanceof Date ? isNaN(t.getTime()) ? null : t : null;
14
14
  }, m = (t) => (n, e) => {
15
- const r = i(n);
15
+ const r = s(n);
16
16
  return r ? r.toLocaleDateString(e, t) : "";
17
- }, f = m({
17
+ }, h = m({
18
18
  weekday: "short",
19
19
  month: "short",
20
20
  day: "numeric"
@@ -26,11 +26,11 @@ const i = (t) => {
26
26
  }), y = m({
27
27
  month: "short",
28
28
  day: "numeric"
29
- }), N = m({
29
+ }), S = m({
30
30
  month: "short",
31
31
  day: "numeric",
32
32
  year: "numeric"
33
- }), S = m({
33
+ }), N = m({
34
34
  month: "long",
35
35
  day: "numeric"
36
36
  }), T = m({
@@ -38,7 +38,7 @@ const i = (t) => {
38
38
  day: "numeric",
39
39
  year: "numeric"
40
40
  }), w = (t, n) => {
41
- const e = i(t);
41
+ const e = s(t);
42
42
  if (!e) return { time: "", date: "" };
43
43
  const r = e.toLocaleTimeString(n, {
44
44
  hour: "numeric",
@@ -52,10 +52,10 @@ const i = (t) => {
52
52
  });
53
53
  return { time: r, date: o };
54
54
  }, L = (t, n, e) => {
55
- const r = i(t), o = i(n);
55
+ const r = s(t), o = s(n);
56
56
  if (!r || !o)
57
57
  return { startDate: "", endDate: "" };
58
- const s = r.toLocaleDateString(e, {
58
+ const i = r.toLocaleDateString(e, {
59
59
  month: "long",
60
60
  day: "numeric"
61
61
  }), a = o.toLocaleDateString(e, {
@@ -63,70 +63,75 @@ const i = (t) => {
63
63
  day: "numeric",
64
64
  year: "numeric"
65
65
  });
66
- return { startDate: s, endDate: a };
67
- }, W = (t, n, e, r) => {
68
- const o = i(t), s = i(n);
69
- if (!o || !s) return "";
66
+ return { startDate: i, endDate: a };
67
+ }, M = (t, n, e, r) => {
68
+ const o = s(t), i = s(n);
69
+ if (!o || !i) return "";
70
70
  const a = r?.useShortMonth ? "short" : "long", c = o.toLocaleDateString(e, {
71
71
  month: a,
72
72
  day: "numeric"
73
- }), l = s.toLocaleDateString(e, {
73
+ }), l = i.toLocaleDateString(e, {
74
74
  month: a,
75
75
  day: "numeric",
76
76
  year: "numeric"
77
77
  });
78
78
  return `${c}–${l}`;
79
- }, M = (t) => isNaN(t.getTime()) ? null : t.toISOString().split("T")[0] || null, P = (t) => {
79
+ }, W = (t) => isNaN(t.getTime()) ? null : t.toISOString().split("T")[0] || null, P = (t) => {
80
80
  if (!t || isNaN(t.getTime()))
81
81
  return null;
82
82
  const n = t.toISOString(), [e] = n.split("T");
83
83
  if (!e) return null;
84
84
  const r = e.split("-");
85
85
  if (r.length !== 3) return null;
86
- const o = r.map(Number), s = o[0], a = o[1], c = o[2];
87
- return isNaN(s) || isNaN(a) || isNaN(c) || a < 1 || a > 12 || c < 1 || c > 31 ? null : new Date(s, a - 1, c);
86
+ const o = r.map(Number), i = o[0], a = o[1], c = o[2];
87
+ return isNaN(i) || isNaN(a) || isNaN(c) || a < 1 || a > 12 || c < 1 || c > 31 ? null : new Date(i, a - 1, c);
88
88
  }, u = 1e3 * 60 * 60, d = u * 24, k = (t) => {
89
- const n = i(t);
89
+ const n = s(t);
90
90
  if (!n) return null;
91
91
  const e = /* @__PURE__ */ new Date();
92
92
  return (n.getTime() - e.getTime()) / u;
93
- }, F = (t) => {
94
- const n = i(t);
93
+ }, p = (t) => {
94
+ const n = s(t);
95
95
  if (!n) return null;
96
96
  const e = /* @__PURE__ */ new Date();
97
97
  return (n.getTime() - e.getTime()) / d;
98
98
  }, D = (t) => {
99
99
  const n = t.getDay();
100
100
  return n === 0 || n === 6;
101
- }, h = (t, n) => {
101
+ }, f = (t, n) => {
102
102
  const e = new Date(t);
103
103
  return e.setDate(e.getDate() + n), e;
104
- }, b = (t, n) => {
104
+ }, F = (t, n) => {
105
105
  let e = new Date(t);
106
106
  e.setHours(0, 0, 0, 0);
107
107
  let r = 0;
108
108
  for (; r < n; )
109
- e = h(e, 1), D(e) || r++;
109
+ e = f(e, 1), D(e) || r++;
110
110
  return e;
111
111
  };
112
+ function $(t, n) {
113
+ if (!(t == null || n == null))
114
+ return `${String(t).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
115
+ }
112
116
  export {
113
117
  u as MS_PER_HOUR,
114
- b as addBusinessDays,
115
- h as addDays,
116
- S as formatDateLong,
118
+ F as addBusinessDays,
119
+ f as addDays,
120
+ N as formatDateLong,
117
121
  T as formatDateLongWithYear,
118
122
  y as formatDateShort,
119
- f as formatDateShortWithWeekday,
123
+ h as formatDateShortWithWeekday,
120
124
  g as formatDateShortWithWeekdayAndYear,
121
- N as formatDateShortWithYear,
122
- M as formatDateToStringDate,
125
+ S as formatDateShortWithYear,
126
+ W as formatDateToStringDate,
123
127
  w as formatDateWithTime,
128
+ $ as formatMonthDay,
124
129
  L as formatPayPeriod,
125
- W as formatPayPeriodRange,
126
- F as getDaysUntil,
130
+ M as formatPayPeriodRange,
131
+ p as getDaysUntil,
127
132
  k as getHoursUntil,
128
133
  D as isWeekend,
129
134
  P as normalizeDateToLocal,
130
- i as normalizeToDate
135
+ s as normalizeToDate
131
136
  };
132
137
  //# sourceMappingURL=dateFormatting.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dateFormatting.js","sources":["../../src/helpers/dateFormatting.ts"],"sourcesContent":["/**\n * Normalizes any date input (string, Date, or undefined) to a Date object.\n * Handles YYYY-MM-DD strings by parsing them in local timezone to avoid timezone issues.\n * Also handles ISO timestamp strings for compatibility.\n * Returns null for invalid inputs.\n */\nexport const normalizeToDate = (dateInput?: string | Date | null): Date | null => {\n if (!dateInput) return null\n\n if (typeof dateInput === 'string') {\n if (/^\\d{4}-\\d{2}-\\d{2}$/.test(dateInput)) {\n const parts = dateInput.split('-')\n if (parts.length !== 3) return null\n\n const numbers = parts.map(Number)\n const year = numbers[0]\n const month = numbers[1]\n const day = numbers[2]\n if (year === undefined || month === undefined || day === undefined) {\n return null\n }\n\n if (\n isNaN(year) ||\n isNaN(month) ||\n isNaN(day) ||\n month < 1 ||\n month > 12 ||\n day < 1 ||\n day > 31\n ) {\n return null\n }\n\n return new Date(year, month - 1, day)\n }\n\n const parsedDate = new Date(dateInput)\n return isNaN(parsedDate.getTime()) ? null : parsedDate\n }\n\n if (dateInput instanceof Date) {\n return isNaN(dateInput.getTime()) ? null : dateInput\n }\n\n return null\n}\n\n/**\n * Creates a date formatter function that handles both string and Date inputs.\n */\nconst createDateFormatter =\n (options: Intl.DateTimeFormatOptions) =>\n (dateInput?: string | Date | null, locale?: string): string => {\n const date = normalizeToDate(dateInput)\n if (!date) return ''\n return date.toLocaleDateString(locale, options)\n }\n\nexport const formatDateShortWithWeekday = createDateFormatter({\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n})\n\nexport const formatDateShortWithWeekdayAndYear = createDateFormatter({\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateShort = createDateFormatter({\n month: 'short',\n day: 'numeric',\n})\n\nexport const formatDateShortWithYear = createDateFormatter({\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateLong = createDateFormatter({\n month: 'long',\n day: 'numeric',\n})\n\nexport const formatDateLongWithYear = createDateFormatter({\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateWithTime = (\n dateInput?: string | Date | null,\n locale?: string,\n): { time: string; date: string } => {\n const date = normalizeToDate(dateInput)\n if (!date) return { time: '', date: '' }\n\n const time = date.toLocaleTimeString(locale, {\n hour: 'numeric',\n minute: '2-digit',\n hour12: true,\n timeZoneName: 'short',\n })\n\n const dateString = date.toLocaleDateString(locale, {\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n })\n\n return { time, date: dateString }\n}\n\nexport const formatPayPeriod = (\n startDateInput?: string | Date | null,\n endDateInput?: string | Date | null,\n locale?: string,\n): { startDate: string; endDate: string } => {\n const startDate = normalizeToDate(startDateInput)\n const endDate = normalizeToDate(endDateInput)\n\n if (!startDate || !endDate) {\n return { startDate: '', endDate: '' }\n }\n\n const startFormatted = startDate.toLocaleDateString(locale, {\n month: 'long',\n day: 'numeric',\n })\n\n const endFormatted = endDate.toLocaleDateString(locale, {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n })\n\n return { startDate: startFormatted, endDate: endFormatted }\n}\n\nexport const formatPayPeriodRange = (\n startDateInput?: string | Date | null,\n endDateInput?: string | Date | null,\n locale?: string,\n options?: { useShortMonth?: boolean },\n): string => {\n const startDate = normalizeToDate(startDateInput)\n const endDate = normalizeToDate(endDateInput)\n\n if (!startDate || !endDate) return ''\n\n const monthFormat = options?.useShortMonth ? 'short' : 'long'\n\n const startFormatted = startDate.toLocaleDateString(locale, {\n month: monthFormat,\n day: 'numeric',\n })\n\n const endFormatted = endDate.toLocaleDateString(locale, {\n month: monthFormat,\n day: 'numeric',\n year: 'numeric',\n })\n\n return `${startFormatted}–${endFormatted}`\n}\n\nexport const formatDateToStringDate = (date: Date): string | null => {\n if (isNaN(date.getTime())) {\n return null\n }\n return date.toISOString().split('T')[0] || null\n}\n\n/**\n * Normalizes Date to local midnight, handling timezone issues from any adapter.\n */\nexport const normalizeDateToLocal = (date: Date | null): Date | null => {\n if (!date || isNaN(date.getTime())) {\n return null\n }\n\n const isoString = date.toISOString()\n const [datePart] = isoString.split('T')\n if (!datePart) return null\n\n const parts = datePart.split('-')\n if (parts.length !== 3) return null\n const numbers = parts.map(Number)\n const year = numbers[0]!\n const month = numbers[1]!\n const day = numbers[2]!\n if (isNaN(year) || isNaN(month) || isNaN(day) || month < 1 || month > 12 || day < 1 || day > 31) {\n return null\n }\n\n return new Date(year, month - 1, day)\n}\n\nexport const MS_PER_HOUR = 1000 * 60 * 60\nconst MS_PER_DAY = MS_PER_HOUR * 24\n\nexport const getHoursUntil = (deadline?: Date | string | null): number | null => {\n const deadlineDate = normalizeToDate(deadline)\n if (!deadlineDate) return null\n\n const now = new Date()\n const timeDiffMs = deadlineDate.getTime() - now.getTime()\n return timeDiffMs / MS_PER_HOUR\n}\n\nexport const getDaysUntil = (deadline?: Date | string | null): number | null => {\n const deadlineDate = normalizeToDate(deadline)\n if (!deadlineDate) return null\n\n const now = new Date()\n const timeDiffMs = deadlineDate.getTime() - now.getTime()\n return timeDiffMs / MS_PER_DAY\n}\n\nexport const isWeekend = (date: Date): boolean => {\n const day = date.getDay()\n return day === 0 || day === 6\n}\n\nexport const addDays = (date: Date, days: number): Date => {\n const result = new Date(date)\n result.setDate(result.getDate() + days)\n return result\n}\n\nexport const addBusinessDays = (startDate: Date, businessDays: number): Date => {\n let currentDate = new Date(startDate)\n currentDate.setHours(0, 0, 0, 0)\n let daysAdded = 0\n\n while (daysAdded < businessDays) {\n currentDate = addDays(currentDate, 1)\n if (!isWeekend(currentDate)) {\n daysAdded++\n }\n }\n\n return currentDate\n}\n"],"names":["normalizeToDate","dateInput","parts","numbers","year","month","day","parsedDate","createDateFormatter","options","locale","date","formatDateShortWithWeekday","formatDateShortWithWeekdayAndYear","formatDateShort","formatDateShortWithYear","formatDateLong","formatDateLongWithYear","formatDateWithTime","time","dateString","formatPayPeriod","startDateInput","endDateInput","startDate","endDate","startFormatted","endFormatted","formatPayPeriodRange","monthFormat","formatDateToStringDate","normalizeDateToLocal","isoString","datePart","MS_PER_HOUR","MS_PER_DAY","getHoursUntil","deadline","deadlineDate","now","getDaysUntil","isWeekend","addDays","days","result","addBusinessDays","businessDays","currentDate","daysAdded"],"mappings":"AAMO,MAAMA,IAAkB,CAACC,MAAkD;AAChF,MAAI,CAACA,EAAW,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UADmBD,EAAa,QAAA,IAAYC,EAAI,QAAA,KAC5BJ;AACtB,GAEaM,IAAY,CAAC9B,MAAwB;AAChD,QAAML,IAAMK,EAAK,OAAA;AACjB,SAAOL,MAAQ,KAAKA,MAAQ;AAC9B,GAEaoC,IAAU,CAAC/B,GAAYgC,MAAuB;AACzD,QAAMC,IAAS,IAAI,KAAKjC,CAAI;AAC5B,SAAAiC,EAAO,QAAQA,EAAO,QAAA,IAAYD,CAAI,GAC/BC;AACT,GAEaC,IAAkB,CAACrB,GAAiBsB,MAA+B;AAC9E,MAAIC,IAAc,IAAI,KAAKvB,CAAS;AACpC,EAAAuB,EAAY,SAAS,GAAG,GAAG,GAAG,CAAC;AAC/B,MAAIC,IAAY;AAEhB,SAAOA,IAAYF;AACjB,IAAAC,IAAcL,EAAQK,GAAa,CAAC,GAC/BN,EAAUM,CAAW,KACxBC;AAIJ,SAAOD;AACT;"}
1
+ {"version":3,"file":"dateFormatting.js","sources":["../../src/helpers/dateFormatting.ts"],"sourcesContent":["/**\n * Normalizes any date input (string, Date, or undefined) to a Date object.\n * Handles YYYY-MM-DD strings by parsing them in local timezone to avoid timezone issues.\n * Also handles ISO timestamp strings for compatibility.\n * Returns null for invalid inputs.\n */\nexport const normalizeToDate = (dateInput?: string | Date | null): Date | null => {\n if (!dateInput) return null\n\n if (typeof dateInput === 'string') {\n if (/^\\d{4}-\\d{2}-\\d{2}$/.test(dateInput)) {\n const parts = dateInput.split('-')\n if (parts.length !== 3) return null\n\n const numbers = parts.map(Number)\n const year = numbers[0]\n const month = numbers[1]\n const day = numbers[2]\n if (year === undefined || month === undefined || day === undefined) {\n return null\n }\n\n if (\n isNaN(year) ||\n isNaN(month) ||\n isNaN(day) ||\n month < 1 ||\n month > 12 ||\n day < 1 ||\n day > 31\n ) {\n return null\n }\n\n return new Date(year, month - 1, day)\n }\n\n const parsedDate = new Date(dateInput)\n return isNaN(parsedDate.getTime()) ? null : parsedDate\n }\n\n if (dateInput instanceof Date) {\n return isNaN(dateInput.getTime()) ? null : dateInput\n }\n\n return null\n}\n\n/**\n * Creates a date formatter function that handles both string and Date inputs.\n */\nconst createDateFormatter =\n (options: Intl.DateTimeFormatOptions) =>\n (dateInput?: string | Date | null, locale?: string): string => {\n const date = normalizeToDate(dateInput)\n if (!date) return ''\n return date.toLocaleDateString(locale, options)\n }\n\nexport const formatDateShortWithWeekday = createDateFormatter({\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n})\n\nexport const formatDateShortWithWeekdayAndYear = createDateFormatter({\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateShort = createDateFormatter({\n month: 'short',\n day: 'numeric',\n})\n\nexport const formatDateShortWithYear = createDateFormatter({\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateLong = createDateFormatter({\n month: 'long',\n day: 'numeric',\n})\n\nexport const formatDateLongWithYear = createDateFormatter({\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n})\n\nexport const formatDateWithTime = (\n dateInput?: string | Date | null,\n locale?: string,\n): { time: string; date: string } => {\n const date = normalizeToDate(dateInput)\n if (!date) return { time: '', date: '' }\n\n const time = date.toLocaleTimeString(locale, {\n hour: 'numeric',\n minute: '2-digit',\n hour12: true,\n timeZoneName: 'short',\n })\n\n const dateString = date.toLocaleDateString(locale, {\n weekday: 'short',\n month: 'short',\n day: 'numeric',\n })\n\n return { time, date: dateString }\n}\n\nexport const formatPayPeriod = (\n startDateInput?: string | Date | null,\n endDateInput?: string | Date | null,\n locale?: string,\n): { startDate: string; endDate: string } => {\n const startDate = normalizeToDate(startDateInput)\n const endDate = normalizeToDate(endDateInput)\n\n if (!startDate || !endDate) {\n return { startDate: '', endDate: '' }\n }\n\n const startFormatted = startDate.toLocaleDateString(locale, {\n month: 'long',\n day: 'numeric',\n })\n\n const endFormatted = endDate.toLocaleDateString(locale, {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n })\n\n return { startDate: startFormatted, endDate: endFormatted }\n}\n\nexport const formatPayPeriodRange = (\n startDateInput?: string | Date | null,\n endDateInput?: string | Date | null,\n locale?: string,\n options?: { useShortMonth?: boolean },\n): string => {\n const startDate = normalizeToDate(startDateInput)\n const endDate = normalizeToDate(endDateInput)\n\n if (!startDate || !endDate) return ''\n\n const monthFormat = options?.useShortMonth ? 'short' : 'long'\n\n const startFormatted = startDate.toLocaleDateString(locale, {\n month: monthFormat,\n day: 'numeric',\n })\n\n const endFormatted = endDate.toLocaleDateString(locale, {\n month: monthFormat,\n day: 'numeric',\n year: 'numeric',\n })\n\n return `${startFormatted}–${endFormatted}`\n}\n\nexport const formatDateToStringDate = (date: Date): string | null => {\n if (isNaN(date.getTime())) {\n return null\n }\n return date.toISOString().split('T')[0] || null\n}\n\n/**\n * Normalizes Date to local midnight, handling timezone issues from any adapter.\n */\nexport const normalizeDateToLocal = (date: Date | null): Date | null => {\n if (!date || isNaN(date.getTime())) {\n return null\n }\n\n const isoString = date.toISOString()\n const [datePart] = isoString.split('T')\n if (!datePart) return null\n\n const parts = datePart.split('-')\n if (parts.length !== 3) return null\n const numbers = parts.map(Number)\n const year = numbers[0]!\n const month = numbers[1]!\n const day = numbers[2]!\n if (isNaN(year) || isNaN(month) || isNaN(day) || month < 1 || month > 12 || day < 1 || day > 31) {\n return null\n }\n\n return new Date(year, month - 1, day)\n}\n\nexport const MS_PER_HOUR = 1000 * 60 * 60\nconst MS_PER_DAY = MS_PER_HOUR * 24\n\nexport const getHoursUntil = (deadline?: Date | string | null): number | null => {\n const deadlineDate = normalizeToDate(deadline)\n if (!deadlineDate) return null\n\n const now = new Date()\n const timeDiffMs = deadlineDate.getTime() - now.getTime()\n return timeDiffMs / MS_PER_HOUR\n}\n\nexport const getDaysUntil = (deadline?: Date | string | null): number | null => {\n const deadlineDate = normalizeToDate(deadline)\n if (!deadlineDate) return null\n\n const now = new Date()\n const timeDiffMs = deadlineDate.getTime() - now.getTime()\n return timeDiffMs / MS_PER_DAY\n}\n\nexport const isWeekend = (date: Date): boolean => {\n const day = date.getDay()\n return day === 0 || day === 6\n}\n\nexport const addDays = (date: Date, days: number): Date => {\n const result = new Date(date)\n result.setDate(result.getDate() + days)\n return result\n}\n\nexport const addBusinessDays = (startDate: Date, businessDays: number): Date => {\n let currentDate = new Date(startDate)\n currentDate.setHours(0, 0, 0, 0)\n let daysAdded = 0\n\n while (daysAdded < businessDays) {\n currentDate = addDays(currentDate, 1)\n if (!isWeekend(currentDate)) {\n daysAdded++\n }\n }\n\n return currentDate\n}\n\n/** Formats numeric month and day as a zero-padded `MM-DD` string. */\nexport function formatMonthDay(month?: number, day?: number): string | undefined {\n if (month == null || day == null) return undefined\n return `${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`\n}\n"],"names":["normalizeToDate","dateInput","parts","numbers","year","month","day","parsedDate","createDateFormatter","options","locale","date","formatDateShortWithWeekday","formatDateShortWithWeekdayAndYear","formatDateShort","formatDateShortWithYear","formatDateLong","formatDateLongWithYear","formatDateWithTime","time","dateString","formatPayPeriod","startDateInput","endDateInput","startDate","endDate","startFormatted","endFormatted","formatPayPeriodRange","monthFormat","formatDateToStringDate","normalizeDateToLocal","isoString","datePart","MS_PER_HOUR","MS_PER_DAY","getHoursUntil","deadline","deadlineDate","now","getDaysUntil","isWeekend","addDays","days","result","addBusinessDays","businessDays","currentDate","daysAdded","formatMonthDay"],"mappings":"AAMO,MAAMA,IAAkB,CAACC,MAAkD;AAChF,MAAI,CAACA,EAAW,QAAO;AAEvB,MAAI,OAAOA,KAAc,UAAU;AACjC,QAAI,sBAAsB,KAAKA,CAAS,GAAG;AACzC,YAAMC,IAAQD,EAAU,MAAM,GAAG;AACjC,UAAIC,EAAM,WAAW,EAAG,QAAO;AAE/B,YAAMC,IAAUD,EAAM,IAAI,MAAM,GAC1BE,IAAOD,EAAQ,CAAC,GAChBE,IAAQF,EAAQ,CAAC,GACjBG,IAAMH,EAAQ,CAAC;AAKrB,aAJIC,MAAS,UAAaC,MAAU,UAAaC,MA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B,GAAiBsB,MAA+B;AAC9E,MAAIC,IAAc,IAAI,KAAKvB,CAAS;AACpC,EAAAuB,EAAY,SAAS,GAAG,GAAG,GAAG,CAAC;AAC/B,MAAIC,IAAY;AAEhB,SAAOA,IAAYF;AACjB,IAAAC,IAAcL,EAAQK,GAAa,CAAC,GAC/BN,EAAUM,CAAW,KACxBC;AAIJ,SAAOD;AACT;AAGO,SAASE,EAAe5C,GAAgBC,GAAkC;AAC/E,MAAI,EAAAD,KAAS,QAAQC,KAAO;AAC5B,WAAO,GAAG,OAAOD,CAAK,EAAE,SAAS,GAAG,GAAG,CAAC,IAAI,OAAOC,CAAG,EAAE,SAAS,GAAG,GAAG,CAAC;AAC1E;"}
@@ -1,67 +1,74 @@
1
- import i from "dompurify";
2
- import "react-i18next";
3
- import "react";
4
- import "../contexts/LocaleProvider/useLocale.js";
5
- const c = (t) => t.charAt(0).toLocaleUpperCase() + t.slice(1), F = ({
1
+ import m from "dompurify";
2
+ import { useTranslation as i } from "react-i18next";
3
+ import { useCallback as u } from "react";
4
+ import { useLocale as l } from "../contexts/LocaleProvider/useLocale.js";
5
+ const c = (t) => t.charAt(0).toLocaleUpperCase() + t.slice(1), R = ({
6
6
  first_name: t,
7
7
  last_name: e
8
- }) => `${t ? c(t) : ""}${e ? n(c(e)) : ""}`, n = (t) => t ? ` ${t}` : "", m = (t) => {
8
+ }) => `${t ? c(t) : ""}${e ? n(c(e)) : ""}`, n = (t) => t ? ` ${t}` : "", p = (t) => {
9
9
  const e = n(t.street1), r = n(t.street2);
10
10
  return `${e},${r}`;
11
- }, u = (t) => `${n(t.city)}, ${n(t.state)} ${n(t.zip)}`, S = (t) => `${m(t)} ${u(t)}`, l = (t, e) => e ? `${t}%` : `$${t}`, s = (t, e = "en-US") => {
11
+ }, y = (t) => `${n(t.city)}, ${n(t.state)} ${n(t.zip)}`, k = (t) => `${p(t)} ${y(t)}`, $ = (t, e) => e ? `${t}%` : `$${t}`, s = (t, e = "en-US") => {
12
12
  const r = t.toLocaleString(e, {
13
13
  minimumFractionDigits: 2,
14
14
  maximumFractionDigits: 2
15
15
  });
16
- return l(r, !1);
17
- }, C = ({
16
+ return $(r, !1);
17
+ }, f = ({
18
18
  rate: t,
19
19
  paymentUnit: e,
20
20
  t: r,
21
- locale: a = "en-US"
21
+ locale: o = "en-US"
22
22
  }) => {
23
- const o = s(t, a);
23
+ const a = s(t, o);
24
24
  switch (e) {
25
25
  case "Hour":
26
- return r("payRateFormats.hourly", { amount: o, ns: "common" });
26
+ return r("payRateFormats.hourly", { amount: a, ns: "common" });
27
27
  case "Week":
28
28
  return r("payRateFormats.weekly", {
29
- amount: s(t * 52, a),
29
+ amount: s(t * 52, o),
30
30
  ns: "common"
31
31
  });
32
32
  case "Month":
33
33
  return r("payRateFormats.monthly", {
34
- amount: s(t * 12, a),
34
+ amount: s(t * 12, o),
35
35
  ns: "common"
36
36
  });
37
37
  case "Year":
38
- return r("payRateFormats.yearly", { amount: o, ns: "common" });
38
+ return r("payRateFormats.yearly", { amount: a, ns: "common" });
39
39
  case "Paycheck":
40
- return r("payRateFormats.paycheck", { amount: o, ns: "common" });
40
+ return r("payRateFormats.paycheck", { amount: a, ns: "common" });
41
41
  default:
42
- return o;
42
+ return a;
43
43
  }
44
- }, p = { ALLOWED_TAGS: ["a", "b", "strong"], ALLOWED_ATTR: ["href", "target"] };
45
- function D(t) {
46
- return t ? { __html: i.sanitize(t, p) } : { __html: "" };
44
+ }, D = () => {
45
+ const { t } = i("common"), { locale: e } = l();
46
+ return u(
47
+ (r, o) => f({ rate: r, paymentUnit: o, t, locale: e }),
48
+ [t, e]
49
+ );
50
+ }, g = { ALLOWED_TAGS: ["a", "b", "strong"], ALLOWED_ATTR: ["href", "target"] };
51
+ function A(t) {
52
+ return t ? { __html: m.sanitize(t, g) } : { __html: "" };
47
53
  }
48
- const $ = (t) => t.replace(/\D/g, ""), L = (t) => t.replace(/\.value$/, ""), R = (t) => t.replace(/_([a-z])/g, (e, r) => r.toUpperCase()), k = (t) => {
54
+ const h = (t) => t.replace(/\D/g, ""), _ = (t) => t.replace(/\.value$/, ""), b = (t) => t.replace(/_([a-z])/g, (e, r) => r.toUpperCase()), z = (t) => {
49
55
  if (!t) return "";
50
- const e = $(String(t));
56
+ const e = h(String(t));
51
57
  return e.length === 10 ? `${e.slice(0, 3)}-${e.slice(3, 6)}-${e.slice(6)}` : e.length === 11 && e.startsWith("1") ? `${e.slice(1, 4)}-${e.slice(4, 7)}-${e.slice(7)}` : e || "";
52
58
  };
53
59
  export {
54
- S as addressInline,
55
- l as amountStr,
56
- D as createMarkup,
57
- F as firstLastName,
60
+ k as addressInline,
61
+ $ as amountStr,
62
+ A as createMarkup,
63
+ R as firstLastName,
58
64
  s as formatNumberAsCurrency,
59
- C as formatPayRate,
60
- k as formatPhoneNumber,
61
- u as getCityStateZip,
62
- m as getStreet,
63
- L as normalizeErrorKeyForForm,
64
- $ as removeNonDigits,
65
- R as snakeCaseToCamelCase
65
+ f as formatPayRate,
66
+ z as formatPhoneNumber,
67
+ y as getCityStateZip,
68
+ p as getStreet,
69
+ _ as normalizeErrorKeyForForm,
70
+ h as removeNonDigits,
71
+ b as snakeCaseToCamelCase,
72
+ D as useFormatPayRate
66
73
  };
67
74
  //# sourceMappingURL=formattedStrings.js.map