@gusto/embedded-react-sdk 0.34.0 → 0.35.0-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 (202) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/components/Base/Base.d.ts +6 -2
  3. package/dist/components/Base/Base.js +105 -59
  4. package/dist/components/Base/Base.js.map +1 -1
  5. package/dist/components/Base/useBase.d.ts +1 -0
  6. package/dist/components/Base/useBase.js.map +1 -1
  7. package/dist/components/Base/useBaseSubmit.d.ts +1 -1
  8. package/dist/components/Base/useBaseSubmit.js +60 -33
  9. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  10. package/dist/components/Common/HamburgerMenu/HamburgerMenu.d.ts +1 -1
  11. package/dist/components/Common/HamburgerMenu/HamburgerMenu.js +15 -13
  12. package/dist/components/Common/HamburgerMenu/HamburgerMenu.js.map +1 -1
  13. package/dist/components/Common/HamburgerMenu/HamburgerMenuTypes.d.ts +1 -0
  14. package/dist/components/Common/SignatureForm/SignatureFormFields.js +1 -1
  15. package/dist/components/Common/UI/Menu/Menu.js +26 -25
  16. package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
  17. package/dist/components/Common/UI/Menu/Menu.module.scss.js +7 -7
  18. package/dist/components/Common/UI/Menu/MenuTypes.d.ts +5 -0
  19. package/dist/components/Common/UI/Menu/MenuTypes.js +4 -3
  20. package/dist/components/Common/UI/Menu/MenuTypes.js.map +1 -1
  21. package/dist/components/Common/UI/Table/Table.module.scss.js +1 -1
  22. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +1 -1
  23. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +12 -12
  24. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -4
  25. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  26. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +1 -1
  27. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -4
  28. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  29. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -6
  30. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  31. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +1 -1
  32. package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -4
  33. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  34. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +1 -1
  35. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  36. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  37. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  38. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  39. package/dist/components/Company/FederalTaxes/Form.js +1 -1
  40. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +5 -6
  41. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  42. package/dist/components/Company/Industry/Context.js +6 -7
  43. package/dist/components/Company/Industry/Context.js.map +1 -1
  44. package/dist/components/Company/Locations/LocationForm/Form.js +1 -1
  45. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -4
  46. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  47. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -4
  48. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  49. package/dist/components/Company/OnboardingOverview/context.js +3 -4
  50. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  51. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  52. package/dist/components/Company/PaySchedule/usePaySchedule.js +5 -6
  53. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  54. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -4
  55. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  56. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -4
  57. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  58. package/dist/components/Contractor/Address/Form.js +1 -1
  59. package/dist/components/Contractor/Address/useAddress.js +5 -6
  60. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  61. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +2 -2
  62. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +1 -1
  63. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js +119 -113
  64. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  65. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  66. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  67. package/dist/components/Employee/Compensation/Edit.js +70 -70
  68. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  69. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +9 -10
  70. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  71. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +10 -11
  72. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  73. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +10 -11
  74. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  75. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +3 -4
  76. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  77. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +18 -18
  78. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +7 -7
  79. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js +5 -5
  80. package/dist/components/Employee/DocumentSigner/SignatureForm/Form.js.map +1 -1
  81. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js +8 -8
  82. package/dist/components/Employee/DocumentSigner/SignatureForm/Preview.js.map +1 -1
  83. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +3 -4
  84. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  85. package/dist/components/Employee/EmployeeList/useEmployeeList.js +3 -4
  86. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  87. package/dist/components/Employee/FederalTaxes/FederalForm.js +7 -7
  88. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +3 -4
  89. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  90. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +2 -2
  91. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
  92. package/dist/components/Employee/PaymentMethod/Split.js +8 -8
  93. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +5 -6
  94. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  95. package/dist/components/Employee/Profile/AdminPersonalDetails.js +1 -1
  96. package/dist/components/Employee/Profile/HomeAddress.js +1 -1
  97. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +2 -2
  98. package/dist/components/Employee/Profile/useProfile.js +3 -4
  99. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  100. package/dist/components/Employee/StateTaxes/StateTaxes.js +69 -61
  101. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
  102. package/dist/components/Employee/StateTaxes/useStateTaxes.js +3 -4
  103. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  104. package/dist/components/Employee/Taxes/FederalForm.js +7 -7
  105. package/dist/components/Employee/Taxes/useTaxes.js +3 -4
  106. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  107. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +10 -10
  108. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  109. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +9 -9
  110. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +2 -0
  111. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +101 -0
  112. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -0
  113. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +16 -0
  114. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js.map +1 -0
  115. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +7 -0
  116. package/dist/components/Payroll/GrossUpModal/index.d.ts +3 -0
  117. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +86 -67
  118. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  119. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
  120. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +83 -49
  121. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  122. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +6 -0
  123. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +1 -1
  124. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +1 -1
  125. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +102 -0
  126. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -0
  127. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.module.scss.js +14 -0
  128. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.module.scss.js.map +1 -0
  129. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.js +52 -0
  130. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.js.map +1 -0
  131. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.module.scss.js +16 -0
  132. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTable.module.scss.js.map +1 -0
  133. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.d.ts +12 -2
  134. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js +15 -0
  135. package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.js.map +1 -0
  136. package/dist/components/Payroll/OffCycleTaxWithholdingTable/index.d.ts +2 -1
  137. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +212 -120
  138. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  139. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -1
  140. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +76 -64
  141. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  142. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +2 -0
  143. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +11 -0
  144. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -0
  145. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +67 -57
  146. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  147. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +36 -36
  148. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +6 -6
  149. package/dist/components/Payroll/usePreparedPayrollData.js +44 -44
  150. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  151. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +2 -0
  152. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +58 -39
  153. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  154. package/dist/contexts/ObservabilityProvider/ObservabilityContext.d.ts +5 -0
  155. package/dist/contexts/ObservabilityProvider/ObservabilityContext.js +6 -0
  156. package/dist/contexts/ObservabilityProvider/ObservabilityContext.js.map +1 -0
  157. package/dist/contexts/ObservabilityProvider/ObservabilityProvider.d.ts +7 -0
  158. package/dist/contexts/ObservabilityProvider/ObservabilityProvider.js +11 -0
  159. package/dist/contexts/ObservabilityProvider/ObservabilityProvider.js.map +1 -0
  160. package/dist/contexts/ObservabilityProvider/index.d.ts +5 -0
  161. package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +5 -0
  162. package/dist/contexts/ObservabilityProvider/observabilityUtils.js +45 -0
  163. package/dist/contexts/ObservabilityProvider/observabilityUtils.js.map +1 -0
  164. package/dist/contexts/ObservabilityProvider/sanitization.d.ts +19 -0
  165. package/dist/contexts/ObservabilityProvider/sanitization.js +95 -0
  166. package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -0
  167. package/dist/contexts/ObservabilityProvider/sanitization.test.d.ts +1 -0
  168. package/dist/contexts/ObservabilityProvider/useObservability.d.ts +2 -0
  169. package/dist/contexts/ObservabilityProvider/useObservability.js +11 -0
  170. package/dist/contexts/ObservabilityProvider/useObservability.js.map +1 -0
  171. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +8 -0
  172. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js +28 -0
  173. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -0
  174. package/dist/contexts/index.d.ts +2 -0
  175. package/dist/helpers/formattedStrings.js +12 -13
  176. package/dist/helpers/formattedStrings.js.map +1 -1
  177. package/dist/helpers/rem.d.ts +7 -3
  178. package/dist/helpers/rem.js +14 -10
  179. package/dist/helpers/rem.js.map +1 -1
  180. package/dist/helpers/rem.test.d.ts +1 -0
  181. package/dist/helpers/retryAsync.d.ts +7 -0
  182. package/dist/helpers/retryAsync.js +18 -0
  183. package/dist/helpers/retryAsync.js.map +1 -0
  184. package/dist/i18n/I18n.js +15 -15
  185. package/dist/i18n/I18n.js.map +1 -1
  186. package/dist/i18n/en/Company.PaySchedule.json.js +1 -1
  187. package/dist/i18n/en/Payroll.GrossUpModal.json.js +24 -0
  188. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -0
  189. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +13 -11
  190. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js.map +1 -1
  191. package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +1 -1
  192. package/dist/index.d.ts +2 -0
  193. package/dist/index.js +19 -13
  194. package/dist/index.js.map +1 -1
  195. package/dist/shared/constants.d.ts +5 -0
  196. package/dist/shared/constants.js +11 -8
  197. package/dist/shared/constants.js.map +1 -1
  198. package/dist/style.css +1 -1
  199. package/dist/types/i18next.d.ts +26 -1
  200. package/dist/types/observability.d.ts +145 -0
  201. package/docs/reference/endpoint-inventory.json +10 -1
  202. package/package.json +21 -21
@@ -11,11 +11,10 @@ import "classnames";
11
11
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
12
12
  import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
13
  import "dompurify";
14
- import "../../../contexts/LocaleProvider/useLocale.js";
15
14
  import { createCompoundContext as o } from "../../Base/createCompoundContext.js";
16
- const [C, c] = o("OnboardingOverviewContext");
15
+ const [x, C] = o("OnboardingOverviewContext");
17
16
  export {
18
- c as OnboardingOverviewProvider,
19
- C as useOnboardingOverview
17
+ C as OnboardingOverviewProvider,
18
+ x as useOnboardingOverview
20
19
  };
21
20
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../src/components/Company/OnboardingOverview/context.ts"],"sourcesContent":["import type { OnboardingStep } from '@gusto/embedded-api/models/components/companyonboardingstatus'\nimport { createCompoundContext } from '@/components/Base'\n\ntype OnboardingOverviewContextType = {\n onboardingCompleted?: boolean\n onboardingSteps?: OnboardingStep[]\n handleDone: () => void\n handleContinue: () => void\n}\n\nconst [useOnboardingOverview, OnboardingOverviewProvider] =\n createCompoundContext<OnboardingOverviewContextType>('OnboardingOverviewContext')\n\nexport { useOnboardingOverview, OnboardingOverviewProvider }\n"],"names":["useOnboardingOverview","OnboardingOverviewProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAuBC,CAA0B,IACtDC,EAAqD,2BAA2B;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../src/components/Company/OnboardingOverview/context.ts"],"sourcesContent":["import type { OnboardingStep } from '@gusto/embedded-api/models/components/companyonboardingstatus'\nimport { createCompoundContext } from '@/components/Base'\n\ntype OnboardingOverviewContextType = {\n onboardingCompleted?: boolean\n onboardingSteps?: OnboardingStep[]\n handleDone: () => void\n handleContinue: () => void\n}\n\nconst [useOnboardingOverview, OnboardingOverviewProvider] =\n createCompoundContext<OnboardingOverviewContextType>('OnboardingOverviewContext')\n\nexport { useOnboardingOverview, OnboardingOverviewProvider }\n"],"names":["useOnboardingOverview","OnboardingOverviewProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAuBC,CAA0B,IACtDC,EAAqD,2BAA2B;"}
@@ -6,22 +6,22 @@ import { usePaySchedule as T } from "../usePaySchedule.js";
6
6
  import l from "./Edit.module.scss.js";
7
7
  import { Flex as y } from "../../../Common/Flex/Flex.js";
8
8
  import { Grid as x } from "../../../Common/Grid/Grid.js";
9
- import { RadioGroupField as E } from "../../../Common/Fields/RadioGroupField/RadioGroupField.js";
10
- import { TextInputField as N } from "../../../Common/Fields/TextInputField/TextInputField.js";
11
- import { DatePickerField as h } from "../../../Common/Fields/DatePickerField/DatePickerField.js";
12
- import { NumberInputField as f } from "../../../Common/Fields/NumberInputField/NumberInputField.js";
13
- import { useComponentContext as F } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
14
- import { useDateFormatter as R } from "../../../../hooks/useDateFormatter.js";
15
- import { SelectField as O } from "../../../Common/Fields/SelectField/SelectField.js";
9
+ import { useComponentContext as E } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
10
+ import { useDateFormatter as N } from "../../../../hooks/useDateFormatter.js";
11
+ import { TextInputField as F } from "../../../Common/Fields/TextInputField/TextInputField.js";
12
+ import { SelectField as R } from "../../../Common/Fields/SelectField/SelectField.js";
13
+ import { RadioGroupField as O } from "../../../Common/Fields/RadioGroupField/RadioGroupField.js";
14
+ import { NumberInputField as h } from "../../../Common/Fields/NumberInputField/NumberInputField.js";
15
+ import { DatePickerField as f } from "../../../Common/Fields/DatePickerField/DatePickerField.js";
16
16
  const J = () => {
17
- const n = F(), { t: e } = C("Company.PaySchedule"), P = R(), { payPeriodPreview: r, mode: u, payPreviewLoading: D } = T(), { setValue: d } = q(), [a, v] = g(0), i = p({ name: "frequency" }), o = p({ name: "customTwicePerMonth" }), b = i === "Twice per month" && o === "custom" || i === "Monthly", w = i === "Twice per month" && o === "custom";
17
+ const n = E(), { t: e } = C("Company.PaySchedule"), P = N(), { payPeriodPreview: r, mode: u, payPreviewLoading: D } = T(), { setValue: d } = q(), [a, v] = g(0), i = p({ name: "frequency" }), o = p({ name: "customTwicePerMonth" }), b = i === "Twice per month" && o === "custom" || i === "Monthly", w = i === "Twice per month" && o === "custom";
18
18
  return S(() => {
19
19
  i === "Twice per month" && o === "1st15th" && (d("day1", 15), d("day2", 31));
20
20
  }, [i, o, d]), u !== "EDIT_PAY_SCHEDULE" && u !== "ADD_PAY_SCHEDULE" ? null : /* @__PURE__ */ t("div", { className: l.payScheduleContainer, children: /* @__PURE__ */ m(x, { gap: 32, gridTemplateColumns: { base: "1fr", small: "1fr 1fr" }, children: [
21
21
  /* @__PURE__ */ t("div", { className: l.payScheduleForm, children: /* @__PURE__ */ m(y, { flexDirection: "column", children: [
22
- /* @__PURE__ */ t(N, { name: "customName", label: e("labels.name"), isRequired: !0 }),
22
+ /* @__PURE__ */ t(F, { name: "customName", label: e("labels.name"), isRequired: !0 }),
23
23
  /* @__PURE__ */ t(
24
- O,
24
+ R,
25
25
  {
26
26
  name: "frequency",
27
27
  label: e("labels.frequency"),
@@ -35,7 +35,7 @@ const J = () => {
35
35
  }
36
36
  ),
37
37
  i === "Twice per month" && /* @__PURE__ */ t(
38
- E,
38
+ O,
39
39
  {
40
40
  name: "customTwicePerMonth",
41
41
  label: e("labels.frequencyOptions"),
@@ -47,7 +47,7 @@ const J = () => {
47
47
  }
48
48
  ),
49
49
  /* @__PURE__ */ t(
50
- h,
50
+ f,
51
51
  {
52
52
  name: "anchorPayDate",
53
53
  label: e("labels.firstPayDate"),
@@ -56,7 +56,7 @@ const J = () => {
56
56
  }
57
57
  ),
58
58
  /* @__PURE__ */ t(
59
- h,
59
+ f,
60
60
  {
61
61
  name: "anchorEndOfPayPeriod",
62
62
  label: e("labels.firstPayPeriodEndDate"),
@@ -64,8 +64,8 @@ const J = () => {
64
64
  isRequired: !0
65
65
  }
66
66
  ),
67
- /* @__PURE__ */ t("div", { className: b ? "" : l.visuallyHidden, children: /* @__PURE__ */ t(f, { name: "day1", label: e("labels.firstPayDayOfTheMonth"), isRequired: !0 }) }),
68
- /* @__PURE__ */ t("div", { className: w ? "" : l.visuallyHidden, children: /* @__PURE__ */ t(f, { name: "day2", label: e("labels.lastPayDayOfTheMonth"), isRequired: !0 }) })
67
+ /* @__PURE__ */ t("div", { className: b ? "" : l.visuallyHidden, children: /* @__PURE__ */ t(h, { name: "day1", label: e("labels.firstPayDayOfTheMonth"), isRequired: !0 }) }),
68
+ /* @__PURE__ */ t("div", { className: w ? "" : l.visuallyHidden, children: /* @__PURE__ */ t(h, { name: "day2", label: e("labels.lastPayDayOfTheMonth"), isRequired: !0 }) })
69
69
  ] }) }),
70
70
  /* @__PURE__ */ t(y, { flexDirection: "column", gap: 4, justifyContent: "center", alignItems: "center", children: r && r[a] ? /* @__PURE__ */ m("div", { className: l.calendarContainer, children: [
71
71
  !D && /* @__PURE__ */ t(
@@ -12,9 +12,8 @@ import "classnames";
12
12
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
13
13
  import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
14
  import "dompurify";
15
- import "../../../contexts/LocaleProvider/useLocale.js";
16
15
  import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
17
- const S = o.object({
16
+ const x = o.object({
18
17
  frequency: o.enum(["Every week", "Every other week", "Twice per month", "Monthly"]),
19
18
  anchorPayDate: o.date().optional(),
20
19
  anchorEndOfPayPeriod: o.date().optional(),
@@ -22,10 +21,10 @@ const S = o.object({
22
21
  day2: o.number().min(1).max(31).optional(),
23
22
  customName: o.string().optional(),
24
23
  customTwicePerMonth: o.string().optional()
25
- }), [f, w] = t("PayScheduleContext");
24
+ }), [S, f] = t("PayScheduleContext");
26
25
  export {
27
- w as PayScheduleProvider,
28
- S as PayScheduleSchema,
29
- f as usePaySchedule
26
+ f as PayScheduleProvider,
27
+ x as PayScheduleSchema,
28
+ S as usePaySchedule
30
29
  };
31
30
  //# sourceMappingURL=usePaySchedule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePaySchedule.js","sources":["../../../../src/components/Company/PaySchedule/usePaySchedule.ts"],"sourcesContent":["import type { PayScheduleCreateUpdate } from '@gusto/embedded-api/models/components/payschedulecreateupdate'\nimport type { PayScheduleList } from '@gusto/embedded-api/models/components/payschedulelist'\nimport type { PayScheduleObject as PayScheduleType } from '@gusto/embedded-api/models/components/payscheduleobject'\nimport type { PayPeriods } from '@gusto/embedded-api/models/operations/getv1companiescompanyidpayschedulespreview'\nimport { z } from 'zod'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\nimport { createCompoundContext } from '@/components/Base'\n\nexport type MODE =\n | 'LIST_PAY_SCHEDULES'\n | 'ADD_PAY_SCHEDULE'\n | 'EDIT_PAY_SCHEDULE'\n | 'PREVIEW_PAY_SCHEDULE'\n\ntype PayScheduleContextType = {\n companyId: string\n handleAdd: () => void\n handleEdit: (schedule: PayScheduleType) => void\n handleCancel: () => void\n handleContinue: () => void\n mode: MODE\n paySchedules: PayScheduleList[] | undefined | null\n currentPaySchedule: PayScheduleType | undefined | null\n payPeriodPreview?: PayPeriods[]\n payPreviewLoading?: boolean\n}\n\nexport const PayScheduleSchema = z.object({\n frequency: z.enum(['Every week', 'Every other week', 'Twice per month', 'Monthly']),\n anchorPayDate: z.date().optional(),\n anchorEndOfPayPeriod: z.date().optional(),\n day1: z.number().min(1).max(31).optional(),\n day2: z.number().min(1).max(31).optional(),\n customName: z.string().optional(),\n customTwicePerMonth: z.string().optional(),\n})\n\nexport type PayScheduleInputs = z.input<typeof PayScheduleSchema>\nexport type PayScheduleOutputs = z.output<typeof PayScheduleSchema>\n\nexport type PayScheduleDefaultValues = RequireAtLeastOne<\n Partial<\n Pick<\n PayScheduleCreateUpdate,\n 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency'\n >\n >\n>\n\nconst [usePaySchedule, PayScheduleProvider] =\n createCompoundContext<PayScheduleContextType>('PayScheduleContext')\nexport { usePaySchedule, PayScheduleProvider }\n"],"names":["PayScheduleSchema","z","usePaySchedule","PayScheduleProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AA2BO,MAAMA,IAAoBC,EAAE,OAAO;AAAA,EACxC,WAAWA,EAAE,KAAK,CAAC,cAAc,oBAAoB,mBAAmB,SAAS,CAAC;AAAA,EAClF,eAAeA,EAAE,KAAA,EAAO,SAAA;AAAA,EACxB,sBAAsBA,EAAE,KAAA,EAAO,SAAA;AAAA,EAC/B,MAAMA,EAAE,OAAA,EAAS,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAA;AAAA,EAChC,MAAMA,EAAE,OAAA,EAAS,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAA;AAAA,EAChC,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,qBAAqBA,EAAE,OAAA,EAAS,SAAA;AAClC,CAAC,GAcK,CAACC,GAAgBC,CAAmB,IACxCC,EAA8C,oBAAoB;"}
1
+ {"version":3,"file":"usePaySchedule.js","sources":["../../../../src/components/Company/PaySchedule/usePaySchedule.ts"],"sourcesContent":["import type { PayScheduleCreateUpdate } from '@gusto/embedded-api/models/components/payschedulecreateupdate'\nimport type { PayScheduleList } from '@gusto/embedded-api/models/components/payschedulelist'\nimport type { PayScheduleObject as PayScheduleType } from '@gusto/embedded-api/models/components/payscheduleobject'\nimport type { PayPeriods } from '@gusto/embedded-api/models/operations/getv1companiescompanyidpayschedulespreview'\nimport { z } from 'zod'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\nimport { createCompoundContext } from '@/components/Base'\n\nexport type MODE =\n | 'LIST_PAY_SCHEDULES'\n | 'ADD_PAY_SCHEDULE'\n | 'EDIT_PAY_SCHEDULE'\n | 'PREVIEW_PAY_SCHEDULE'\n\ntype PayScheduleContextType = {\n companyId: string\n handleAdd: () => void\n handleEdit: (schedule: PayScheduleType) => void\n handleCancel: () => void\n handleContinue: () => void\n mode: MODE\n paySchedules: PayScheduleList[] | undefined | null\n currentPaySchedule: PayScheduleType | undefined | null\n payPeriodPreview?: PayPeriods[]\n payPreviewLoading?: boolean\n}\n\nexport const PayScheduleSchema = z.object({\n frequency: z.enum(['Every week', 'Every other week', 'Twice per month', 'Monthly']),\n anchorPayDate: z.date().optional(),\n anchorEndOfPayPeriod: z.date().optional(),\n day1: z.number().min(1).max(31).optional(),\n day2: z.number().min(1).max(31).optional(),\n customName: z.string().optional(),\n customTwicePerMonth: z.string().optional(),\n})\n\nexport type PayScheduleInputs = z.input<typeof PayScheduleSchema>\nexport type PayScheduleOutputs = z.output<typeof PayScheduleSchema>\n\nexport type PayScheduleDefaultValues = RequireAtLeastOne<\n Partial<\n Pick<\n PayScheduleCreateUpdate,\n 'anchorPayDate' | 'anchorEndOfPayPeriod' | 'day1' | 'day2' | 'customName' | 'frequency'\n >\n >\n>\n\nconst [usePaySchedule, PayScheduleProvider] =\n createCompoundContext<PayScheduleContextType>('PayScheduleContext')\nexport { usePaySchedule, PayScheduleProvider }\n"],"names":["PayScheduleSchema","z","usePaySchedule","PayScheduleProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AA2BO,MAAMA,IAAoBC,EAAE,OAAO;AAAA,EACxC,WAAWA,EAAE,KAAK,CAAC,cAAc,oBAAoB,mBAAmB,SAAS,CAAC;AAAA,EAClF,eAAeA,EAAE,KAAA,EAAO,SAAA;AAAA,EACxB,sBAAsBA,EAAE,KAAA,EAAO,SAAA;AAAA,EAC/B,MAAMA,EAAE,OAAA,EAAS,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAA;AAAA,EAChC,MAAMA,EAAE,OAAA,EAAS,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAA;AAAA,EAChC,YAAYA,EAAE,OAAA,EAAS,SAAA;AAAA,EACvB,qBAAqBA,EAAE,OAAA,EAAS,SAAA;AAClC,CAAC,GAcK,CAACC,GAAgBC,CAAmB,IACxCC,EAA8C,oBAAoB;"}
@@ -11,11 +11,10 @@ import "classnames";
11
11
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
12
12
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
13
  import "dompurify";
14
- import "../../../../contexts/LocaleProvider/useLocale.js";
15
14
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
16
- const [d, u] = t("StateTaxesFormContext");
15
+ const [c, d] = t("StateTaxesFormContext");
17
16
  export {
18
- u as StateTaxesFormProvider,
19
- d as useStateTaxesForm
17
+ d as StateTaxesFormProvider,
18
+ c as useStateTaxesForm
20
19
  };
21
20
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/StateTaxes/StateTaxesForm/context.ts"],"sourcesContent":["import type { TaxRequirementsState } from '@gusto/embedded-api/models/components/taxrequirementsstate'\nimport { createCompoundContext } from '@/components/Base'\n\ninterface StateTaxFormContext {\n isPending: boolean\n state: string\n stateTaxRequirements: TaxRequirementsState\n handleCancel: () => void\n}\n\nconst [useStateTaxesForm, StateTaxesFormProvider] =\n createCompoundContext<StateTaxFormContext>('StateTaxesFormContext')\n\nexport { useStateTaxesForm, StateTaxesFormProvider }\n"],"names":["useStateTaxesForm","StateTaxesFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAmBC,CAAsB,IAC9CC,EAA2C,uBAAuB;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/StateTaxes/StateTaxesForm/context.ts"],"sourcesContent":["import type { TaxRequirementsState } from '@gusto/embedded-api/models/components/taxrequirementsstate'\nimport { createCompoundContext } from '@/components/Base'\n\ninterface StateTaxFormContext {\n isPending: boolean\n state: string\n stateTaxRequirements: TaxRequirementsState\n handleCancel: () => void\n}\n\nconst [useStateTaxesForm, StateTaxesFormProvider] =\n createCompoundContext<StateTaxFormContext>('StateTaxesFormContext')\n\nexport { useStateTaxesForm, StateTaxesFormProvider }\n"],"names":["useStateTaxesForm","StateTaxesFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAmBC,CAAsB,IAC9CC,EAA2C,uBAAuB;"}
@@ -11,11 +11,10 @@ import "classnames";
11
11
  import "../../../../contexts/ComponentAdapter/useComponentContext.js";
12
12
  import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
13
13
  import "dompurify";
14
- import "../../../../contexts/LocaleProvider/useLocale.js";
15
14
  import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
16
- const [d, u] = t("StateTaxesListContext");
15
+ const [c, d] = t("StateTaxesListContext");
17
16
  export {
18
- u as StateTaxesListProvider,
19
- d as useStateTaxesList
17
+ d as StateTaxesListProvider,
18
+ c as useStateTaxesList
20
19
  };
21
20
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/StateTaxes/StateTaxesList/context.ts"],"sourcesContent":["import type { ResponseBody } from '@gusto/embedded-api/models/operations/getv1companiescompanyuuidtaxrequirements'\nimport { createCompoundContext } from '@/components/Base'\n\ntype StateTaxesListContextType = {\n isPending: boolean\n stateTaxRequirements: ResponseBody[]\n handleContinue: () => void\n handleChange: (state: string) => void\n}\n\nconst [useStateTaxesList, StateTaxesListProvider] =\n createCompoundContext<StateTaxesListContextType>('StateTaxesListContext')\n\nexport { useStateTaxesList, StateTaxesListProvider }\n"],"names":["useStateTaxesList","StateTaxesListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAmBC,CAAsB,IAC9CC,EAAiD,uBAAuB;"}
1
+ {"version":3,"file":"context.js","sources":["../../../../../src/components/Company/StateTaxes/StateTaxesList/context.ts"],"sourcesContent":["import type { ResponseBody } from '@gusto/embedded-api/models/operations/getv1companiescompanyuuidtaxrequirements'\nimport { createCompoundContext } from '@/components/Base'\n\ntype StateTaxesListContextType = {\n isPending: boolean\n stateTaxRequirements: ResponseBody[]\n handleContinue: () => void\n handleChange: (state: string) => void\n}\n\nconst [useStateTaxesList, StateTaxesListProvider] =\n createCompoundContext<StateTaxesListContextType>('StateTaxesListContext')\n\nexport { useStateTaxesList, StateTaxesListProvider }\n"],"names":["useStateTaxesList","StateTaxesListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAmBC,CAAsB,IAC9CC,EAAiD,uBAAuB;"}
@@ -2,9 +2,9 @@ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
2
  import { useTranslation as i } from "react-i18next";
3
3
  import { STATES_ABBR as o } from "../../../shared/constants.js";
4
4
  import { Grid as l } from "../../Common/Grid/Grid.js";
5
- import { TextInputField as t } from "../../Common/Fields/TextInputField/TextInputField.js";
6
5
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
7
6
  import "react";
7
+ import { TextInputField as t } from "../../Common/Fields/TextInputField/TextInputField.js";
8
8
  import { SelectField as m } from "../../Common/Fields/SelectField/SelectField.js";
9
9
  function R() {
10
10
  const { t: e } = i("Contractor.Address");
@@ -12,20 +12,19 @@ import "classnames";
12
12
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
13
13
  import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
14
14
  import "dompurify";
15
- import "../../../contexts/LocaleProvider/useLocale.js";
16
15
  import { createCompoundContext as r } from "../../Base/createCompoundContext.js";
17
- const z = t.object({
16
+ const u = t.object({
18
17
  street1: t.string().min(1),
19
18
  street2: t.string().optional(),
20
19
  city: t.string().min(1),
21
20
  state: t.string().min(1),
22
21
  zip: t.string().min(1)
23
- }), [b, h] = r(
22
+ }), [z, b] = r(
24
23
  "ContractorAddressContext"
25
24
  );
26
25
  export {
27
- z as AddressFormSchema,
28
- h as AddressProvider,
29
- b as useAddress
26
+ u as AddressFormSchema,
27
+ b as AddressProvider,
28
+ z as useAddress
30
29
  };
31
30
  //# sourceMappingURL=useAddress.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAddress.js","sources":["../../../../src/components/Contractor/Address/useAddress.ts"],"sourcesContent":["import type { Contractor, ContractorType } from '@gusto/embedded-api/models/components/contractor'\nimport type { ContractorAddress } from '@gusto/embedded-api/models/components/contractoraddress'\nimport { z } from 'zod'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport interface AddressContextType {\n contractor?: Contractor\n contractorType?: ContractorType\n address?: ContractorAddress\n isPending: boolean\n}\n\nexport type AddressDefaultValues = RequireAtLeastOne<\n Pick<ContractorAddress, 'street1' | 'street2' | 'city' | 'state' | 'zip'>\n>\n\nexport const AddressFormSchema = z.object({\n street1: z.string().min(1),\n street2: z.string().optional(),\n city: z.string().min(1),\n state: z.string().min(1),\n zip: z.string().min(1),\n})\n\nexport type AddressFormValues = z.infer<typeof AddressFormSchema>\n\nconst [useAddress, AddressProvider] = createCompoundContext<AddressContextType>(\n 'ContractorAddressContext',\n)\n\nexport { useAddress, AddressProvider }\n"],"names":["AddressFormSchema","z","useAddress","AddressProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;;AAiBO,MAAMA,IAAoBC,EAAE,OAAO;AAAA,EACxC,SAASA,EAAE,SAAS,IAAI,CAAC;AAAA,EACzB,SAASA,EAAE,OAAA,EAAS,SAAA;AAAA,EACpB,MAAMA,EAAE,SAAS,IAAI,CAAC;AAAA,EACtB,OAAOA,EAAE,SAAS,IAAI,CAAC;AAAA,EACvB,KAAKA,EAAE,OAAA,EAAS,IAAI,CAAC;AACvB,CAAC,GAIK,CAACC,GAAYC,CAAe,IAAIC;AAAA,EACpC;AACF;"}
1
+ {"version":3,"file":"useAddress.js","sources":["../../../../src/components/Contractor/Address/useAddress.ts"],"sourcesContent":["import type { Contractor, ContractorType } from '@gusto/embedded-api/models/components/contractor'\nimport type { ContractorAddress } from '@gusto/embedded-api/models/components/contractoraddress'\nimport { z } from 'zod'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\nexport interface AddressContextType {\n contractor?: Contractor\n contractorType?: ContractorType\n address?: ContractorAddress\n isPending: boolean\n}\n\nexport type AddressDefaultValues = RequireAtLeastOne<\n Pick<ContractorAddress, 'street1' | 'street2' | 'city' | 'state' | 'zip'>\n>\n\nexport const AddressFormSchema = z.object({\n street1: z.string().min(1),\n street2: z.string().optional(),\n city: z.string().min(1),\n state: z.string().min(1),\n zip: z.string().min(1),\n})\n\nexport type AddressFormValues = z.infer<typeof AddressFormSchema>\n\nconst [useAddress, AddressProvider] = createCompoundContext<AddressContextType>(\n 'ContractorAddressContext',\n)\n\nexport { useAddress, AddressProvider }\n"],"names":["AddressFormSchema","z","useAddress","AddressProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAiBO,MAAMA,IAAoBC,EAAE,OAAO;AAAA,EACxC,SAASA,EAAE,SAAS,IAAI,CAAC;AAAA,EACzB,SAASA,EAAE,OAAA,EAAS,SAAA;AAAA,EACpB,MAAMA,EAAE,SAAS,IAAI,CAAC;AAAA,EACtB,OAAOA,EAAE,SAAS,IAAI,CAAC;AAAA,EACvB,KAAKA,EAAE,OAAA,EAAS,IAAI,CAAC;AACvB,CAAC,GAIK,CAACC,GAAYC,CAAe,IAAIC;AAAA,EACpC;AACF;"}
@@ -2,10 +2,10 @@ import { jsxs as a, Fragment as t, jsx as r } from "react/jsx-runtime";
2
2
  import { useTranslation as n } from "react-i18next";
3
3
  import "../../../shared/constants.js";
4
4
  import "classnames";
5
- import { RadioGroupField as i } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
6
- import { TextInputField as o } from "../../Common/Fields/TextInputField/TextInputField.js";
7
5
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
8
6
  import "react";
7
+ import { TextInputField as o } from "../../Common/Fields/TextInputField/TextInputField.js";
8
+ import { RadioGroupField as i } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
9
9
  function N({ bankAccount: u }) {
10
10
  const { t: e } = n("Contractor.PaymentMethod", { keyPrefix: "bankAccountForm" });
11
11
  return /* @__PURE__ */ a(t, { children: [
@@ -3,9 +3,9 @@ import { useTranslation as r } from "react-i18next";
3
3
  import { z as t } from "zod";
4
4
  import { PAYMENT_METHODS as o } from "../../../shared/constants.js";
5
5
  import "classnames";
6
- import { RadioGroupField as p } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
7
6
  import "../../../contexts/ComponentAdapter/useComponentContext.js";
8
7
  import "react";
8
+ import { RadioGroupField as p } from "../../Common/Fields/RadioGroupField/RadioGroupField.js";
9
9
  t.object({
10
10
  type: t.enum(["Check", "Direct Deposit"])
11
11
  });