@gusto/embedded-react-sdk 0.51.2 → 0.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/components/Common/FlowBreadcrumbs/FlowBreadcrumbsTypes.d.ts +1 -1
- package/dist/components/Common/OnboardingStatusBadge/index.d.ts +1 -1
- package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -1
- package/dist/components/Common/UI/FormBox/FormBox.d.ts +9 -0
- package/dist/components/Common/UI/FormBox/FormBox.js +13 -0
- package/dist/components/Common/UI/FormBox/FormBox.js.map +1 -0
- package/dist/components/Common/UI/FormBox/FormBox.module.scss.js +14 -0
- package/dist/components/Common/UI/FormBox/FormBox.module.scss.js.map +1 -0
- package/dist/components/Common/UI/FormBox/FormBoxTypes.d.ts +26 -0
- package/dist/components/Common/UI/FormBoxHeader/FormBoxHeader.d.ts +9 -0
- package/dist/components/Common/UI/FormBoxHeader/FormBoxHeader.js +23 -0
- package/dist/components/Common/UI/FormBoxHeader/FormBoxHeader.js.map +1 -0
- package/dist/components/Common/UI/FormBoxHeader/FormBoxHeader.module.scss.js +8 -0
- package/dist/components/Common/UI/FormBoxHeader/FormBoxHeader.module.scss.js.map +1 -0
- package/dist/components/Common/UI/FormBoxHeader/FormBoxHeaderTypes.d.ts +36 -0
- package/dist/components/Common/UI/FormBoxHeader/FormBoxHeaderTypes.js +7 -0
- package/dist/components/Common/UI/FormBoxHeader/FormBoxHeaderTypes.js.map +1 -0
- package/dist/components/Common/UI/FormBoxHeader/index.d.ts +1 -0
- package/dist/components/Common/UI/Input/InputTypes.d.ts +1 -0
- package/dist/components/Common/UI/Input/InputTypes.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.d.ts +1 -2
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.d.ts +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.d.ts +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.d.ts +1 -1
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.d.ts +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.d.ts +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.d.ts +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts +3 -3
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts +1 -1
- package/dist/components/Company/StateTaxes/StateTaxes.d.ts +10 -1
- package/dist/components/Company/StateTaxes/StateTaxes.js +23 -17
- package/dist/components/Company/StateTaxes/StateTaxes.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesComponents.d.ts +2 -0
- package/dist/components/Company/StateTaxes/StateTaxesComponents.js +17 -10
- package/dist/components/Company/StateTaxes/StateTaxesComponents.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +26 -26
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.d.ts +9 -0
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js +24 -24
- package/dist/components/Company/StateTaxes/StateTaxesList/StateTaxesList.js.map +1 -1
- package/dist/components/Contractor/Address/Address.d.ts +4 -3
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/contractorAddressSchema.d.ts +2 -2
- package/dist/components/Contractor/Address/shared/useContractorAddressForm/useContractorAddressForm.d.ts +1 -1
- package/dist/components/Contractor/ContractorList/index.js +95 -92
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/Documents/SignatureForm/SignatureForm.js +22 -19
- package/dist/components/Contractor/Documents/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/contractorSignatureFormSchema.d.ts +1 -1
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/useContractorSignatureForm.d.ts +1 -1
- package/dist/components/Contractor/Documents/SignatureForm/useContractorSignatureForm/w9Fields.d.ts +1 -1
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/useContractorBankAccountFormSchema.d.ts +1 -1
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/contractorPaymentMethodSchema.d.ts +1 -1
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/contractorPaymentMethodSchema.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/shared/useContractorPaymentMethodForm/useContractorPaymentMethodForm.d.ts +2 -2
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.d.ts +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js +2 -2
- package/dist/components/Contractor/Payments/PaymentFlow/PaymentFlowComponents.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.d.ts +17 -5
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js +32 -31
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummary.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.d.ts +16 -4
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js +33 -29
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsList.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.d.ts +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js +6 -6
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/contractorDetailsSchema.js.map +1 -1
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/useContractorDetailsForm.d.ts +1 -1
- package/dist/components/Employee/Compensation/onboarding/Compensation.d.ts +0 -4
- package/dist/components/Employee/Compensation/onboarding/Compensation.js +38 -42
- package/dist/components/Employee/Compensation/onboarding/Compensation.js.map +1 -1
- package/dist/components/Employee/Compensation/shared/useCompensationForm/compensationSchema.d.ts +2 -2
- package/dist/components/Employee/Compensation/shared/useJobForm/jobSchema.d.ts +1 -1
- package/dist/components/Employee/Dashboard/index.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/childSupportGarnishmentFormSchema.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/useChildSupportGarnishmentForm.d.ts +1 -1
- package/dist/components/Employee/Deductions/shared/useDeductionForm/deductionFormSchema.d.ts +2 -2
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/EmploymentEligibility/EmploymentEligibilitySchema.d.ts +2 -2
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js +1 -4
- package/dist/components/Employee/Documents/onboarding/EmployeeDocuments/EmployeeDocuments.js.map +1 -1
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.d.ts +2 -2
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.js +27 -32
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/signEmployeeFormSchema.js.map +1 -1
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js +1 -2
- package/dist/components/Employee/EmployeeList/shared/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/federalTaxesSchema.d.ts +2 -2
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/useFederalTaxesForm.d.ts +1 -1
- package/dist/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.d.ts +1 -1
- package/dist/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.js +1 -3
- package/dist/components/Employee/OnboardingExecutionFlow/onboardingExecutionStateMachine.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +55 -49
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/useBankFormSchema.d.ts +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/useSplitPaymentsFormSchema.d.ts +1 -1
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +2 -2
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/homeAddressSchema.d.ts +1 -1
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/useHomeAddressForm.d.ts +1 -1
- package/dist/components/Employee/exports/employeeManagement.d.ts +1 -1
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.d.ts +4 -5
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +101 -125
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestsComponents.d.ts +0 -5
- package/dist/components/InformationRequests/InformationRequestsComponents.js +12 -13
- package/dist/components/InformationRequests/InformationRequestsComponents.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +4 -4
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +8 -8
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
- package/dist/components/Payroll/OffCycle/index.d.ts +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingTable/OffCycleTaxWithholdingTableTypes.d.ts +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +97 -92
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +2 -3
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +2 -2
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +57 -56
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.d.ts +23 -6
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js +37 -33
- package/dist/components/Payroll/PayrollExecutionFlow/PayrollExecutionFlow.js.map +1 -1
- package/dist/components/Payroll/PayrollExecutionFlow/payrollExecutionMachine.js +2 -2
- package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js +6 -6
- package/dist/components/Payroll/PayrollFlow/PayrollExecutionFlowContextual.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.d.ts +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.d.ts +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +31 -31
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCases.d.ts +9 -5
- package/dist/components/Payroll/RecoveryCases/RecoveryCases.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +1 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js +1 -1
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -1
- package/dist/components/Payroll/Transition/index.d.ts +1 -1
- package/dist/components/Payroll/helpers.d.ts +22 -8
- package/dist/components/Payroll/helpers.js +1 -1
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +3 -2
- package/dist/components/Payroll/payrollTypes.d.ts +1 -1
- package/dist/components/Payroll/payrollTypes.js +1 -1
- package/dist/components/Payroll/payrollTypes.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.d.ts +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/TimeOff/TimeOffFlow/timeOffPolicyTypes.d.ts +1 -1
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js +19 -19
- package/dist/components/TimeOff/TimeOffManagement/SelectEmployees/useSelectEmployeesData.js.map +1 -1
- package/dist/contexts/ApiProvider/ApiProvider.d.ts +5 -5
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/ApiProvider/apiVersion.d.ts +2 -2
- package/dist/contexts/ApiProvider/apiVersion.js +1 -1
- package/dist/contexts/ApiProvider/apiVersion.js.map +1 -1
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js +40 -36
- package/dist/contexts/ComponentAdapter/adapters/defaultComponentAdapter.js.map +1 -1
- package/dist/contexts/ComponentAdapter/componentAdapterTypes.d.ts +2 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.d.ts +5 -0
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js +18 -16
- package/dist/contexts/ComponentAdapter/createComponentsWithDefaults.js.map +1 -1
- package/dist/contexts/ComponentAdapter/useComponentContext.d.ts +6 -0
- package/dist/contexts/ComponentAdapter/useComponentContext.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProvider.d.ts +4 -5
- package/dist/contexts/GustoProvider/GustoProvider.js +6 -6
- package/dist/contexts/GustoProvider/GustoProvider.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.d.ts +7 -7
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +8 -8
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/GustoProvider/index.d.ts +1 -1
- package/dist/contexts/index.d.ts +2 -6
- package/dist/i18n/en/Contractor.ContractorList.json.js +18 -16
- package/dist/i18n/en/Contractor.ContractorList.json.js.map +1 -1
- package/dist/i18n/en/Contractor.SignatureForm.json.js +5 -5
- package/dist/i18n/en/Employee.OnboardingSummary.json.js +24 -20
- package/dist/i18n/en/Employee.OnboardingSummary.json.js.map +1 -1
- package/dist/i18n/types.d.ts +8 -0
- package/dist/index.d.ts +8 -7
- package/dist/index.js +121 -134
- package/dist/index.js.map +1 -1
- package/dist/models/WA_RISK_CODES.d.ts +5 -2
- package/dist/models/WA_RISK_CODES.js.map +1 -1
- package/dist/models/external.d.ts +67 -57
- package/dist/partner-hook-utils/composeErrorHandler.d.ts +9 -4
- package/dist/partner-hook-utils/composeErrorHandler.js.map +1 -1
- package/dist/partner-hook-utils/form/SDKFormProvider.d.ts +10 -2
- package/dist/partner-hook-utils/form/SDKFormProvider.js +7 -1
- package/dist/partner-hook-utils/form/SDKFormProvider.js.map +1 -1
- package/dist/partner-hook-utils/form/composeSubmitHandler.d.ts +7 -4
- package/dist/partner-hook-utils/form/composeSubmitHandler.js.map +1 -1
- package/dist/partner-hook-utils/form/fields/index.d.ts +1 -0
- package/dist/partner-hook-utils/form/index.d.ts +3 -3
- package/dist/partner-hook-utils/form/useHookFieldResolution.js.map +1 -1
- package/dist/partner-hook-utils/index.d.ts +1 -1
- package/dist/partner-hook-utils/types.d.ts +7 -3
- package/dist/shared/constants.d.ts +2 -2
- package/dist/shared/constants.js +4 -4
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/Helpers.d.ts +11 -0
- package/dist/types/hooks.d.ts +1 -1
- package/docs/guides/endpoint-inventory.json +379 -379
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.52.0](https://github.com/Gusto/embedded-react-sdk/compare/v0.51.2...v0.52.0) (2026-07-10)
|
|
4
|
+
|
|
5
|
+
### ⚠ Breaking Changes
|
|
6
|
+
|
|
7
|
+
- **`@gusto/embedded-api` is now pinned to the dated `v2026-06-15` package** ([#2371](https://github.com/Gusto/embedded-react-sdk/issues/2371)). Update your dependency and imports from `@gusto/embedded-api-v-2026-02-01` to `@gusto/embedded-api-v-2026-06-15`.
|
|
8
|
+
- `EmployeeCompensations` money fields (`grossPay`, `netPay`, `checkAmount`) are now `string` instead of `number`.
|
|
9
|
+
- `@gusto/embedded-api/models/components/payroll` was renamed to `@gusto/embedded-api/models/components/payrollshow`.
|
|
10
|
+
- Company tax requirement records now report `setupStatus` instead of `setupComplete`.
|
|
11
|
+
- A few exports were renamed: `WageType` → `ContractorWageType`, `SortOrder` → `QueryParamSortOrder`, `Include` → `GetV1CompaniesCompanyIdEmployeesQueryParamInclude`, `ContractorOnboardingStatus1` → `OnboardingStatus`.
|
|
12
|
+
- **`ApiProvider` and `ApiProviderProps` are no longer exported** ([#2376](https://github.com/Gusto/embedded-react-sdk/issues/2376)). If you composed the provider stack manually, use `GustoProvider` or `GustoProviderCustomUIAdapter` instead — both wrap `ApiProvider` internally.
|
|
13
|
+
- **`ObservabilityProvider`, `useObservability`, `ObservabilityProviderProps`, and `ObservabilityContextValue` are no longer exported** ([#2376](https://github.com/Gusto/embedded-react-sdk/issues/2376)). Configure observability via the `observability` field on the `config` prop passed to `GustoProvider` / `GustoProviderCustomUIAdapter` instead.
|
|
14
|
+
- **`GustoApiProps` (the props type for `GustoProvider`) was renamed to `GustoProviderProps`** ([#2376](https://github.com/Gusto/embedded-react-sdk/issues/2376)). The previous `GustoProviderProps` (props for `GustoProviderCustomUIAdapter`) was renamed to `GustoBaseProviderProps`. Update any direct references to these type names.
|
|
15
|
+
|
|
16
|
+
### Features & Enhancements
|
|
17
|
+
|
|
18
|
+
- Added `FormBox`, a UI primitive for grouping form sections, alongside the existing `Box` component. Override it via the component adapter like any other UI primitive. ([#2359](https://github.com/Gusto/embedded-react-sdk/issues/2359))
|
|
19
|
+
- `StateTaxes` and `StateTaxesList` accept a new `showContinueButton` prop (defaults to `true`) to hide the Continue button when either is embedded as a step inside a larger flow with its own navigation. ([#2381](https://github.com/Gusto/embedded-react-sdk/issues/2381))
|
|
20
|
+
|
|
21
|
+
### Fixes
|
|
22
|
+
|
|
23
|
+
- `OnboardingSummary` now shows confirmation copy instead of a "Missing requirements" checklist when an employee has been invited to self-onboard, since those steps are owned by the employee rather than the admin. ([#2369](https://github.com/Gusto/embedded-react-sdk/issues/2369))
|
|
24
|
+
- `Contractor.SignatureForm` now includes the "U.S. person" definition below the W-9 certification checklist. ([#2382](https://github.com/Gusto/embedded-react-sdk/issues/2382))
|
|
25
|
+
|
|
26
|
+
### Chores & Maintenance
|
|
27
|
+
|
|
28
|
+
- Bump dev dependencies (`@commitlint/cli`, `msw`, `prettier`, `ws`)
|
|
29
|
+
- Bump dependencies (`i18next`, `react-i18next`)
|
|
30
|
+
|
|
3
31
|
## [0.51.2](https://github.com/Gusto/embedded-react-sdk/compare/v0.51.1...v0.51.2) (2026-07-07)
|
|
4
32
|
|
|
5
33
|
### Fixes
|
|
@@ -11,7 +11,7 @@ import { EventType } from '../../../types/Helpers';
|
|
|
11
11
|
* `startDate` and `endDate` keys) are auto-formatted with the active locale's
|
|
12
12
|
* short-with-year date format before interpolation.
|
|
13
13
|
*
|
|
14
|
-
* @
|
|
14
|
+
* @internal
|
|
15
15
|
*/
|
|
16
16
|
export interface FlowBreadcrumb {
|
|
17
17
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContractorOnboardingStatus1 } from '@gusto/embedded-api/models/components/contractor';
|
|
1
|
+
import { OnboardingStatus as ContractorOnboardingStatus1 } from '@gusto/embedded-api/models/components/contractor';
|
|
2
2
|
import { OnboardingStatus } from '@gusto/embedded-api/models/operations/putv1employeesemployeeidonboardingstatus';
|
|
3
3
|
type OnboardingStatuses = ContractorOnboardingStatus1 | OnboardingStatus;
|
|
4
4
|
interface OnboardingStatusBadgeProps<T extends OnboardingStatuses> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Common/OnboardingStatusBadge/index.tsx"],"sourcesContent":["import type { ContractorOnboardingStatus1 } from '@gusto/embedded-api/models/components/contractor'\nimport type { OnboardingStatus } from '@gusto/embedded-api/models/operations/putv1employeesemployeeidonboardingstatus'\nimport { useTranslation } from 'react-i18next'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ntype OnboardingStatuses = ContractorOnboardingStatus1 | OnboardingStatus\n\ninterface OnboardingStatusBadgeProps<T extends OnboardingStatuses> {\n onboarded?: boolean\n onboardingEntity: 'contractor' | 'employee'\n onboardingStatus?: T | null\n}\n/** @internal */\nexport const OnboardingStatusBadge = <T extends OnboardingStatuses>({\n onboarded,\n onboardingEntity,\n onboardingStatus,\n}: OnboardingStatusBadgeProps<T>) => {\n const { Badge } = useComponentContext()\n const { t } = useTranslation()\n\n //HACK: `never` should instead be a better type\n return (\n <Badge status={onboarded ? 'success' : 'warning'}>\n {t(`onboardingStatus.${onboardingEntity}.${onboardingStatus ?? 'undefined'}` as never)}\n </Badge>\n )\n}\n\ninterface ContractorOnboardingStatusBadgeProps {\n onboarded?: boolean\n onboardingStatus?: ContractorOnboardingStatus1 | null\n}\n/** @internal */\nexport const ContractorOnboardingStatusBadge = (props: ContractorOnboardingStatusBadgeProps) => (\n <OnboardingStatusBadge {...props} onboardingEntity=\"contractor\" />\n)\n\ninterface EmployeeOnboardingStatusBadgeProps {\n onboarded?: boolean\n onboardingStatus?: OnboardingStatus | null\n}\n/** @internal */\nexport const EmployeeOnboardingStatusBadge = (props: EmployeeOnboardingStatusBadgeProps) => (\n <OnboardingStatusBadge {...props} onboardingEntity=\"employee\" />\n)\n"],"names":["OnboardingStatusBadge","onboarded","onboardingEntity","onboardingStatus","Badge","useComponentContext","t","useTranslation","jsx","ContractorOnboardingStatusBadge","props","EmployeeOnboardingStatusBadge"],"mappings":";;;AAaO,MAAMA,IAAwB,CAA+B;AAAA,EAClE,WAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,kBAAAC;AACF,MAAqC;AACnC,QAAM,EAAE,OAAAC,EAAA,IAAUC,EAAA,GACZ,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAGd,SACE,gBAAAC,EAACJ,GAAA,EAAM,QAAQH,IAAY,YAAY,WACpC,UAAAK,EAAE,oBAAoBJ,CAAgB,IAAIC,KAAoB,WAAW,EAAW,GACvF;AAEJ,GAOaM,IAAkC,CAACC,MAC9C,gBAAAF,EAACR,KAAuB,GAAGU,GAAO,kBAAiB,aAAA,CAAa,GAQrDC,IAAgC,CAACD,MAC5C,gBAAAF,EAACR,KAAuB,GAAGU,GAAO,kBAAiB,WAAA,CAAW;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Common/OnboardingStatusBadge/index.tsx"],"sourcesContent":["import type { OnboardingStatus as ContractorOnboardingStatus1 } from '@gusto/embedded-api/models/components/contractor'\nimport type { OnboardingStatus } from '@gusto/embedded-api/models/operations/putv1employeesemployeeidonboardingstatus'\nimport { useTranslation } from 'react-i18next'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ntype OnboardingStatuses = ContractorOnboardingStatus1 | OnboardingStatus\n\ninterface OnboardingStatusBadgeProps<T extends OnboardingStatuses> {\n onboarded?: boolean\n onboardingEntity: 'contractor' | 'employee'\n onboardingStatus?: T | null\n}\n/** @internal */\nexport const OnboardingStatusBadge = <T extends OnboardingStatuses>({\n onboarded,\n onboardingEntity,\n onboardingStatus,\n}: OnboardingStatusBadgeProps<T>) => {\n const { Badge } = useComponentContext()\n const { t } = useTranslation()\n\n //HACK: `never` should instead be a better type\n return (\n <Badge status={onboarded ? 'success' : 'warning'}>\n {t(`onboardingStatus.${onboardingEntity}.${onboardingStatus ?? 'undefined'}` as never)}\n </Badge>\n )\n}\n\ninterface ContractorOnboardingStatusBadgeProps {\n onboarded?: boolean\n onboardingStatus?: ContractorOnboardingStatus1 | null\n}\n/** @internal */\nexport const ContractorOnboardingStatusBadge = (props: ContractorOnboardingStatusBadgeProps) => (\n <OnboardingStatusBadge {...props} onboardingEntity=\"contractor\" />\n)\n\ninterface EmployeeOnboardingStatusBadgeProps {\n onboarded?: boolean\n onboardingStatus?: OnboardingStatus | null\n}\n/** @internal */\nexport const EmployeeOnboardingStatusBadge = (props: EmployeeOnboardingStatusBadgeProps) => (\n <OnboardingStatusBadge {...props} onboardingEntity=\"employee\" />\n)\n"],"names":["OnboardingStatusBadge","onboarded","onboardingEntity","onboardingStatus","Badge","useComponentContext","t","useTranslation","jsx","ContractorOnboardingStatusBadge","props","EmployeeOnboardingStatusBadge"],"mappings":";;;AAaO,MAAMA,IAAwB,CAA+B;AAAA,EAClE,WAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,kBAAAC;AACF,MAAqC;AACnC,QAAM,EAAE,OAAAC,EAAA,IAAUC,EAAA,GACZ,EAAE,GAAAC,EAAA,IAAMC,EAAA;AAGd,SACE,gBAAAC,EAACJ,GAAA,EAAM,QAAQH,IAAY,YAAY,WACpC,UAAAK,EAAE,oBAAoBJ,CAAgB,IAAIC,KAAoB,WAAW,EAAW,GACvF;AAEJ,GAOaM,IAAkC,CAACC,MAC9C,gBAAAF,EAACR,KAAuB,GAAGU,GAAO,kBAAiB,aAAA,CAAa,GAQrDC,IAAgC,CAACD,MAC5C,gBAAAF,EAACR,KAAuB,GAAGU,GAAO,kBAAiB,WAAA,CAAW;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormBoxProps } from './FormBoxTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Renders a bordered container used to group related form fields, with an optional header slot.
|
|
4
|
+
*
|
|
5
|
+
* @param props - The {@link FormBoxProps} controlling the form box contents, header, and padding.
|
|
6
|
+
* @returns The rendered form box.
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function FormBox({ children, header, withPadding, className }: FormBoxProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import i from "classnames";
|
|
3
|
+
import t from "./FormBox.module.scss.js";
|
|
4
|
+
function l({ children: r, header: o, withPadding: e = !0, className: a }) {
|
|
5
|
+
return /* @__PURE__ */ m("div", { className: i(t.root, a), "data-testid": "data-form-box", children: [
|
|
6
|
+
o && /* @__PURE__ */ s("div", { className: t.header, children: o }),
|
|
7
|
+
/* @__PURE__ */ s("div", { className: e ? t.content : t.contentFlush, children: r })
|
|
8
|
+
] });
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
l as FormBox
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=FormBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormBox.js","sources":["../../../../../src/components/Common/UI/FormBox/FormBox.tsx"],"sourcesContent":["import cn from 'classnames'\nimport styles from './FormBox.module.scss'\nimport type { FormBoxProps } from '@/components/Common/UI/FormBox/FormBoxTypes'\n\n/**\n * Renders a bordered container used to group related form fields, with an optional header slot.\n *\n * @param props - The {@link FormBoxProps} controlling the form box contents, header, and padding.\n * @returns The rendered form box.\n * @internal\n */\nexport function FormBox({ children, header, withPadding = true, className }: FormBoxProps) {\n return (\n <div className={cn(styles.root, className)} data-testid=\"data-form-box\">\n {header && <div className={styles.header}>{header}</div>}\n <div className={withPadding ? styles.content : styles.contentFlush}>{children}</div>\n </div>\n )\n}\n"],"names":["FormBox","children","header","withPadding","className","jsxs","cn","styles","jsx"],"mappings":";;;AAWO,SAASA,EAAQ,EAAE,UAAAC,GAAU,QAAAC,GAAQ,aAAAC,IAAc,IAAM,WAAAC,KAA2B;AACzF,SACE,gBAAAC,EAAC,SAAI,WAAWC,EAAGC,EAAO,MAAMH,CAAS,GAAG,eAAY,iBACrD,UAAA;AAAA,IAAAF,KAAU,gBAAAM,EAAC,OAAA,EAAI,WAAWD,EAAO,QAAS,UAAAL,GAAO;AAAA,IAClD,gBAAAM,EAAC,SAAI,WAAWL,IAAcI,EAAO,UAAUA,EAAO,cAAe,UAAAN,EAAA,CAAS;AAAA,EAAA,GAChF;AAEJ;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const t = "_root_c61dy_1", o = "_header_c61dy_12", n = "_content_c61dy_17", c = "_contentFlush_c61dy_22", e = {
|
|
2
|
+
root: t,
|
|
3
|
+
header: o,
|
|
4
|
+
content: n,
|
|
5
|
+
contentFlush: c
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
n as content,
|
|
9
|
+
c as contentFlush,
|
|
10
|
+
e as default,
|
|
11
|
+
o as header,
|
|
12
|
+
t as root
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=FormBox.module.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormBox.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props your `FormBox` implementation must accept from the component adapter.
|
|
4
|
+
* Renders a sectioned container used to group related form fields, with an optional header slot.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
* @group Component props
|
|
8
|
+
*/
|
|
9
|
+
export interface FormBoxProps {
|
|
10
|
+
/**
|
|
11
|
+
* Content rendered inside the form box body.
|
|
12
|
+
*/
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Optional content rendered above the body in the form box header section.
|
|
16
|
+
*/
|
|
17
|
+
header?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the body should apply the default inner padding. Defaults to true; set to false for content that needs to be flush with the form box edges.
|
|
20
|
+
*/
|
|
21
|
+
withPadding?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* CSS className to be applied to the root element.
|
|
24
|
+
*/
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormBoxHeaderProps } from './FormBoxHeaderTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Renders a titled header for a {@link FormBoxProps | FormBox}, with optional description and inline action slot.
|
|
4
|
+
*
|
|
5
|
+
* @param rawProps - The {@link FormBoxHeaderProps} controlling the title, description, action, and heading level.
|
|
6
|
+
* @returns The rendered form box header.
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function FormBoxHeader(rawProps: FormBoxHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { FormBoxHeaderDefaults as p } from "./FormBoxHeaderTypes.js";
|
|
3
|
+
import i from "./FormBoxHeader.module.scss.js";
|
|
4
|
+
import { applyMissingDefaults as c } from "../../../../helpers/applyMissingDefaults.js";
|
|
5
|
+
import { useComponentContext as d } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
6
|
+
import { Flex as n } from "../../Flex/Flex.js";
|
|
7
|
+
function D(s) {
|
|
8
|
+
const { title: a, description: o, action: m, headingLevel: l } = c(
|
|
9
|
+
s,
|
|
10
|
+
p
|
|
11
|
+
), t = d();
|
|
12
|
+
return /* @__PURE__ */ e("div", { className: i.root, children: /* @__PURE__ */ r(n, { flexDirection: "row", gap: 16, justifyContent: "space-between", alignItems: "center", children: [
|
|
13
|
+
/* @__PURE__ */ r(n, { flexDirection: "column", gap: 4, children: [
|
|
14
|
+
/* @__PURE__ */ e(t.Heading, { as: l, className: i.headerTitle, children: a }),
|
|
15
|
+
o && /* @__PURE__ */ e(t.Text, { as: "p", variant: "supporting", children: o })
|
|
16
|
+
] }),
|
|
17
|
+
m
|
|
18
|
+
] }) });
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
D as FormBoxHeader
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=FormBoxHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormBoxHeader.js","sources":["../../../../../src/components/Common/UI/FormBoxHeader/FormBoxHeader.tsx"],"sourcesContent":["import { type FormBoxHeaderProps, FormBoxHeaderDefaults } from './FormBoxHeaderTypes'\nimport styles from './FormBoxHeader.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { Flex } from '@/components/Common/Flex'\n\n/**\n * Renders a titled header for a {@link FormBoxProps | FormBox}, with optional description and inline action slot.\n *\n * @param rawProps - The {@link FormBoxHeaderProps} controlling the title, description, action, and heading level.\n * @returns The rendered form box header.\n * @internal\n */\nexport function FormBoxHeader(rawProps: FormBoxHeaderProps) {\n const { title, description, action, headingLevel } = applyMissingDefaults(\n rawProps,\n FormBoxHeaderDefaults,\n )\n const Components = useComponentContext()\n\n return (\n <div className={styles.root}>\n <Flex flexDirection=\"row\" gap={16} justifyContent=\"space-between\" alignItems=\"center\">\n <Flex flexDirection=\"column\" gap={4}>\n <Components.Heading as={headingLevel!} className={styles.headerTitle}>\n {title}\n </Components.Heading>\n {description && (\n <Components.Text as=\"p\" variant=\"supporting\">\n {description}\n </Components.Text>\n )}\n </Flex>\n\n {action}\n </Flex>\n </div>\n )\n}\n"],"names":["FormBoxHeader","rawProps","title","description","action","headingLevel","applyMissingDefaults","FormBoxHeaderDefaults","Components","useComponentContext","jsx","styles","jsxs","Flex"],"mappings":";;;;;;AAaO,SAASA,EAAcC,GAA8B;AAC1D,QAAM,EAAE,OAAAC,GAAO,aAAAC,GAAa,QAAAC,GAAQ,cAAAC,MAAiBC;AAAA,IACnDL;AAAA,IACAM;AAAA,EAAA,GAEIC,IAAaC,EAAA;AAEnB,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,MACrB,UAAA,gBAAAC,EAACC,GAAA,EAAK,eAAc,OAAM,KAAK,IAAI,gBAAe,iBAAgB,YAAW,UAC3E,UAAA;AAAA,IAAA,gBAAAD,EAACC,GAAA,EAAK,eAAc,UAAS,KAAK,GAChC,UAAA;AAAA,MAAA,gBAAAH,EAACF,EAAW,SAAX,EAAmB,IAAIH,GAAe,WAAWM,EAAO,aACtD,UAAAT,EAAA,CACH;AAAA,MACCC,uBACEK,EAAW,MAAX,EAAgB,IAAG,KAAI,SAAQ,cAC7B,UAAAL,EAAA,CACH;AAAA,IAAA,GAEJ;AAAA,IAECC;AAAA,EAAA,EAAA,CACH,EAAA,CACF;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormBoxHeader.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props your `FormBoxHeader` implementation must accept from the component adapter.
|
|
4
|
+
* Renders the header section of a FormBox, combining a title, optional description, and an optional inline action slot.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
* @group Component props
|
|
8
|
+
*/
|
|
9
|
+
export interface FormBoxHeaderProps {
|
|
10
|
+
/**
|
|
11
|
+
* Title content rendered as the heading.
|
|
12
|
+
*/
|
|
13
|
+
title: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Optional supporting description rendered below the title.
|
|
16
|
+
*/
|
|
17
|
+
description?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Optional action content (e.g. a Button) rendered inline opposite the title.
|
|
20
|
+
*/
|
|
21
|
+
action?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Semantic heading level for the title. Defaults to `h3`.
|
|
24
|
+
*
|
|
25
|
+
* @defaultValue `'h3'`
|
|
26
|
+
*/
|
|
27
|
+
headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Default prop values for FormBoxHeader component.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare const FormBoxHeaderDefaults: {
|
|
35
|
+
readonly headingLevel: "h3";
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormBoxHeaderTypes.js","sources":["../../../../../src/components/Common/UI/FormBoxHeader/FormBoxHeaderTypes.ts"],"sourcesContent":["import type { ReactNode } from 'react'\n\n/**\n * Props your `FormBoxHeader` implementation must accept from the component adapter.\n * Renders the header section of a FormBox, combining a title, optional description, and an optional inline action slot.\n *\n * @public\n * @group Component props\n */\nexport interface FormBoxHeaderProps {\n /**\n * Title content rendered as the heading.\n */\n title: ReactNode\n /**\n * Optional supporting description rendered below the title.\n */\n description?: ReactNode\n /**\n * Optional action content (e.g. a Button) rendered inline opposite the title.\n */\n action?: ReactNode\n /**\n * Semantic heading level for the title. Defaults to `h3`.\n *\n * @defaultValue `'h3'`\n */\n headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n}\n\n/**\n * Default prop values for FormBoxHeader component.\n *\n * @internal\n */\nexport const FormBoxHeaderDefaults = {\n headingLevel: 'h3',\n} as const satisfies Partial<FormBoxHeaderProps>\n"],"names":["FormBoxHeaderDefaults"],"mappings":"AAmCO,MAAMA,IAAwB;AAAA,EACnC,cAAc;AAChB;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FormBoxHeader } from './FormBoxHeader';
|
|
@@ -7,6 +7,7 @@ import { InputHTMLAttributes, ReactNode, Ref } from 'react';
|
|
|
7
7
|
* `adornmentStart` and `adornmentEnd` slots from this interface.
|
|
8
8
|
*
|
|
9
9
|
* @public
|
|
10
|
+
* @group Component props
|
|
10
11
|
*/
|
|
11
12
|
export interface InputProps extends Pick<InputHTMLAttributes<HTMLInputElement>, 'className' | 'id' | 'name' | 'placeholder' | 'type' | 'value' | 'onChange' | 'onBlur' | 'onFocus' | 'aria-describedby' | 'aria-labelledby' | 'aria-invalid' | 'min' | 'max' | 'maxLength'> {
|
|
12
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputTypes.js","sources":["../../../../../src/components/Common/UI/Input/InputTypes.ts"],"sourcesContent":["import type { InputHTMLAttributes, ReactNode, Ref } from 'react'\n\n/**\n * Base text-input primitive used internally by `TextInput` and `NumberInput`.\n *\n * @remarks\n * Higher-level field components like TextInput and NumberInput reuse the\n * `adornmentStart` and `adornmentEnd` slots from this interface.\n *\n * @public\n */\nexport interface InputProps extends Pick<\n InputHTMLAttributes<HTMLInputElement>,\n | 'className'\n | 'id'\n | 'name'\n | 'placeholder'\n | 'type'\n | 'value'\n | 'onChange'\n | 'onBlur'\n | 'onFocus'\n | 'aria-describedby'\n | 'aria-labelledby'\n | 'aria-invalid'\n | 'min'\n | 'max'\n | 'maxLength'\n> {\n /**\n * Ref for the input element\n */\n inputRef?: Ref<HTMLInputElement>\n\n /**\n * Content to display at the start of the input\n */\n adornmentStart?: ReactNode\n\n /**\n * Content to display at the end of the input\n */\n adornmentEnd?: ReactNode\n\n /**\n * Whether the input is disabled\n * @defaultValue `false`\n */\n isDisabled?: boolean\n}\n\n/**\n * Default prop values for the Input primitive, applied through the component adapter.\n *\n * @internal\n */\nexport const InputDefaults = {\n isDisabled: false,\n} as const satisfies Partial<InputProps>\n"],"names":["InputDefaults"],"mappings":"
|
|
1
|
+
{"version":3,"file":"InputTypes.js","sources":["../../../../../src/components/Common/UI/Input/InputTypes.ts"],"sourcesContent":["import type { InputHTMLAttributes, ReactNode, Ref } from 'react'\n\n/**\n * Base text-input primitive used internally by `TextInput` and `NumberInput`.\n *\n * @remarks\n * Higher-level field components like TextInput and NumberInput reuse the\n * `adornmentStart` and `adornmentEnd` slots from this interface.\n *\n * @public\n * @group Component props\n */\nexport interface InputProps extends Pick<\n InputHTMLAttributes<HTMLInputElement>,\n | 'className'\n | 'id'\n | 'name'\n | 'placeholder'\n | 'type'\n | 'value'\n | 'onChange'\n | 'onBlur'\n | 'onFocus'\n | 'aria-describedby'\n | 'aria-labelledby'\n | 'aria-invalid'\n | 'min'\n | 'max'\n | 'maxLength'\n> {\n /**\n * Ref for the input element\n */\n inputRef?: Ref<HTMLInputElement>\n\n /**\n * Content to display at the start of the input\n */\n adornmentStart?: ReactNode\n\n /**\n * Content to display at the end of the input\n */\n adornmentEnd?: ReactNode\n\n /**\n * Whether the input is disabled\n * @defaultValue `false`\n */\n isDisabled?: boolean\n}\n\n/**\n * Default prop values for the Input primitive, applied through the component adapter.\n *\n * @internal\n */\nexport const InputDefaults = {\n isDisabled: false,\n} as const satisfies Partial<InputProps>\n"],"names":["InputDefaults"],"mappings":"AAyDO,MAAMA,IAAgB;AAAA,EAC3B,YAAY;AACd;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { generateCreateSignatorySchema } from './Schema';
|
|
3
2
|
/** @internal */
|
|
4
|
-
export type CreateSignatoryInputs =
|
|
3
|
+
export type CreateSignatoryInputs = { firstName: string; lastName: string; email: string; title: string; phone: string; ssn: string; birthday: Date; street1: string; city: string; state: string; zip: string; street2?: string | undefined; };
|
|
5
4
|
/** @internal */
|
|
6
5
|
export declare const CreateSignatoryForm: () => import("react").JSX.Element;
|
|
@@ -8,6 +8,6 @@ export declare const InviteSignatorySchema: z.ZodObject<{
|
|
|
8
8
|
title: z.ZodString;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
/** @internal */
|
|
11
|
-
export type InviteSignatoryInputs =
|
|
11
|
+
export type InviteSignatoryInputs = { firstName: string; lastName: string; email: string; confirmEmail: string; title: string; };
|
|
12
12
|
/** @internal */
|
|
13
13
|
export declare const InviteSignatoryForm: () => import("react").JSX.Element;
|
|
@@ -5,6 +5,6 @@ export declare const BankAccountFormSchema: z.ZodObject<{
|
|
|
5
5
|
accountNumber: z.ZodString;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
/** @internal */
|
|
8
|
-
export type BankAccountFormInputs =
|
|
8
|
+
export type BankAccountFormInputs = { routingNumber: string; accountNumber: string; };
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare function Form(): import("react").JSX.Element;
|
|
@@ -5,6 +5,6 @@ export declare const BankAccountVerifySchema: z.ZodObject<{
|
|
|
5
5
|
deposit2: z.ZodNumber;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
/** @internal */
|
|
8
|
-
export type BankAccountVerifyInputs =
|
|
8
|
+
export type BankAccountVerifyInputs = { deposit1: number; deposit2: number; };
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare function Form(): import("react").JSX.Element;
|
package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/signCompanyFormSchema.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type SignCompanyFormErrorCode = (typeof SignCompanyFormErrorCodes)[keyof
|
|
|
21
21
|
*
|
|
22
22
|
* @public
|
|
23
23
|
*/
|
|
24
|
-
export type SignCompanyFormField = "
|
|
24
|
+
export type SignCompanyFormField = "confirmSignature" | "signature";
|
|
25
25
|
/**
|
|
26
26
|
* Shape of the values managed by the sign-company form.
|
|
27
27
|
*
|
|
@@ -13,7 +13,7 @@ export declare const FederalTaxFormSchema: z.ZodObject<{
|
|
|
13
13
|
legalName: z.ZodString;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
/** @internal */
|
|
16
|
-
export type FederalTaxFormInputs =
|
|
16
|
+
export type FederalTaxFormInputs = { legalName: string; federalEin?: string | undefined; taxPayerType?: string | undefined; filingForm?: string | undefined; };
|
|
17
17
|
/**
|
|
18
18
|
* Pre-populated values for the company federal tax form, supplied via {@link FederalTaxesProps}.
|
|
19
19
|
* At least one of `taxPayerType`, `filingForm`, or `legalName` must be provided.
|
|
@@ -13,7 +13,7 @@ export declare const LocationFormSchema: z.ZodObject<{
|
|
|
13
13
|
}>>>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
/** @internal */
|
|
16
|
-
export type LocationFormInputs =
|
|
16
|
+
export type LocationFormInputs = { phoneNumber: string; street1: string; city: string; state: string; zip: string; street2?: string | undefined; addressType?: ("filingAddress" | "mailingAddress")[] | undefined; };
|
|
17
17
|
interface FormProps {
|
|
18
18
|
isMailingLocked?: boolean;
|
|
19
19
|
isFilingLocked?: boolean;
|
package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.d.ts
CHANGED
|
@@ -23,20 +23,20 @@ export type PayScheduleErrorCode = (typeof PayScheduleErrorCodes)[keyof typeof P
|
|
|
23
23
|
*
|
|
24
24
|
* @public
|
|
25
25
|
*/
|
|
26
|
-
export type PayScheduleFrequency = "Every week" | "Every
|
|
26
|
+
export type PayScheduleFrequency = "Every other week" | "Every week" | "Monthly" | "Twice per month";
|
|
27
27
|
/**
|
|
28
28
|
* Union of field names managed by the pay schedule form.
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
|
-
export type PayScheduleField = "
|
|
32
|
+
export type PayScheduleField = "anchorEndOfPayPeriod" | "anchorPayDate" | "customName" | "customTwicePerMonth" | "day1" | "day2" | "frequency";
|
|
33
33
|
/**
|
|
34
34
|
* Shape of the values managed by the pay schedule form.
|
|
35
35
|
*
|
|
36
36
|
* @public
|
|
37
37
|
* @interface
|
|
38
38
|
*/
|
|
39
|
-
export type PayScheduleFormData = { customName: string; frequency: "Every week" | "Every
|
|
39
|
+
export type PayScheduleFormData = { customName: string; frequency: "Every other week" | "Every week" | "Monthly" | "Twice per month"; customTwicePerMonth: string; anchorPayDate: string | null; anchorEndOfPayPeriod: string | null; day1: number; day2: number; };
|
|
40
40
|
/** @internal */
|
|
41
41
|
export type PayScheduleFormOutputs = PayScheduleFormData;
|
|
42
42
|
/**
|
package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.d.ts
CHANGED
|
@@ -169,4 +169,4 @@ export type UsePayScheduleFormResult = HookLoadingResult | UsePayScheduleFormRea
|
|
|
169
169
|
*
|
|
170
170
|
* @public
|
|
171
171
|
*/
|
|
172
|
-
export type PayScheduleFieldsMetadata = { customName: FieldMetadata; frequency: import("../../../../../partner-hook-utils/types").FieldMetadataWithOptions<"Every week" | "Every
|
|
172
|
+
export type PayScheduleFieldsMetadata = { customName: FieldMetadata; frequency: import("../../../../../partner-hook-utils/types").FieldMetadataWithOptions<"Every other week" | "Every week" | "Monthly" | "Twice per month">; customTwicePerMonth: import("../../../../../partner-hook-utils/types").FieldMetadataWithOptions<string>; anchorPayDate: FieldMetadata; anchorEndOfPayPeriod: FieldMetadata; day1: FieldMetadata; day2: FieldMetadata; };
|
|
@@ -7,6 +7,15 @@ import { BaseComponentInterface } from '../../Base';
|
|
|
7
7
|
export interface StateTaxesProps extends BaseComponentInterface<'Company.StateTaxes'> {
|
|
8
8
|
/** UUID of the company whose state taxes are being managed. */
|
|
9
9
|
companyId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Controls visibility of the Continue button below the state tax list.
|
|
12
|
+
*
|
|
13
|
+
* When `false`, hides the Continue button. Use this when the flow is embedded
|
|
14
|
+
* as one step inside a larger flow that provides its own navigation.
|
|
15
|
+
*
|
|
16
|
+
* @defaultValue `true`
|
|
17
|
+
*/
|
|
18
|
+
showContinueButton?: boolean;
|
|
10
19
|
}
|
|
11
20
|
/**
|
|
12
21
|
* Orchestrated flow for managing a company's state tax setup.
|
|
@@ -28,4 +37,4 @@ export interface StateTaxesProps extends BaseComponentInterface<'Company.StateTa
|
|
|
28
37
|
* @returns The rendered state taxes flow.
|
|
29
38
|
* @public
|
|
30
39
|
*/
|
|
31
|
-
export declare function StateTaxes({ companyId, onEvent, dictionary }: StateTaxesProps): import("react").JSX.Element;
|
|
40
|
+
export declare function StateTaxes({ companyId, onEvent, dictionary, showContinueButton, }: StateTaxesProps): import("react").JSX.Element;
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createMachine as
|
|
3
|
-
import { useMemo as
|
|
4
|
-
import { stateTaxesStateMachine as
|
|
5
|
-
import { StateTaxesListContextual as
|
|
6
|
-
import { Flow as
|
|
7
|
-
import { useComponentDictionary as
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { createMachine as n } from "robot3";
|
|
3
|
+
import { useMemo as s } from "react";
|
|
4
|
+
import { stateTaxesStateMachine as p } from "./stateTaxesStateMachine.js";
|
|
5
|
+
import { StateTaxesListContextual as x } from "./StateTaxesComponents.js";
|
|
6
|
+
import { Flow as f } from "../../Flow/Flow.js";
|
|
7
|
+
import { useComponentDictionary as c } from "../../../i18n/I18n.js";
|
|
8
|
+
function g({
|
|
9
|
+
companyId: t,
|
|
10
|
+
onEvent: o,
|
|
11
|
+
dictionary: a,
|
|
12
|
+
showContinueButton: e = !0
|
|
13
|
+
}) {
|
|
14
|
+
c("Company.StateTaxes", a);
|
|
15
|
+
const r = s(
|
|
16
|
+
() => n(
|
|
12
17
|
"viewStateTaxes",
|
|
13
|
-
|
|
18
|
+
p,
|
|
14
19
|
(m) => ({
|
|
15
20
|
...m,
|
|
16
|
-
component:
|
|
17
|
-
companyId: t
|
|
21
|
+
component: x,
|
|
22
|
+
companyId: t,
|
|
23
|
+
showContinueButton: e
|
|
18
24
|
})
|
|
19
25
|
),
|
|
20
|
-
[t]
|
|
26
|
+
[t, e]
|
|
21
27
|
);
|
|
22
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ i(f, { machine: r, onEvent: o });
|
|
23
29
|
}
|
|
24
30
|
export {
|
|
25
|
-
|
|
31
|
+
g as StateTaxes
|
|
26
32
|
};
|
|
27
33
|
//# sourceMappingURL=StateTaxes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StateTaxes.js","sources":["../../../../src/components/Company/StateTaxes/StateTaxes.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport { stateTaxesStateMachine } from './stateTaxesStateMachine'\nimport type { StateTaxesContextInterface } from './StateTaxesComponents'\nimport { StateTaxesListContextual } from './StateTaxesComponents'\nimport { Flow } from '@/components/Flow/Flow'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { useComponentDictionary } from '@/i18n/I18n'\n\n/**\n * Props for the {@link StateTaxes} flow.\n *\n * @public\n */\nexport interface StateTaxesProps extends BaseComponentInterface<'Company.StateTaxes'> {\n /** UUID of the company whose state taxes are being managed. */\n companyId: string\n}\n\n/**\n * Orchestrated flow for managing a company's state tax setup.\n *\n * @remarks\n * Switches internally between a list of states with tax requirements and a per-state edit form.\n * For finer-grained control over navigation, use the standalone {@link StateTaxesList} and\n * {@link StateTaxesForm} building blocks directly.\n *\n * @events\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `company/stateTaxes/edit` | A state row was selected for editing | `{ state: string }` |\n * | `company/stateTaxes/updated` | State tax requirements were saved | — |\n * | `company/stateTaxes/done` | The list view was completed | — |\n * | `CANCEL` | Editing was cancelled and the form was closed | — |\n *\n * @param props - {@link StateTaxesProps}\n * @returns The rendered state taxes flow.\n * @public\n */\nexport function StateTaxes({
|
|
1
|
+
{"version":3,"file":"StateTaxes.js","sources":["../../../../src/components/Company/StateTaxes/StateTaxes.tsx"],"sourcesContent":["import { createMachine } from 'robot3'\nimport { useMemo } from 'react'\nimport { stateTaxesStateMachine } from './stateTaxesStateMachine'\nimport type { StateTaxesContextInterface } from './StateTaxesComponents'\nimport { StateTaxesListContextual } from './StateTaxesComponents'\nimport { Flow } from '@/components/Flow/Flow'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { useComponentDictionary } from '@/i18n/I18n'\n\n/**\n * Props for the {@link StateTaxes} flow.\n *\n * @public\n */\nexport interface StateTaxesProps extends BaseComponentInterface<'Company.StateTaxes'> {\n /** UUID of the company whose state taxes are being managed. */\n companyId: string\n /**\n * Controls visibility of the Continue button below the state tax list.\n *\n * When `false`, hides the Continue button. Use this when the flow is embedded\n * as one step inside a larger flow that provides its own navigation.\n *\n * @defaultValue `true`\n */\n showContinueButton?: boolean\n}\n\n/**\n * Orchestrated flow for managing a company's state tax setup.\n *\n * @remarks\n * Switches internally between a list of states with tax requirements and a per-state edit form.\n * For finer-grained control over navigation, use the standalone {@link StateTaxesList} and\n * {@link StateTaxesForm} building blocks directly.\n *\n * @events\n * | Event | Description | Data |\n * | ----- | ----------- | ---- |\n * | `company/stateTaxes/edit` | A state row was selected for editing | `{ state: string }` |\n * | `company/stateTaxes/updated` | State tax requirements were saved | — |\n * | `company/stateTaxes/done` | The list view was completed | — |\n * | `CANCEL` | Editing was cancelled and the form was closed | — |\n *\n * @param props - {@link StateTaxesProps}\n * @returns The rendered state taxes flow.\n * @public\n */\nexport function StateTaxes({\n companyId,\n onEvent,\n dictionary,\n showContinueButton = true,\n}: StateTaxesProps) {\n useComponentDictionary('Company.StateTaxes', dictionary)\n const manageStateTaxes = useMemo(\n () =>\n createMachine(\n 'viewStateTaxes',\n stateTaxesStateMachine,\n (initialContext: StateTaxesContextInterface) => ({\n ...initialContext,\n component: StateTaxesListContextual,\n companyId,\n showContinueButton,\n }),\n ),\n [companyId, showContinueButton],\n )\n return <Flow machine={manageStateTaxes} onEvent={onEvent} />\n}\n"],"names":["StateTaxes","companyId","onEvent","dictionary","showContinueButton","useComponentDictionary","manageStateTaxes","useMemo","createMachine","stateTaxesStateMachine","initialContext","StateTaxesListContextual","jsx","Flow"],"mappings":";;;;;;;AAgDO,SAASA,EAAW;AAAA,EACzB,WAAAC;AAAA,EACA,SAAAC;AAAA,EACA,YAAAC;AAAA,EACA,oBAAAC,IAAqB;AACvB,GAAoB;AAClB,EAAAC,EAAuB,sBAAsBF,CAAU;AACvD,QAAMG,IAAmBC;AAAA,IACvB,MACEC;AAAA,MACE;AAAA,MACAC;AAAA,MACA,CAACC,OAAgD;AAAA,QAC/C,GAAGA;AAAA,QACH,WAAWC;AAAA,QACX,WAAAV;AAAA,QACA,oBAAAG;AAAA,MAAA;AAAA,IACF;AAAA,IAEJ,CAACH,GAAWG,CAAkB;AAAA,EAAA;AAEhC,SAAO,gBAAAQ,EAACC,GAAA,EAAK,SAASP,GAAkB,SAAAJ,EAAA,CAAkB;AAC5D;"}
|
|
@@ -7,6 +7,8 @@ export interface StateTaxesContextInterface extends FlowContextInterface {
|
|
|
7
7
|
state?: string;
|
|
8
8
|
/** Current step component rendered by the flow machine. */
|
|
9
9
|
component: React.ComponentType | null;
|
|
10
|
+
/** Controls visibility of the Continue button in the state tax list. */
|
|
11
|
+
showContinueButton: boolean;
|
|
10
12
|
}
|
|
11
13
|
/** @internal */
|
|
12
14
|
export declare function StateTaxesListContextual(): import("react").JSX.Element;
|
|
@@ -1,20 +1,27 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { StateTaxesList as m } from "./StateTaxesList/StateTaxesList.js";
|
|
3
3
|
import { StateTaxesForm as s } from "./StateTaxesForm/StateTaxesForm.js";
|
|
4
|
-
import { useFlow as
|
|
5
|
-
import { ensureRequired as
|
|
4
|
+
import { useFlow as a } from "../../Flow/useFlow.js";
|
|
5
|
+
import { ensureRequired as n } from "../../../helpers/ensureRequired.js";
|
|
6
6
|
function f() {
|
|
7
|
-
const { companyId: t, onEvent: o } =
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
const { companyId: t, onEvent: o, showContinueButton: e } = a();
|
|
8
|
+
return /* @__PURE__ */ r(
|
|
9
|
+
m,
|
|
10
|
+
{
|
|
11
|
+
onEvent: o,
|
|
12
|
+
companyId: n(t),
|
|
13
|
+
showContinueButton: e
|
|
14
|
+
}
|
|
15
|
+
);
|
|
9
16
|
}
|
|
10
17
|
function d() {
|
|
11
|
-
const { companyId: t, state: o, onEvent:
|
|
12
|
-
return /* @__PURE__ */
|
|
18
|
+
const { companyId: t, state: o, onEvent: e } = a();
|
|
19
|
+
return /* @__PURE__ */ r(
|
|
13
20
|
s,
|
|
14
21
|
{
|
|
15
|
-
companyId:
|
|
16
|
-
state:
|
|
17
|
-
onEvent:
|
|
22
|
+
companyId: n(t),
|
|
23
|
+
state: n(o),
|
|
24
|
+
onEvent: e
|
|
18
25
|
}
|
|
19
26
|
);
|
|
20
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StateTaxesComponents.js","sources":["../../../../src/components/Company/StateTaxes/StateTaxesComponents.tsx"],"sourcesContent":["import { StateTaxesList } from './StateTaxesList/StateTaxesList'\nimport { StateTaxesForm } from './StateTaxesForm/StateTaxesForm'\nimport { useFlow, type FlowContextInterface } from '@/components/Flow/useFlow'\nimport { ensureRequired } from '@/helpers/ensureRequired'\n\n/** @internal */\nexport interface StateTaxesContextInterface extends FlowContextInterface {\n /** UUID of the company whose state taxes are being managed. */\n companyId: string\n /** Two-letter state code currently being edited, when in the form view. */\n state?: string\n /** Current step component rendered by the flow machine. */\n component: React.ComponentType | null\n}\n\n/** @internal */\nexport function StateTaxesListContextual() {\n const { companyId, onEvent } = useFlow<StateTaxesContextInterface>()\n return <StateTaxesList
|
|
1
|
+
{"version":3,"file":"StateTaxesComponents.js","sources":["../../../../src/components/Company/StateTaxes/StateTaxesComponents.tsx"],"sourcesContent":["import { StateTaxesList } from './StateTaxesList/StateTaxesList'\nimport { StateTaxesForm } from './StateTaxesForm/StateTaxesForm'\nimport { useFlow, type FlowContextInterface } from '@/components/Flow/useFlow'\nimport { ensureRequired } from '@/helpers/ensureRequired'\n\n/** @internal */\nexport interface StateTaxesContextInterface extends FlowContextInterface {\n /** UUID of the company whose state taxes are being managed. */\n companyId: string\n /** Two-letter state code currently being edited, when in the form view. */\n state?: string\n /** Current step component rendered by the flow machine. */\n component: React.ComponentType | null\n /** Controls visibility of the Continue button in the state tax list. */\n showContinueButton: boolean\n}\n\n/** @internal */\nexport function StateTaxesListContextual() {\n const { companyId, onEvent, showContinueButton } = useFlow<StateTaxesContextInterface>()\n return (\n <StateTaxesList\n onEvent={onEvent}\n companyId={ensureRequired(companyId)}\n showContinueButton={showContinueButton}\n />\n )\n}\n\n/** @internal */\nexport function StateTaxesFormContextual() {\n const { companyId, state, onEvent } = useFlow<StateTaxesContextInterface>()\n return (\n <StateTaxesForm\n companyId={ensureRequired(companyId)}\n state={ensureRequired(state)}\n onEvent={onEvent}\n />\n )\n}\n"],"names":["StateTaxesListContextual","companyId","onEvent","showContinueButton","useFlow","jsx","StateTaxesList","ensureRequired","StateTaxesFormContextual","state","StateTaxesForm"],"mappings":";;;;;AAkBO,SAASA,IAA2B;AACzC,QAAM,EAAE,WAAAC,GAAW,SAAAC,GAAS,oBAAAC,EAAA,IAAuBC,EAAA;AACnD,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAAJ;AAAA,MACA,WAAWK,EAAeN,CAAS;AAAA,MACnC,oBAAAE;AAAA,IAAA;AAAA,EAAA;AAGN;AAGO,SAASK,IAA2B;AACzC,QAAM,EAAE,WAAAP,GAAW,OAAAQ,GAAO,SAAAP,EAAA,IAAYE,EAAA;AACtC,SACE,gBAAAC;AAAA,IAACK;AAAA,IAAA;AAAA,MACC,WAAWH,EAAeN,CAAS;AAAA,MACnC,OAAOM,EAAeE,CAAK;AAAA,MAC3B,SAAAP;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|