@taxbit/react-sdk 0.4.4 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +21 -44
  2. package/dist/basic.css +27 -12
  3. package/dist/inline.css +27 -12
  4. package/dist/minimal.css +8 -1
  5. package/dist/src/contexts/FormUI/useFormUI.d.ts +2 -1
  6. package/dist/src/contexts/FormUI/useFormUIContext.d.ts +4 -2
  7. package/dist/src/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +1 -1
  8. package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +6 -4
  9. package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +6 -4
  10. package/dist/src/hooks/useTaxBit/useTaxBit.d.ts +1 -1
  11. package/dist/src/i18n/types/LocalizationKey.d.ts +2 -2
  12. package/dist/src/test/utils/helpers.d.ts +3 -0
  13. package/dist/src/ui/Actions/Actions.d.ts +3 -1
  14. package/dist/src/ui/InputValue/InputValue.d.ts +7 -0
  15. package/dist/src/ui/InputValue/index.d.ts +1 -0
  16. package/dist/src/ui/MaskedContent/MaskedContent.d.ts +3 -2
  17. package/dist/src/ui/RadioButtons/RadioButtons.d.ts +1 -1
  18. package/dist/src/ui/Select/Select.d.ts +4 -14
  19. package/dist/src/ui/TextInput/TextInput.d.ts +2 -2
  20. package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +0 -0
  21. package/dist/src/ui/index.d.ts +12 -10
  22. package/dist/src/utils/isBlank.d.ts +1 -1
  23. package/dist/src/utils/sort/byOptionalLabel.d.ts +5 -0
  24. package/dist/src/utils/sort/index.d.ts +1 -0
  25. package/dist/src/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +1 -1
  26. package/dist/src/widgets/TaxBitForm/TaxBitForm.d.ts +11 -4
  27. package/dist/src/widgets/TaxBitForm/useTaxBitForm.d.ts +2 -2
  28. package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +1 -1
  29. package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +3 -5
  30. package/dist/src/wizard/TaxBitFormUI/AppError/AppError.d.ts +4 -0
  31. package/dist/src/wizard/TaxBitFormUI/AppError/index.d.ts +1 -0
  32. package/dist/src/wizard/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +2 -2
  33. package/dist/src/wizard/TaxBitFormUI/TaxBitFormUI.d.ts +3 -7
  34. package/dist/src/wizard/TaxBitFormUI/index.d.ts +2 -2
  35. package/dist/taxbit-react-sdk.js +1958 -1696
  36. package/dist/taxbit-react-sdk.umd.cjs +10 -10
  37. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export * from './AppError.tsx';
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { TaxBitFormUIProps } from './TaxBitFormUI';
3
- export type TaxDocumentationDAC7PathProps = Omit<TaxBitFormUIProps, 'taxForms'>;
4
- export declare const TaxBitDAC7FormUI: ({ data, onSubmit, onProgress, language, complete, }: TaxDocumentationDAC7PathProps) => React.JSX.Element;
3
+ export type TaxBitDAC7FormUIProps = Omit<TaxBitFormUIProps, 'taxForms'>;
4
+ export declare const TaxBitDAC7FormUI: ({ data, onSubmit, onProgress, language, complete, }: TaxBitDAC7FormUIProps) => React.JSX.Element;
@@ -1,13 +1,9 @@
1
1
  import React from 'react';
2
- import type { Locale, Progress, TaxForm } from '../../types';
3
2
  import { ClientTaxDocumentation, ExternalValidations } from '../../types/client';
4
- export type TaxBitFormUIProps = {
5
- data?: ClientTaxDocumentation;
6
- onSubmit: (data: ClientTaxDocumentation) => void;
3
+ import { TaxBitFormProps } from '../../widgets';
4
+ export type TaxBitFormUIProps = Pick<TaxBitFormProps, 'data' | 'language' | 'taxForms' | 'onProgress'> & {
5
+ onSubmit: (data: ClientTaxDocumentation) => Promise<void> | void;
7
6
  externalValidations?: ExternalValidations;
8
- language?: Locale;
9
- taxForms?: TaxForm[];
10
7
  complete?: boolean;
11
- onProgress?: (progress: Progress) => void;
12
8
  };
13
9
  export declare const TaxBitFormUI: ({ data, onSubmit, language, taxForms, complete, onProgress, externalValidations, }: TaxBitFormUIProps) => React.JSX.Element;
@@ -1,2 +1,2 @@
1
- export * from "./TaxBitFormUI";
2
- export * from "./TaxBitDAC7FormUI";
1
+ export * from './TaxBitDAC7FormUI';
2
+ export * from './TaxBitFormUI';