@taxbit/react-sdk 0.0.16 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -42
- package/dist/App.d.ts +1 -1
- package/dist/basic.css +32 -6
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +2 -2
- package/dist/components/Form/Form.d.ts +8 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Notification/Notification.d.ts +2 -2
- package/dist/components/Row/Row.d.ts +2 -2
- package/dist/components/index.d.ts +7 -8
- package/dist/contexts/FormUI/index.d.ts +3 -3
- package/dist/contexts/FormUI/useFormUI.d.ts +18 -117
- package/dist/contexts/FormUI/useFormUIContext.d.ts +32 -632
- package/dist/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +6 -5
- package/dist/contexts/TaxDocumentation/useTaxDocumentation.d.ts +11 -10
- package/dist/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +194 -112
- package/dist/entry/index.d.ts +5 -6
- package/dist/hooks/useTaxBit/useTaxBit.d.ts +108 -4
- package/dist/i18n/i18n.d.ts +1 -1
- package/dist/i18n/index.d.ts +1 -2
- package/dist/i18n/locales/bg-bg.d.ts +2 -0
- package/dist/i18n/locales/cs-cz.d.ts +2 -0
- package/dist/i18n/locales/da-dk.d.ts +2 -0
- package/dist/i18n/locales/de-at.d.ts +2 -0
- package/dist/i18n/locales/de-de.d.ts +1 -1
- package/dist/i18n/locales/el-cy.d.ts +2 -0
- package/dist/i18n/locales/el-gr.d.ts +2 -0
- package/dist/i18n/locales/en-gb.d.ts +1 -1
- package/dist/i18n/locales/en-us.d.ts +1 -1
- package/dist/i18n/locales/es-es.d.ts +1 -1
- package/dist/i18n/locales/et-ee.d.ts +2 -0
- package/dist/i18n/locales/fi-fi.d.ts +2 -0
- package/dist/i18n/locales/fr-fr.d.ts +1 -1
- package/dist/i18n/locales/fr-lu.d.ts +2 -0
- package/dist/i18n/locales/ga-ie.d.ts +2 -0
- package/dist/i18n/locales/hr-hr.d.ts +2 -0
- package/dist/i18n/locales/hu-hu.d.ts +2 -0
- package/dist/i18n/locales/index.d.ts +21 -1
- package/dist/i18n/locales/it-it.d.ts +1 -1
- package/dist/i18n/locales/lt-lt.d.ts +2 -0
- package/dist/i18n/locales/lv-lv.d.ts +2 -0
- package/dist/i18n/locales/mt-mt.d.ts +2 -0
- package/dist/i18n/locales/nl-be.d.ts +2 -0
- package/dist/i18n/locales/nl-nl.d.ts +1 -1
- package/dist/i18n/locales/no-no.d.ts +1 -1
- package/dist/i18n/locales/pl-pl.d.ts +2 -0
- package/dist/i18n/locales/pt-pt.d.ts +1 -1
- package/dist/i18n/locales/ro-ro.d.ts +2 -0
- package/dist/i18n/locales/sk-sk.d.ts +2 -0
- package/dist/i18n/locales/sl-si.d.ts +2 -0
- package/dist/i18n/locales/sv-se.d.ts +1 -1
- package/dist/i18n/types/LocalizationKey.d.ts +10 -10
- package/dist/i18n/types/PropertyFile.d.ts +6 -2
- package/dist/i18n/types/index.d.ts +0 -1
- package/dist/i18n/utils/getText.d.ts +16 -15
- package/dist/index.css +4 -0
- package/dist/inline.css +33 -6
- package/dist/lookups/dayOptions.d.ts +1 -1
- package/dist/lookups/index.d.ts +3 -2
- package/dist/lookups/localeOptions.d.ts +4 -0
- package/dist/lookups/toOptions.d.ts +3 -0
- package/dist/minimal.css +0 -1
- package/dist/services/api.d.ts +3 -2
- package/dist/taxbit-react-sdk.es.js +18748 -6610
- package/dist/taxbit-react-sdk.umd.js +10 -10
- package/dist/test/Wrapper.d.ts +7 -0
- package/dist/test/getWrapper.d.ts +4 -0
- package/dist/test/index.d.ts +2 -0
- package/dist/types/Locale.d.ts +1 -0
- package/dist/types/TaxDocumentation.d.ts +8 -5
- package/dist/types/client/index.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/{external → server}/ComprehensiveTaxDocumentation.d.ts +7 -11
- package/dist/types/server/TaxDocumentationStatus.d.ts +9 -0
- package/dist/types/server/enums.d.ts +13 -0
- package/dist/types/server/index.d.ts +3 -0
- package/dist/ui/DateOfBirthInput/DateOfBirthInput.d.ts +1 -2
- package/dist/ui/DateOfBirthInput/__tests__/useDateOfBirthInput.test.d.ts +1 -0
- package/dist/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +20 -0
- package/dist/ui/HideShowButton/HideShowButton.d.ts +5 -0
- package/dist/ui/HideShowButton/index.d.ts +1 -0
- package/dist/ui/MaskedContent/MaskedContent.d.ts +4 -0
- package/dist/ui/MaskedContent/index.d.ts +1 -0
- package/dist/ui/MaskedInput/MaskedInput.d.ts +10 -0
- package/dist/ui/MaskedInput/index.d.ts +1 -0
- package/dist/ui/Password/Password.d.ts +10 -0
- package/dist/ui/Password/index.d.ts +1 -0
- package/dist/ui/RadioButtons/RadioButtons.d.ts +3 -3
- package/dist/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +0 -0
- package/dist/ui/TextInput/TextInput.d.ts +2 -1
- package/dist/ui/index.d.ts +2 -0
- package/dist/utils/getFieldsState.d.ts +4 -3
- package/dist/utils/getHintKeyMap.d.ts +4 -3
- package/dist/utils/getMonthlyDayCount.d.ts +1 -0
- package/dist/utils/getPromptKeyMap.d.ts +6 -5
- package/dist/utils/index.d.ts +10 -14
- package/dist/utils/kebabCase.d.ts +1 -0
- package/dist/utils/{getForeignAccountType.d.ts → transformInbound/getForeignAccountType.d.ts} +1 -1
- package/dist/utils/{getForeignOtherClassification.d.ts → transformInbound/getForeignOtherClassification.d.ts} +1 -1
- package/dist/utils/{getForeignTrustClassification.d.ts → transformInbound/getForeignTrustClassification.d.ts} +1 -1
- package/dist/utils/{getLLCClassification.d.ts → transformInbound/getLLCClassification.d.ts} +1 -1
- package/dist/utils/{getUsAccountType.d.ts → transformInbound/getUsAccountType.d.ts} +1 -1
- package/dist/utils/transformInbound/index.d.ts +6 -0
- package/dist/utils/transformInbound/transformInbound.d.ts +3 -0
- package/dist/utils/transformOutbound/convertYesNoToBoolean.d.ts +2 -0
- package/dist/utils/transformOutbound/index.d.ts +6 -0
- package/dist/utils/transformOutbound/transformOutbound.d.ts +3 -0
- package/dist/utils/transformOutbound/transformToOutboundAccoutHolder.d.ts +3 -0
- package/dist/utils/transformOutbound/transformToOutboundAddress.d.ts +6 -0
- package/dist/utils/transformOutbound/transformToOutboundRegardedOwner.d.ts +3 -0
- package/dist/utils/transformOutbound/transformToOutboundTaxResidenceFields.d.ts +3 -0
- package/dist/validations/getInvalidFields.d.ts +3 -0
- package/dist/validations/getNotifiedFields.d.ts +10 -0
- package/dist/validations/getRequiredFields.d.ts +3 -0
- package/dist/validations/getSubmittableFields.d.ts +3 -0
- package/dist/{utils → validations}/getSupportedFields.d.ts +1 -1
- package/dist/validations/getVisibleFields.d.ts +3 -0
- package/dist/validations/index.d.ts +7 -1
- package/dist/validations/invalidFieldRules.d.ts +7 -0
- package/dist/validations/requiredFieldRules.d.ts +7 -0
- package/dist/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +4 -11
- package/dist/widgets/TaxBitForm/TaxBitForm.d.ts +7 -7
- package/dist/wizard/AddressInput/AddressInput.d.ts +8 -0
- package/dist/wizard/LanguageSelector/LanguageSelector.d.ts +2 -0
- package/dist/wizard/LanguageSelector/index.d.ts +1 -0
- package/dist/{paths → wizard}/PlaceOfBirthInput/PlaceOfBirthInput.d.ts +1 -1
- package/dist/{paths → wizard}/ResidenceInput/ResidenceInput.d.ts +3 -3
- package/dist/{paths → wizard}/RowInput/CheckBoxRow/CheckBoxRow.d.ts +2 -2
- package/dist/wizard/RowInput/ErrorRow/ErrorRow.d.ts +6 -0
- package/dist/wizard/RowInput/ErrorRow/index.d.ts +1 -0
- package/dist/wizard/RowInput/MaskedInputRow/MaskedInputRow.d.ts +10 -0
- package/dist/wizard/RowInput/MaskedInputRow/index.d.ts +1 -0
- package/dist/{paths → wizard}/RowInput/TextInputRow/TextInputRow.d.ts +3 -1
- package/dist/{paths → wizard}/RowInput/VisibleRow/VisibleRow.d.ts +2 -2
- package/dist/wizard/RowInput/index.d.ts +7 -0
- package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderClassification/AccountHolderClassification.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderContact/AccountHolderContact.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTax/AccountHolderTax.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/Exemptions/Exemptions.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/Summary/Recap.d.ts +1 -1
- package/dist/{paths → wizard}/TaxBitFormUI/Summary/Summary.d.ts +1 -1
- package/dist/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +4 -0
- package/dist/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +11 -0
- package/package.json +17 -9
- package/dist/components/Page/Page.d.ts +0 -6
- package/dist/components/Page/index.d.ts +0 -1
- package/dist/components/Title/Title.d.ts +0 -5
- package/dist/components/Title/index.d.ts +0 -1
- package/dist/i18n/types/Locale.d.ts +0 -1
- package/dist/paths/AddressInput/AddressInput.d.ts +0 -8
- package/dist/paths/FinancialAccountInput/FinancialAccountInput.d.ts +0 -2
- package/dist/paths/FinancialAccountInput/index.d.ts +0 -1
- package/dist/paths/RowInput/ErrorRow/ErrorRow.d.ts +0 -2
- package/dist/paths/RowInput/ErrorRow/index.d.ts +0 -1
- package/dist/paths/RowInput/index.d.ts +0 -6
- package/dist/paths/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +0 -11
- package/dist/paths/TaxBitFormUI/TaxBitFormUI.d.ts +0 -12
- package/dist/paths/VatInput/VatInput.d.ts +0 -8
- package/dist/paths/VatInput/index.d.ts +0 -1
- package/dist/types/external/index.d.ts +0 -1
- package/dist/utils/getNotifications.d.ts +0 -10
- package/dist/utils/getVisibleQuestions.d.ts +0 -6
- package/dist/utils/transformInbound.d.ts +0 -3
- package/dist/utils/transformOutbound.d.ts +0 -3
- package/dist/validations/validations.d.ts +0 -7
- /package/dist/{taxbit-react-sdk.es.d.ts → index.d.ts} +0 -0
- /package/dist/{paths → wizard}/AddressInput/index.d.ts +0 -0
- /package/dist/{paths → wizard}/PlaceOfBirthInput/index.d.ts +0 -0
- /package/dist/{paths → wizard}/ResidenceInput/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/CheckBoxRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/DateOfBirthRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/RadioButtonRow/RadioButtonRow.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/RadioButtonRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/SelectRow/SelectRow.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/SelectRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/TextInputRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/ToggleButtonRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/RowInput/VisibleRow/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderClassification/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderContact/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTax/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/Exemptions/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerContact/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/RegardedOwnerTax/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/Summary/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/index.d.ts +0 -0
- /package/dist/{paths → wizard}/TaxBitFormUI/steps.d.ts +0 -0
- /package/dist/{paths → wizard}/index.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { CountryCode } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CountryCode } from 'types';
|
|
3
3
|
type AddressProps = {
|
|
4
4
|
index: 1 | 2 | 3 | 4 | 5;
|
|
5
5
|
showIf?: boolean;
|
|
@@ -9,5 +9,5 @@ type AddressProps = {
|
|
|
9
9
|
label: string;
|
|
10
10
|
}>;
|
|
11
11
|
};
|
|
12
|
-
export declare const ResidenceInput: ({ index, showIf, more, countryOptions, }: AddressProps) => React.JSX.Element |
|
|
12
|
+
export declare const ResidenceInput: ({ index, showIf, more, countryOptions, }: AddressProps) => React.JSX.Element | null;
|
|
13
13
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CheckBoxProps } from "ui";
|
|
3
3
|
type CheckBoxRowProps = {
|
|
4
|
-
label?:
|
|
5
|
-
subLabel?:
|
|
4
|
+
label?: boolean;
|
|
5
|
+
subLabel?: boolean;
|
|
6
6
|
};
|
|
7
7
|
export declare const CheckBoxRow: ({ name, label, subLabel, onClick, }: CheckBoxProps & CheckBoxRowProps) => React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ErrorRow.tsx';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MaskedInputProps } from "ui";
|
|
3
|
+
type MaskedInputRowProps = {
|
|
4
|
+
label?: true;
|
|
5
|
+
subLabel?: true;
|
|
6
|
+
hint?: true;
|
|
7
|
+
onChange?: (val: string) => string;
|
|
8
|
+
};
|
|
9
|
+
export declare const MaskedInputRow: ({ name, label, hint, subLabel, onChange, }: MaskedInputProps & MaskedInputRowProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MaskedInputRow";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { TextInputProps } from "ui";
|
|
3
|
+
import { TaxDocumentationKey } from "types";
|
|
3
4
|
type TextInputRowProps = {
|
|
4
5
|
label?: true;
|
|
5
6
|
subLabel?: true;
|
|
6
7
|
hint?: true;
|
|
7
8
|
onChange?: (val: string) => string;
|
|
9
|
+
syncName?: TaxDocumentationKey;
|
|
8
10
|
};
|
|
9
|
-
export declare const TextInputRow: ({ name, label, hint, subLabel, onChange, disabled, }: TextInputProps & TextInputRowProps) => React.JSX.Element;
|
|
11
|
+
export declare const TextInputRow: ({ name, label, hint, subLabel, onChange, disabled, syncName, }: TextInputProps & TextInputRowProps) => React.JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { TaxDocumentationKey } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TaxDocumentationKey } from 'types';
|
|
3
3
|
export declare const VisibleRow: ({ label, subLabel, name, children, onEdit, notification, }: {
|
|
4
4
|
label?: boolean | undefined;
|
|
5
5
|
subLabel?: boolean | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const AccountHolderClassification: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const AccountHolderContact: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const AccountHolderTax: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const AccountHolderTaxClarification: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const Exemptions: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const RegardedOwnerClassification: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const RegardedOwnerContact: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const RegardedOwnerTax: () => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export declare const Recap: () => React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TaxBitFormUIProps } from './TaxBitFormUI';
|
|
3
|
+
export type TaxDocumentationDAC7PathProps = Omit<TaxBitFormUIProps, 'taxForms'>;
|
|
4
|
+
export declare const TaxBitDAC7FormUI: ({ data, onSubmit, language, }: TaxDocumentationDAC7PathProps) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Locale, TaxDocumentation, TaxForm } from '../../types';
|
|
3
|
+
import { ClientTaxDocumentation } from '../../types/client';
|
|
4
|
+
export type TaxBitFormUIProps = {
|
|
5
|
+
data?: ClientTaxDocumentation;
|
|
6
|
+
onSubmit: (data: TaxDocumentation) => void;
|
|
7
|
+
language?: Locale;
|
|
8
|
+
taxForms?: TaxForm[];
|
|
9
|
+
complete?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const TaxBitFormUI: ({ data, onSubmit, language, taxForms, complete, }: TaxBitFormUIProps) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taxbit/react-sdk",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "TaxBit Tax Documentation",
|
|
5
5
|
"author": "TaxBit",
|
|
6
6
|
"type": "module",
|
|
@@ -8,17 +8,19 @@
|
|
|
8
8
|
"dist",
|
|
9
9
|
"dist/widget.css"
|
|
10
10
|
],
|
|
11
|
-
"main": "./dist/taxbit-react-sdk.
|
|
11
|
+
"main": "./dist/taxbit-react-sdk.umd.js",
|
|
12
12
|
"module": "./dist/taxbit-react-sdk.es.js",
|
|
13
13
|
"exports": {
|
|
14
14
|
"./style/basic.css": "./dist/basic.css",
|
|
15
15
|
"./style/inline.css": "./dist/inline.css",
|
|
16
16
|
"./style/minimal.css": "./dist/minimal.css",
|
|
17
17
|
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
18
19
|
"import": "./dist/taxbit-react-sdk.es.js",
|
|
19
20
|
"require": "./dist/taxbit-react-sdk.umd.js"
|
|
20
21
|
}
|
|
21
22
|
},
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
22
24
|
"publishConfig": {
|
|
23
25
|
"@taxbit:registry": "https://registry.npmjs.org",
|
|
24
26
|
"access": "public"
|
|
@@ -31,15 +33,19 @@
|
|
|
31
33
|
"test": "vitest"
|
|
32
34
|
},
|
|
33
35
|
"dependencies": {
|
|
34
|
-
"react": "^18.2.0",
|
|
35
|
-
"react-dom": "^18.2.0",
|
|
36
|
-
"react-input-mask": "^2.0.4",
|
|
37
|
-
"type-fest": "^4.3.2"
|
|
38
|
-
},
|
|
39
|
-
"devDependencies": {
|
|
40
36
|
"@types/node": "^18.17.0",
|
|
41
37
|
"@types/react": "^18.2.15",
|
|
42
38
|
"@types/react-dom": "^18.2.7",
|
|
39
|
+
"type-fest": "^4.3.2",
|
|
40
|
+
"camelcase-keys": "^9.1.2"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": "^18.0.0",
|
|
44
|
+
"react-dom": "^18.0.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@testing-library/react": "^14.0.0",
|
|
48
|
+
"@testing-library/jest-dom": "^6.1.4",
|
|
43
49
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
44
50
|
"@typescript-eslint/parser": "^6.0.0",
|
|
45
51
|
"@vitejs/plugin-react": "^4.0.3",
|
|
@@ -47,7 +53,9 @@
|
|
|
47
53
|
"eslint-plugin-import": "^2.25.3",
|
|
48
54
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
49
55
|
"eslint-plugin-react-refresh": "^0.4.3",
|
|
50
|
-
"
|
|
56
|
+
"happy-dom": "^12.9.1",
|
|
57
|
+
"react": "^18.0.0",
|
|
58
|
+
"react-dom": "^18.0.0",
|
|
51
59
|
"typescript": "^5.0.2",
|
|
52
60
|
"vite": "^4.4.5",
|
|
53
61
|
"vite-plugin-dts": "^3.3.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Page";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Title.tsx';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Locale = "en-us" | "de-de" | "en-gb" | "it-it" | "nl-nl" | "no-no" | "sv-se" | "fr-fr" | "es-es" | "pt-pt";
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type AddressProps = {
|
|
3
|
-
prompt: string;
|
|
4
|
-
showIf?: boolean;
|
|
5
|
-
prefix: "accountHolderAddress" | "accountHolderMailingAddress" | "regardedOwnerAddress" | "regardedOwnerMailingAddress";
|
|
6
|
-
};
|
|
7
|
-
export declare const AddressInput: ({ prompt, prefix, showIf, }: AddressProps) => React.JSX.Element | undefined;
|
|
8
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./FinancialAccountInput";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./ErrorRow";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { Locale } from "../../i18n";
|
|
3
|
-
import type { TaxDocumentation } from "../../types";
|
|
4
|
-
import { ClientTaxDocumentation } from "../../types/external";
|
|
5
|
-
type TaxDocumentationDAC7PathProps = {
|
|
6
|
-
data?: ClientTaxDocumentation;
|
|
7
|
-
onSubmit: (data: TaxDocumentation) => void;
|
|
8
|
-
language?: Locale;
|
|
9
|
-
};
|
|
10
|
-
export declare const TaxBitDAC7FormUI: ({ data, onSubmit, language, }: TaxDocumentationDAC7PathProps) => React.JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { Locale } from "../../i18n";
|
|
3
|
-
import type { TaxForm, TaxDocumentation } from "../../types";
|
|
4
|
-
import { ClientTaxDocumentation } from "../../types/external";
|
|
5
|
-
type TaxBitFormUIProps = {
|
|
6
|
-
data?: ClientTaxDocumentation;
|
|
7
|
-
onSubmit: (data: TaxDocumentation) => void;
|
|
8
|
-
language?: Locale;
|
|
9
|
-
taxForms?: TaxForm[];
|
|
10
|
-
};
|
|
11
|
-
export declare const TaxBitFormUI: ({ data, onSubmit, language, taxForms, }: TaxBitFormUIProps) => React.JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./VatInput";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./ComprehensiveTaxDocumentation";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TaxDocumentation, TaxDocumentationKey } from "../types";
|
|
2
|
-
import { NotificationKey } from "../i18n/types";
|
|
3
|
-
export type NotificationRule = ((value: string | undefined, fields: TaxDocumentation) => NotificationKey | undefined) | ((value: string | undefined) => NotificationKey | undefined);
|
|
4
|
-
export type Notifications = {
|
|
5
|
-
[key in TaxDocumentationKey]?: NotificationKey;
|
|
6
|
-
};
|
|
7
|
-
export type NotificationRules = {
|
|
8
|
-
[key in TaxDocumentationKey]?: NotificationRule;
|
|
9
|
-
};
|
|
10
|
-
export declare const getNotifications: (shownFields: Set<TaxDocumentationKey>, fields: TaxDocumentation) => Notifications;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { TaxForm, TaxDocumentation, TaxDocumentationKey } from "types";
|
|
2
|
-
type TaxDocumentationPropertyFile = {
|
|
3
|
-
[key in TaxDocumentationKey]: boolean;
|
|
4
|
-
};
|
|
5
|
-
export declare const getVisibleQuestions: (fields: TaxDocumentation, supportedForms: TaxForm[]) => TaxDocumentationPropertyFile;
|
|
6
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TaxDocumentation, TaxDocumentationKey } from "types/TaxDocumentation";
|
|
2
|
-
import { ErrorKey } from "i18n/types";
|
|
3
|
-
export type FormUIValidation = ((value: string | undefined, fields: TaxDocumentation) => ErrorKey | undefined) | ((value: string | undefined) => ErrorKey | undefined);
|
|
4
|
-
export type FormUIValidations = {
|
|
5
|
-
[key in TaxDocumentationKey]?: FormUIValidation;
|
|
6
|
-
};
|
|
7
|
-
export declare const validations: FormUIValidations;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|