@gusto/embedded-react-sdk 0.54.0 → 0.54.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.
- package/CHANGELOG.md +39 -0
- package/dist/components/Common/Loading/Loading.d.ts +6 -1
- package/dist/components/Common/Loading/Loading.js +13 -12
- package/dist/components/Common/Loading/Loading.js.map +1 -1
- package/dist/components/Common/Loading/Loading.module.scss.js +1 -1
- package/dist/components/Common/PayrollLoading/PayrollLoading.js +1 -1
- package/dist/components/Common/PayrollLoading/PayrollLoading.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.js +8 -8
- package/dist/components/Common/UI/Alert/Alert.js.map +1 -1
- package/dist/components/Common/UI/Alert/Alert.module.scss.js +18 -16
- package/dist/components/Common/UI/Alert/Alert.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Common/UI/FileInput/FileInput.js +1 -1
- package/dist/components/Common/UI/Menu/Menu.js +19 -18
- package/dist/components/Common/UI/Menu/Menu.js.map +1 -1
- package/dist/components/Common/UI/ProgressBar/ProgressBar.js +4 -4
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +3 -5
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +3 -5
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +5 -7
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +3 -5
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +3 -5
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/shared/useSignCompanyForm/fields.js +4 -4
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +8 -10
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +6 -8
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Industry/Industry.js +2 -2
- package/dist/components/Company/Industry/Industry.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +3 -5
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +3 -5
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +20 -19
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +3 -5
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +20 -19
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/PayScheduleForm.js +29 -28
- package/dist/components/Company/PaySchedule/PayScheduleForm.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.d.ts +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js +5 -5
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/fields.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js +24 -21
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/payScheduleSchema.js.map +1 -1
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js +11 -11
- package/dist/components/Company/PaySchedule/shared/usePayScheduleForm/usePayScheduleForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +3 -5
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +3 -5
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/TaxRateHistorySection.js +14 -13
- package/dist/components/Company/StateTaxes/TaxRateManagement/TaxRateHistorySection.js.map +1 -1
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js +3 -5
- package/dist/components/Company/StateTaxes/TaxRateManagement/context.js.map +1 -1
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js +22 -21
- package/dist/components/Contractor/ContractorList/management/ManagementContractorListView.js.map +1 -1
- package/dist/components/Contractor/Documents/shared/SignatureForm/useContractorSignatureForm/fields.js +8 -8
- package/dist/components/Contractor/Landing/Landing.js +30 -29
- package/dist/components/Contractor/Landing/Landing.js.map +1 -1
- package/dist/components/Contractor/OnboardingSummary/OnboardingSummary.js +18 -17
- package/dist/components/Contractor/OnboardingSummary/OnboardingSummary.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/shared/useContractorBankAccountForm/fields.js +1 -1
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.d.ts +41 -0
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js +175 -0
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/CreateHistoricalPayment.js.map +1 -0
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/index.d.ts +1 -0
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/useFormDictionary.d.ts +18 -0
- package/dist/components/Contractor/Payments/{HistoricalPaymentAmounts → CreateHistoricalPayment}/useFormDictionary.js +37 -7
- package/dist/components/Contractor/Payments/CreateHistoricalPayment/useFormDictionary.js.map +1 -0
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.d.ts +30 -0
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js +56 -0
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/HistoricalPaymentSummary.js.map +1 -0
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/index.d.ts +1 -0
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/useFormDictionary.d.ts +9 -0
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/useFormDictionary.js +33 -0
- package/dist/components/Contractor/Payments/HistoricalPaymentSummary/useFormDictionary.js.map +1 -0
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +46 -131
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/useFormDictionary.d.ts +9 -0
- package/dist/components/Contractor/Payments/PaymentSummary/useFormDictionary.js +36 -0
- package/dist/components/Contractor/Payments/PaymentSummary/useFormDictionary.js.map +1 -0
- package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.d.ts +83 -0
- package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.js +124 -0
- package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/PaymentSummaryBlock.js.map +1 -0
- package/dist/components/Contractor/Payments/shared/PaymentSummaryBlock/index.d.ts +1 -0
- package/dist/components/Contractor/Profile/shared/useContractorDetailsForm/fields.js +16 -16
- package/dist/components/Contractor/exports/contractorManagement.d.ts +2 -2
- package/dist/components/Contractor/exports/contractorManagement.js +20 -20
- package/dist/components/Employee/Compensation/shared/useCompensationForm/fields.js +4 -4
- package/dist/components/Employee/Compensation/shared/useJobForm/fields.js +6 -6
- package/dist/components/Employee/Deductions/shared/useChildSupportGarnishmentForm/fields.js +8 -8
- package/dist/components/Employee/Deductions/shared/useDeductionForm/fields.js +4 -4
- package/dist/components/Employee/Documents/management/DocumentManager.js +2 -1
- package/dist/components/Employee/Documents/management/DocumentManager.js.map +1 -1
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js +3 -5
- package/dist/components/Employee/Documents/onboarding/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/Documents/shared/useSignEmployeeForm/fields.js +1 -1
- package/dist/components/Employee/FederalTaxes/shared/FederalTaxesView.js +1 -1
- package/dist/components/Employee/FederalTaxes/shared/useFederalTaxesForm/fields.js +4 -4
- package/dist/components/Employee/Landing/Landing.js +31 -30
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +59 -58
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/management/PaymentMethodBankForm.js +4 -4
- package/dist/components/Employee/PaymentMethod/onboarding/BankForm.js +4 -4
- package/dist/components/Employee/PaymentMethod/shared/useBankForm/fields.js +1 -1
- package/dist/components/Employee/PaymentMethod/shared/useSplitPaymentsForm/splitFieldFactory.js +4 -4
- package/dist/components/Employee/Profile/shared/useEmployeeDetailsForm/fields.js +8 -8
- package/dist/components/Employee/Profile/shared/useHomeAddressForm/fields.js +5 -5
- package/dist/components/Employee/Profile/shared/useWorkAddressForm/fields.js +4 -4
- package/dist/components/Employee/StateTaxes/shared/useEmployeeStateTaxesForm/fieldComponents.js +8 -8
- package/dist/components/Flow/Flow.js +27 -20
- package/dist/components/Flow/Flow.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +44 -44
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +108 -108
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/usePreparedPayrollData.js +8 -10
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js +23 -23
- package/dist/components/TimeOff/shared/EmployeeTable/EmployeeTable.js.map +1 -1
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +4 -11
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js +8 -8
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
- package/dist/i18n/I18n.js +7 -7
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.PaySchedule.json.js +5 -5
- package/dist/i18n/en/Company.StateTaxes.json.js +1 -1
- package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js +20 -18
- package/dist/i18n/en/Company.TimeOff.EmployeeTable.json.js.map +1 -1
- package/dist/i18n/en/Contractor.ManagementContractorList.json.js +46 -44
- package/dist/i18n/en/Contractor.ManagementContractorList.json.js.map +1 -1
- package/dist/i18n/en/Contractor.Payments.CreateHistoricalPayment.json.js +36 -0
- package/dist/i18n/en/Contractor.Payments.CreateHistoricalPayment.json.js.map +1 -0
- package/dist/i18n/en/Contractor.Payments.HistoricalPaymentSummary.json.js +48 -0
- package/dist/i18n/en/Contractor.Payments.HistoricalPaymentSummary.json.js.map +1 -0
- package/dist/i18n/en/Contractor.Payments.PaymentSummary.json.js +7 -7
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js +29 -27
- package/dist/i18n/en/Payroll.PayrollConfiguration.json.js.map +1 -1
- package/dist/i18n/types.d.ts +219 -105
- package/dist/shared/constants.d.ts +12 -4
- package/dist/shared/constants.js +23 -19
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/docs/guides/endpoint-inventory.json +30 -1
- package/package.json +17 -16
- package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/HistoricalPaymentAmounts.d.ts +0 -33
- package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/HistoricalPaymentAmounts.js +0 -62
- package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/HistoricalPaymentAmounts.js.map +0 -1
- package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/index.d.ts +0 -1
- package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/useFormDictionary.d.ts +0 -9
- package/dist/components/Contractor/Payments/HistoricalPaymentAmounts/useFormDictionary.js.map +0 -1
- package/dist/components/Contractor/Payments/HistoricalPaymentContractors/HistoricalPaymentContractors.d.ts +0 -27
- package/dist/components/Contractor/Payments/HistoricalPaymentContractors/HistoricalPaymentContractors.js +0 -56
- package/dist/components/Contractor/Payments/HistoricalPaymentContractors/HistoricalPaymentContractors.js.map +0 -1
- package/dist/components/Contractor/Payments/HistoricalPaymentContractors/index.d.ts +0 -1
- package/dist/i18n/en/Contractor.Payments.HistoricalPaymentAmounts.json.js +0 -36
- package/dist/i18n/en/Contractor.Payments.HistoricalPaymentAmounts.json.js.map +0 -1
- package/dist/i18n/en/Contractor.Payments.HistoricalPaymentContractors.json.js +0 -18
- package/dist/i18n/en/Contractor.Payments.HistoricalPaymentContractors.json.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.54.1](https://github.com/Gusto/embedded-react-sdk/compare/v0.54.0...v0.54.1) (2026-08-13)
|
|
4
|
+
|
|
5
|
+
- drop Cursor cloud agent step from publish workflow ([#2530](https://github.com/Gusto/embedded-react-sdk/issues/2530)) ([9fe07f1](https://github.com/Gusto/embedded-react-sdk/commit/9fe07f1c9517f85cd45238e8e5fa6cef48309588))
|
|
6
|
+
|
|
7
|
+
### Features & Enhancements
|
|
8
|
+
|
|
9
|
+
- **SDK-1128:** finish historical contractor payments end-to-end ([#2532](https://github.com/Gusto/embedded-react-sdk/issues/2532)) ([0893408](https://github.com/Gusto/embedded-react-sdk/commit/0893408c1191ea02d5d881a2f537434568208753))
|
|
10
|
+
- **SDK-484:** enforce accessibility testing in CI ([#2505](https://github.com/Gusto/embedded-react-sdk/issues/2505)) ([26f7e13](https://github.com/Gusto/embedded-react-sdk/commit/26f7e13e04e16316f57e0fe37d939a807363c7ef)), references [AxeBuilder#include](https://github.com/AxeBuilder/issues/include)
|
|
11
|
+
|
|
12
|
+
### Fixes
|
|
13
|
+
|
|
14
|
+
- contain flow-step i18n suspense within each component's boundary ([#2554](https://github.com/Gusto/embedded-react-sdk/issues/2554)) ([d5ee962](https://github.com/Gusto/embedded-react-sdk/commit/d5ee96231d0fd0f4955dcc44f96cc1b5e09dd529)), references [#426](https://github.com/Gusto/embedded-react-sdk/issues/426)
|
|
15
|
+
- require frequency option for twice-per-month pay schedules ([#2542](https://github.com/Gusto/embedded-react-sdk/issues/2542)) ([a539722](https://github.com/Gusto/embedded-react-sdk/commit/a5397224e0b6417caa3838c30f9bb6af402bcf5d))
|
|
16
|
+
- **SDK-484:** accessibility fixes surfaced by the axe testing gate ([#2521](https://github.com/Gusto/embedded-react-sdk/issues/2521)) ([487ff7e](https://github.com/Gusto/embedded-react-sdk/commit/487ff7e1781826ff50f0b6a00d5c8df5753df29b))
|
|
17
|
+
|
|
18
|
+
### Chores & Maintenance
|
|
19
|
+
|
|
20
|
+
- bump @hookform/resolvers from 5.5.7 to 5.6.0 ([#2518](https://github.com/Gusto/embedded-react-sdk/issues/2518)) ([a63add5](https://github.com/Gusto/embedded-react-sdk/commit/a63add5a416d0cb1f9df4bf4aa16af0cfaf315ef))
|
|
21
|
+
- bump @hookform/resolvers from 5.6.0 to 5.7.1 ([#2529](https://github.com/Gusto/embedded-react-sdk/issues/2529)) ([99c01fc](https://github.com/Gusto/embedded-react-sdk/commit/99c01fc77a7d62e73035da65a6e6855f9fe8d079))
|
|
22
|
+
- bump @storybook/addon-a11y from 10.5.5 to 10.5.7 ([#2547](https://github.com/Gusto/embedded-react-sdk/issues/2547)) ([b5afec6](https://github.com/Gusto/embedded-react-sdk/commit/b5afec6030a666743d44c82759f4f832b019e038))
|
|
23
|
+
- bump @storybook/addon-docs from 10.5.5 to 10.5.7 ([#2544](https://github.com/Gusto/embedded-react-sdk/issues/2544)) ([98527b9](https://github.com/Gusto/embedded-react-sdk/commit/98527b93d7662dc74db509e4680cb30f1c159d06))
|
|
24
|
+
- bump @storybook/addon-onboarding from 10.5.5 to 10.5.6 ([#2537](https://github.com/Gusto/embedded-react-sdk/issues/2537)) ([755a37f](https://github.com/Gusto/embedded-react-sdk/commit/755a37fe6aa768097915670766b5c1286e4b3c6d))
|
|
25
|
+
- bump @storybook/addon-onboarding from 10.5.6 to 10.5.7 ([#2548](https://github.com/Gusto/embedded-react-sdk/issues/2548)) ([7fba225](https://github.com/Gusto/embedded-react-sdk/commit/7fba225394c2c8005eb4e47958fee6219d4ee868))
|
|
26
|
+
- bump @storybook/react-vite from 10.5.5 to 10.5.7 ([#2551](https://github.com/Gusto/embedded-react-sdk/issues/2551)) ([8870831](https://github.com/Gusto/embedded-react-sdk/commit/88708315d9b6b97c775e73bf198a3eda1add42bd))
|
|
27
|
+
- bump @testing-library/user-event from 14.6.1 to 14.6.3 ([#2535](https://github.com/Gusto/embedded-react-sdk/issues/2535)) ([76e7d11](https://github.com/Gusto/embedded-react-sdk/commit/76e7d11835c6cc20713eafb09090526e9b88b7fd))
|
|
28
|
+
- bump @typescript-eslint/parser from 8.65.0 to 8.66.0 ([#2543](https://github.com/Gusto/embedded-react-sdk/issues/2543)) ([95751a0](https://github.com/Gusto/embedded-react-sdk/commit/95751a04db73d3ba4f18d39281170684b17993cc))
|
|
29
|
+
- bump @typescript-eslint/rule-tester from 8.65.0 to 8.66.0 ([#2536](https://github.com/Gusto/embedded-react-sdk/issues/2536)) ([9614a32](https://github.com/Gusto/embedded-react-sdk/commit/9614a32e4d0396b1d450adf68f011b604e1745b3))
|
|
30
|
+
- bump axe-core from 4.12.1 to 4.13.0 ([#2550](https://github.com/Gusto/embedded-react-sdk/issues/2550)) ([2561442](https://github.com/Gusto/embedded-react-sdk/commit/25614426646bebfae2507fc0fbc6c968a5da56b1))
|
|
31
|
+
- bump dompurify from 3.4.12 to 3.4.13 in the npm_and_yarn group across 1 directory ([#2539](https://github.com/Gusto/embedded-react-sdk/issues/2539)) ([6bb146e](https://github.com/Gusto/embedded-react-sdk/commit/6bb146e14c0b679cd634ea84131ba40b30894a75))
|
|
32
|
+
- bump eslint-plugin-storybook from 10.5.5 to 10.5.7 ([#2549](https://github.com/Gusto/embedded-react-sdk/issues/2549)) ([f626d60](https://github.com/Gusto/embedded-react-sdk/commit/f626d6098b1d228e04e42dc199d5be0e918cf653))
|
|
33
|
+
- bump fast-uri from 3.1.4 to 3.1.5 in the npm_and_yarn group across 1 directory ([#2533](https://github.com/Gusto/embedded-react-sdk/issues/2533)) ([c5cb667](https://github.com/Gusto/embedded-react-sdk/commit/c5cb6676c916bc742605300c3e41bac5ff0d96b3))
|
|
34
|
+
- bump globals from 17.8.0 to 17.9.0 ([#2528](https://github.com/Gusto/embedded-react-sdk/issues/2528)) ([4ca919b](https://github.com/Gusto/embedded-react-sdk/commit/4ca919bf85cf1c459c78c0b475065a2fc451a9aa))
|
|
35
|
+
- bump react-hook-form from 7.84.0 to 7.85.0 ([#2553](https://github.com/Gusto/embedded-react-sdk/issues/2553)) ([9d78921](https://github.com/Gusto/embedded-react-sdk/commit/9d789215dfbe6d4d8a4768f3332b160aa846f1c3))
|
|
36
|
+
- bump the npm_and_yarn group across 1 directory with 2 updates ([#2534](https://github.com/Gusto/embedded-react-sdk/issues/2534)) ([7a3f00e](https://github.com/Gusto/embedded-react-sdk/commit/7a3f00ef48a9c56cfceaeafc8aea69f288328d44))
|
|
37
|
+
- bump the npm_and_yarn group across 1 directory with 2 updates ([#2541](https://github.com/Gusto/embedded-react-sdk/issues/2541)) ([b8c7f3f](https://github.com/Gusto/embedded-react-sdk/commit/b8c7f3fe9e7e2fcbb5dcec4a2be1cab207272ec3))
|
|
38
|
+
- bump tsx from 4.23.1 to 4.23.5 ([#2527](https://github.com/Gusto/embedded-react-sdk/issues/2527)) ([0ac287c](https://github.com/Gusto/embedded-react-sdk/commit/0ac287ca4fd2c14371b2bcc9ed3a68504b2777da))
|
|
39
|
+
- bump tsx from 4.23.5 to 4.23.11 ([#2546](https://github.com/Gusto/embedded-react-sdk/issues/2546)) ([1361d05](https://github.com/Gusto/embedded-react-sdk/commit/1361d0577194f18163d85fa74736bd41246c747e))
|
|
40
|
+
- bump typescript-eslint from 8.65.0 to 8.66.0 ([#2545](https://github.com/Gusto/embedded-react-sdk/issues/2545)) ([153745b](https://github.com/Gusto/embedded-react-sdk/commit/153745b83a2dff373ec1c0039f61d46e897fde44))
|
|
41
|
+
|
|
3
42
|
## [0.54.0](https://github.com/Gusto/embedded-react-sdk/compare/v0.53.0...v0.54.0) (2026-08-06)
|
|
4
43
|
|
|
5
44
|
### Features & Enhancements
|
|
@@ -2,6 +2,11 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
/** @internal */
|
|
3
3
|
export interface LoadingProps {
|
|
4
4
|
children?: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Height of the skeleton box, in pixels. Defaults to the standard content
|
|
7
|
+
* height. Injected as the `--loading-height` custom property.
|
|
8
|
+
*/
|
|
9
|
+
height?: number;
|
|
5
10
|
}
|
|
6
11
|
/** @internal */
|
|
7
|
-
export declare const Loading: ({ children }: LoadingProps) => import("react").JSX.Element;
|
|
12
|
+
export declare const Loading: ({ children, height }: LoadingProps) => import("react").JSX.Element;
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { FadeIn as
|
|
6
|
-
const
|
|
7
|
-
const { t:
|
|
8
|
-
return /* @__PURE__ */ o(
|
|
9
|
-
"
|
|
2
|
+
import { useTranslation as i } from "react-i18next";
|
|
3
|
+
import l from "classnames";
|
|
4
|
+
import s from "./Loading.module.scss.js";
|
|
5
|
+
import { FadeIn as n } from "../FadeIn/FadeIn.js";
|
|
6
|
+
const f = ({ children: e, height: t }) => {
|
|
7
|
+
const { t: a } = i("common"), r = t === void 0 ? void 0 : { "--loading-height": `${t}px` };
|
|
8
|
+
return /* @__PURE__ */ o(n, { children: /* @__PURE__ */ o(
|
|
9
|
+
"div",
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
role: "status",
|
|
12
|
+
className: s.skeletonContainer,
|
|
13
|
+
"aria-label": a("status.loading"),
|
|
13
14
|
"aria-live": "polite",
|
|
14
15
|
"aria-busy": !0,
|
|
15
|
-
children: /* @__PURE__ */ o("div", { className:
|
|
16
|
+
children: /* @__PURE__ */ o("div", { className: l(s.skeleton, s.skeletonBox), style: r, children: e })
|
|
16
17
|
}
|
|
17
18
|
) });
|
|
18
19
|
};
|
|
19
20
|
export {
|
|
20
|
-
|
|
21
|
+
f as Loading
|
|
21
22
|
};
|
|
22
23
|
//# sourceMappingURL=Loading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.js","sources":["../../../../src/components/Common/Loading/Loading.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport cn from 'classnames'\nimport type { ReactNode } from 'react'\nimport styles from './Loading.module.scss'\nimport { FadeIn } from '@/components/Common/FadeIn/FadeIn'\n\n/** @internal */\nexport interface LoadingProps {\n children?: ReactNode\n}\n\n/** @internal */\nexport const Loading = ({ children }: LoadingProps) => {\n const { t } = useTranslation('common')\n return (\n <FadeIn>\n <
|
|
1
|
+
{"version":3,"file":"Loading.js","sources":["../../../../src/components/Common/Loading/Loading.tsx"],"sourcesContent":["import { useTranslation } from 'react-i18next'\nimport cn from 'classnames'\nimport type { CSSProperties, ReactNode } from 'react'\nimport styles from './Loading.module.scss'\nimport { FadeIn } from '@/components/Common/FadeIn/FadeIn'\n\n/** @internal */\nexport interface LoadingProps {\n children?: ReactNode\n /**\n * Height of the skeleton box, in pixels. Defaults to the standard content\n * height. Injected as the `--loading-height` custom property.\n */\n height?: number\n}\n\n/** @internal */\nexport const Loading = ({ children, height }: LoadingProps) => {\n const { t } = useTranslation('common')\n const style =\n height === undefined ? undefined : ({ '--loading-height': `${height}px` } as CSSProperties)\n return (\n <FadeIn>\n <div\n role=\"status\"\n className={styles.skeletonContainer}\n aria-label={t('status.loading')}\n aria-live=\"polite\"\n aria-busy\n >\n <div className={cn(styles.skeleton, styles.skeletonBox)} style={style}>\n {children}\n </div>\n </div>\n </FadeIn>\n )\n}\n"],"names":["Loading","children","height","t","useTranslation","style","FadeIn","jsx","styles","cn"],"mappings":";;;;;AAiBO,MAAMA,IAAU,CAAC,EAAE,UAAAC,GAAU,QAAAC,QAA2B;AAC7D,QAAM,EAAE,GAAAC,EAAA,IAAMC,EAAe,QAAQ,GAC/BC,IACJH,MAAW,SAAY,SAAa,EAAE,oBAAoB,GAAGA,CAAM,KAAA;AACrE,2BACGI,GAAA,EACC,UAAA,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAWC,EAAO;AAAA,MAClB,cAAYL,EAAE,gBAAgB;AAAA,MAC9B,aAAU;AAAA,MACV,aAAS;AAAA,MAET,UAAA,gBAAAI,EAAC,OAAA,EAAI,WAAWE,EAAGD,EAAO,UAAUA,EAAO,WAAW,GAAG,OAAAH,GACtD,UAAAJ,EAAA,CACH;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
|
|
@@ -6,7 +6,7 @@ const s = ({ title: r, description: n }) => {
|
|
|
6
6
|
const { Heading: t, Text: i, LoadingSpinner: a } = e(), { LoadingIndicator: l } = m();
|
|
7
7
|
return /* @__PURE__ */ o(l, { children: /* @__PURE__ */ c(d, { flexDirection: "column", alignItems: "center", gap: 4, children: [
|
|
8
8
|
/* @__PURE__ */ o(a, { size: "lg" }),
|
|
9
|
-
/* @__PURE__ */ o(t, { as: "
|
|
9
|
+
/* @__PURE__ */ o(t, { as: "h2", children: r }),
|
|
10
10
|
n && /* @__PURE__ */ o(i, { children: n })
|
|
11
11
|
] }) });
|
|
12
12
|
}, p = (r) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PayrollLoading.js","sources":["../../../../src/components/Common/PayrollLoading/PayrollLoading.tsx"],"sourcesContent":["import type { PayrollLoadingProps } from './PayrollLoadingTypes'\nimport { Flex } from '@/components/Common/Flex/Flex'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useLoadingIndicator } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\n\nconst DefaultPayrollLoading = ({ title, description }: PayrollLoadingProps) => {\n const { Heading, Text, LoadingSpinner } = useComponentContext()\n const { LoadingIndicator } = useLoadingIndicator()\n\n return (\n <LoadingIndicator>\n <Flex flexDirection=\"column\" alignItems=\"center\" gap={4}>\n <LoadingSpinner size=\"lg\" />\n <Heading as=\"
|
|
1
|
+
{"version":3,"file":"PayrollLoading.js","sources":["../../../../src/components/Common/PayrollLoading/PayrollLoading.tsx"],"sourcesContent":["import type { PayrollLoadingProps } from './PayrollLoadingTypes'\nimport { Flex } from '@/components/Common/Flex/Flex'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\nimport { useLoadingIndicator } from '@/contexts/LoadingIndicatorProvider/useLoadingIndicator'\n\nconst DefaultPayrollLoading = ({ title, description }: PayrollLoadingProps) => {\n const { Heading, Text, LoadingSpinner } = useComponentContext()\n const { LoadingIndicator } = useLoadingIndicator()\n\n return (\n <LoadingIndicator>\n <Flex flexDirection=\"column\" alignItems=\"center\" gap={4}>\n <LoadingSpinner size=\"lg\" />\n <Heading as=\"h2\">{title}</Heading>\n {description && <Text>{description}</Text>}\n </Flex>\n </LoadingIndicator>\n )\n}\n\n/** @internal */\nexport const PayrollLoading = (props: PayrollLoadingProps) => {\n const Components = useComponentContext()\n\n return Components.PayrollLoading ? (\n <Components.PayrollLoading {...props} />\n ) : (\n <DefaultPayrollLoading {...props} />\n )\n}\n"],"names":["DefaultPayrollLoading","title","description","Heading","Text","LoadingSpinner","useComponentContext","LoadingIndicator","useLoadingIndicator","jsx","jsxs","Flex","PayrollLoading","props","Components"],"mappings":";;;;AAKA,MAAMA,IAAwB,CAAC,EAAE,OAAAC,GAAO,aAAAC,QAAuC;AAC7E,QAAM,EAAE,SAAAC,GAAS,MAAAC,GAAM,gBAAAC,EAAA,IAAmBC,EAAA,GACpC,EAAE,kBAAAC,EAAA,IAAqBC,EAAA;AAE7B,SACE,gBAAAC,EAACF,KACC,UAAA,gBAAAG,EAACC,GAAA,EAAK,eAAc,UAAS,YAAW,UAAS,KAAK,GACpD,UAAA;AAAA,IAAA,gBAAAF,EAACJ,GAAA,EAAe,MAAK,KAAA,CAAK;AAAA,IAC1B,gBAAAI,EAACN,GAAA,EAAQ,IAAG,MAAM,UAAAF,GAAM;AAAA,IACvBC,KAAe,gBAAAO,EAACL,GAAA,EAAM,UAAAF,EAAA,CAAY;AAAA,EAAA,EAAA,CACrC,EAAA,CACF;AAEJ,GAGaU,IAAiB,CAACC,MAA+B;AAC5D,QAAMC,IAAaR,EAAA;AAEnB,SAAOQ,EAAW,iBAChB,gBAAAL,EAACK,EAAW,gBAAX,EAA2B,GAAGD,EAAA,CAAO,IAEtC,gBAAAJ,EAACT,GAAA,EAAuB,GAAGa,EAAA,CAAO;AAEtC;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { useId as p, useRef as N, useEffect as
|
|
3
|
-
import
|
|
2
|
+
import { useId as p, useRef as N, useEffect as b } from "react";
|
|
3
|
+
import g from "classnames";
|
|
4
4
|
import { ButtonIcon as I } from "../Button/ButtonIcon.js";
|
|
5
5
|
import { AlertDefaults as S } from "./AlertTypes.js";
|
|
6
6
|
import e from "./Alert.module.scss.js";
|
|
@@ -11,22 +11,22 @@ import C from "../../../../assets/icons/warning.svg.js";
|
|
|
11
11
|
import D from "../../../../assets/icons/error.svg.js";
|
|
12
12
|
import j from "../../../../assets/icons/close.svg.js";
|
|
13
13
|
function F(m) {
|
|
14
|
-
const d = w(m, S), { label: f, children: s, action: o, status: i, icon: h, className: u, onDismiss: t, disableScrollIntoView:
|
|
15
|
-
return
|
|
16
|
-
!
|
|
17
|
-
}, [
|
|
14
|
+
const d = w(m, S), { label: f, children: s, action: o, status: i, icon: h, className: u, onDismiss: t, disableScrollIntoView: l } = d, n = p(), a = N(null), v = i === "info" ? /* @__PURE__ */ r(x, { "aria-hidden": !0 }) : i === "success" ? /* @__PURE__ */ r(y, { "aria-hidden": !0 }) : i === "warning" ? /* @__PURE__ */ r(C, { "aria-hidden": !0 }) : /* @__PURE__ */ r(D, { "aria-hidden": !0 });
|
|
15
|
+
return b(() => {
|
|
16
|
+
!l && a.current && (a.current.scrollIntoView({ behavior: "smooth" }), a.current.focus());
|
|
17
|
+
}, [l]), /* @__PURE__ */ r("div", { className: g(e.root, u), children: /* @__PURE__ */ c(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
20
|
className: e.alert,
|
|
21
21
|
role: "alert",
|
|
22
|
-
"aria-labelledby":
|
|
22
|
+
"aria-labelledby": n,
|
|
23
23
|
"data-variant": i,
|
|
24
24
|
ref: a,
|
|
25
25
|
tabIndex: -1,
|
|
26
26
|
children: [
|
|
27
27
|
/* @__PURE__ */ r("div", { className: e.header, children: /* @__PURE__ */ c("div", { className: e.iconLabelContainer, children: [
|
|
28
28
|
/* @__PURE__ */ r("div", { className: e.icon, children: h || v }),
|
|
29
|
-
/* @__PURE__ */ r("
|
|
29
|
+
/* @__PURE__ */ r("div", { id: n, className: e.label, children: f }),
|
|
30
30
|
o && /* @__PURE__ */ r("div", { className: e.action, children: o }),
|
|
31
31
|
t && /* @__PURE__ */ r("div", { className: e.dismiss, children: /* @__PURE__ */ r(I, { variant: "tertiary", onClick: t, "aria-label": "Dismiss alert", children: /* @__PURE__ */ r(j, { width: 36, height: 36 }) }) })
|
|
32
32
|
] }) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sources":["../../../../../src/components/Common/UI/Alert/Alert.tsx"],"sourcesContent":["import { useEffect, useId, useRef } from 'react'\nimport classNames from 'classnames'\nimport { ButtonIcon } from '../Button/ButtonIcon'\nimport { type AlertProps, AlertDefaults } from './AlertTypes'\nimport styles from './Alert.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport InfoIcon from '@/assets/icons/info.svg?react'\nimport SuccessIcon from '@/assets/icons/success_check.svg?react'\nimport WarningIcon from '@/assets/icons/warning.svg?react'\nimport ErrorIcon from '@/assets/icons/error.svg?react'\nimport CloseIcon from '@/assets/icons/close.svg?react'\n\n/**\n * Renders an inline alert that conveys status information about the surrounding content, with an optional action button and dismiss control.\n *\n * @remarks\n * Scrolls itself into view and receives focus on mount so the user notices it. Pass `disableScrollIntoView` when rendering inside a modal or other container that should retain focus.\n *\n * @param rawProps - The {@link AlertProps} controlling the alert label, status, icon, and dismiss behavior.\n * @returns The rendered alert.\n * @internal\n */\nexport function Alert(rawProps: AlertProps) {\n const resolvedProps = applyMissingDefaults(rawProps, AlertDefaults)\n const { label, children, action, status, icon, className, onDismiss, disableScrollIntoView } =\n resolvedProps\n const id = useId()\n const alertRef = useRef<HTMLDivElement>(null)\n const defaultIcon =\n status === 'info' ? (\n <InfoIcon aria-hidden />\n ) : status === 'success' ? (\n <SuccessIcon aria-hidden />\n ) : status === 'warning' ? (\n <WarningIcon aria-hidden />\n ) : (\n <ErrorIcon aria-hidden />\n )\n\n useEffect(() => {\n if (!disableScrollIntoView && alertRef.current) {\n alertRef.current.scrollIntoView({ behavior: 'smooth' })\n alertRef.current.focus()\n }\n }, [disableScrollIntoView])\n\n return (\n <div className={classNames(styles.root, className)}>\n <div\n className={styles.alert}\n role=\"alert\"\n aria-labelledby={id}\n data-variant={status}\n ref={alertRef}\n tabIndex={-1}\n >\n <div className={styles.header}>\n <div className={styles.iconLabelContainer}>\n <div className={styles.icon}>{icon || defaultIcon}</div>\n <
|
|
1
|
+
{"version":3,"file":"Alert.js","sources":["../../../../../src/components/Common/UI/Alert/Alert.tsx"],"sourcesContent":["import { useEffect, useId, useRef } from 'react'\nimport classNames from 'classnames'\nimport { ButtonIcon } from '../Button/ButtonIcon'\nimport { type AlertProps, AlertDefaults } from './AlertTypes'\nimport styles from './Alert.module.scss'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport InfoIcon from '@/assets/icons/info.svg?react'\nimport SuccessIcon from '@/assets/icons/success_check.svg?react'\nimport WarningIcon from '@/assets/icons/warning.svg?react'\nimport ErrorIcon from '@/assets/icons/error.svg?react'\nimport CloseIcon from '@/assets/icons/close.svg?react'\n\n/**\n * Renders an inline alert that conveys status information about the surrounding content, with an optional action button and dismiss control.\n *\n * @remarks\n * Scrolls itself into view and receives focus on mount so the user notices it. Pass `disableScrollIntoView` when rendering inside a modal or other container that should retain focus.\n *\n * @param rawProps - The {@link AlertProps} controlling the alert label, status, icon, and dismiss behavior.\n * @returns The rendered alert.\n * @internal\n */\nexport function Alert(rawProps: AlertProps) {\n const resolvedProps = applyMissingDefaults(rawProps, AlertDefaults)\n const { label, children, action, status, icon, className, onDismiss, disableScrollIntoView } =\n resolvedProps\n const id = useId()\n const alertRef = useRef<HTMLDivElement>(null)\n const defaultIcon =\n status === 'info' ? (\n <InfoIcon aria-hidden />\n ) : status === 'success' ? (\n <SuccessIcon aria-hidden />\n ) : status === 'warning' ? (\n <WarningIcon aria-hidden />\n ) : (\n <ErrorIcon aria-hidden />\n )\n\n useEffect(() => {\n if (!disableScrollIntoView && alertRef.current) {\n alertRef.current.scrollIntoView({ behavior: 'smooth' })\n alertRef.current.focus()\n }\n }, [disableScrollIntoView])\n\n return (\n <div className={classNames(styles.root, className)}>\n <div\n className={styles.alert}\n role=\"alert\"\n aria-labelledby={id}\n data-variant={status}\n ref={alertRef}\n tabIndex={-1}\n >\n <div className={styles.header}>\n <div className={styles.iconLabelContainer}>\n <div className={styles.icon}>{icon || defaultIcon}</div>\n <div id={id} className={styles.label}>\n {label}\n </div>\n {action && <div className={styles.action}>{action}</div>}\n {onDismiss && (\n <div className={styles.dismiss}>\n <ButtonIcon variant=\"tertiary\" onClick={onDismiss} aria-label=\"Dismiss alert\">\n <CloseIcon width={36} height={36} />\n </ButtonIcon>\n </div>\n )}\n </div>\n </div>\n {children && <div className={styles.content}>{children}</div>}\n </div>\n </div>\n )\n}\n"],"names":["Alert","rawProps","resolvedProps","applyMissingDefaults","AlertDefaults","label","children","action","status","icon","className","onDismiss","disableScrollIntoView","id","useId","alertRef","useRef","defaultIcon","jsx","InfoIcon","SuccessIcon","WarningIcon","ErrorIcon","useEffect","classNames","styles","jsxs","ButtonIcon","CloseIcon"],"mappings":";;;;;;;;;;;;AAsBO,SAASA,EAAMC,GAAsB;AAC1C,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAa,GAC5D,EAAE,OAAAC,GAAO,UAAAC,GAAU,QAAAC,GAAQ,QAAAC,GAAQ,MAAAC,GAAM,WAAAC,GAAW,WAAAC,GAAW,uBAAAC,EAAA,IACnEV,GACIW,IAAKC,EAAA,GACLC,IAAWC,EAAuB,IAAI,GACtCC,IACJT,MAAW,SACT,gBAAAU,EAACC,GAAA,EAAS,eAAW,GAAA,CAAC,IACpBX,MAAW,YACb,gBAAAU,EAACE,GAAA,EAAY,eAAW,GAAA,CAAC,IACvBZ,MAAW,YACb,gBAAAU,EAACG,GAAA,EAAY,eAAW,GAAA,CAAC,IAEzB,gBAAAH,EAACI,GAAA,EAAU,eAAW,GAAA,CAAC;AAG3B,SAAAC,EAAU,MAAM;AACd,IAAI,CAACX,KAAyBG,EAAS,YACrCA,EAAS,QAAQ,eAAe,EAAE,UAAU,UAAU,GACtDA,EAAS,QAAQ,MAAA;AAAA,EAErB,GAAG,CAACH,CAAqB,CAAC,qBAGvB,OAAA,EAAI,WAAWY,EAAWC,EAAO,MAAMf,CAAS,GAC/C,UAAA,gBAAAgB;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWD,EAAO;AAAA,MAClB,MAAK;AAAA,MACL,mBAAiBZ;AAAA,MACjB,gBAAcL;AAAA,MACd,KAAKO;AAAA,MACL,UAAU;AAAA,MAEV,UAAA;AAAA,QAAA,gBAAAG,EAAC,OAAA,EAAI,WAAWO,EAAO,QACrB,4BAAC,OAAA,EAAI,WAAWA,EAAO,oBACrB,UAAA;AAAA,UAAA,gBAAAP,EAAC,OAAA,EAAI,WAAWO,EAAO,MAAO,eAAQR,GAAY;AAAA,4BACjD,OAAA,EAAI,IAAAJ,GAAQ,WAAWY,EAAO,OAC5B,UAAApB,GACH;AAAA,UACCE,KAAU,gBAAAW,EAAC,OAAA,EAAI,WAAWO,EAAO,QAAS,UAAAlB,GAAO;AAAA,UACjDI,uBACE,OAAA,EAAI,WAAWc,EAAO,SACrB,UAAA,gBAAAP,EAACS,KAAW,SAAQ,YAAW,SAAShB,GAAW,cAAW,iBAC5D,UAAA,gBAAAO,EAACU,GAAA,EAAU,OAAO,IAAI,QAAQ,GAAA,CAAI,EAAA,CACpC,EAAA,CACF;AAAA,QAAA,EAAA,CAEJ,EAAA,CACF;AAAA,QACCtB,KAAY,gBAAAY,EAAC,OAAA,EAAI,WAAWO,EAAO,SAAU,UAAAnB,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,GAE3D;AAEJ;"}
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
alert:
|
|
4
|
-
header:
|
|
5
|
-
iconLabelContainer:
|
|
1
|
+
const e = "_root_1rxke_1", o = "_alert_1rxke_4", n = "_header_1rxke_18", t = "_iconLabelContainer_1rxke_23", _ = "_icon_1rxke_23", c = "_label_1rxke_37", r = "_content_1rxke_44", s = "_action_1rxke_51", a = "_dismiss_1rxke_57", i = {
|
|
2
|
+
root: e,
|
|
3
|
+
alert: o,
|
|
4
|
+
header: n,
|
|
5
|
+
iconLabelContainer: t,
|
|
6
6
|
icon: _,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
label: c,
|
|
8
|
+
content: r,
|
|
9
|
+
action: s,
|
|
10
|
+
dismiss: a
|
|
10
11
|
};
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
s as action,
|
|
14
|
+
o as alert,
|
|
15
|
+
r as content,
|
|
16
|
+
i as default,
|
|
17
|
+
a as dismiss,
|
|
18
|
+
n as header,
|
|
18
19
|
_ as icon,
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
t as iconLabelContainer,
|
|
21
|
+
c as label,
|
|
22
|
+
e as root
|
|
21
23
|
};
|
|
22
24
|
//# sourceMappingURL=Alert.module.scss.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Alert.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import h from "classnames";
|
|
3
|
-
import { Flex as u } from "../../Flex/Flex.js";
|
|
4
3
|
import { BreadcrumbsDefaults as C } from "./BreadcrumbsTypes.js";
|
|
5
4
|
import i from "./Breadcrumbs.module.scss.js";
|
|
6
5
|
import { applyMissingDefaults as x } from "../../../../helpers/applyMissingDefaults.js";
|
|
6
|
+
import { Flex as u } from "../../Flex/Flex.js";
|
|
7
7
|
function P(f) {
|
|
8
8
|
const p = x(f, C), {
|
|
9
9
|
className: s,
|
|
@@ -7,13 +7,13 @@ import { FileInputDefaults as K } from "./FileInputTypes.js";
|
|
|
7
7
|
import n from "./FileInput.module.scss.js";
|
|
8
8
|
import { applyMissingDefaults as L } from "../../../../helpers/applyMissingDefaults.js";
|
|
9
9
|
import { FieldLayout as O } from "../../FieldLayout/FieldLayout.js";
|
|
10
|
-
import { Flex as y } from "../../Flex/Flex.js";
|
|
11
10
|
import { ButtonIcon as R } from "../Button/ButtonIcon.js";
|
|
12
11
|
import W from "../../../../assets/icons/icon-trashcan.svg.js";
|
|
13
12
|
import Z from "../../../../assets/icons/icon-file-outline.svg.js";
|
|
14
13
|
import $ from "../../../../assets/icons/icon-file-pdf.svg.js";
|
|
15
14
|
import H from "../../../../assets/icons/icon-file-png.svg.js";
|
|
16
15
|
import V from "../../../../assets/icons/icon-file-jpg.svg.js";
|
|
16
|
+
import { Flex as y } from "../../Flex/Flex.js";
|
|
17
17
|
function Q(i) {
|
|
18
18
|
return i === "application/pdf" ? $ : i === "image/png" ? H : i === "image/jpeg" || i === "image/jpg" ? V : Z;
|
|
19
19
|
}
|
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { Popover as
|
|
1
|
+
import { jsx as o, jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { Popover as P, Menu as x, MenuItem as I } from "react-aria-components";
|
|
3
3
|
import r from "./Menu.module.scss.js";
|
|
4
4
|
import { MenuDefaults as O } from "./MenuTypes.js";
|
|
5
5
|
import { applyMissingDefaults as j } from "../../../../helpers/applyMissingDefaults.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { useTheme as y } from "../../../../contexts/ThemeProvider/useTheme.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
function S(
|
|
10
|
-
const s = j(
|
|
11
|
-
triggerRef:
|
|
9
|
+
function S(i) {
|
|
10
|
+
const s = j(i, O), {
|
|
11
|
+
triggerRef: l,
|
|
12
12
|
items: m,
|
|
13
|
-
isOpen:
|
|
13
|
+
isOpen: p,
|
|
14
14
|
onClose: n,
|
|
15
|
-
placement:
|
|
16
|
-
portalContainer:
|
|
17
|
-
"aria-label":
|
|
15
|
+
placement: c,
|
|
16
|
+
portalContainer: u,
|
|
17
|
+
"aria-label": t,
|
|
18
18
|
...f
|
|
19
19
|
} = s, { container: d } = y(), h = (e) => {
|
|
20
20
|
e || n?.();
|
|
21
21
|
};
|
|
22
22
|
return /* @__PURE__ */ o(
|
|
23
|
-
|
|
23
|
+
P,
|
|
24
24
|
{
|
|
25
|
-
UNSTABLE_portalContainer:
|
|
25
|
+
UNSTABLE_portalContainer: u ?? d.current ?? void 0,
|
|
26
26
|
onOpenChange: h,
|
|
27
|
-
isOpen:
|
|
28
|
-
triggerRef:
|
|
29
|
-
placement:
|
|
27
|
+
isOpen: p,
|
|
28
|
+
triggerRef: l,
|
|
29
|
+
placement: c,
|
|
30
30
|
offset: 8,
|
|
31
31
|
shouldUpdatePosition: !0,
|
|
32
|
-
|
|
32
|
+
"aria-label": t,
|
|
33
|
+
children: /* @__PURE__ */ o(x, { onClose: n, "aria-label": t, className: r.root, ...f, children: m?.map(({ onClick: e, isDisabled: M, href: g, icon: a, label: C, ...b }, v) => /* @__PURE__ */ N(
|
|
33
34
|
I,
|
|
34
35
|
{
|
|
35
36
|
onAction: () => {
|
|
@@ -38,13 +39,13 @@ function S(a) {
|
|
|
38
39
|
isDisabled: M,
|
|
39
40
|
href: g,
|
|
40
41
|
className: r.menuItem,
|
|
41
|
-
...
|
|
42
|
+
...b,
|
|
42
43
|
children: [
|
|
43
|
-
|
|
44
|
+
a && /* @__PURE__ */ o("div", { className: r.menuIcon, children: a }),
|
|
44
45
|
C
|
|
45
46
|
]
|
|
46
47
|
},
|
|
47
|
-
|
|
48
|
+
v
|
|
48
49
|
)) })
|
|
49
50
|
}
|
|
50
51
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.js","sources":["../../../../../src/components/Common/UI/Menu/Menu.tsx"],"sourcesContent":["import { Menu as AriaMenu, MenuItem as AriaMenuItem, Popover } from 'react-aria-components'\nimport styles from './Menu.module.scss'\nimport { type MenuProps, MenuDefaults } from './MenuTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { useTheme } from '@/contexts/ThemeProvider'\n\n/**\n * Popover menu anchored to a trigger element, with a configurable list of actions.\n *\n * @param rawProps - See {@link MenuProps}.\n * @returns The rendered menu popover, or `null` content when closed.\n * @internal\n */\nexport function Menu(rawProps: MenuProps) {\n const resolvedProps = applyMissingDefaults(rawProps, MenuDefaults)\n const {\n triggerRef,\n items,\n isOpen,\n onClose,\n placement,\n portalContainer,\n 'aria-label': ariaLabel,\n ...otherProps\n } = resolvedProps\n const { container } = useTheme()\n\n const handleOpenChange = (isOpen: boolean) => {\n if (!isOpen) {\n onClose?.()\n }\n }\n\n return (\n <Popover\n UNSTABLE_portalContainer={portalContainer ?? container.current ?? undefined}\n onOpenChange={handleOpenChange}\n isOpen={isOpen}\n triggerRef={triggerRef}\n placement={placement}\n offset={8}\n shouldUpdatePosition={true}\n >\n <AriaMenu onClose={onClose} aria-label={ariaLabel} className={styles.root} {...otherProps}>\n {items?.map(({ onClick, isDisabled, href, icon, label, ...itemProps }, index) => (\n <AriaMenuItem\n key={index}\n onAction={() => {\n onClick()\n }}\n isDisabled={isDisabled}\n href={href}\n className={styles.menuItem}\n {...itemProps}\n >\n {icon && <div className={styles.menuIcon}>{icon}</div>}\n {label}\n </AriaMenuItem>\n ))}\n </AriaMenu>\n </Popover>\n )\n}\n"],"names":["Menu","rawProps","resolvedProps","applyMissingDefaults","MenuDefaults","triggerRef","items","isOpen","onClose","placement","portalContainer","ariaLabel","otherProps","container","useTheme","handleOpenChange","jsx","Popover","AriaMenu","styles","onClick","isDisabled","href","icon","label","itemProps","index","jsxs","AriaMenuItem"],"mappings":";;;;;;;;AAaO,SAASA,EAAKC,GAAqB;AACxC,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAY,GAC3D;AAAA,IACJ,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,WAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAcC;AAAA,IACd,GAAGC;AAAA,EAAA,IACDV,GACE,EAAE,WAAAW,EAAA,IAAcC,EAAA,GAEhBC,IAAmB,CAACR,MAAoB;AAC5C,IAAKA,KACHC,IAAA;AAAA,EAEJ;AAEA,SACE,gBAAAQ;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,0BAA0BP,KAAmBG,EAAU,WAAW;AAAA,MAClE,cAAcE;AAAA,MACd,QAAAR;AAAA,MACA,YAAAF;AAAA,MACA,WAAAI;AAAA,MACA,QAAQ;AAAA,MACR,sBAAsB;AAAA,
|
|
1
|
+
{"version":3,"file":"Menu.js","sources":["../../../../../src/components/Common/UI/Menu/Menu.tsx"],"sourcesContent":["import { Menu as AriaMenu, MenuItem as AriaMenuItem, Popover } from 'react-aria-components'\nimport styles from './Menu.module.scss'\nimport { type MenuProps, MenuDefaults } from './MenuTypes'\nimport { applyMissingDefaults } from '@/helpers/applyMissingDefaults'\nimport { useTheme } from '@/contexts/ThemeProvider'\n\n/**\n * Popover menu anchored to a trigger element, with a configurable list of actions.\n *\n * @param rawProps - See {@link MenuProps}.\n * @returns The rendered menu popover, or `null` content when closed.\n * @internal\n */\nexport function Menu(rawProps: MenuProps) {\n const resolvedProps = applyMissingDefaults(rawProps, MenuDefaults)\n const {\n triggerRef,\n items,\n isOpen,\n onClose,\n placement,\n portalContainer,\n 'aria-label': ariaLabel,\n ...otherProps\n } = resolvedProps\n const { container } = useTheme()\n\n const handleOpenChange = (isOpen: boolean) => {\n if (!isOpen) {\n onClose?.()\n }\n }\n\n return (\n <Popover\n UNSTABLE_portalContainer={portalContainer ?? container.current ?? undefined}\n onOpenChange={handleOpenChange}\n isOpen={isOpen}\n triggerRef={triggerRef}\n placement={placement}\n offset={8}\n shouldUpdatePosition={true}\n aria-label={ariaLabel}\n >\n <AriaMenu onClose={onClose} aria-label={ariaLabel} className={styles.root} {...otherProps}>\n {items?.map(({ onClick, isDisabled, href, icon, label, ...itemProps }, index) => (\n <AriaMenuItem\n key={index}\n onAction={() => {\n onClick()\n }}\n isDisabled={isDisabled}\n href={href}\n className={styles.menuItem}\n {...itemProps}\n >\n {icon && <div className={styles.menuIcon}>{icon}</div>}\n {label}\n </AriaMenuItem>\n ))}\n </AriaMenu>\n </Popover>\n )\n}\n"],"names":["Menu","rawProps","resolvedProps","applyMissingDefaults","MenuDefaults","triggerRef","items","isOpen","onClose","placement","portalContainer","ariaLabel","otherProps","container","useTheme","handleOpenChange","jsx","Popover","AriaMenu","styles","onClick","isDisabled","href","icon","label","itemProps","index","jsxs","AriaMenuItem"],"mappings":";;;;;;;;AAaO,SAASA,EAAKC,GAAqB;AACxC,QAAMC,IAAgBC,EAAqBF,GAAUG,CAAY,GAC3D;AAAA,IACJ,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,WAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,cAAcC;AAAA,IACd,GAAGC;AAAA,EAAA,IACDV,GACE,EAAE,WAAAW,EAAA,IAAcC,EAAA,GAEhBC,IAAmB,CAACR,MAAoB;AAC5C,IAAKA,KACHC,IAAA;AAAA,EAEJ;AAEA,SACE,gBAAAQ;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,0BAA0BP,KAAmBG,EAAU,WAAW;AAAA,MAClE,cAAcE;AAAA,MACd,QAAAR;AAAA,MACA,YAAAF;AAAA,MACA,WAAAI;AAAA,MACA,QAAQ;AAAA,MACR,sBAAsB;AAAA,MACtB,cAAYE;AAAA,MAEZ,UAAA,gBAAAK,EAACE,KAAS,SAAAV,GAAkB,cAAYG,GAAW,WAAWQ,EAAO,MAAO,GAAGP,GAC5E,UAAAN,GAAO,IAAI,CAAC,EAAE,SAAAc,GAAS,YAAAC,GAAY,MAAAC,GAAM,MAAAC,GAAM,OAAAC,GAAO,GAAGC,EAAA,GAAaC,MACrE,gBAAAC;AAAA,QAACC;AAAAA,QAAA;AAAA,UAEC,UAAU,MAAM;AACd,YAAAR,EAAA;AAAA,UACF;AAAA,UACA,YAAAC;AAAA,UACA,MAAAC;AAAA,UACA,WAAWH,EAAO;AAAA,UACjB,GAAGM;AAAA,UAEH,UAAA;AAAA,YAAAF,KAAQ,gBAAAP,EAAC,OAAA,EAAI,WAAWG,EAAO,UAAW,UAAAI,GAAK;AAAA,YAC/CC;AAAA,UAAA;AAAA,QAAA;AAAA,QAVIE;AAAA,MAAA,CAYR,EAAA,CACH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import c from "classnames";
|
|
3
|
-
import
|
|
4
|
-
import p from "
|
|
3
|
+
import n from "./ProgressBar.module.scss.js";
|
|
4
|
+
import { Flex as p } from "../../Flex/Flex.js";
|
|
5
5
|
import { VisuallyHidden as d } from "../../VisuallyHidden/VisuallyHidden.js";
|
|
6
6
|
function y({
|
|
7
7
|
className: i,
|
|
@@ -13,9 +13,9 @@ function y({
|
|
|
13
13
|
const s = Math.max(1, Math.min(m, e)), l = {
|
|
14
14
|
"--g-progress-bar-width": `${s * 100 / e}%`
|
|
15
15
|
};
|
|
16
|
-
return /* @__PURE__ */ t(
|
|
16
|
+
return /* @__PURE__ */ t(p, { flexDirection: "column", children: [
|
|
17
17
|
o && /* @__PURE__ */ r(o, {}),
|
|
18
|
-
/* @__PURE__ */ r("div", { className: c(
|
|
18
|
+
/* @__PURE__ */ r("div", { className: c(n.root, i), style: l, children: /* @__PURE__ */ r(d, { children: /* @__PURE__ */ r("progress", { "aria-label": a, value: s, max: e }) }) })
|
|
19
19
|
] });
|
|
20
20
|
}
|
|
21
21
|
export {
|
|
@@ -9,15 +9,13 @@ import "@gusto/embedded-api/models/errors/gustoembeddederror";
|
|
|
9
9
|
import "@gusto/embedded-api/models/errors/sdkvalidationerror";
|
|
10
10
|
import "@gusto/embedded-api/models/errors/unprocessableentityerror";
|
|
11
11
|
import "@gusto/embedded-api/models/errors/httpclienterrors";
|
|
12
|
-
import "dompurify";
|
|
13
|
-
import "../../../../contexts/LocaleProvider/useLocale.js";
|
|
14
12
|
import "../../../../shared/constants.js";
|
|
15
13
|
import "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
16
14
|
import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
|
|
17
15
|
import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
|
|
18
|
-
const [
|
|
16
|
+
const [s, u] = t("CreateSignatoryContext");
|
|
19
17
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
u as CreateSignatoryProvider,
|
|
19
|
+
s as useCreateSignatory
|
|
22
20
|
};
|
|
23
21
|
//# sourceMappingURL=useCreateSignatory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCreateSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\n/**\n * Initial values for the {@link CreateSignatory} form fields. At least one field must be provided.\n *\n * @public\n */\nexport type CreateSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title' | 'phone' | 'birthday'> &\n Pick<\n NonNullable<Signatory['homeAddress']>,\n 'street1' | 'street2' | 'city' | 'state' | 'zip'\n > & {\n ssn?: string\n }\n>\ntype CreateSignatoryContextType = {\n isPending: boolean\n currentSignatory?: Signatory\n}\n\nconst [useCreateSignatory, CreateSignatoryProvider] =\n createCompoundContext<CreateSignatoryContextType>('CreateSignatoryContext')\n\nexport {\n /** @internal */\n useCreateSignatory,\n /** @internal */\n CreateSignatoryProvider,\n}\n"],"names":["useCreateSignatory","CreateSignatoryProvider","createCompoundContext"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCreateSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\n/**\n * Initial values for the {@link CreateSignatory} form fields. At least one field must be provided.\n *\n * @public\n */\nexport type CreateSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title' | 'phone' | 'birthday'> &\n Pick<\n NonNullable<Signatory['homeAddress']>,\n 'street1' | 'street2' | 'city' | 'state' | 'zip'\n > & {\n ssn?: string\n }\n>\ntype CreateSignatoryContextType = {\n isPending: boolean\n currentSignatory?: Signatory\n}\n\nconst [useCreateSignatory, CreateSignatoryProvider] =\n createCompoundContext<CreateSignatoryContextType>('CreateSignatoryContext')\n\nexport {\n /** @internal */\n useCreateSignatory,\n /** @internal */\n CreateSignatoryProvider,\n}\n"],"names":["useCreateSignatory","CreateSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAuBA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
|
|
@@ -9,15 +9,13 @@ import "@gusto/embedded-api/models/errors/gustoembeddederror";
|
|
|
9
9
|
import "@gusto/embedded-api/models/errors/sdkvalidationerror";
|
|
10
10
|
import "@gusto/embedded-api/models/errors/unprocessableentityerror";
|
|
11
11
|
import "@gusto/embedded-api/models/errors/httpclienterrors";
|
|
12
|
-
import "dompurify";
|
|
13
|
-
import "../../../../contexts/LocaleProvider/useLocale.js";
|
|
14
12
|
import "../../../../shared/constants.js";
|
|
15
13
|
import "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
16
14
|
import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
|
|
17
15
|
import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
|
|
18
|
-
const [
|
|
16
|
+
const [c, d] = t("InviteSignatoryContext");
|
|
19
17
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
d as InviteSignatoryProvider,
|
|
19
|
+
c as useInviteSignatory
|
|
22
20
|
};
|
|
23
21
|
//# sourceMappingURL=useInviteSignatory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useInviteSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\ntype InviteSignatoryContextType = {\n isPending: boolean\n}\n\n/**\n * Default values for the invite signatory form fields: `firstName`, `lastName`, `email`,\n * `confirmEmail`, and `title`. At least one field is required.\n *\n * @public\n */\nexport type InviteSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title'> & {\n confirmEmail: string\n }\n>\n\nconst [useInviteSignatory, InviteSignatoryProvider] =\n createCompoundContext<InviteSignatoryContextType>('InviteSignatoryContext')\n\nexport { useInviteSignatory, InviteSignatoryProvider }\n"],"names":["useInviteSignatory","InviteSignatoryProvider","createCompoundContext"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useInviteSignatory.js","sources":["../../../../../src/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\ntype InviteSignatoryContextType = {\n isPending: boolean\n}\n\n/**\n * Default values for the invite signatory form fields: `firstName`, `lastName`, `email`,\n * `confirmEmail`, and `title`. At least one field is required.\n *\n * @public\n */\nexport type InviteSignatoryDefaultValues = RequireAtLeastOne<\n Pick<Signatory, 'firstName' | 'lastName' | 'email' | 'title'> & {\n confirmEmail: string\n }\n>\n\nconst [useInviteSignatory, InviteSignatoryProvider] =\n createCompoundContext<InviteSignatoryContextType>('InviteSignatoryContext')\n\nexport { useInviteSignatory, InviteSignatoryProvider }\n"],"names":["useInviteSignatory","InviteSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAoBA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
|
|
@@ -9,19 +9,17 @@ import "@gusto/embedded-api/models/errors/gustoembeddederror";
|
|
|
9
9
|
import "@gusto/embedded-api/models/errors/sdkvalidationerror";
|
|
10
10
|
import "@gusto/embedded-api/models/errors/unprocessableentityerror";
|
|
11
11
|
import "@gusto/embedded-api/models/errors/httpclienterrors";
|
|
12
|
-
import "dompurify";
|
|
13
|
-
import "../../../contexts/LocaleProvider/useLocale.js";
|
|
14
12
|
import "../../../shared/constants.js";
|
|
15
13
|
import "../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
16
14
|
import "../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
|
|
17
15
|
import { createCompoundContext as t } from "../../Base/createCompoundContext.js";
|
|
18
|
-
const
|
|
16
|
+
const v = {
|
|
19
17
|
createSignatory: "createSignatory",
|
|
20
18
|
inviteSignatory: "inviteSignatory"
|
|
21
|
-
}, [
|
|
19
|
+
}, [x, C] = t("AssignSignatoryContext");
|
|
22
20
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
C as AssignSignatoryProvider,
|
|
22
|
+
v as SignatoryAssignmentMode,
|
|
23
|
+
x as useAssignSignatory
|
|
26
24
|
};
|
|
27
25
|
//# sourceMappingURL=useAssignSignatory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAssignSignatory.js","sources":["../../../../src/components/Company/AssignSignatory/useAssignSignatory.ts"],"sourcesContent":["import { type CreateSignatoryDefaultValues } from './CreateSignatory'\nimport { type InviteSignatoryDefaultValues } from './InviteSignatory'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\n/** @internal */\nexport const SignatoryAssignmentMode = {\n createSignatory: 'createSignatory',\n inviteSignatory: 'inviteSignatory',\n} as const\n\n/**\n * Default values for the create and invite forms rendered by {@link AssignSignatory}.\n *\n * @remarks\n * At least one of `create` or `invite` must be provided.\n *\n * @public\n */\nexport type AssignSignatoryDefaultValues = RequireAtLeastOne<{\n create?: CreateSignatoryDefaultValues\n invite?: InviteSignatoryDefaultValues\n}>\n\ntype AssignSignatoryContextType = {\n companyId: string\n signatoryId?: string\n defaultValues?: AssignSignatoryDefaultValues\n onSignatoryAssignmentModeChange: (mode: string) => void\n onSignatoryFormEvent: BaseComponentInterface['onEvent']\n}\n\nconst [useAssignSignatory, AssignSignatoryProvider] =\n createCompoundContext<AssignSignatoryContextType>('AssignSignatoryContext')\n\nexport { useAssignSignatory, AssignSignatoryProvider }\n"],"names":["SignatoryAssignmentMode","useAssignSignatory","AssignSignatoryProvider","createCompoundContext"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAssignSignatory.js","sources":["../../../../src/components/Company/AssignSignatory/useAssignSignatory.ts"],"sourcesContent":["import { type CreateSignatoryDefaultValues } from './CreateSignatory'\nimport { type InviteSignatoryDefaultValues } from './InviteSignatory'\nimport type { BaseComponentInterface } from '@/components/Base'\nimport { createCompoundContext } from '@/components/Base'\nimport type { RequireAtLeastOne } from '@/types/Helpers'\n\n/** @internal */\nexport const SignatoryAssignmentMode = {\n createSignatory: 'createSignatory',\n inviteSignatory: 'inviteSignatory',\n} as const\n\n/**\n * Default values for the create and invite forms rendered by {@link AssignSignatory}.\n *\n * @remarks\n * At least one of `create` or `invite` must be provided.\n *\n * @public\n */\nexport type AssignSignatoryDefaultValues = RequireAtLeastOne<{\n create?: CreateSignatoryDefaultValues\n invite?: InviteSignatoryDefaultValues\n}>\n\ntype AssignSignatoryContextType = {\n companyId: string\n signatoryId?: string\n defaultValues?: AssignSignatoryDefaultValues\n onSignatoryAssignmentModeChange: (mode: string) => void\n onSignatoryFormEvent: BaseComponentInterface['onEvent']\n}\n\nconst [useAssignSignatory, AssignSignatoryProvider] =\n createCompoundContext<AssignSignatoryContextType>('AssignSignatoryContext')\n\nexport { useAssignSignatory, AssignSignatoryProvider }\n"],"names":["SignatoryAssignmentMode","useAssignSignatory","AssignSignatoryProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAOO,MAAMA,IAA0B;AAAA,EACrC,iBAAiB;AAAA,EACjB,iBAAiB;AACnB,GAuBM,CAACC,GAAoBC,CAAuB,IAChDC,EAAkD,wBAAwB;"}
|
|
@@ -9,15 +9,13 @@ import "@gusto/embedded-api/models/errors/gustoembeddederror";
|
|
|
9
9
|
import "@gusto/embedded-api/models/errors/sdkvalidationerror";
|
|
10
10
|
import "@gusto/embedded-api/models/errors/unprocessableentityerror";
|
|
11
11
|
import "@gusto/embedded-api/models/errors/httpclienterrors";
|
|
12
|
-
import "dompurify";
|
|
13
|
-
import "../../../../contexts/LocaleProvider/useLocale.js";
|
|
14
12
|
import "../../../../shared/constants.js";
|
|
15
13
|
import "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
16
14
|
import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
|
|
17
15
|
import { createCompoundContext as o } from "../../../Base/createCompoundContext.js";
|
|
18
|
-
const [
|
|
16
|
+
const [d, s] = o("BankAccountContext");
|
|
19
17
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
s as BankAccountFormProvider,
|
|
19
|
+
d as useBankAccountForm
|
|
22
20
|
};
|
|
23
21
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.js","sources":["../../../../../src/components/Company/BankAccount/BankAccountForm/context.ts"],"sourcesContent":["import { createCompoundContext } from '@/components/Base'\nimport { type OnEventType } from '@/components/Base/useBase'\nimport { type EventType } from '@/shared/constants'\n\ntype BankAccountFormContextType = {\n isPending: boolean\n isEditing: boolean\n onEvent: OnEventType<EventType, unknown>\n}\n\nconst [useBankAccountForm, BankAccountFormProvider] =\n createCompoundContext<BankAccountFormContextType>('BankAccountContext')\n\nexport { useBankAccountForm, BankAccountFormProvider }\n"],"names":["useBankAccountForm","BankAccountFormProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAUA,MAAM,CAACA,GAAoBC,CAAuB,IAChDC,EAAkD,oBAAoB;"}
|
|
@@ -9,17 +9,15 @@ import "@gusto/embedded-api/models/errors/gustoembeddederror";
|
|
|
9
9
|
import "@gusto/embedded-api/models/errors/sdkvalidationerror";
|
|
10
10
|
import "@gusto/embedded-api/models/errors/unprocessableentityerror";
|
|
11
11
|
import "@gusto/embedded-api/models/errors/httpclienterrors";
|
|
12
|
-
import "dompurify";
|
|
13
|
-
import "../../../../contexts/LocaleProvider/useLocale.js";
|
|
14
12
|
import "../../../../shared/constants.js";
|
|
15
13
|
import "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
16
14
|
import "../../../../contexts/LoadingIndicatorProvider/useLoadingIndicator.js";
|
|
17
15
|
import { createCompoundContext as t } from "../../../Base/createCompoundContext.js";
|
|
18
|
-
const [
|
|
16
|
+
const [d, f] = t(
|
|
19
17
|
"CompanyDocumentListContext"
|
|
20
18
|
);
|
|
21
19
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
f as DocumentListProvider,
|
|
21
|
+
d as useDocumentList
|
|
24
22
|
};
|
|
25
23
|
//# sourceMappingURL=useDocumentList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDocumentList.js","sources":["../../../../../src/components/Company/DocumentSigner/DocumentList/useDocumentList.ts"],"sourcesContent":["import { type Signatory } from '@gusto/embedded-api/models/components/signatory'\nimport { type Form as FormSchema } from '@gusto/embedded-api/models/components/form'\nimport { createCompoundContext } from '@/components/Base'\n\ntype DocumentListContextType = {\n companyForms: FormSchema[]\n documentListError: Error | null\n handleRequestFormToSign: (form: FormSchema) => void\n handleChangeSignatory: () => void\n handleContinue: () => void\n isSelfSignatory: boolean\n signatory?: Signatory\n}\n\nconst [useDocumentList, DocumentListProvider] = createCompoundContext<DocumentListContextType>(\n 'CompanyDocumentListContext',\n)\n\nexport { useDocumentList, DocumentListProvider }\n"],"names":["useDocumentList","DocumentListProvider","createCompoundContext"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAM,CAACA,GAAiBC,CAAoB,IAAIC;AAAA,EAC9C;AACF;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { CheckboxHookField as e } from "../../../../../partner-hook-utils/form/fields/CheckboxHookField.js";
|
|
3
|
+
import { TextInputHookField as i } from "../../../../../partner-hook-utils/form/fields/TextInputHookField.js";
|
|
4
4
|
function u(r) {
|
|
5
|
-
return /* @__PURE__ */ o(
|
|
5
|
+
return /* @__PURE__ */ o(i, { ...r, name: "signature" });
|
|
6
6
|
}
|
|
7
7
|
function f(r) {
|
|
8
|
-
return /* @__PURE__ */ o(
|
|
8
|
+
return /* @__PURE__ */ o(e, { ...r, name: "confirmSignature" });
|
|
9
9
|
}
|
|
10
10
|
export {
|
|
11
11
|
f as ConfirmSignatureField,
|