@gusto/embedded-react-sdk 0.0.4 → 0.0.5
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/README.md +6 -0
- package/dist/{COOQDZLH-B5iac4ID.js → BMGNQTAT-BdHbew7H.js} +3 -3
- package/dist/{COOQDZLH-B5iac4ID.js.map → BMGNQTAT-BdHbew7H.js.map} +1 -1
- package/dist/Employee.Compensation-k6cvnqx0.js +69 -0
- package/dist/Employee.Compensation-k6cvnqx0.js.map +1 -0
- package/dist/Employee.Deductions-BKQWMJnY.js +75 -0
- package/dist/Employee.Deductions-BKQWMJnY.js.map +1 -0
- package/dist/Employee.EmployeeList-Bh2iUvGI.js +36 -0
- package/dist/Employee.EmployeeList-Bh2iUvGI.js.map +1 -0
- package/dist/Employee.OnboardingSummary-BDFFDrV6.js +32 -0
- package/dist/Employee.OnboardingSummary-BDFFDrV6.js.map +1 -0
- package/dist/Employee.PaymentMethod-B1tieS6Y.js +96 -0
- package/dist/Employee.PaymentMethod-B1tieS6Y.js.map +1 -0
- package/dist/Employee.Profile-D0IZW-HV.js +53 -0
- package/dist/Employee.Profile-D0IZW-HV.js.map +1 -0
- package/dist/Employee.Taxes-DnOVtPmd.js +53 -0
- package/dist/Employee.Taxes-DnOVtPmd.js.map +1 -0
- package/dist/{VREWMQAW-BCWuoH6G.js → STCWXWCR-C2HWmWAx.js} +4 -4
- package/dist/{VREWMQAW-BCWuoH6G.js.map → STCWXWCR-C2HWmWAx.js.map} +1 -1
- package/dist/{MU7WGUJF-D3o-8MpJ.js → UODQIBEW-3KqHTTDo.js} +3 -3
- package/dist/{MU7WGUJF-D3o-8MpJ.js.map → UODQIBEW-3KqHTTDo.js.map} +1 -1
- package/dist/index-CYu59Yku.js +33097 -0
- package/dist/index-CYu59Yku.js.map +1 -0
- package/dist/{src/generated/schema.d.ts → index.d.ts} +18917 -15295
- package/dist/index.js +39 -38
- package/dist/style.css +1 -1
- package/package.json +10 -4
- package/dist/Employee.Compensation-BwQ0aU6j.js +0 -69
- package/dist/Employee.Compensation-BwQ0aU6j.js.map +0 -1
- package/dist/Employee.Deductions-v07AzjHC.js +0 -52
- package/dist/Employee.Deductions-v07AzjHC.js.map +0 -1
- package/dist/Employee.EmployeeList-ezoiz5mY.js +0 -34
- package/dist/Employee.EmployeeList-ezoiz5mY.js.map +0 -1
- package/dist/Employee.OnboardingSummary-CX_vCaZK.js +0 -34
- package/dist/Employee.OnboardingSummary-CX_vCaZK.js.map +0 -1
- package/dist/Employee.PaymentMethod-lPeUXCVJ.js +0 -56
- package/dist/Employee.PaymentMethod-lPeUXCVJ.js.map +0 -1
- package/dist/Employee.Profile-B_wp6Ee2.js +0 -53
- package/dist/Employee.Profile-B_wp6Ee2.js.map +0 -1
- package/dist/Employee.Taxes-DrKjSqOM.js +0 -48
- package/dist/Employee.Taxes-DrKjSqOM.js.map +0 -1
- package/dist/index-G-nwCZPb.js +0 -32491
- package/dist/index-G-nwCZPb.js.map +0 -1
- package/dist/src/api/client.d.ts +0 -1361
- package/dist/src/api/constants.d.ts +0 -1
- package/dist/src/api/context.d.ts +0 -14
- package/dist/src/api/queries/company.d.ts +0 -267
- package/dist/src/api/queries/employee.d.ts +0 -586
- package/dist/src/api/queries/helpers.d.ts +0 -19
- package/dist/src/api/queries/index.d.ts +0 -3
- package/dist/src/api/queries/payroll.d.ts +0 -26
- package/dist/src/api/typeHelpers.d.ts +0 -18
- package/dist/src/components/Base/Base.d.ts +0 -25
- package/dist/src/components/Base/index.d.ts +0 -1
- package/dist/src/components/Common/Alert/Alert.d.ts +0 -6
- package/dist/src/components/Common/Button/Button.d.ts +0 -8
- package/dist/src/components/Common/Checkbox/Checkbox.d.ts +0 -7
- package/dist/src/components/Common/DateField/DateField.d.ts +0 -8
- package/dist/src/components/Common/EmptyData/EmptyData.d.ts +0 -6
- package/dist/src/components/Common/Flex/Flex.d.ts +0 -12
- package/dist/src/components/Common/Hamburger/Hamburger.d.ts +0 -10
- package/dist/src/components/Common/InternalError/InternalError.d.ts +0 -2
- package/dist/src/components/Common/Loading/Loading.d.ts +0 -1
- package/dist/src/components/Common/NumberField/NumberField.d.ts +0 -9
- package/dist/src/components/Common/Select/Select.d.ts +0 -17
- package/dist/src/components/Common/TaxInputs/TaxInputs.d.ts +0 -21
- package/dist/src/components/Common/TaxInputs/index.d.ts +0 -1
- package/dist/src/components/Common/Toast/Toast.d.ts +0 -4
- package/dist/src/components/Common/hooks/useAsyncError.d.ts +0 -5
- package/dist/src/components/Common/index.d.ts +0 -14
- package/dist/src/components/Company/Addresses.d.ts +0 -7
- package/dist/src/components/Company/BankAccount.d.ts +0 -6
- package/dist/src/components/Company/FederalTaxes.d.ts +0 -7
- package/dist/src/components/Company/Industry.d.ts +0 -12
- package/dist/src/components/Company/Overview.d.ts +0 -7
- package/dist/src/components/Company/StateTaxes.d.ts +0 -6
- package/dist/src/components/Company/index.d.ts +0 -5
- package/dist/src/components/Employee/BankAccount.d.ts +0 -15
- package/dist/src/components/Employee/Compensation/Actions.d.ts +0 -1
- package/dist/src/components/Employee/Compensation/Compensation.d.ts +0 -60
- package/dist/src/components/Employee/Compensation/Edit.d.ts +0 -1
- package/dist/src/components/Employee/Compensation/Head.d.ts +0 -1
- package/dist/src/components/Employee/Compensation/List.d.ts +0 -1
- package/dist/src/components/Employee/Compensation/index.d.ts +0 -1
- package/dist/src/components/Employee/Deductions.d.ts +0 -7
- package/dist/src/components/Employee/EditDeduction.d.ts +0 -23
- package/dist/src/components/Employee/EmployeeList.d.ts +0 -22
- package/dist/src/components/Employee/FederalTaxes.d.ts +0 -1
- package/dist/src/components/Employee/OnboardingSummary.d.ts +0 -7
- package/dist/src/components/Employee/PaySchedules.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethod.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/Actions.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/BankAccountEdit.d.ts +0 -9
- package/dist/src/components/Employee/PaymentMethodCombo/BankAccountsList.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/Head.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/PaymentMethod.d.ts +0 -22
- package/dist/src/components/Employee/PaymentMethodCombo/PaymentTypeForm.d.ts +0 -11
- package/dist/src/components/Employee/PaymentMethodCombo/Split.d.ts +0 -1
- package/dist/src/components/Employee/PaymentMethodCombo/index.d.ts +0 -1
- package/dist/src/components/Employee/Profile/Actions.d.ts +0 -1
- package/dist/src/components/Employee/Profile/HomeAddress.d.ts +0 -12
- package/dist/src/components/Employee/Profile/PersonalDetails.d.ts +0 -40
- package/dist/src/components/Employee/Profile/Profile.d.ts +0 -37
- package/dist/src/components/Employee/Profile/index.d.ts +0 -1
- package/dist/src/components/Employee/SplitPaycheck.d.ts +0 -9
- package/dist/src/components/Employee/StateTaxes.d.ts +0 -7
- package/dist/src/components/Employee/TaxesCombo/Actions.d.ts +0 -1
- package/dist/src/components/Employee/TaxesCombo/FederalForm.d.ts +0 -13
- package/dist/src/components/Employee/TaxesCombo/FederalHead.d.ts +0 -1
- package/dist/src/components/Employee/TaxesCombo/StateForm.d.ts +0 -6
- package/dist/src/components/Employee/TaxesCombo/Taxes.d.ts +0 -20
- package/dist/src/components/Employee/TaxesCombo/index.d.ts +0 -1
- package/dist/src/components/Employee/index.d.ts +0 -9
- package/dist/src/components/Flow/CompanyOnboardingFlow.d.ts +0 -10
- package/dist/src/components/Flow/EmployeeOnboardingFlow.d.ts +0 -12
- package/dist/src/components/Flow/Flow.d.ts +0 -14
- package/dist/src/components/Flow/FlowNav.d.ts +0 -1
- package/dist/src/components/Flow/StateMachines/companyOnboarding.d.ts +0 -5
- package/dist/src/components/Flow/StateMachines/employeeOnboarding.d.ts +0 -12
- package/dist/src/components/Flow/StateMachines/index.d.ts +0 -2
- package/dist/src/components/Flow/index.d.ts +0 -3
- package/dist/src/components/Payroll/PayrollHistoryList.d.ts +0 -1
- package/dist/src/components/Payroll/index.d.ts +0 -1
- package/dist/src/components/PayrollSchedule/SetupPayrollSchedule.d.ts +0 -6
- package/dist/src/components/PayrollSchedule/index.d.ts +0 -1
- package/dist/src/components/index.d.ts +0 -4
- package/dist/src/components/sample/PaymentMethodSDK.d.ts +0 -1
- package/dist/src/contexts/GustoApiProvider/GustoApiProvider.d.ts +0 -15
- package/dist/src/contexts/GustoApiProvider/index.d.ts +0 -1
- package/dist/src/contexts/LocaleProvider/LocaleProvider.d.ts +0 -8
- package/dist/src/contexts/LocaleProvider/index.d.ts +0 -1
- package/dist/src/contexts/ThemeProvider/DefaultTheme.d.ts +0 -150
- package/dist/src/contexts/ThemeProvider/ThemeProvider.d.ts +0 -12
- package/dist/src/contexts/ThemeProvider/ThemeProvider.test.d.ts +0 -1
- package/dist/src/contexts/ThemeProvider/index.d.ts +0 -1
- package/dist/src/contexts/ThemeProvider/test-utils.d.ts +0 -5
- package/dist/src/contexts/index.d.ts +0 -2
- package/dist/src/helpers/LRUCache.d.ts +0 -7
- package/dist/src/helpers/formattedStrings.d.ts +0 -7
- package/dist/src/helpers/formatters.d.ts +0 -2
- package/dist/src/helpers/normalizeSSN.d.ts +0 -1
- package/dist/src/helpers/payRateCalculator.d.ts +0 -2
- package/dist/src/i18n/I18n.d.ts +0 -8
- package/dist/src/i18n/en/common.json.d.ts +0 -99
- package/dist/src/i18n/index.d.ts +0 -1
- package/dist/src/index.d.ts +0 -7
- package/dist/src/models/PayPeriod.d.ts +0 -18
- package/dist/src/models/Payroll.d.ts +0 -40
- package/dist/src/models/PayrollTotals.d.ts +0 -24
- package/dist/src/shared/constants.d.ts +0 -124
- package/dist/src/types.d.ts +0 -10
- package/dist/test/api/client.test.d.ts +0 -1
- package/dist/test/api/companyFederalTaxes.test.d.ts +0 -1
- package/dist/test/api/employeeBankAccounts.test.d.ts +0 -1
- package/dist/test/api/payrolls.test.d.ts +0 -1
- package/dist/test/mocks/apis/company_federal_taxes.d.ts +0 -2
- package/dist/test/mocks/apis/company_locations.d.ts +0 -2
- package/dist/test/mocks/apis/compensations.d.ts +0 -2
- package/dist/test/mocks/apis/employees.d.ts +0 -2
- package/dist/test/mocks/apis/employeesBankAccounts.d.ts +0 -2
- package/dist/test/mocks/apis/homeAddresses.d.ts +0 -2
- package/dist/test/mocks/apis/payrolls.d.ts +0 -2
- package/dist/test/mocks/apis/tokens.d.ts +0 -2
- package/dist/test/mocks/apis/typeHelpers.d.ts +0 -10
- package/dist/test/mocks/apis/workAddresses.d.ts +0 -2
- package/dist/test/mocks/fileMock.d.ts +0 -6
- package/dist/test/mocks/fixtures/company_location.d.ts +0 -11
- package/dist/test/mocks/fixtures/getFixture.d.ts +0 -1
- package/dist/test/mocks/handlers.d.ts +0 -1
- package/dist/test/mocks/server.d.ts +0 -1
- package/dist/test/mocks/styleMock.d.ts +0 -6
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const FederalFormSchema: v.ObjectSchema<{
|
|
3
|
-
readonly filing_status: v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>]>;
|
|
4
|
-
readonly two_jobs: v.BooleanSchema<undefined>;
|
|
5
|
-
readonly dependents_amount: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.TransformAction<any, string>]>;
|
|
6
|
-
readonly other_income: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.TransformAction<any, string>]>;
|
|
7
|
-
readonly deductions: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.TransformAction<any, string>]>;
|
|
8
|
-
readonly extra_withholding: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.TransformAction<any, string>]>;
|
|
9
|
-
readonly w4_data_type: v.PicklistSchema<["pre_2020_w4", "rev_2020_w4"], undefined>;
|
|
10
|
-
}, undefined>;
|
|
11
|
-
export type FederalFormInputs = v.InferInput<typeof FederalFormSchema>;
|
|
12
|
-
export type FederalFormPayload = v.InferOutput<typeof FederalFormSchema>;
|
|
13
|
-
export declare function FederalForm(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function FederalHead(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const StateFormSchema: v.ObjectSchema<{
|
|
3
|
-
readonly states: v.RecordSchema<v.StringSchema<undefined>, v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
4
|
-
}, undefined>;
|
|
5
|
-
export type StateFormPayload = v.InferOutput<typeof StateFormSchema>;
|
|
6
|
-
export declare const StateForm: () => import("react/jsx-runtime").JSX.Element[];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseComponentInterface, CommonComponentInterface } from '../../Base';
|
|
2
|
-
import { Schemas } from '../../../types';
|
|
3
|
-
interface TaxesProps extends CommonComponentInterface {
|
|
4
|
-
employeeId: string;
|
|
5
|
-
}
|
|
6
|
-
type TaxesContextType = {
|
|
7
|
-
employeeStateTaxes: Schemas['Employee-State-Tax'][];
|
|
8
|
-
isPending: boolean;
|
|
9
|
-
handleCancel: () => void;
|
|
10
|
-
};
|
|
11
|
-
declare const useTaxes: () => TaxesContextType;
|
|
12
|
-
export { useTaxes };
|
|
13
|
-
export declare function Taxes(props: TaxesProps & BaseComponentInterface): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare namespace Taxes {
|
|
15
|
-
var FederalHead: typeof import("./FederalHead").FederalHead;
|
|
16
|
-
var FederalForm: typeof import("./FederalForm").FederalForm;
|
|
17
|
-
var StateForm: () => import("react/jsx-runtime").JSX.Element[];
|
|
18
|
-
var Actions: () => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
}
|
|
20
|
-
export declare const TaxesContextual: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Taxes';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './EditDeduction';
|
|
2
|
-
export * from './EmployeeList';
|
|
3
|
-
export * from './Deductions';
|
|
4
|
-
export * from './OnboardingSummary';
|
|
5
|
-
export * from './BankAccount';
|
|
6
|
-
export * from './Profile';
|
|
7
|
-
export * from './Compensation';
|
|
8
|
-
export * from './TaxesCombo';
|
|
9
|
-
export * from './PaymentMethodCombo';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FlowContextInterface } from './Flow';
|
|
2
|
-
import { BaseComponentInterface } from '../Base';
|
|
3
|
-
interface CompanyOnboardingFlowProps {
|
|
4
|
-
companyId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface CompanyOnboardingContextInterface extends FlowContextInterface {
|
|
7
|
-
companyId: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const CompanyOnboardingFlow: ({ companyId, onEvent, }: CompanyOnboardingFlowProps & BaseComponentInterface) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FlowContextInterface } from './Flow';
|
|
2
|
-
import { BaseComponentInterface } from '../Base';
|
|
3
|
-
import { Schemas } from '../../types';
|
|
4
|
-
export interface EmployeeOnboardingFlowProps {
|
|
5
|
-
companyId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface EmployeeOnboardingContextInterface extends FlowContextInterface {
|
|
8
|
-
companyId: string;
|
|
9
|
-
employeeId?: string;
|
|
10
|
-
paymentMethod?: Schemas['Employee-Payment-Method'];
|
|
11
|
-
}
|
|
12
|
-
export declare const EmployeeOnboardingFlow: ({ companyId, onEvent, }: EmployeeOnboardingFlowProps & BaseComponentInterface) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Machine } from 'robot3';
|
|
2
|
-
import { OnEventType } from '../Base';
|
|
3
|
-
import { EventType } from '../../shared/constants';
|
|
4
|
-
type FlowProps = {
|
|
5
|
-
machine: Machine<object, FlowContextInterface>;
|
|
6
|
-
onEvent: OnEventType<EventType, unknown>;
|
|
7
|
-
};
|
|
8
|
-
export interface FlowContextInterface {
|
|
9
|
-
component: React.ComponentType | null;
|
|
10
|
-
onEvent: OnEventType<EventType, unknown>;
|
|
11
|
-
}
|
|
12
|
-
export declare const Flow: ({ onEvent, machine }: FlowProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export declare function useFlow<C extends FlowContextInterface>(): C;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const employeeOnboardingMachine: {
|
|
2
|
-
index: import('robot3').MachineState;
|
|
3
|
-
employeeProfile: import('robot3').MachineState;
|
|
4
|
-
compensation: import('robot3').MachineState;
|
|
5
|
-
employeeTaxes: import('robot3').MachineState;
|
|
6
|
-
paymentMethod: import('robot3').MachineState;
|
|
7
|
-
bankAccount: import('robot3').MachineState;
|
|
8
|
-
splitPaycheck: import('robot3').MachineState;
|
|
9
|
-
deductions: import('robot3').MachineState;
|
|
10
|
-
deductionEdit: import('robot3').MachineState;
|
|
11
|
-
summary: import('robot3').MachineState;
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BaseComponentInterface } from '../Base';
|
|
2
|
-
interface SetupPayrollScheduleProps {
|
|
3
|
-
companyId: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function SetupPayrollSchedule(props: SetupPayrollScheduleProps & BaseComponentInterface): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Resource } from 'i18next';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { GTheme } from '../../types/GTheme';
|
|
4
|
-
import { APIConfig } from '../../api/client';
|
|
5
|
-
export interface GustoApiProps {
|
|
6
|
-
config?: APIConfig;
|
|
7
|
-
dictionary?: Resource;
|
|
8
|
-
lng?: string;
|
|
9
|
-
locale?: string;
|
|
10
|
-
currency?: string;
|
|
11
|
-
theme?: GTheme;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
declare const GustoApiProvider: React.FC<GustoApiProps>;
|
|
15
|
-
export { GustoApiProvider };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GustoApiProvider';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export interface LocaleProviderProps {
|
|
2
|
-
locale: string;
|
|
3
|
-
currency: string;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const LocaleContext: import('react').Context<Omit<LocaleProviderProps, "children"> | null>;
|
|
7
|
-
export declare function LocaleProvider({ locale, currency, children, }: LocaleProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const useLocale: () => Omit<LocaleProviderProps, "children">;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LocaleProvider';
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
export declare const defaultTheme: {
|
|
2
|
-
rootFS: string;
|
|
3
|
-
spacing: {
|
|
4
|
-
readonly spacer: string;
|
|
5
|
-
readonly radius: "4px";
|
|
6
|
-
};
|
|
7
|
-
typography: {
|
|
8
|
-
readonly font: "GCentra";
|
|
9
|
-
readonly fontSize: {
|
|
10
|
-
readonly regular: string;
|
|
11
|
-
readonly small: string;
|
|
12
|
-
};
|
|
13
|
-
readonly textColor: "#1C1C1C";
|
|
14
|
-
readonly disabledTextColor: "#BABABC";
|
|
15
|
-
readonly errorTextColor: "#D5351F";
|
|
16
|
-
readonly defaultLineHeigh: "1.5rem";
|
|
17
|
-
readonly headings: {
|
|
18
|
-
readonly 1: string;
|
|
19
|
-
readonly 2: string;
|
|
20
|
-
readonly 3: string;
|
|
21
|
-
readonly 4: string;
|
|
22
|
-
readonly 5: string;
|
|
23
|
-
readonly 6: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
colors: {
|
|
27
|
-
readonly primary: {
|
|
28
|
-
readonly 100: "#FFFFFF";
|
|
29
|
-
readonly 200: "#FBFAFA";
|
|
30
|
-
readonly 300: "#F4F4F3";
|
|
31
|
-
readonly 400: "#EAEAEA";
|
|
32
|
-
readonly 500: "#DCDCDC";
|
|
33
|
-
readonly 600: "#BABABC";
|
|
34
|
-
readonly 700: "#919197";
|
|
35
|
-
readonly 800: "#6C6C72";
|
|
36
|
-
readonly 900: "#525257";
|
|
37
|
-
readonly 1000: "#1C1C1C";
|
|
38
|
-
};
|
|
39
|
-
readonly error: {
|
|
40
|
-
readonly 100: "#FFF7F5";
|
|
41
|
-
readonly 500: "#D5351F";
|
|
42
|
-
readonly 800: "#B41D08";
|
|
43
|
-
};
|
|
44
|
-
readonly warning: {
|
|
45
|
-
readonly 100: "#FFFAF2";
|
|
46
|
-
readonly 500: "#E9B550";
|
|
47
|
-
readonly 800: "#B88023";
|
|
48
|
-
};
|
|
49
|
-
readonly success: {
|
|
50
|
-
readonly 100: "#F3FAFB";
|
|
51
|
-
readonly 400: "#2BABAD";
|
|
52
|
-
readonly 500: "#0A8080";
|
|
53
|
-
readonly 800: "#005961";
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
focus: {
|
|
57
|
-
readonly color: "#DCDCDC";
|
|
58
|
-
readonly borderWidth: "2px";
|
|
59
|
-
};
|
|
60
|
-
shadow: {
|
|
61
|
-
readonly 200: "0px 4px 6px 0px rgba(28, 28, 28, 0.05), 0px 10px 15px 0px rgba(28, 28, 28, 0.10)";
|
|
62
|
-
};
|
|
63
|
-
link: {
|
|
64
|
-
readonly color: "#2BABAD";
|
|
65
|
-
readonly decoration: "underline";
|
|
66
|
-
readonly hoverColor: "#0A8080";
|
|
67
|
-
readonly hoverDecoration: "underline";
|
|
68
|
-
readonly pressedColor: "#005961";
|
|
69
|
-
};
|
|
70
|
-
input: {
|
|
71
|
-
readonly fontSize: string;
|
|
72
|
-
readonly textColor: "#1C1C1C";
|
|
73
|
-
readonly borderWidth: "1px";
|
|
74
|
-
readonly borderColor: "#6C6C72";
|
|
75
|
-
readonly background: "#FFFFFF";
|
|
76
|
-
readonly disabled: {
|
|
77
|
-
readonly color: "#6C6C72";
|
|
78
|
-
readonly border: "#DCDCDC";
|
|
79
|
-
readonly bg: "#F4F4F3";
|
|
80
|
-
};
|
|
81
|
-
readonly placeholderColor: "#6C6C72";
|
|
82
|
-
readonly padding: string;
|
|
83
|
-
readonly descriptionColor: "#525257";
|
|
84
|
-
readonly disabledColor: "#BABABC";
|
|
85
|
-
};
|
|
86
|
-
button: {
|
|
87
|
-
readonly fontSize: string;
|
|
88
|
-
readonly fontWeight: 500;
|
|
89
|
-
readonly borderWidth: "2px";
|
|
90
|
-
readonly paddingX: string;
|
|
91
|
-
readonly paddingY: string;
|
|
92
|
-
readonly primary: {
|
|
93
|
-
readonly color: "#FFFFFF";
|
|
94
|
-
readonly bg: "#1C1C1C";
|
|
95
|
-
readonly borderColor: "#1C1C1C";
|
|
96
|
-
readonly hoverBg: "#525257";
|
|
97
|
-
readonly hoverColor: "#FFFFFF";
|
|
98
|
-
readonly disabledBg: "#919197";
|
|
99
|
-
readonly focusColor: "#1C1C1C";
|
|
100
|
-
};
|
|
101
|
-
readonly secondary: {
|
|
102
|
-
readonly color: "#1C1C1C";
|
|
103
|
-
readonly bg: "#FFFFFF";
|
|
104
|
-
readonly borderColor: "#1C1C1C";
|
|
105
|
-
readonly hoverBg: "#FBFAFA";
|
|
106
|
-
readonly hoverColor: "#525257";
|
|
107
|
-
readonly disabledBg: "#FFFFFF";
|
|
108
|
-
readonly focusColor: "#525257";
|
|
109
|
-
};
|
|
110
|
-
readonly tertiary: {
|
|
111
|
-
readonly color: "#1C1C1C";
|
|
112
|
-
readonly bg: "#FFFFFF";
|
|
113
|
-
readonly borderColor: "transparent";
|
|
114
|
-
readonly hoverBg: "#FBFAFA";
|
|
115
|
-
readonly hoverColor: "#525257";
|
|
116
|
-
readonly disabledBg: "#FFFFFF";
|
|
117
|
-
readonly focusColor: "#525257";
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
radio: {
|
|
121
|
-
readonly borderColor: "#919197";
|
|
122
|
-
readonly hoveredBorderColor: "#6C6C72";
|
|
123
|
-
readonly pressedBorderColor: "#1C1C1C";
|
|
124
|
-
readonly selectedBorderColor: "#525257";
|
|
125
|
-
readonly disabledBorderColor: "#BABABC";
|
|
126
|
-
readonly disabledLabelColor: "#BABABC";
|
|
127
|
-
readonly labelColor: "#1C1C1C";
|
|
128
|
-
readonly focusRingColor: "#919197";
|
|
129
|
-
readonly errorBorderColor: "#D5351F";
|
|
130
|
-
readonly errorLabelColor: "#B41D08";
|
|
131
|
-
};
|
|
132
|
-
checkbox: {
|
|
133
|
-
readonly borderColor: "#919197";
|
|
134
|
-
readonly borderWidth: "2px";
|
|
135
|
-
};
|
|
136
|
-
table: {
|
|
137
|
-
readonly paddingX: string;
|
|
138
|
-
readonly paddingY: string;
|
|
139
|
-
readonly fontSize: string;
|
|
140
|
-
readonly textColor: "#525257";
|
|
141
|
-
readonly borderColor: "#919197";
|
|
142
|
-
readonly background: "#FFFFFF";
|
|
143
|
-
readonly headerColor: "#6C6C72";
|
|
144
|
-
readonly headerBg: "#FBFAFA";
|
|
145
|
-
readonly highlightBg: "#FBFAFA";
|
|
146
|
-
readonly highlightFg: "#6C6C72";
|
|
147
|
-
readonly columnWeight: 500;
|
|
148
|
-
};
|
|
149
|
-
optionalLabel: string;
|
|
150
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { GTheme } from '../../types/GTheme';
|
|
3
|
-
export interface ThemeProviderProps {
|
|
4
|
-
theme?: GTheme;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}
|
|
7
|
-
export interface ThemeContextProps {
|
|
8
|
-
container: React.RefObject<HTMLElement>;
|
|
9
|
-
}
|
|
10
|
-
export declare const ThemeContext: React.Context<ThemeContextProps>;
|
|
11
|
-
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
12
|
-
export declare const useTheme: () => ThemeContextProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ThemeProvider';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { RenderOptions } from '@testing-library/react';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, "wrapper">) => import('@testing-library/react').RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
4
|
-
export * from '@testing-library/react';
|
|
5
|
-
export { customRender as render };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AddressType, EmployeeType } from '../types';
|
|
2
|
-
export declare const firstLastName: ({ first_name, last_name }: EmployeeType) => string;
|
|
3
|
-
export declare const addressInline: (address: AddressType) => string;
|
|
4
|
-
export declare const currentDateString: () => string;
|
|
5
|
-
export declare function isNumberKey({ which, keyCode }: KeyboardEvent): boolean;
|
|
6
|
-
export declare const booleanToString: (value: boolean) => "true" | "false";
|
|
7
|
-
export declare const amountStr: (amount: string, isPercentage: boolean) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const normalizeSSN: (value: string) => string;
|
package/dist/src/i18n/I18n.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { default as Resources } from '../types/i18nresources';
|
|
2
|
-
export declare const defaultNS = "common";
|
|
3
|
-
/**
|
|
4
|
-
* Hook that allows component to load custom dictionary
|
|
5
|
-
* @param @private {string} ns - Namespace - should match component name exactly - not exposed to consumers
|
|
6
|
-
* @param {} overrideResource - Resource object with key/value pairs of strings
|
|
7
|
-
*/
|
|
8
|
-
export declare const useI18n: (ns: keyof Resources | null, overrideResource?: Record<string, unknown>) => void;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"status": {
|
|
3
|
-
"loading": "Loading component...",
|
|
4
|
-
"requiredField": "is a required field"
|
|
5
|
-
},
|
|
6
|
-
"optionalLabel": " (optional)",
|
|
7
|
-
"errors": {
|
|
8
|
-
"globalReactError": "Error while rendering SDK component: {{error}}",
|
|
9
|
-
"missingParamsOrContext": "{{component}} is missing {{param}} parameter or is used outside {{provider}}",
|
|
10
|
-
"unhandledEvent": "Unhandled event type: {{event}}",
|
|
11
|
-
"unknownEventType": "Unprocessed event type"
|
|
12
|
-
},
|
|
13
|
-
"icons": {
|
|
14
|
-
"selectArrow": "Show options",
|
|
15
|
-
"magnifyingGlass": "Magnifying glass"
|
|
16
|
-
},
|
|
17
|
-
"labels": {
|
|
18
|
-
"back": "Back",
|
|
19
|
-
"saveContinue": "Save & continue",
|
|
20
|
-
"submit": "Submit",
|
|
21
|
-
"name": "Name",
|
|
22
|
-
"yes": "Yes",
|
|
23
|
-
"no": "No"
|
|
24
|
-
},
|
|
25
|
-
"onboardingStatus": {
|
|
26
|
-
"undefined": "N/A",
|
|
27
|
-
"onboarding_completed": "Completed",
|
|
28
|
-
"admin_onboarding_incomplete": "Admin-onboarding Incomplete",
|
|
29
|
-
"self_onboarding_pending_invite": "Self-onboarding: Pending Invite",
|
|
30
|
-
"self_onboarding_invited": "Self-onboarding: Invited",
|
|
31
|
-
"self_onboarding_invited_started": "Self-onboarding started",
|
|
32
|
-
"self_onboarding_invited_overdue": "Self-onboarding: Overdue",
|
|
33
|
-
"self_onboarding_completed_by_employee": "Self-onboarding: Completed",
|
|
34
|
-
"self_onboarding_awaiting_admin_review": "Self-onboarding: Admin review"
|
|
35
|
-
},
|
|
36
|
-
"validations": {
|
|
37
|
-
"accountName": "Account name is required",
|
|
38
|
-
"routingNumber": "Routing number should be a number (9 digits)",
|
|
39
|
-
"accountNumber": "Account number is a required field",
|
|
40
|
-
"ssn": "Please enter valid SSN: must be 9 digits",
|
|
41
|
-
"location": "Location is not valid",
|
|
42
|
-
"dob": "Date of birth is required"
|
|
43
|
-
},
|
|
44
|
-
"statesHash": {
|
|
45
|
-
"AL": "Alabama",
|
|
46
|
-
"AK": "Alaska",
|
|
47
|
-
"AZ": "Arizona",
|
|
48
|
-
"AR": "Arkansas",
|
|
49
|
-
"CA": "California",
|
|
50
|
-
"CO": "Colorado",
|
|
51
|
-
"CT": "Connecticut",
|
|
52
|
-
"DE": "Delaware",
|
|
53
|
-
"FL": "Florida",
|
|
54
|
-
"GA": "Georgia",
|
|
55
|
-
"HI": "Hawaii",
|
|
56
|
-
"ID": "Idaho",
|
|
57
|
-
"IL": "Illinois",
|
|
58
|
-
"IN": "Indiana",
|
|
59
|
-
"IA": "Iowa",
|
|
60
|
-
"KS": "Kansas",
|
|
61
|
-
"KY": "Kentucky",
|
|
62
|
-
"LA": "Louisiana",
|
|
63
|
-
"ME": "Maine",
|
|
64
|
-
"MD": "Maryland",
|
|
65
|
-
"MA": "Massachusetts",
|
|
66
|
-
"MI": "Michigan",
|
|
67
|
-
"MN": "Minnesota",
|
|
68
|
-
"MS": "Mississippi",
|
|
69
|
-
"MO": "Missouri",
|
|
70
|
-
"MT": "Montana",
|
|
71
|
-
"NE": "Nebraska",
|
|
72
|
-
"NV": "Nevada",
|
|
73
|
-
"NH": "New Hampshire",
|
|
74
|
-
"NJ": "New Jersey",
|
|
75
|
-
"NM": "New Mexico",
|
|
76
|
-
"NY": "New York",
|
|
77
|
-
"NC": "North Carolina",
|
|
78
|
-
"ND": "North Dakota",
|
|
79
|
-
"OH": "Ohio",
|
|
80
|
-
"OK": "Oklahoma",
|
|
81
|
-
"OR": "Oregon",
|
|
82
|
-
"PA": "Pennsylvania",
|
|
83
|
-
"RI": "Rhode Island",
|
|
84
|
-
"SC": "South Carolina",
|
|
85
|
-
"SD": "South Dakota",
|
|
86
|
-
"TN": "Tennessee",
|
|
87
|
-
"TX": "Texas",
|
|
88
|
-
"UT": "Utah",
|
|
89
|
-
"VT": "Vermont",
|
|
90
|
-
"VA": "Virginia",
|
|
91
|
-
"WA": "Washington",
|
|
92
|
-
"WV": "West Virginia",
|
|
93
|
-
"WI": "Wisconsin",
|
|
94
|
-
"WY": "Wyoming"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
;
|
|
98
|
-
|
|
99
|
-
export default _default;
|
package/dist/src/i18n/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './I18n';
|
package/dist/src/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
interface PayPeriodConstructor {
|
|
2
|
-
payScheduleUuid: string;
|
|
3
|
-
startDate: Date;
|
|
4
|
-
endDate: Date;
|
|
5
|
-
}
|
|
6
|
-
export interface PayPeriodAPIData {
|
|
7
|
-
pay_schedule_uuid: string;
|
|
8
|
-
start_date: string;
|
|
9
|
-
end_date: string;
|
|
10
|
-
}
|
|
11
|
-
declare class PayPeriod {
|
|
12
|
-
payScheduleUuid: string;
|
|
13
|
-
startDate: Date;
|
|
14
|
-
endDate: Date;
|
|
15
|
-
constructor({ payScheduleUuid, startDate, endDate }: PayPeriodConstructor);
|
|
16
|
-
static fromPayPeriodData(data: PayPeriodAPIData): PayPeriod;
|
|
17
|
-
}
|
|
18
|
-
export { PayPeriod };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { PayPeriod } from './PayPeriod';
|
|
2
|
-
import { PayrollTotals } from './PayrollTotals';
|
|
3
|
-
interface PayrollConstructor {
|
|
4
|
-
uuid: string;
|
|
5
|
-
payPeriod: PayPeriod | null;
|
|
6
|
-
totals: PayrollTotals | null;
|
|
7
|
-
processed: boolean;
|
|
8
|
-
checkDate: Date;
|
|
9
|
-
payrollDeadline: Date;
|
|
10
|
-
payrollStatusMeta: PayrollStatusMeta | null;
|
|
11
|
-
}
|
|
12
|
-
declare class Payroll {
|
|
13
|
-
uuid: string;
|
|
14
|
-
payPeriod: PayPeriod | null;
|
|
15
|
-
totals: PayrollTotals | null;
|
|
16
|
-
processed: boolean;
|
|
17
|
-
checkDate: Date;
|
|
18
|
-
payrollDeadline: Date;
|
|
19
|
-
payrollStatusMeta: PayrollStatusMeta | null;
|
|
20
|
-
constructor({ uuid, payPeriod, totals, processed, checkDate, payrollDeadline, payrollStatusMeta, }: PayrollConstructor);
|
|
21
|
-
get expectedDebitDate(): Date;
|
|
22
|
-
}
|
|
23
|
-
interface PayrollStatusMetaConstructor {
|
|
24
|
-
cancellable: boolean;
|
|
25
|
-
payrollLate: boolean;
|
|
26
|
-
expectedCheckDate: Date;
|
|
27
|
-
initialCheckDate: Date;
|
|
28
|
-
expectedDebitTime: Date;
|
|
29
|
-
initialDebitCutoffTime: Date;
|
|
30
|
-
}
|
|
31
|
-
declare class PayrollStatusMeta {
|
|
32
|
-
cancellable: boolean;
|
|
33
|
-
payrollLate: boolean;
|
|
34
|
-
expectedCheckDate: Date;
|
|
35
|
-
initialCheckDate: Date;
|
|
36
|
-
expectedDebitTime: Date;
|
|
37
|
-
initialDebitCutoffTime: Date;
|
|
38
|
-
constructor({ cancellable, payrollLate, expectedCheckDate, initialCheckDate, expectedDebitTime, initialDebitCutoffTime, }: PayrollStatusMetaConstructor);
|
|
39
|
-
}
|
|
40
|
-
export { Payroll, PayrollStatusMeta };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
interface PayrollTotalsConstructor {
|
|
2
|
-
grossPay?: number;
|
|
3
|
-
employerTaxes?: number;
|
|
4
|
-
reimbursements?: number;
|
|
5
|
-
benefits?: number;
|
|
6
|
-
companyDebit?: number;
|
|
7
|
-
}
|
|
8
|
-
export interface PayrollTotalsAPIData {
|
|
9
|
-
gross_pay: string;
|
|
10
|
-
employer_taxes: string;
|
|
11
|
-
reimbursements: string;
|
|
12
|
-
benefits: string;
|
|
13
|
-
}
|
|
14
|
-
declare class PayrollTotals {
|
|
15
|
-
grossPay?: number;
|
|
16
|
-
employerTaxes?: number;
|
|
17
|
-
reimbursements?: number;
|
|
18
|
-
companyDebit?: number;
|
|
19
|
-
benefits?: number;
|
|
20
|
-
constructor({ grossPay, employerTaxes, reimbursements, benefits, companyDebit, }: PayrollTotalsConstructor);
|
|
21
|
-
static fromPayrollTotalsData(data: PayrollTotalsAPIData): PayrollTotals;
|
|
22
|
-
get payrollTotal(): number;
|
|
23
|
-
}
|
|
24
|
-
export { PayrollTotals };
|