@gusto/embedded-react-sdk 0.11.1 → 0.11.3-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (583) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/assets/icons/alert-circle.svg.js.map +1 -1
  3. package/dist/assets/icons/caret-down.svg.js +1 -1
  4. package/dist/assets/icons/caret-down.svg.js.map +1 -1
  5. package/dist/assets/icons/caret-left.svg.js.map +1 -1
  6. package/dist/assets/icons/caret-right.svg.js.map +1 -1
  7. package/dist/assets/icons/checkbox.svg.js.map +1 -1
  8. package/dist/assets/icons/error.svg.js.map +1 -1
  9. package/dist/assets/icons/hamburger.svg.js.map +1 -1
  10. package/dist/assets/icons/info.svg.js.map +1 -1
  11. package/dist/assets/icons/list.svg.js.map +1 -1
  12. package/dist/assets/icons/magnifyingGlass.png.js.map +1 -1
  13. package/dist/assets/icons/pagination_next.svg.js.map +1 -1
  14. package/dist/assets/icons/pagination_previous.svg.js.map +1 -1
  15. package/dist/assets/icons/pencil.svg.js.map +1 -1
  16. package/dist/assets/icons/success_check.svg.js.map +1 -1
  17. package/dist/assets/icons/trashcan.svg.js.map +1 -1
  18. package/dist/assets/icons/unchecked_circular.svg.js.map +1 -1
  19. package/dist/assets/icons/verification_pending.svg.js.map +1 -1
  20. package/dist/assets/icons/warning.svg.js.map +1 -1
  21. package/dist/components/Base/Base.js +19 -18
  22. package/dist/components/Base/Base.js.map +1 -1
  23. package/dist/components/Base/createCompoundContext.js.map +1 -1
  24. package/dist/components/Base/useBase.js.map +1 -1
  25. package/dist/components/Common/ActionsLayout/ActionsLayout.js.map +1 -1
  26. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  27. package/dist/components/Common/DataView/DataCards/DataCards.module.scss.js +1 -1
  28. package/dist/components/Common/DataView/DataTable/DataTable.js.map +1 -1
  29. package/dist/components/Common/DataView/DataView.js.map +1 -1
  30. package/dist/components/Common/DataView/useDataView.js.map +1 -1
  31. package/dist/components/Common/DocumentList/DocumentList.js.map +1 -1
  32. package/dist/components/Common/DocumentList/DocumentList.module.scss.js +1 -1
  33. package/dist/components/Common/DocumentViewer/DocumentViewer.js.map +1 -1
  34. package/dist/components/Common/DocumentViewer/DocumentViewer.module.scss.js +1 -1
  35. package/dist/components/Common/EmptyData/EmptyData.js.map +1 -1
  36. package/dist/components/Common/EmptyData/EmptyData.module.scss.js +1 -1
  37. package/dist/components/Common/FadeIn/FadeIn.js.map +1 -1
  38. package/dist/components/Common/FieldCaption/FieldCaption.js +7 -4
  39. package/dist/components/Common/FieldCaption/FieldCaption.js.map +1 -1
  40. package/dist/components/Common/FieldCaption/FieldCaption.module.scss.js +1 -1
  41. package/dist/components/Common/FieldDescription/FieldDescription.js.map +1 -1
  42. package/dist/components/Common/FieldDescription/FieldDescription.module.scss.js +1 -1
  43. package/dist/components/Common/FieldErrorMessage/FieldErrorMessage.js.map +1 -1
  44. package/dist/components/Common/FieldErrorMessage/FieldErrorMessage.module.scss.js +1 -1
  45. package/dist/components/Common/FieldLayout/FieldLayout.js.map +1 -1
  46. package/dist/components/Common/FieldLayout/FieldLayout.module.scss.js +10 -10
  47. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  48. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  49. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  50. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +1 -0
  51. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +35 -20
  52. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  53. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  54. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  55. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  56. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  57. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  58. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  59. package/dist/components/Common/Fields/hooks/useStringifyGenericFieldValue.js.map +1 -1
  60. package/dist/components/Common/Fieldset/Fieldset.js.map +1 -1
  61. package/dist/components/Common/Flex/Flex.d.ts +2 -2
  62. package/dist/components/Common/Flex/Flex.js +5 -5
  63. package/dist/components/Common/Flex/Flex.js.map +1 -1
  64. package/dist/components/Common/Form/Form.js.map +1 -1
  65. package/dist/components/Common/Form/Form.module.scss.js +2 -2
  66. package/dist/components/Common/Grid/Grid.d.ts +2 -2
  67. package/dist/components/Common/Grid/Grid.js +13 -13
  68. package/dist/components/Common/Grid/Grid.js.map +1 -1
  69. package/dist/components/Common/HamburgerMenu/HamburgerMenu.js.map +1 -1
  70. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayout.js.map +1 -1
  71. package/dist/components/Common/HorizontalFieldLayout/HorizontalFieldLayout.module.scss.js +12 -12
  72. package/dist/components/Common/InternalError/InternalError.js.map +1 -1
  73. package/dist/components/Common/InternalError/InternalError.module.scss.js +1 -1
  74. package/dist/components/Common/Loading/Loading.js.map +1 -1
  75. package/dist/components/Common/Loading/Loading.module.scss.js +1 -1
  76. package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -1
  77. package/dist/components/Common/PaginationControl/PaginationControl.js.map +1 -1
  78. package/dist/components/Common/PaginationControl/PaginationControl.module.scss.js +1 -1
  79. package/dist/components/Common/ReorderableList/DropZone.js.map +1 -1
  80. package/dist/components/Common/ReorderableList/ReorderableItem.js.map +1 -1
  81. package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
  82. package/dist/components/Common/ReorderableList/ReorderableList.module.scss.js +15 -15
  83. package/dist/components/Common/RequirementsList/RequirementsList.js.map +1 -1
  84. package/dist/components/Common/RequirementsList/RequirementsList.module.scss.js +1 -1
  85. package/dist/components/Common/SignatureForm/SignatureForm.js +6 -4
  86. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  87. package/dist/components/Common/SignatureForm/SignatureForm.module.scss.js +6 -6
  88. package/dist/components/Common/SignatureForm/SignatureFormActions.js +12 -10
  89. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  90. package/dist/components/Common/SignatureForm/SignatureFormFields.js +8 -6
  91. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  92. package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
  93. package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
  94. package/dist/components/Common/UI/Alert/Alert.module.scss.js +1 -1
  95. package/dist/components/Common/UI/Badge/Badge.js +4 -4
  96. package/dist/components/Common/UI/Badge/Badge.js.map +1 -1
  97. package/dist/components/Common/UI/Badge/Badge.module.scss.js +4 -4
  98. package/dist/components/Common/UI/Button/Button.d.ts +1 -1
  99. package/dist/components/Common/UI/Button/Button.js +22 -24
  100. package/dist/components/Common/UI/Button/Button.js.map +1 -1
  101. package/dist/components/Common/UI/Button/Button.module.scss.js +1 -1
  102. package/dist/components/Common/UI/Button/ButtonIcon.d.ts +1 -1
  103. package/dist/components/Common/UI/Button/ButtonIcon.js +7 -5
  104. package/dist/components/Common/UI/Button/ButtonIcon.js.map +1 -1
  105. package/dist/components/Common/UI/Button/ButtonIcon.module.scss.js +8 -0
  106. package/dist/components/Common/UI/Button/ButtonIcon.module.scss.js.map +1 -0
  107. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +2 -6
  108. package/dist/components/Common/UI/CalendarPreview/CalendarLegend.js.map +1 -1
  109. package/dist/components/Common/UI/CalendarPreview/CalendarPreview.js.map +1 -1
  110. package/dist/components/Common/UI/CalendarPreview/CalendarPreview.module.scss.js +5 -5
  111. package/dist/components/Common/UI/Card/Card.js.map +1 -1
  112. package/dist/components/Common/UI/Card/Card.module.scss.js +1 -1
  113. package/dist/components/Common/UI/Checkbox/Checkbox.js.map +1 -1
  114. package/dist/components/Common/UI/Checkbox/Checkbox.module.scss.js +6 -6
  115. package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.js.map +1 -1
  116. package/dist/components/Common/UI/CheckboxGroup/CheckboxGroup.module.scss.js +1 -1
  117. package/dist/components/Common/UI/ComboBox/ComboBox.js +36 -36
  118. package/dist/components/Common/UI/ComboBox/ComboBox.js.map +1 -1
  119. package/dist/components/Common/UI/ComboBox/ComboBox.module.scss.js +1 -1
  120. package/dist/components/Common/UI/DatePicker/DatePicker.js.map +1 -1
  121. package/dist/components/Common/UI/DatePicker/DatePicker.module.scss.js +6 -6
  122. package/dist/components/Common/UI/Heading/Heading.js.map +1 -1
  123. package/dist/components/Common/UI/Heading/Heading.module.scss.js +11 -11
  124. package/dist/components/Common/UI/Input/Input.js.map +1 -1
  125. package/dist/components/Common/UI/Input/Input.module.scss.js +12 -12
  126. package/dist/components/Common/UI/Link/Link.js.map +1 -1
  127. package/dist/components/Common/UI/Link/Link.module.scss.js +1 -1
  128. package/dist/components/Common/UI/List/List.module.scss.js +1 -1
  129. package/dist/components/Common/UI/List/OrderedList.js.map +1 -1
  130. package/dist/components/Common/UI/List/UnorderedList.js.map +1 -1
  131. package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
  132. package/dist/components/Common/UI/Menu/Menu.module.scss.js +5 -5
  133. package/dist/components/Common/UI/NumberInput/NumberInput.js +36 -38
  134. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  135. package/dist/components/Common/UI/ProgressBar/ProgressBar.js.map +1 -1
  136. package/dist/components/Common/UI/ProgressBar/ProgressBar.module.scss.js +1 -1
  137. package/dist/components/Common/UI/Radio/Radio.js.map +1 -1
  138. package/dist/components/Common/UI/Radio/Radio.module.scss.js +1 -1
  139. package/dist/components/Common/UI/RadioGroup/RadioGroup.js.map +1 -1
  140. package/dist/components/Common/UI/RadioGroup/RadioGroup.module.scss.js +1 -1
  141. package/dist/components/Common/UI/Select/Select.js +13 -13
  142. package/dist/components/Common/UI/Select/Select.js.map +1 -1
  143. package/dist/components/Common/UI/Select/Select.module.scss.js +1 -1
  144. package/dist/components/Common/UI/Switch/Switch.js.map +1 -1
  145. package/dist/components/Common/UI/Switch/Switch.module.scss.js +4 -4
  146. package/dist/components/Common/UI/Table/Table.js.map +1 -1
  147. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  148. package/dist/components/Common/UI/Text/Text.js.map +1 -1
  149. package/dist/components/Common/UI/Text/Text.module.scss.js +16 -20
  150. package/dist/components/Common/UI/Text/Text.module.scss.js.map +1 -1
  151. package/dist/components/Common/UI/Text/TextTypes.d.ts +1 -1
  152. package/dist/components/Common/UI/TextInput/TextInput.js.map +1 -1
  153. package/dist/components/Common/UI/hooks/useFieldIds.js.map +1 -1
  154. package/dist/components/Common/VisuallyHidden/VisuallyHidden.js.map +1 -1
  155. package/dist/components/Common/hooks/useAsyncError.js.map +1 -1
  156. package/dist/components/Common/hooks/useMenu.js.map +1 -1
  157. package/dist/components/Common/hooks/useNumberFormatter.js.map +1 -1
  158. package/dist/components/Company/AssignSignatory/AssignSignatory.js +3 -2
  159. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  160. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +8 -6
  161. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  162. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +10 -8
  163. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  164. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  165. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +11 -11
  166. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  167. package/dist/components/Company/AssignSignatory/CreateSignatory/Schema.js.map +1 -1
  168. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +4 -3
  169. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  170. package/dist/components/Company/AssignSignatory/Head.js.map +1 -1
  171. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +8 -6
  172. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  173. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  174. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  175. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  176. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +4 -3
  177. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  178. package/dist/components/Company/AssignSignatory/SignatoryForm.js.map +1 -1
  179. package/dist/components/Company/AssignSignatory/TitleSelect.js +8 -7
  180. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  181. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +6 -5
  182. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  183. package/dist/components/Company/BankAccount/BankAccount.js.map +1 -1
  184. package/dist/components/Company/BankAccount/BankAccountComponents.js.map +1 -1
  185. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -8
  186. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  187. package/dist/components/Company/BankAccount/BankAccountForm/BankAccountForm.js.map +1 -1
  188. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +11 -9
  189. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  190. package/dist/components/Company/BankAccount/BankAccountForm/Head.js.map +1 -1
  191. package/dist/components/Company/BankAccount/BankAccountForm/context.js +4 -3
  192. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  193. package/dist/components/Company/BankAccount/BankAccountList/AccountView.js.map +1 -1
  194. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +12 -10
  195. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  196. package/dist/components/Company/BankAccount/BankAccountList/BankAccountList.js.map +1 -1
  197. package/dist/components/Company/BankAccount/BankAccountList/Head.js.map +1 -1
  198. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +13 -11
  199. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  200. package/dist/components/Company/BankAccount/BankAccountVerify/BankAccountVerify.js.map +1 -1
  201. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +6 -4
  202. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  203. package/dist/components/Company/BankAccount/BankAccountVerify/Head.js.map +1 -1
  204. package/dist/components/Company/BankAccount/stateMachine.js.map +1 -1
  205. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +7 -5
  206. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  207. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +7 -6
  208. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  209. package/dist/components/Company/DocumentSigner/DocumentList/Head.js.map +1 -1
  210. package/dist/components/Company/DocumentSigner/DocumentList/List.js.map +1 -1
  211. package/dist/components/Company/DocumentSigner/DocumentList/ManageSignatories.js.map +1 -1
  212. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  213. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  214. package/dist/components/Company/DocumentSigner/DocumentSigner.js.map +1 -1
  215. package/dist/components/Company/DocumentSigner/SignatureForm/Actions.js.map +1 -1
  216. package/dist/components/Company/DocumentSigner/SignatureForm/Form.js.map +1 -1
  217. package/dist/components/Company/DocumentSigner/SignatureForm/Head.js.map +1 -1
  218. package/dist/components/Company/DocumentSigner/SignatureForm/Preview.js.map +1 -1
  219. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +3 -2
  220. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  221. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  222. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  223. package/dist/components/Company/DocumentSigner/assignSignatoryState.js.map +1 -1
  224. package/dist/components/Company/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  225. package/dist/components/Company/DocumentSigner/stateMachine.js.map +1 -1
  226. package/dist/components/Company/FederalTaxes/Actions.js +9 -7
  227. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  228. package/dist/components/Company/FederalTaxes/FederalTaxes.js +7 -6
  229. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  230. package/dist/components/Company/FederalTaxes/Form.js +5 -3
  231. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  232. package/dist/components/Company/FederalTaxes/Head.js.map +1 -1
  233. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +6 -5
  234. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  235. package/dist/components/Company/Industry/Actions.js +7 -5
  236. package/dist/components/Company/Industry/Actions.js.map +1 -1
  237. package/dist/components/Company/Industry/Context.js +7 -6
  238. package/dist/components/Company/Industry/Context.js.map +1 -1
  239. package/dist/components/Company/Industry/Edit.js +12 -10
  240. package/dist/components/Company/Industry/Edit.js.map +1 -1
  241. package/dist/components/Company/Industry/Head.js.map +1 -1
  242. package/dist/components/Company/Industry/Industry.js.map +1 -1
  243. package/dist/components/Company/Industry/IndustrySelect.js.map +1 -1
  244. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -6
  245. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  246. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  247. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  248. package/dist/components/Company/Locations/LocationForm/Head.js.map +1 -1
  249. package/dist/components/Company/Locations/LocationForm/LocationForm.js +4 -3
  250. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  251. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +4 -3
  252. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  253. package/dist/components/Company/Locations/Locations.js.map +1 -1
  254. package/dist/components/Company/Locations/LocationsList/Actions.js +8 -6
  255. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  256. package/dist/components/Company/Locations/LocationsList/Head.js.map +1 -1
  257. package/dist/components/Company/Locations/LocationsList/List.js +4 -2
  258. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  259. package/dist/components/Company/Locations/LocationsList/LocationsList.js +9 -8
  260. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  261. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +4 -3
  262. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  263. package/dist/components/Company/Locations/locationsStateMachine.js.map +1 -1
  264. package/dist/components/Company/Locations/stateMachine.js.map +1 -1
  265. package/dist/components/Company/OnboardingFlow/OnboardingFlow.js.map +1 -1
  266. package/dist/components/Company/OnboardingFlow/OnboardingFlowComponents.js.map +1 -1
  267. package/dist/components/Company/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  268. package/dist/components/Company/OnboardingOverview/Completed.js +14 -12
  269. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  270. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +8 -6
  271. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  272. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +3 -2
  273. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  274. package/dist/components/Company/OnboardingOverview/context.js +4 -3
  275. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  276. package/dist/components/Company/PaySchedule/PaySchedule.js +33 -31
  277. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  278. package/dist/components/Company/PaySchedule/_parts/Actions.js +12 -10
  279. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  280. package/dist/components/Company/PaySchedule/_parts/Edit.js +51 -52
  281. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  282. package/dist/components/Company/PaySchedule/_parts/Edit.module.scss.js +1 -1
  283. package/dist/components/Company/PaySchedule/_parts/Head.js +8 -6
  284. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  285. package/dist/components/Company/PaySchedule/_parts/List.js +15 -13
  286. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  287. package/dist/components/Company/PaySchedule/usePaySchedule.d.ts +0 -3
  288. package/dist/components/Company/PaySchedule/usePaySchedule.js +8 -8
  289. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  290. package/dist/components/Company/StateTaxes/StateTaxes.js.map +1 -1
  291. package/dist/components/Company/StateTaxes/StateTaxesComponents.js.map +1 -1
  292. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +7 -5
  293. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  294. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js +8 -8
  295. package/dist/components/Company/StateTaxes/StateTaxesForm/Form.js.map +1 -1
  296. package/dist/components/Company/StateTaxes/StateTaxesForm/Head.js.map +1 -1
  297. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  298. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +4 -3
  299. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  300. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +8 -6
  301. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  302. package/dist/components/Company/StateTaxes/StateTaxesList/Head.js.map +1 -1
  303. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +7 -5
  304. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  305. package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
  306. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +4 -3
  307. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  308. package/dist/components/Company/StateTaxes/stateTaxesStateMachine.js.map +1 -1
  309. package/dist/components/Contractor/Address/Actions.js.map +1 -1
  310. package/dist/components/Contractor/Address/Address.js +5 -4
  311. package/dist/components/Contractor/Address/Address.js.map +1 -1
  312. package/dist/components/Contractor/Address/Form.js +1 -1
  313. package/dist/components/Contractor/Address/Form.js.map +1 -1
  314. package/dist/components/Contractor/Address/Head.js.map +1 -1
  315. package/dist/components/Contractor/Address/useAddress.js +6 -5
  316. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  317. package/dist/components/Contractor/List/index.js.map +1 -1
  318. package/dist/components/Contractor/List/useContractorList.js.map +1 -1
  319. package/dist/components/Contractor/NewHireReport/NewHireReport.js +17 -16
  320. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  321. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +7 -5
  322. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  323. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +3 -2
  324. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  325. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +3 -2
  326. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  327. package/dist/components/Contractor/Profile/ContractorProfile.js.map +1 -1
  328. package/dist/components/Contractor/Profile/ContractorProfileForm.js +10 -10
  329. package/dist/components/Contractor/Profile/ContractorProfileForm.js.map +1 -1
  330. package/dist/components/Contractor/Profile/useContractorProfile.js +3 -2
  331. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  332. package/dist/components/Contractor/Submit/ContractorSubmitWithApi.js.map +1 -1
  333. package/dist/components/Contractor/Submit/SubmitDone.js.map +1 -1
  334. package/dist/components/Contractor/Submit/index.js +11 -9
  335. package/dist/components/Contractor/Submit/index.js.map +1 -1
  336. package/dist/components/Contractor/Submit/index.module.scss.js +2 -2
  337. package/dist/components/Employee/Compensation/Actions.js +6 -5
  338. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  339. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  340. package/dist/components/Employee/Compensation/Edit.js +15 -14
  341. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  342. package/dist/components/Employee/Compensation/Head.js.map +1 -1
  343. package/dist/components/Employee/Compensation/List.js +25 -23
  344. package/dist/components/Employee/Compensation/List.js.map +1 -1
  345. package/dist/components/Employee/Compensation/useCompensation.js.map +1 -1
  346. package/dist/components/Employee/Deductions/Deductions.d.ts +8 -14
  347. package/dist/components/Employee/Deductions/Deductions.js +47 -140
  348. package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
  349. package/dist/components/Employee/Deductions/DeductionsComponents.d.ts +23 -0
  350. package/dist/components/Employee/Deductions/DeductionsComponents.js +31 -0
  351. package/dist/components/Employee/Deductions/DeductionsComponents.js.map +1 -0
  352. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.d.ts +41 -0
  353. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js +135 -0
  354. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -0
  355. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.d.ts +6 -0
  356. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +99 -0
  357. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -0
  358. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.d.ts +15 -0
  359. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js +49 -0
  360. package/dist/components/Employee/Deductions/IncludeDeductionsForm/IncludeDeductionsForm.js.map +1 -0
  361. package/dist/components/Employee/Deductions/stateMachine.d.ts +7 -0
  362. package/dist/components/Employee/Deductions/stateMachine.js +107 -0
  363. package/dist/components/Employee/Deductions/stateMachine.js.map +1 -0
  364. package/dist/components/Employee/Deductions/useDeductions.d.ts +2 -2
  365. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +8 -6
  366. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  367. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +7 -6
  368. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  369. package/dist/components/Employee/DocumentSigner/DocumentList/Head.js.map +1 -1
  370. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +4 -2
  371. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  372. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +4 -3
  373. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  374. package/dist/components/Employee/DocumentSigner/DocumentSigner.js.map +1 -1
  375. package/dist/components/Employee/DocumentSigner/SignatureForm/Actions.js.map +1 -1
  376. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js.map +1 -1
  377. package/dist/components/Employee/DocumentSigner/SignatureForm/Head.js.map +1 -1
  378. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js.map +1 -1
  379. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +8 -7
  380. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  381. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +4 -3
  382. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  383. package/dist/components/Employee/DocumentSigner/documentSignerStateMachine.js.map +1 -1
  384. package/dist/components/Employee/DocumentSigner/stateMachine.js.map +1 -1
  385. package/dist/components/Employee/EmployeeList/Actions.js +6 -4
  386. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  387. package/dist/components/Employee/EmployeeList/EmployeeList.js +4 -3
  388. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  389. package/dist/components/Employee/EmployeeList/Head.js +7 -5
  390. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  391. package/dist/components/Employee/EmployeeList/List.js +15 -14
  392. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  393. package/dist/components/Employee/EmployeeList/useEmployeeList.js +4 -3
  394. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  395. package/dist/components/Employee/Landing/Landing.js +13 -12
  396. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  397. package/dist/components/Employee/OnboardingFlow/OnboardingFlow.js.map +1 -1
  398. package/dist/components/Employee/OnboardingFlow/onboardingStateMachine.js.map +1 -1
  399. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  400. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
  401. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.module.scss.js +6 -6
  402. package/dist/components/Employee/PaymentMethod/Actions.js +9 -7
  403. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  404. package/dist/components/Employee/PaymentMethod/BankAccount.js.map +1 -1
  405. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +6 -5
  406. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  407. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +10 -8
  408. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  409. package/dist/components/Employee/PaymentMethod/Head.js.map +1 -1
  410. package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
  411. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +3 -2
  412. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  413. package/dist/components/Employee/PaymentMethod/Split.js +11 -10
  414. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  415. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +6 -5
  416. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  417. package/dist/components/Employee/Profile/Actions.js +9 -7
  418. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  419. package/dist/components/Employee/Profile/AdminPersonalDetails.js +10 -9
  420. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  421. package/dist/components/Employee/Profile/Head.js.map +1 -1
  422. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  423. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  424. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
  425. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  426. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  427. package/dist/components/Employee/Profile/SelfPersonalDetails.js.map +1 -1
  428. package/dist/components/Employee/Profile/WorkAddress.js.map +1 -1
  429. package/dist/components/Employee/Profile/getEmployeeAddressForProfile.js.map +1 -1
  430. package/dist/components/Employee/Profile/useProfile.js +4 -3
  431. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  432. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingComponents.js.map +1 -1
  433. package/dist/components/Employee/SelfOnboardingFlow/SelfOnboardingFlow.js.map +1 -1
  434. package/dist/components/Employee/SelfOnboardingFlow/selfOnboardingMachine.js.map +1 -1
  435. package/dist/components/Employee/Taxes/Actions.js +10 -8
  436. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  437. package/dist/components/Employee/Taxes/FederalForm.js +14 -12
  438. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  439. package/dist/components/Employee/Taxes/FederalHead.js.map +1 -1
  440. package/dist/components/Employee/Taxes/StateForm.js.map +1 -1
  441. package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
  442. package/dist/components/Employee/Taxes/useTaxes.js +4 -3
  443. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  444. package/dist/components/Flow/Flow.js.map +1 -1
  445. package/dist/components/Flow/useFlow.js.map +1 -1
  446. package/dist/contexts/ApiProvider/ApiProvider.d.ts +5 -2
  447. package/dist/contexts/ApiProvider/ApiProvider.js +34 -30
  448. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  449. package/dist/contexts/ComponentAdapter/ComponentsProvider.js.map +1 -1
  450. package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
  451. package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
  452. package/dist/contexts/GustoProvider/GustoProvider.js.map +1 -1
  453. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +6 -4
  454. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +16 -14
  455. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  456. package/dist/contexts/GustoProvider/SDKI18next.js.map +1 -1
  457. package/dist/contexts/GustoProvider/index.d.ts +2 -0
  458. package/dist/contexts/LoadingIndicatorProvider/LoadingIndicatorProvider.js.map +1 -1
  459. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
  460. package/dist/contexts/LocaleProvider/LocaleProvider.js.map +1 -1
  461. package/dist/contexts/LocaleProvider/useLocale.js.map +1 -1
  462. package/dist/contexts/ThemeProvider/ThemeProvider.d.ts +2 -3
  463. package/dist/contexts/ThemeProvider/ThemeProvider.js +20 -24
  464. package/dist/contexts/ThemeProvider/ThemeProvider.js.map +1 -1
  465. package/dist/contexts/ThemeProvider/theme.d.ts +90 -0
  466. package/dist/contexts/ThemeProvider/theme.js +117 -0
  467. package/dist/contexts/ThemeProvider/theme.js.map +1 -0
  468. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  469. package/dist/contexts/index.d.ts +4 -0
  470. package/dist/helpers/LRUCache.js.map +1 -1
  471. package/dist/helpers/dateFormatting.d.ts +10 -2
  472. package/dist/helpers/dateFormatting.js +30 -7
  473. package/dist/helpers/dateFormatting.js.map +1 -1
  474. package/dist/helpers/dateFormatting.test.d.ts +1 -0
  475. package/dist/helpers/ensureRequired.js.map +1 -1
  476. package/dist/helpers/federalEin.js.map +1 -1
  477. package/dist/helpers/formattedStrings.js.map +1 -1
  478. package/dist/helpers/getDataProps.js.map +1 -1
  479. package/dist/helpers/mask.js.map +1 -1
  480. package/dist/helpers/payRateCalculator.js.map +1 -1
  481. package/dist/helpers/rem.js +2 -3
  482. package/dist/helpers/rem.js.map +1 -1
  483. package/dist/helpers/responsive.d.ts +0 -3
  484. package/dist/helpers/responsive.js +20 -34
  485. package/dist/helpers/responsive.js.map +1 -1
  486. package/dist/helpers/ssn.js.map +1 -1
  487. package/dist/helpers/validations.js.map +1 -1
  488. package/dist/hooks/useContainerBreakpoints/useContainerBreakpoints.js.map +1 -1
  489. package/dist/hooks/useForkRef/useForkRef.js.map +1 -1
  490. package/dist/i18n/I18n.js.map +1 -1
  491. package/dist/i18n/en/Company.AddBank.json.js +12 -12
  492. package/dist/i18n/en/Company.Addresses.json.js +12 -12
  493. package/dist/i18n/en/Company.AssignSignatory.json.js +5 -54
  494. package/dist/i18n/en/Company.AssignSignatory.json.js.map +1 -1
  495. package/dist/i18n/en/Company.BankAccount.json.js +19 -40
  496. package/dist/i18n/en/Company.BankAccount.json.js.map +1 -1
  497. package/dist/i18n/en/Company.DocumentList.json.js +15 -15
  498. package/dist/i18n/en/Company.FederalTaxes.json.js +16 -32
  499. package/dist/i18n/en/Company.FederalTaxes.json.js.map +1 -1
  500. package/dist/i18n/en/Company.Locations.json.js +43 -49
  501. package/dist/i18n/en/Company.Locations.json.js.map +1 -1
  502. package/dist/i18n/en/Company.OnboardingOverview.json.js +14 -36
  503. package/dist/i18n/en/Company.OnboardingOverview.json.js.map +1 -1
  504. package/dist/i18n/en/Company.PaySchedule.json.js +1 -44
  505. package/dist/i18n/en/Company.PaySchedule.json.js.map +1 -1
  506. package/dist/i18n/en/Company.SignatureForm.json.js +9 -9
  507. package/dist/i18n/en/Company.StateTaxes.json.js +1 -25
  508. package/dist/i18n/en/Company.StateTaxes.json.js.map +1 -1
  509. package/dist/i18n/en/Contractor.Address.json.js +19 -24
  510. package/dist/i18n/en/Contractor.Address.json.js.map +1 -1
  511. package/dist/i18n/en/Contractor.ContractorList.json.js +9 -12
  512. package/dist/i18n/en/Contractor.ContractorList.json.js.map +1 -1
  513. package/dist/i18n/en/Contractor.ContractorSubmit.json.js +10 -14
  514. package/dist/i18n/en/Contractor.ContractorSubmit.json.js.map +1 -1
  515. package/dist/i18n/en/Contractor.NewHireReport.json.js +5 -7
  516. package/dist/i18n/en/Contractor.NewHireReport.json.js.map +1 -1
  517. package/dist/i18n/en/Contractor.PaymentMethod.json.js +4 -17
  518. package/dist/i18n/en/Contractor.PaymentMethod.json.js.map +1 -1
  519. package/dist/i18n/en/Contractor.Profile.json.js +1 -58
  520. package/dist/i18n/en/Contractor.Profile.json.js.map +1 -1
  521. package/dist/i18n/en/Employee.BankAccount.json.js +17 -19
  522. package/dist/i18n/en/Employee.BankAccount.json.js.map +1 -1
  523. package/dist/i18n/en/Employee.Compensation.json.js +31 -65
  524. package/dist/i18n/en/Employee.Compensation.json.js.map +1 -1
  525. package/dist/i18n/en/Employee.Deductions.json.js +64 -69
  526. package/dist/i18n/en/Employee.Deductions.json.js.map +1 -1
  527. package/dist/i18n/en/Employee.DocumentSigner.json.js +23 -23
  528. package/dist/i18n/en/Employee.EmployeeList.json.js +29 -29
  529. package/dist/i18n/en/Employee.HomeAddress.json.js +23 -28
  530. package/dist/i18n/en/Employee.HomeAddress.json.js.map +1 -1
  531. package/dist/i18n/en/Employee.Landing.json.js +11 -15
  532. package/dist/i18n/en/Employee.Landing.json.js.map +1 -1
  533. package/dist/i18n/en/Employee.OnboardingSummary.json.js +6 -28
  534. package/dist/i18n/en/Employee.OnboardingSummary.json.js.map +1 -1
  535. package/dist/i18n/en/Employee.PaySchedules.json.js +1 -5
  536. package/dist/i18n/en/Employee.PaySchedules.json.js.map +1 -1
  537. package/dist/i18n/en/Employee.PaymentMethod.json.js +29 -36
  538. package/dist/i18n/en/Employee.PaymentMethod.json.js.map +1 -1
  539. package/dist/i18n/en/Employee.Profile.json.js +16 -22
  540. package/dist/i18n/en/Employee.Profile.json.js.map +1 -1
  541. package/dist/i18n/en/Employee.SplitPaycheck.json.js +21 -25
  542. package/dist/i18n/en/Employee.SplitPaycheck.json.js.map +1 -1
  543. package/dist/i18n/en/Employee.StateTaxes.json.js +4 -4
  544. package/dist/i18n/en/Employee.Taxes.json.js +26 -29
  545. package/dist/i18n/en/Employee.Taxes.json.js.map +1 -1
  546. package/dist/i18n/en/Payroll.PayrollHistoryList.json.js +9 -9
  547. package/dist/i18n/en/common.json.d.ts +1 -1
  548. package/dist/i18n/en/common.json.js +1 -147
  549. package/dist/i18n/en/common.json.js.map +1 -1
  550. package/dist/index.d.ts +1 -0
  551. package/dist/index.js +11 -9
  552. package/dist/index.js.map +1 -1
  553. package/dist/models/NAICSValues.js.map +1 -1
  554. package/dist/models/WA_RISK_CODES.js.map +1 -1
  555. package/dist/shared/constants.d.ts +8 -0
  556. package/dist/shared/constants.js +9 -5
  557. package/dist/shared/constants.js.map +1 -1
  558. package/dist/style.css +1 -1
  559. package/dist/types/hooks.d.ts +36 -0
  560. package/dist/types/i18next.d.ts +0 -1
  561. package/package.json +5 -5
  562. package/dist/components/Common/UI/NumberInput/NumberInput.module.scss.js +0 -8
  563. package/dist/components/Common/UI/NumberInput/NumberInput.module.scss.js.map +0 -1
  564. package/dist/components/Employee/Deductions/Actions.js +0 -25
  565. package/dist/components/Employee/Deductions/Actions.js.map +0 -1
  566. package/dist/components/Employee/Deductions/DeductionForm.d.ts +0 -1
  567. package/dist/components/Employee/Deductions/DeductionForm.js +0 -76
  568. package/dist/components/Employee/Deductions/DeductionForm.js.map +0 -1
  569. package/dist/components/Employee/Deductions/DeductionsList.d.ts +0 -2
  570. package/dist/components/Employee/Deductions/DeductionsList.js +0 -58
  571. package/dist/components/Employee/Deductions/DeductionsList.js.map +0 -1
  572. package/dist/components/Employee/Deductions/Head.js +0 -13
  573. package/dist/components/Employee/Deductions/Head.js.map +0 -1
  574. package/dist/components/Employee/Deductions/IncludeDeductionsForm.d.ts +0 -1
  575. package/dist/components/Employee/Deductions/IncludeDeductionsForm.js +0 -25
  576. package/dist/components/Employee/Deductions/IncludeDeductionsForm.js.map +0 -1
  577. package/dist/components/Employee/Deductions/useDeductions.js +0 -33
  578. package/dist/components/Employee/Deductions/useDeductions.js.map +0 -1
  579. package/dist/contexts/ThemeProvider/createTheme.d.ts +0 -22
  580. package/dist/contexts/ThemeProvider/createTheme.js +0 -271
  581. package/dist/contexts/ThemeProvider/createTheme.js.map +0 -1
  582. package/dist/types/GTheme.d.ts +0 -255
  583. /package/dist/contexts/ThemeProvider/{createTheme.test.d.ts → theme.test.d.ts} +0 -0
@@ -0,0 +1,36 @@
1
+ import { BeforeCreateRequestHook, BeforeRequestHook, AfterSuccessHook, AfterErrorHook, BeforeCreateRequestContext, BeforeRequestContext, AfterSuccessContext, AfterErrorContext } from '@gusto/embedded-api/hooks/types';
2
+ export type { BeforeCreateRequestHook, BeforeRequestHook, AfterSuccessHook, AfterErrorHook, BeforeCreateRequestContext, BeforeRequestContext, AfterSuccessContext, AfterErrorContext, };
3
+ /**
4
+ * SDK hooks interface for consumers
5
+ *
6
+ * This interface defines the supported hook types that can be passed to the GustoProvider.
7
+ * Each hook type must implement the corresponding interface from @gusto/embedded-api/hooks/types.
8
+ *
9
+ * Only the following hook types are supported:
10
+ * - beforeCreateRequest: Hooks executed before creating a Request object
11
+ * - beforeRequest: Hooks executed after Request creation but before sending
12
+ * - afterSuccess: Hooks executed after successful responses (2xx status codes)
13
+ * - afterError: Hooks executed after error responses (4xx, 5xx) or network failures
14
+ *
15
+ * @example
16
+ * ```typescript
17
+ * const hooks: SDKHooks = {
18
+ * beforeRequest: [{
19
+ * beforeRequest: (context, request) => {
20
+ * request.headers.set('Authorization', 'Bearer token')
21
+ * return request
22
+ * }
23
+ * }]
24
+ * }
25
+ * ```
26
+ */
27
+ export interface SDKHooks {
28
+ /** Hooks executed before creating a Request object */
29
+ beforeCreateRequest?: BeforeCreateRequestHook[];
30
+ /** Hooks executed after Request creation but before sending */
31
+ beforeRequest?: BeforeRequestHook[];
32
+ /** Hooks executed after successful responses (2xx status codes) */
33
+ afterSuccess?: AfterSuccessHook[];
34
+ /** Hooks executed after error responses (4xx, 5xx) or network failures */
35
+ afterError?: AfterErrorHook[];
36
+ }
@@ -591,7 +591,6 @@ export interface EmployeeDeductions{
591
591
  "continueCta":string;
592
592
  "addDeductionTitle":string;
593
593
  "editDeductionTitle":string;
594
- "addDeuctionDescription":string;
595
594
  "descriptionLabel":string;
596
595
  "frequencyLabel":string;
597
596
  "frequencyRecurringOption":string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gusto/embedded-react-sdk",
3
- "version": "0.11.1",
3
+ "version": "0.11.3-rc.1",
4
4
  "homepage": "https://github.com/Gusto/embedded-react-sdk",
5
5
  "bugs": {
6
6
  "url": "https://github.com/Gusto/embedded-react-sdk/issues"
@@ -71,7 +71,7 @@
71
71
  "@types/js-yaml": "^4.0.9",
72
72
  "@types/react": "^19.1.2",
73
73
  "@vitejs/plugin-react-swc": "^3.9.0",
74
- "@vitest/coverage-v8": "^2.1.9",
74
+ "@vitest/coverage-v8": "^3.2.4",
75
75
  "axe-core": "^4.10.2",
76
76
  "dotenv": "^17.0.1",
77
77
  "eslint": "^9.25.1",
@@ -94,14 +94,14 @@
94
94
  "ts-morph": "^26.0.0",
95
95
  "tsx": "^4.19.3",
96
96
  "typescript-eslint": "^8.31.0",
97
- "vite": "^5.4.19",
97
+ "vite": "^6.2.7",
98
98
  "vite-plugin-checker": "^0.9.1",
99
99
  "vite-plugin-circular-dependency": "^0.5.0",
100
100
  "vite-plugin-dts": "^4.5.3",
101
101
  "vite-plugin-externalize-deps": "^0.9.0",
102
- "vite-plugin-stylelint": "^5.3.1",
102
+ "vite-plugin-stylelint": "^6.0.2",
103
103
  "vite-plugin-svgr": "^4.3.0",
104
- "vitest": "^2.1.9"
104
+ "vitest": "^3.2.4"
105
105
  },
106
106
  "peerDependencies": {
107
107
  "@tanstack/react-query": "^5",
@@ -1,8 +0,0 @@
1
- const o = "_root_5yyd4_1", t = {
2
- root: o
3
- };
4
- export {
5
- t as default,
6
- o as root
7
- };
8
- //# sourceMappingURL=NumberInput.module.scss.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NumberInput.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1,25 +0,0 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { useTranslation as d } from "react-i18next";
3
- import { useDeductions as m } from "./useDeductions.js";
4
- import { ActionsLayout as u } from "../../Common/ActionsLayout/ActionsLayout.js";
5
- import { useComponentContext as l } from "../../../contexts/ComponentAdapter/useComponentContext.js";
6
- const y = () => {
7
- const { mode: n, handleAdd: i, handleCancel: r, handlePassthrough: s, isPending: c } = m(), { t: o } = d("Employee.Deductions"), t = l();
8
- return /* @__PURE__ */ a(u, { children: [
9
- (n === "ADD" || n === "EDIT") && /* @__PURE__ */ e(t.Button, { variant: "secondary", onClick: r, children: o("cancelCta") }),
10
- n === "LIST" && /* @__PURE__ */ e(t.Button, { variant: "secondary", onClick: i, children: o("addDeductionCta") }),
11
- /* @__PURE__ */ e(
12
- t.Button,
13
- {
14
- type: n === "LIST" ? "button" : "submit",
15
- isLoading: c,
16
- onClick: n === "LIST" ? s : void 0,
17
- children: o("continueCta")
18
- }
19
- )
20
- ] });
21
- };
22
- export {
23
- y as Actions
24
- };
25
- //# sourceMappingURL=Actions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Actions.js","sources":["../../../../src/components/Employee/Deductions/Actions.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDeductions } from './useDeductions'\nimport { ActionsLayout } from '@/components/Common'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const Actions = () => {\n const { mode, handleAdd, handleCancel, handlePassthrough, isPending } = useDeductions()\n const { t } = useTranslation('Employee.Deductions')\n const Components = useComponentContext()\n\n return (\n <ActionsLayout>\n {(mode === 'ADD' || mode === 'EDIT') && (\n <Components.Button variant=\"secondary\" onClick={handleCancel}>\n {t('cancelCta')}\n </Components.Button>\n )}\n {mode === 'LIST' && (\n <Components.Button variant=\"secondary\" onClick={handleAdd}>\n {t('addDeductionCta')}\n </Components.Button>\n )}\n <Components.Button\n type={mode === 'LIST' ? 'button' : 'submit'}\n isLoading={isPending}\n onClick={mode === 'LIST' ? handlePassthrough : undefined}\n >\n {t('continueCta')}\n </Components.Button>\n </ActionsLayout>\n )\n}\n"],"names":["Actions","mode","handleAdd","handleCancel","handlePassthrough","isPending","useDeductions","t","useTranslation","Components","useComponentContext","ActionsLayout","jsx"],"mappings":";;;;;AAKO,MAAMA,IAAU,MAAM;AAC3B,QAAM,EAAE,MAAAC,GAAM,WAAAC,GAAW,cAAAC,GAAc,mBAAAC,GAAmB,WAAAC,MAAcC,EAAc,GAChF,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAoB;AAEvC,2BACGC,GACG,EAAA,UAAA;AAAA,KAAAV,MAAS,SAASA,MAAS,WAC3B,gBAAAW,EAACH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASN,GAC7C,UAAAI,EAAE,WAAW,GAChB;AAAA,IAEDN,MAAS,UACP,gBAAAW,EAAAH,EAAW,QAAX,EAAkB,SAAQ,aAAY,SAASP,GAC7C,UAAEK,EAAA,iBAAiB,EACtB,CAAA;AAAA,IAEF,gBAAAK;AAAA,MAACH,EAAW;AAAA,MAAX;AAAA,QACC,MAAMR,MAAS,SAAS,WAAW;AAAA,QACnC,WAAWI;AAAA,QACX,SAASJ,MAAS,SAASG,IAAoB;AAAA,QAE9C,YAAE,aAAa;AAAA,MAAA;AAAA,IAAA;AAAA,EAClB,GACF;AAEJ;"}
@@ -1 +0,0 @@
1
- export declare const DeductionForm: () => import("react/jsx-runtime").JSX.Element | undefined;
@@ -1,76 +0,0 @@
1
- import { jsxs as l, Fragment as m, jsx as t } from "react/jsx-runtime";
2
- import { useFormContext as s, useWatch as i } from "react-hook-form";
3
- import { useTranslation as p } from "react-i18next";
4
- import { useDeductions as b } from "./useDeductions.js";
5
- import { useI18n as f } from "../../../i18n/I18n.js";
6
- import { useComponentContext as D } from "../../../contexts/ComponentAdapter/useComponentContext.js";
7
- import { TextInputField as g } from "../../Common/Fields/TextInputField/TextInputField.js";
8
- import { RadioGroupField as a } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
9
- import { NumberInputField as u } from "../../Common/Fields/NumberInputField/NumberInputField.js";
10
- import { CheckboxField as x } from "../../Common/Fields/CheckboxField/CheckboxField.js";
11
- const I = () => {
12
- const { mode: n } = b(), { control: r } = s();
13
- f("Employee.Deductions");
14
- const { t: e } = p("Employee.Deductions"), o = D(), c = i({ control: r, name: "recurring" }), d = i({ control: r, name: "deductAsPercentage" });
15
- if (!(n !== "ADD" && n !== "EDIT"))
16
- return /* @__PURE__ */ l(m, { children: [
17
- /* @__PURE__ */ t(o.Heading, { as: "h2", children: e(n === "EDIT" ? "editDeductionTitle" : "addDeductionTitle") }),
18
- /* @__PURE__ */ t(o.Text, { children: e("addDeuctionDescription") }),
19
- /* @__PURE__ */ t(
20
- g,
21
- {
22
- name: "description",
23
- label: e("descriptionLabel"),
24
- isRequired: !0,
25
- errorMessage: e("validations.description")
26
- }
27
- ),
28
- /* @__PURE__ */ t(
29
- a,
30
- {
31
- name: "recurring",
32
- label: e("frequencyLabel"),
33
- options: [
34
- { value: "true", label: e("frequencyRecurringOption") },
35
- { value: "false", label: e("frequencyOneTimeOption") }
36
- ]
37
- }
38
- ),
39
- /* @__PURE__ */ t(
40
- a,
41
- {
42
- name: "deductAsPercentage",
43
- label: e("deductionTypeLabel"),
44
- options: [
45
- { value: "true", label: e("deductionTypePercentageOption") },
46
- { value: "false", label: e("deductionTypeFixedAmountOption") }
47
- ]
48
- }
49
- ),
50
- /* @__PURE__ */ t("div", { className: "deduction-amount-section", children: /* @__PURE__ */ t(
51
- u,
52
- {
53
- name: "amount",
54
- isRequired: !0,
55
- label: e("deductionAmountLabel"),
56
- format: d === "true" ? "percent" : "currency",
57
- min: 0,
58
- errorMessage: e("validations.amount")
59
- }
60
- ) }),
61
- c === "true" && /* @__PURE__ */ t(
62
- u,
63
- {
64
- name: "annualMaximum",
65
- label: e("annualMaxLabel"),
66
- format: "currency",
67
- min: 0
68
- }
69
- ),
70
- /* @__PURE__ */ t(x, { name: "courtOrdered", label: e("courtOrderedLabel") })
71
- ] });
72
- };
73
- export {
74
- I as DeductionForm
75
- };
76
- //# sourceMappingURL=DeductionForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeductionForm.js","sources":["../../../../src/components/Employee/Deductions/DeductionForm.tsx"],"sourcesContent":["import { useFormContext, useWatch } from 'react-hook-form'\nimport { useTranslation } from 'react-i18next'\nimport { useDeductions, type DeductionInputs } from './useDeductions'\nimport {\n CheckboxField,\n NumberInputField,\n RadioGroupField,\n TextInputField,\n} from '@/components/Common'\nimport { useI18n } from '@/i18n'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport const DeductionForm = () => {\n const { mode } = useDeductions()\n const { control } = useFormContext<DeductionInputs>()\n useI18n('Employee.Deductions')\n const { t } = useTranslation('Employee.Deductions')\n const Components = useComponentContext()\n\n const watchedRecurring = useWatch({ control, name: 'recurring' })\n const watchedDeductAsPercentage = useWatch({ control, name: 'deductAsPercentage' })\n\n if (mode !== 'ADD' && mode !== 'EDIT') return\n\n return (\n <>\n <Components.Heading as=\"h2\">\n {mode === 'EDIT' ? t('editDeductionTitle') : t('addDeductionTitle')}\n </Components.Heading>\n <Components.Text>{t('addDeuctionDescription')}</Components.Text>\n <TextInputField\n name=\"description\"\n label={t('descriptionLabel')}\n isRequired\n errorMessage={t('validations.description')}\n />\n <RadioGroupField\n name=\"recurring\"\n label={t('frequencyLabel')}\n options={[\n { value: 'true', label: t('frequencyRecurringOption') },\n { value: 'false', label: t('frequencyOneTimeOption') },\n ]}\n />\n <RadioGroupField\n name=\"deductAsPercentage\"\n label={t('deductionTypeLabel')}\n options={[\n { value: 'true', label: t('deductionTypePercentageOption') },\n { value: 'false', label: t('deductionTypeFixedAmountOption') },\n ]}\n />\n <div className=\"deduction-amount-section\">\n <NumberInputField\n name=\"amount\"\n isRequired\n label={t('deductionAmountLabel')}\n format={watchedDeductAsPercentage === 'true' ? 'percent' : 'currency'}\n min={0}\n errorMessage={t('validations.amount')}\n />\n </div>\n {watchedRecurring === 'true' && (\n <NumberInputField\n name=\"annualMaximum\"\n label={t('annualMaxLabel')}\n format=\"currency\"\n min={0}\n />\n )}\n <CheckboxField name=\"courtOrdered\" label={t('courtOrderedLabel')} />\n </>\n )\n}\n"],"names":["DeductionForm","mode","useDeductions","control","useFormContext","useI18n","t","useTranslation","Components","useComponentContext","watchedRecurring","useWatch","watchedDeductAsPercentage","jsxs","Fragment","jsx","TextInputField","RadioGroupField","NumberInputField","CheckboxField"],"mappings":";;;;;;;;;;AAYO,MAAMA,IAAgB,MAAM;AAC3B,QAAA,EAAE,MAAAC,EAAK,IAAIC,EAAc,GACzB,EAAE,SAAAC,EAAQ,IAAIC,EAAgC;AACpD,EAAAC,EAAQ,qBAAqB;AAC7B,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAaC,EAAoB,GAEjCC,IAAmBC,EAAS,EAAE,SAAAR,GAAS,MAAM,aAAa,GAC1DS,IAA4BD,EAAS,EAAE,SAAAR,GAAS,MAAM,sBAAsB;AAE9E,MAAA,EAAAF,MAAS,SAASA,MAAS;AAE/B,WAEI,gBAAAY,EAAAC,GAAA,EAAA,UAAA;AAAA,MAAA,gBAAAC,EAACP,EAAW,SAAX,EAAmB,IAAG,MACpB,UAAkBF,EAAlBL,MAAS,SAAW,uBAA0B,mBAAN,EAC3C,CAAA;AAAA,wBACCO,EAAW,MAAX,EAAiB,UAAAF,EAAE,wBAAwB,GAAE;AAAA,MAC9C,gBAAAS;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAOV,EAAE,kBAAkB;AAAA,UAC3B,YAAU;AAAA,UACV,cAAcA,EAAE,yBAAyB;AAAA,QAAA;AAAA,MAC3C;AAAA,MACA,gBAAAS;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAOX,EAAE,gBAAgB;AAAA,UACzB,SAAS;AAAA,YACP,EAAE,OAAO,QAAQ,OAAOA,EAAE,0BAA0B,EAAE;AAAA,YACtD,EAAE,OAAO,SAAS,OAAOA,EAAE,wBAAwB,EAAE;AAAA,UAAA;AAAA,QACvD;AAAA,MACF;AAAA,MACA,gBAAAS;AAAA,QAACE;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAOX,EAAE,oBAAoB;AAAA,UAC7B,SAAS;AAAA,YACP,EAAE,OAAO,QAAQ,OAAOA,EAAE,+BAA+B,EAAE;AAAA,YAC3D,EAAE,OAAO,SAAS,OAAOA,EAAE,gCAAgC,EAAE;AAAA,UAAA;AAAA,QAC/D;AAAA,MACF;AAAA,MACA,gBAAAS,EAAC,OAAI,EAAA,WAAU,4BACb,UAAA,gBAAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,YAAU;AAAA,UACV,OAAOZ,EAAE,sBAAsB;AAAA,UAC/B,QAAQM,MAA8B,SAAS,YAAY;AAAA,UAC3D,KAAK;AAAA,UACL,cAAcN,EAAE,oBAAoB;AAAA,QAAA;AAAA,MAAA,GAExC;AAAA,MACCI,MAAqB,UACpB,gBAAAK;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,MAAK;AAAA,UACL,OAAOZ,EAAE,gBAAgB;AAAA,UACzB,QAAO;AAAA,UACP,KAAK;AAAA,QAAA;AAAA,MACP;AAAA,wBAEDa,GAAc,EAAA,MAAK,gBAAe,OAAOb,EAAE,mBAAmB,EAAG,CAAA;AAAA,IAAA,GACpE;AAEJ;"}
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const DeductionsList: React.FC;
@@ -1,58 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { useTranslation as p } from "react-i18next";
3
- import { useDeductions as g } from "./useDeductions.js";
4
- import o from "../../Common/hooks/useNumberFormatter.js";
5
- import b from "../../../assets/icons/pencil.svg.js";
6
- import C from "../../../assets/icons/trashcan.svg.js";
7
- import { HamburgerMenu as h } from "../../Common/HamburgerMenu/HamburgerMenu.js";
8
- import { useDataView as y } from "../../Common/DataView/useDataView.js";
9
- import { DataView as D } from "../../Common/DataView/DataView.js";
10
- const S = () => {
11
- const { mode: i, deductions: m, handleDelete: a, handleEdit: u, isPending: c } = g(), { t: r } = p("Employee.Deductions"), s = o("currency"), l = o("percent"), d = m.filter((e) => e.active), { ...f } = y({
12
- data: d,
13
- columns: [
14
- { key: "description", title: r("nameColumn") },
15
- {
16
- key: "recurring",
17
- title: r("frequencyColumn"),
18
- render: (e) => e.recurring ? r("recurringText") : r("nonRecurringText")
19
- },
20
- {
21
- key: "amount",
22
- title: r("withheldColumn"),
23
- render: (e) => {
24
- const n = e.deductAsPercentage ? l(Number(e.amount)) : s(Number(e.amount));
25
- return e.recurring ? r("recurringAmount", { value: n }) : n;
26
- }
27
- }
28
- ],
29
- itemMenu: (e) => /* @__PURE__ */ t(
30
- h,
31
- {
32
- isLoading: c,
33
- items: [
34
- {
35
- label: r("editCta"),
36
- onClick: () => {
37
- u(e);
38
- },
39
- icon: /* @__PURE__ */ t(b, { "aria-hidden": !0 })
40
- },
41
- {
42
- label: r("deleteCta"),
43
- onClick: () => {
44
- a(e);
45
- },
46
- icon: /* @__PURE__ */ t(C, { "aria-hidden": !0 })
47
- }
48
- ]
49
- }
50
- )
51
- });
52
- if (i === "LIST")
53
- return /* @__PURE__ */ t(D, { label: r("deductionsTableLabel"), ...f });
54
- };
55
- export {
56
- S as DeductionsList
57
- };
58
- //# sourceMappingURL=DeductionsList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeductionsList.js","sources":["../../../../src/components/Employee/Deductions/DeductionsList.tsx"],"sourcesContent":["import type React from 'react'\nimport { useTranslation } from 'react-i18next'\nimport { useDeductions } from './useDeductions'\nimport { useDataView, DataView } from '@/components/Common'\nimport useNumberFormatter from '@/components/Common/hooks/useNumberFormatter'\nimport PencilSvg from '@/assets/icons/pencil.svg?react'\nimport TrashCanSvg from '@/assets/icons/trashcan.svg?react'\nimport { HamburgerMenu } from '@/components/Common/HamburgerMenu'\n\nexport const DeductionsList: React.FC = () => {\n const { mode, deductions, handleDelete, handleEdit, isPending } = useDeductions()\n const { t } = useTranslation('Employee.Deductions')\n const formatCurrency = useNumberFormatter('currency')\n const formatPercent = useNumberFormatter('percent')\n\n const activeDeductions = deductions.filter(deduction => deduction.active)\n\n const { ...dataViewProps } = useDataView({\n data: activeDeductions,\n columns: [\n { key: 'description', title: t('nameColumn') },\n {\n key: 'recurring',\n title: t('frequencyColumn'),\n render: deduction => {\n return deduction.recurring ? t('recurringText') : t('nonRecurringText')\n },\n },\n {\n key: 'amount',\n title: t('withheldColumn'),\n render: deduction => {\n const formattedAmount = deduction.deductAsPercentage\n ? formatPercent(Number(deduction.amount))\n : formatCurrency(Number(deduction.amount))\n return deduction.recurring\n ? t('recurringAmount', { value: formattedAmount })\n : formattedAmount\n },\n },\n ],\n itemMenu: deduction => {\n return (\n <HamburgerMenu\n isLoading={isPending}\n items={[\n {\n label: t('editCta'),\n onClick: () => {\n handleEdit(deduction)\n },\n icon: <PencilSvg aria-hidden />,\n },\n {\n label: t('deleteCta'),\n onClick: () => {\n handleDelete(deduction)\n },\n icon: <TrashCanSvg aria-hidden />,\n },\n ]}\n />\n )\n },\n })\n\n if (mode !== 'LIST') return\n return <DataView label={t('deductionsTableLabel')} {...dataViewProps} />\n}\n"],"names":["DeductionsList","mode","deductions","handleDelete","handleEdit","isPending","useDeductions","t","useTranslation","formatCurrency","useNumberFormatter","formatPercent","activeDeductions","deduction","dataViewProps","useDataView","formattedAmount","jsx","HamburgerMenu","PencilSvg","TrashCanSvg","DataView"],"mappings":";;;;;;;;;AASO,MAAMA,IAA2B,MAAM;AAC5C,QAAM,EAAE,MAAAC,GAAM,YAAAC,GAAY,cAAAC,GAAc,YAAAC,GAAY,WAAAC,MAAcC,EAAc,GAC1E,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB,GAC5CC,IAAiBC,EAAmB,UAAU,GAC9CC,IAAgBD,EAAmB,SAAS,GAE5CE,IAAmBV,EAAW,OAAO,CAAAW,MAAaA,EAAU,MAAM,GAElE,EAAE,GAAGC,EAAc,IAAIC,EAAY;AAAA,IACvC,MAAMH;AAAA,IACN,SAAS;AAAA,MACP,EAAE,KAAK,eAAe,OAAOL,EAAE,YAAY,EAAE;AAAA,MAC7C;AAAA,QACE,KAAK;AAAA,QACL,OAAOA,EAAE,iBAAiB;AAAA,QAC1B,QAAQ,CAAaM,MACZA,EAAU,YAAYN,EAAE,eAAe,IAAIA,EAAE,kBAAkB;AAAA,MAE1E;AAAA,MACA;AAAA,QACE,KAAK;AAAA,QACL,OAAOA,EAAE,gBAAgB;AAAA,QACzB,QAAQ,CAAaM,MAAA;AACnB,gBAAMG,IAAkBH,EAAU,qBAC9BF,EAAc,OAAOE,EAAU,MAAM,CAAC,IACtCJ,EAAe,OAAOI,EAAU,MAAM,CAAC;AACpC,iBAAAA,EAAU,YACbN,EAAE,mBAAmB,EAAE,OAAOS,EAAiB,CAAA,IAC/CA;AAAA,QAAA;AAAA,MACN;AAAA,IAEJ;AAAA,IACA,UAAU,CAAaH,MAEnB,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAWb;AAAA,QACX,OAAO;AAAA,UACL;AAAA,YACE,OAAOE,EAAE,SAAS;AAAA,YAClB,SAAS,MAAM;AACb,cAAAH,EAAWS,CAAS;AAAA,YACtB;AAAA,YACA,MAAM,gBAAAI,EAACE,GAAU,EAAA,eAAW,GAAC,CAAA;AAAA,UAC/B;AAAA,UACA;AAAA,YACE,OAAOZ,EAAE,WAAW;AAAA,YACpB,SAAS,MAAM;AACb,cAAAJ,EAAaU,CAAS;AAAA,YACxB;AAAA,YACA,MAAM,gBAAAI,EAACG,GAAY,EAAA,eAAW,GAAC,CAAA;AAAA,UAAA;AAAA,QACjC;AAAA,MACF;AAAA,IACF;AAAA,EAEJ,CACD;AAED,MAAInB,MAAS;AACb,6BAAQoB,GAAS,EAAA,OAAOd,EAAE,sBAAsB,GAAI,GAAGO,GAAe;AACxE;"}
@@ -1,13 +0,0 @@
1
- import { jsx as e, Fragment as r } from "react/jsx-runtime";
2
- import { useTranslation as i } from "react-i18next";
3
- import { useDeductions as m } from "./useDeductions.js";
4
- import { useComponentContext as s } from "../../../contexts/ComponentAdapter/useComponentContext.js";
5
- function d() {
6
- const { t } = i("Employee.Deductions"), { mode: o } = m(), n = s();
7
- if (!(o !== "INITIAL" && o !== "LIST"))
8
- return /* @__PURE__ */ e(r, { children: /* @__PURE__ */ e(n.Heading, { as: "h2", children: t("pageTitle") }) });
9
- }
10
- export {
11
- d as Head
12
- };
13
- //# sourceMappingURL=Head.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Head.js","sources":["../../../../src/components/Employee/Deductions/Head.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDeductions } from './useDeductions'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\nexport function Head() {\n const { t } = useTranslation('Employee.Deductions')\n const { mode } = useDeductions()\n const Components = useComponentContext()\n\n if (mode !== 'INITIAL' && mode !== 'LIST') return\n return (\n <>\n <Components.Heading as=\"h2\">{t('pageTitle')}</Components.Heading>\n </>\n )\n}\n"],"names":["Head","useTranslation","mode","useDeductions","Components","useComponentContext","jsx","Fragment"],"mappings":";;;;AAIO,SAASA,IAAO;AACrB,QAAM,EAAE,EAAA,IAAMC,EAAe,qBAAqB,GAC5C,EAAE,MAAAC,EAAK,IAAIC,EAAc,GACzBC,IAAaC,EAAoB;AAEnC,MAAA,EAAAH,MAAS,aAAaA,MAAS;AAEjC,WAAA,gBAAAI,EAAAC,GAAA,EACE,UAAC,gBAAAD,EAAAF,EAAW,SAAX,EAAmB,IAAG,MAAM,UAAA,EAAE,WAAW,EAAA,CAAE,EAC9C,CAAA;AAEJ;"}
@@ -1 +0,0 @@
1
- export declare const IncludeDeductionsForm: () => import("react/jsx-runtime").JSX.Element | undefined;
@@ -1,25 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { useTranslation as n } from "react-i18next";
3
- import { useDeductions as t } from "./useDeductions.js";
4
- import { RadioGroupField as u } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
5
- const l = () => {
6
- const { mode: o } = t(), { t: e } = n("Employee.Deductions");
7
- if (o === "INITIAL")
8
- return /* @__PURE__ */ i(
9
- u,
10
- {
11
- name: "includeDeductions",
12
- isRequired: !0,
13
- label: e("includeDeductionsFormLabel"),
14
- description: e("includeDeductionsDescription"),
15
- options: [
16
- { value: "Yes", label: e("includeDeductionsYes") },
17
- { value: "No", label: e("includeDeductionsNo") }
18
- ]
19
- }
20
- );
21
- };
22
- export {
23
- l as IncludeDeductionsForm
24
- };
25
- //# sourceMappingURL=IncludeDeductionsForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IncludeDeductionsForm.js","sources":["../../../../src/components/Employee/Deductions/IncludeDeductionsForm.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport { useDeductions } from './useDeductions'\nimport { RadioGroupField } from '@/components/Common'\n\nexport const IncludeDeductionsForm = () => {\n const { mode } = useDeductions()\n const { t } = useTranslation('Employee.Deductions')\n if (mode !== 'INITIAL') return\n return (\n <RadioGroupField\n name=\"includeDeductions\"\n isRequired\n label={t('includeDeductionsFormLabel')}\n description={t('includeDeductionsDescription')}\n options={[\n { value: 'Yes', label: t('includeDeductionsYes') },\n { value: 'No', label: t('includeDeductionsNo') },\n ]}\n />\n )\n}\n"],"names":["IncludeDeductionsForm","mode","useDeductions","t","useTranslation","jsx","RadioGroupField"],"mappings":";;;;AAIO,MAAMA,IAAwB,MAAM;AACnC,QAAA,EAAE,MAAAC,EAAK,IAAIC,EAAc,GACzB,EAAE,GAAAC,EAAA,IAAMC,EAAe,qBAAqB;AAClD,MAAIH,MAAS;AAEX,WAAA,gBAAAI;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,YAAU;AAAA,QACV,OAAOH,EAAE,4BAA4B;AAAA,QACrC,aAAaA,EAAE,8BAA8B;AAAA,QAC7C,SAAS;AAAA,UACP,EAAE,OAAO,OAAO,OAAOA,EAAE,sBAAsB,EAAE;AAAA,UACjD,EAAE,OAAO,MAAM,OAAOA,EAAE,qBAAqB,EAAE;AAAA,QAAA;AAAA,MACjD;AAAA,IACF;AAEJ;"}
@@ -1,33 +0,0 @@
1
- import { z as r } from "zod";
2
- import "react/jsx-runtime";
3
- import "react";
4
- import "react-error-boundary";
5
- import "react-i18next";
6
- import "@gusto/embedded-api/models/errors/apierror";
7
- import "@gusto/embedded-api/models/errors/sdkvalidationerror";
8
- import "@gusto/embedded-api/models/errors/unprocessableentityerrorobject";
9
- import "@tanstack/react-query";
10
- import "../../Base/useBase.js";
11
- import "../../../shared/constants.js";
12
- import "dompurify";
13
- import "../../../contexts/ComponentAdapter/useComponentContext.js";
14
- import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
15
- import { createCompoundContext as o } from "../../Base/createCompoundContext.js";
16
- const D = r.object({
17
- active: r.boolean(),
18
- amount: r.number().min(0).transform(String),
19
- description: r.string().min(1),
20
- courtOrdered: r.boolean(),
21
- times: r.number().nullable(),
22
- //The number of times to apply the garnishment. Ignored if recurring is true.
23
- recurring: r.string().transform((t) => t === "true"),
24
- annualMaximum: r.number().min(0).transform((t) => t > 0 ? t.toString() : null).nullable(),
25
- payPeriodMaximum: r.number().min(0).transform((t) => t > 0 ? t.toString() : null).nullable(),
26
- deductAsPercentage: r.string().transform((t) => t === "true")
27
- }), [S, C] = o("DeductionsContext");
28
- export {
29
- D as DeductionSchema,
30
- C as DeductionsProvider,
31
- S as useDeductions
32
- };
33
- //# sourceMappingURL=useDeductions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDeductions.js","sources":["../../../../src/components/Employee/Deductions/useDeductions.ts"],"sourcesContent":["import type { Garnishment } from '@gusto/embedded-api/models/components/garnishment'\nimport { z } from 'zod'\nimport { createCompoundContext } from '@/components/Base'\n\nexport type MODE = 'ADD' | 'LIST' | 'INITIAL' | 'EDIT'\n\nexport const DeductionSchema = z.object({\n active: z.boolean(),\n amount: z.number().min(0).transform(String),\n description: z.string().min(1),\n courtOrdered: z.boolean(),\n times: z.number().nullable(), //The number of times to apply the garnishment. Ignored if recurring is true.\n recurring: z.string().transform(val => val === 'true'),\n annualMaximum: z\n .number()\n .min(0)\n .transform(val => (val > 0 ? val.toString() : null))\n .nullable(),\n payPeriodMaximum: z\n .number()\n .min(0)\n .transform(val => (val > 0 ? val.toString() : null))\n .nullable(),\n deductAsPercentage: z.string().transform(val => val === 'true'),\n})\n\nexport type DeductionInputs = z.input<typeof DeductionSchema>\nexport type DeductionPayload = z.output<typeof DeductionSchema>\n\ntype DeductionsContextType = {\n isPending: boolean\n deductions: Garnishment[]\n employeeId: string\n mode: MODE\n handleAdd: () => void\n handleCancel: () => void\n handleEdit: (deduction: Garnishment) => void\n handleDelete: (deduction: Garnishment) => void\n handlePassthrough: () => void\n}\nconst [useDeductions, DeductionsProvider] =\n createCompoundContext<DeductionsContextType>('DeductionsContext')\nexport { useDeductions, DeductionsProvider }\n"],"names":["DeductionSchema","z","val","useDeductions","DeductionsProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAMa,MAAAA,IAAkBC,EAAE,OAAO;AAAA,EACtC,QAAQA,EAAE,QAAQ;AAAA,EAClB,QAAQA,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,UAAU,MAAM;AAAA,EAC1C,aAAaA,EAAE,SAAS,IAAI,CAAC;AAAA,EAC7B,cAAcA,EAAE,QAAQ;AAAA,EACxB,OAAOA,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,EAC3B,WAAWA,EAAE,SAAS,UAAU,CAAAC,MAAOA,MAAQ,MAAM;AAAA,EACrD,eAAeD,EACZ,OAAA,EACA,IAAI,CAAC,EACL,UAAU,CAAQC,MAAAA,IAAM,IAAIA,EAAI,SAAA,IAAa,IAAK,EAClD,SAAS;AAAA,EACZ,kBAAkBD,EACf,OAAA,EACA,IAAI,CAAC,EACL,UAAU,CAAQC,MAAAA,IAAM,IAAIA,EAAI,SAAA,IAAa,IAAK,EAClD,SAAS;AAAA,EACZ,oBAAoBD,EAAE,SAAS,UAAU,CAAAC,MAAOA,MAAQ,MAAM;AAChE,CAAC,GAgBK,CAACC,GAAeC,CAAkB,IACtCC,EAA6C,mBAAmB;"}
@@ -1,22 +0,0 @@
1
- import { GTheme, GThemeColors, GThemeSpacing, GThemeTypography } from '../../types/GTheme';
2
- import { DeepPartial } from '../../types/Helpers';
3
- export declare const createTheme: (overrides?: DeepPartial<GTheme>) => {
4
- link: import('../../types/GTheme').GThemeLink & DeepPartial<import('../../types/GTheme').GThemeLink>;
5
- focus: import('../../types/GTheme').GThemeFocus & DeepPartial<import('../../types/GTheme').GThemeFocus>;
6
- button: import('../../types/GTheme').GThemeButton & DeepPartial<import('../../types/GTheme').GThemeButton>;
7
- checkbox: import('../../types/GTheme').GThemeCheckbox & DeepPartial<import('../../types/GTheme').GThemeCheckbox>;
8
- radio: import('../../types/GTheme').GThemeRadio & DeepPartial<import('../../types/GTheme').GThemeRadio>;
9
- table: import('../../types/GTheme').GThemeTable & DeepPartial<import('../../types/GTheme').GThemeTable>;
10
- card: import('../../types/GTheme').GThemeCard & DeepPartial<import('../../types/GTheme').GThemeCard>;
11
- input: import('../../types/GTheme').GThemeInput & DeepPartial<import('../../types/GTheme').GThemeInput>;
12
- shadow: import('../../types/GTheme').GThemeShadow & DeepPartial<import('../../types/GTheme').GThemeShadow>;
13
- calendarPreview: import('../../types/GTheme').GThemeCalendarPreview & DeepPartial<import('../../types/GTheme').GThemeCalendarPreview>;
14
- badge: import('../../types/GTheme').GThemeBadge & DeepPartial<import('../../types/GTheme').GThemeBadge>;
15
- spacing: GThemeSpacing & DeepPartial<GThemeSpacing>;
16
- typography: GThemeTypography & DeepPartial<GThemeTypography>;
17
- colors: GThemeColors & DeepPartial<GThemeColors>;
18
- radius: string;
19
- rootFS: string;
20
- optionalLabel: string;
21
- transitionDuration: string;
22
- };