@taxbit/react-sdk 1.0.0-beta.7 → 1.1.0-beta.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 +19 -3
- package/dist/index.d.ts +1 -1
- package/dist/src/App.d.ts +2 -1
- package/dist/src/components/Address/Address.d.ts +2 -1
- package/dist/src/components/Address/index.d.ts +1 -1
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +3 -2
- package/dist/src/components/ErrorBoundary/ErrorBoundary.d.ts +2 -1
- package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +2 -1
- package/dist/src/components/ErrorMessage/index.d.ts +1 -1
- package/dist/src/components/Form/Form.d.ts +2 -1
- package/dist/src/components/InputStatus/InputStatus.d.ts +3 -2
- package/dist/src/components/InputStatus/index.d.ts +1 -1
- package/dist/src/components/JsxFromString/JsxFromString.d.ts +5 -0
- package/dist/src/components/JsxFromString/index.d.ts +1 -0
- package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +3 -2
- package/dist/src/components/Row/Row.d.ts +2 -1
- package/dist/src/components/Row/index.d.ts +1 -1
- package/dist/src/components/Section/Section.d.ts +2 -1
- package/dist/src/components/Section/index.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +7 -0
- package/dist/src/contexts/{QuestionnaireUI → QuestionnaireStep}/getLocal.d.ts +1 -0
- package/dist/src/contexts/QuestionnaireStep/index.d.ts +5 -0
- package/dist/src/contexts/{QuestionnaireUI → QuestionnaireStep}/shiftResidence.d.ts +2 -1
- package/dist/src/contexts/{QuestionnaireUI/useQuestionnaireUI.d.ts → QuestionnaireStep/useQuestionnaireStep.d.ts} +11 -16
- package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +63 -0
- package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +4 -2
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +8 -9
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +29 -34
- package/dist/src/contexts/createCtx.d.ts +1 -2
- package/dist/src/contexts/index.d.ts +1 -1
- package/dist/src/entry/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +5 -3
- package/dist/src/hooks/useHandleError.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/__tests__/serverTaxDocumentation.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/types/comprehensive.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/types/w8.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/types/w9.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +3 -2
- package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +3 -2
- package/dist/src/i18n/__tests__/JsxFromString.test.d.ts +1 -0
- package/dist/src/i18n/locales/bg.d.ts +1 -1
- package/dist/src/i18n/locales/cs.d.ts +1 -1
- package/dist/src/i18n/locales/da.d.ts +1 -1
- package/dist/src/i18n/locales/de-at.d.ts +1 -1
- package/dist/src/i18n/locales/de.d.ts +2 -1
- package/dist/src/i18n/locales/el-cy.d.ts +2 -1
- package/dist/src/i18n/locales/el.d.ts +2 -1
- package/dist/src/i18n/locales/en-gb.d.ts +1 -0
- package/dist/src/i18n/locales/en-nz.d.ts +1 -0
- package/dist/src/i18n/locales/en-us.d.ts +1 -0
- package/dist/src/i18n/locales/en.d.ts +1 -0
- package/dist/src/i18n/locales/es.d.ts +1 -0
- package/dist/src/i18n/locales/et.d.ts +1 -1
- package/dist/src/i18n/locales/fi.d.ts +1 -1
- package/dist/src/i18n/locales/fr-ca.d.ts +1 -0
- package/dist/src/i18n/locales/fr-lu.d.ts +1 -1
- package/dist/src/i18n/locales/fr.d.ts +1 -0
- package/dist/src/i18n/locales/ga.d.ts +1 -0
- package/dist/src/i18n/locales/hr.d.ts +1 -1
- package/dist/src/i18n/locales/hu.d.ts +1 -1
- package/dist/src/i18n/locales/it.d.ts +1 -1
- package/dist/src/i18n/locales/lt.d.ts +2 -1
- package/dist/src/i18n/locales/lv.d.ts +1 -1
- package/dist/src/i18n/locales/mergePropertyFiles.d.ts +1 -0
- package/dist/src/i18n/locales/mt.d.ts +1 -1
- package/dist/src/i18n/locales/nl-be.d.ts +2 -1
- package/dist/src/i18n/locales/nl.d.ts +1 -1
- package/dist/src/i18n/locales/no.d.ts +1 -1
- package/dist/src/i18n/locales/pl.d.ts +2 -1
- package/dist/src/i18n/locales/pt.d.ts +1 -1
- package/dist/src/i18n/locales/ro.d.ts +1 -1
- package/dist/src/i18n/locales/sk.d.ts +1 -1
- package/dist/src/i18n/locales/sl.d.ts +1 -1
- package/dist/src/i18n/locales/sv.d.ts +1 -1
- package/dist/src/i18n/locales/translation-missing.d.ts +1 -0
- package/dist/src/i18n/localizationFileMap.d.ts +3 -2
- package/dist/src/i18n/types/LocalizationKey.d.ts +10 -6
- package/dist/src/i18n/types/PropertyFile.d.ts +1 -0
- package/dist/src/i18n/types/index.d.ts +1 -1
- package/dist/src/i18n/utils/getText.d.ts +1 -0
- package/dist/src/i18n/utils/index.d.ts +1 -1
- package/dist/src/index.d.ts +9 -0
- package/dist/src/lookups/countryOptions.d.ts +4 -0
- package/dist/src/lookups/dayOptions.d.ts +1 -1
- package/dist/src/lookups/fatcaCodeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +1 -1
- package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +1 -1
- package/dist/src/lookups/index.d.ts +1 -0
- package/dist/src/lookups/localeOptions.d.ts +1 -0
- package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
- package/dist/src/lookups/toOptions.d.ts +1 -1
- package/dist/src/lookups/treatyCountries.json.d.ts +2195 -0
- package/dist/src/lookups/typeOfIncomeOptions.d.ts +8 -0
- package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +1 -1
- package/dist/src/services/api.d.ts +6 -5
- package/dist/src/test/Wrapper.d.ts +2 -1
- package/dist/src/test/getWrapper.d.ts +2 -1
- package/dist/src/test/utils/helpers.d.ts +2 -0
- package/dist/src/types/InputStep.d.ts +2 -2
- package/dist/src/types/Progress.d.ts +1 -0
- package/dist/src/types/StepId.d.ts +1 -1
- package/dist/src/types/TaxDocumentation.d.ts +29 -4
- package/dist/src/ui/ActionButton/ActionButton.d.ts +2 -1
- package/dist/src/ui/Actions/Actions.d.ts +3 -3
- package/dist/src/ui/Actions/index.d.ts +1 -1
- package/dist/src/ui/CheckBox/CheckBox.d.ts +4 -2
- package/dist/src/ui/CheckBox/index.d.ts +1 -1
- package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +2 -1
- package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +3 -2
- package/dist/src/ui/FormattedInput/FormattedInput.d.ts +2 -1
- package/dist/src/ui/HideShowButton/HideShowButton.d.ts +2 -1
- package/dist/src/ui/HideShowButton/index.d.ts +1 -1
- package/dist/src/ui/InputValue/InputValue.d.ts +2 -1
- package/dist/src/ui/MaskedContent/MaskedContent.d.ts +2 -1
- package/dist/src/ui/MaskedContent/index.d.ts +1 -1
- package/dist/src/ui/PasswordInput/PasswordInput.d.ts +2 -1
- package/dist/src/ui/RadioButtons/RadioButtons.d.ts +8 -5
- package/dist/src/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +1 -0
- package/dist/src/ui/Select/Select.d.ts +2 -1
- package/dist/src/ui/ShowHideInput/ShowHideInput.d.ts +2 -1
- package/dist/src/ui/TextArea/TextArea.d.ts +12 -0
- package/dist/src/ui/TextArea/__tests__/TextInput.test.d.ts +1 -0
- package/dist/src/ui/TextArea/index.d.ts +1 -0
- package/dist/src/ui/TextInput/TextInput.d.ts +2 -1
- package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +1 -0
- package/dist/src/ui/ToggleButton/ToggleButton.d.ts +2 -1
- package/dist/src/ui/ToggleButton/index.d.ts +1 -1
- package/dist/src/ui/WithholdingInput/WithholdingInput.d.ts +9 -0
- package/dist/src/ui/WithholdingInput/index.d.ts +1 -0
- package/dist/src/ui/index.d.ts +2 -0
- package/dist/src/utils/camelCaseKeys.d.ts +3 -1
- package/dist/src/utils/getFieldsState.d.ts +3 -0
- package/dist/src/utils/getFormStatus.d.ts +1 -0
- package/dist/src/utils/getLanguage.d.ts +1 -0
- package/dist/src/utils/getPromptKeyMap.d.ts +2 -111
- package/dist/src/utils/getTreatyClaimDetails.d.ts +2 -0
- package/dist/src/utils/getTreatyCountry.d.ts +38 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/isBlank.d.ts +2 -1
- package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +1 -0
- package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +1 -0
- package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +1 -0
- package/dist/src/utils/transformForClient/transformForClient.d.ts +1 -0
- package/dist/src/utils/transformForClient/transformForClientAccountHolder.d.ts +4 -0
- package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +25 -24
- package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +3 -1
- package/dist/src/utils/transformForClient/transformForClientTaxResidenceFields.d.ts +4 -3
- package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +2 -1
- package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +2 -1
- package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +2 -1
- package/dist/src/utils/transformInbound/getLLCClassification.d.ts +2 -1
- package/dist/src/utils/transformInbound/getUsAccountType.d.ts +2 -1
- package/dist/src/utils/transformInbound/transformInbound.d.ts +2 -1
- package/dist/src/validations/getInvalidFields.d.ts +1 -0
- package/dist/src/validations/getRequiredFields.d.ts +2 -1
- package/dist/src/validations/getSteps.d.ts +3 -0
- package/dist/src/validations/getSupportedFields.d.ts +3 -2
- package/dist/src/validations/getVisibleFields.d.ts +3 -2
- package/dist/src/validations/index.d.ts +1 -0
- package/dist/src/validations/invalidFieldRules.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +5 -3
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.error.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.missingBearerToken.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +1 -0
- package/dist/src/wizard/AddressInput/AddressInput.d.ts +2 -1
- package/dist/src/wizard/AddressInput/index.d.ts +1 -1
- package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +3 -2
- package/dist/src/wizard/LanguageSelector/index.d.ts +1 -1
- package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +2 -1
- package/dist/src/wizard/ResidenceInput/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +4 -2
- package/dist/src/wizard/RowInput/CheckBoxRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +4 -3
- package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +4 -3
- package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +6 -0
- package/dist/src/wizard/RowInput/HiddenInputRow/index.d.ts +1 -0
- package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +4 -2
- package/dist/src/wizard/RowInput/RadioButtonRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/SelectRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/TextAreaRow/TextAreaRow.d.ts +10 -0
- package/dist/src/wizard/RowInput/TextAreaRow/index.d.ts +1 -0
- package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/TextInputRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/ToggleButtonRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +7 -5
- package/dist/src/wizard/RowInput/VisibleRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/AccountHolderClassification.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/AccountHolderContact.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/AccountHolderTax.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/AccountHolderTreatyClaims.d.ts +3 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/AppError.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/Exemptions.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/RegardedOwnerTreatyClaims.d.ts +3 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Recap.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Summary.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +4 -2
- package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/W8imyInstructions.d.ts +3 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.treatyClaims.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/steps.d.ts +3 -0
- package/dist/taxbit-react-sdk.js +7979 -5307
- package/dist/taxbit-react-sdk.umd.cjs +14 -11
- package/package.json +8 -7
- package/style/basic.css +26 -10
- package/style/inline.css +26 -10
- package/style/minimal.css +4 -0
- package/dist/src/contexts/QuestionnaireUI/QuestionnaireUIProvider.d.ts +0 -6
- package/dist/src/contexts/QuestionnaireUI/index.d.ts +0 -4
- package/dist/src/contexts/QuestionnaireUI/useQuestionnaireUIContext.d.ts +0 -74
- package/dist/src/entry/index.d.ts +0 -8
- package/dist/src/utils/transformForClient/transformForClientAccoutHolder.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taxbit/react-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0-beta.0",
|
|
4
4
|
"description": "Taxbit Tax Documentation",
|
|
5
5
|
"author": "Taxbit",
|
|
6
6
|
"type": "module",
|
|
@@ -34,19 +34,20 @@
|
|
|
34
34
|
"test": "vitest"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@taxbit/utilities": "0.2.
|
|
37
|
+
"@taxbit/utilities": "0.2.5"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
41
41
|
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@testing-library/react": "^16.
|
|
44
|
+
"@testing-library/react": "^16.1.0",
|
|
45
45
|
"@testing-library/jest-dom": "^6.6.3",
|
|
46
46
|
"@testing-library/user-event": "^14.5.2",
|
|
47
|
-
"happy-dom": "^
|
|
48
|
-
"react": "^18.
|
|
49
|
-
"react-dom": "^18.
|
|
50
|
-
"@types/react": "^18.
|
|
47
|
+
"happy-dom": "^15.11.7",
|
|
48
|
+
"react": "^18.3.0",
|
|
49
|
+
"react-dom": "^18.3.0",
|
|
50
|
+
"@types/react": "^18.3.12",
|
|
51
|
+
"@types/react-dom": "^18.3.1"
|
|
51
52
|
}
|
|
52
53
|
}
|
package/style/basic.css
CHANGED
|
@@ -64,6 +64,7 @@ button.taxbit-button:focus-visible {
|
|
|
64
64
|
font-size: 0.9em;
|
|
65
65
|
opacity: 0.8;
|
|
66
66
|
font-weight: 400;
|
|
67
|
+
line-height: 1.4em;
|
|
67
68
|
}
|
|
68
69
|
.taxbit-section-header-action {
|
|
69
70
|
margin-left: auto;
|
|
@@ -91,6 +92,14 @@ button.taxbit-button:focus-visible {
|
|
|
91
92
|
color: red;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
95
|
+
sup {
|
|
96
|
+
font-size: 0.8em;
|
|
97
|
+
line-height: 0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.taxbit-disabled {
|
|
102
|
+
opacity: 0.6;
|
|
94
103
|
}
|
|
95
104
|
|
|
96
105
|
.taxbit-info-message {
|
|
@@ -117,16 +126,17 @@ button.taxbit-button:focus-visible {
|
|
|
117
126
|
.taxbit-label {
|
|
118
127
|
flex: 0 0 40%;
|
|
119
128
|
font-weight: 500;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
129
|
+
}
|
|
130
|
+
.taxbit-sub-label {
|
|
131
|
+
font-size: 0.9em;
|
|
132
|
+
opacity: 0.7;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
line-height: 1.25em;
|
|
135
|
+
}
|
|
136
|
+
.taxbit-sub-label p,
|
|
137
|
+
.taxbit-sub-label ol {
|
|
138
|
+
margin: 0;
|
|
139
|
+
margin-bottom: 5px;
|
|
130
140
|
}
|
|
131
141
|
.taxbit-input,
|
|
132
142
|
.taxbit-select {
|
|
@@ -139,6 +149,12 @@ button.taxbit-button:focus-visible {
|
|
|
139
149
|
color: rgb(18, 38, 63);
|
|
140
150
|
}
|
|
141
151
|
|
|
152
|
+
.taxbit-input.taxbit-textarea {
|
|
153
|
+
min-height: 33px;
|
|
154
|
+
resize: vertical;
|
|
155
|
+
height: 57px;
|
|
156
|
+
}
|
|
157
|
+
|
|
142
158
|
@media only screen and (max-width: 600px) {
|
|
143
159
|
.taxbit-input,
|
|
144
160
|
.taxbit-select {
|
package/style/inline.css
CHANGED
|
@@ -73,6 +73,7 @@ button.taxbit-button:focus-visible {
|
|
|
73
73
|
font-size: 0.9em;
|
|
74
74
|
opacity: 0.8;
|
|
75
75
|
font-weight: 400;
|
|
76
|
+
line-height: 1.4em;
|
|
76
77
|
}
|
|
77
78
|
.taxbit-section-header-action {
|
|
78
79
|
margin-left: auto;
|
|
@@ -89,6 +90,14 @@ button.taxbit-button:focus-visible {
|
|
|
89
90
|
color: red;
|
|
90
91
|
}
|
|
91
92
|
}
|
|
93
|
+
sup {
|
|
94
|
+
font-size: 0.8em;
|
|
95
|
+
line-height: 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.taxbit-disabled {
|
|
100
|
+
opacity: 0.6;
|
|
92
101
|
}
|
|
93
102
|
|
|
94
103
|
.taxbit-info-message {
|
|
@@ -125,16 +134,17 @@ button.taxbit-button:focus-visible {
|
|
|
125
134
|
.taxbit-label {
|
|
126
135
|
flex: 0 0 40%;
|
|
127
136
|
font-weight: 500;
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
}
|
|
138
|
+
.taxbit-sub-label {
|
|
139
|
+
font-size: 0.9em;
|
|
140
|
+
opacity: 0.7;
|
|
141
|
+
font-weight: 400;
|
|
142
|
+
line-height: 1.25em;
|
|
143
|
+
}
|
|
144
|
+
.taxbit-sub-label p,
|
|
145
|
+
.taxbit-sub-label ol {
|
|
146
|
+
margin: 0;
|
|
147
|
+
margin-bottom: 5px;
|
|
138
148
|
}
|
|
139
149
|
.taxbit-input,
|
|
140
150
|
.taxbit-select {
|
|
@@ -147,6 +157,12 @@ button.taxbit-button:focus-visible {
|
|
|
147
157
|
color: rgb(18, 38, 63);
|
|
148
158
|
}
|
|
149
159
|
|
|
160
|
+
.taxbit-input.taxbit-textarea {
|
|
161
|
+
min-height: 33px;
|
|
162
|
+
resize: vertical;
|
|
163
|
+
height: 57px;
|
|
164
|
+
}
|
|
165
|
+
|
|
150
166
|
@media only screen and (max-width: 600px) {
|
|
151
167
|
.taxbit-input,
|
|
152
168
|
.taxbit-select {
|
package/style/minimal.css
CHANGED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const useQuestionnaireUIContext: () => {
|
|
3
|
-
config: {
|
|
4
|
-
minimumAge: number;
|
|
5
|
-
} | undefined;
|
|
6
|
-
language: import("../../types").Locale;
|
|
7
|
-
getLocalText: (key: import("../../i18n/types").TextKey) => string;
|
|
8
|
-
getLocalTitle: (key: string) => string;
|
|
9
|
-
getLocalSubTitle: (key: import("../../i18n/types").SubTitleKey) => string;
|
|
10
|
-
getLocalError: (key: import("../../i18n/types").ErrorKey) => string;
|
|
11
|
-
getLocalButton: (key: import("../../i18n/types").ButtonKey) => string;
|
|
12
|
-
getLocalPrompt: (key: string) => string;
|
|
13
|
-
getLocalSubPrompt: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => string;
|
|
14
|
-
getLocalOption: (key: string | undefined) => string | undefined;
|
|
15
|
-
getLocalSubOption: (key: string | undefined) => string | undefined;
|
|
16
|
-
getLocalCountry: (key: string | undefined) => string;
|
|
17
|
-
getLocalUsState: (key: string | undefined) => "" | "Guam" | "Puerto Rico" | "Alabama" | "Alaska" | "American Samoa" | "Arizona" | "Arkansas" | "California" | "Colorado" | "Connecticut" | "Delaware" | "District Of Columbia" | "Federated States Of Micronesia" | "Florida" | "Georgia" | "Hawaii" | "Idaho" | "Illinois" | "Indiana" | "Iowa" | "Kansas" | "Kentucky" | "Louisiana" | "Maine" | "Marshall Islands" | "Maryland" | "Massachusetts" | "Michigan" | "Minnesota" | "Mississippi" | "Missouri" | "Montana" | "Nebraska" | "Nevada" | "New Hampshire" | "New Jersey" | "New Mexico" | "New York" | "North Carolina" | "North Dakota" | "Northern Mariana Islands" | "Ohio" | "Oklahoma" | "Oregon" | "Outlying Islands" | "Palau" | "Pennsylvania" | "Rhode Island" | "South Carolina" | "South Dakota" | "Tennessee" | "Texas" | "Utah" | "Vermont" | "Virgin Islands" | "Virginia" | "Washington" | "West Virginia" | "Wisconsin" | "Wyoming";
|
|
18
|
-
getLocalCaProvince: (key: string | undefined) => string;
|
|
19
|
-
getLocalMonth: (key: string | undefined) => string;
|
|
20
|
-
getPromptKey: (key: string) => import("../../i18n/types").PromptKey;
|
|
21
|
-
getSubPromptKey: (key: string) => import("../../i18n/types").SubPromptKey;
|
|
22
|
-
clearIfNotRequired: (...arg: (keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData)[]) => (value: "yes" | undefined) => void;
|
|
23
|
-
fields: import("../../types").TaxDocumentation;
|
|
24
|
-
setFields: import("react").Dispatch<import("react").SetStateAction<import("../../types").TaxDocumentation>>;
|
|
25
|
-
setValue: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData, value: string | undefined) => void;
|
|
26
|
-
isErrorFree: boolean;
|
|
27
|
-
showErrors: boolean;
|
|
28
|
-
showErrorsForField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => boolean | undefined;
|
|
29
|
-
exposeErrors: () => void;
|
|
30
|
-
hideErrors: () => void;
|
|
31
|
-
hasChangedData: boolean;
|
|
32
|
-
getRequiredLocalPrompt: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => string;
|
|
33
|
-
visibleFields: import("./useQuestionnaireUI").TaxDocumentationPropertyFile;
|
|
34
|
-
invalidFields: import("./useQuestionnaireUI").TaxDocumentationErrorFile;
|
|
35
|
-
requiredFields: import("./useQuestionnaireUI").TaxDocumentationPropertyFile;
|
|
36
|
-
hideField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => void;
|
|
37
|
-
showField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => void;
|
|
38
|
-
}, QuestionnaireUIContextProvider: import("react").Provider<{
|
|
39
|
-
config: {
|
|
40
|
-
minimumAge: number;
|
|
41
|
-
} | undefined;
|
|
42
|
-
language: import("../../types").Locale;
|
|
43
|
-
getLocalText: (key: import("../../i18n/types").TextKey) => string;
|
|
44
|
-
getLocalTitle: (key: string) => string;
|
|
45
|
-
getLocalSubTitle: (key: import("../../i18n/types").SubTitleKey) => string;
|
|
46
|
-
getLocalError: (key: import("../../i18n/types").ErrorKey) => string;
|
|
47
|
-
getLocalButton: (key: import("../../i18n/types").ButtonKey) => string;
|
|
48
|
-
getLocalPrompt: (key: string) => string;
|
|
49
|
-
getLocalSubPrompt: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => string;
|
|
50
|
-
getLocalOption: (key: string | undefined) => string | undefined;
|
|
51
|
-
getLocalSubOption: (key: string | undefined) => string | undefined;
|
|
52
|
-
getLocalCountry: (key: string | undefined) => string;
|
|
53
|
-
getLocalUsState: (key: string | undefined) => "" | "Guam" | "Puerto Rico" | "Alabama" | "Alaska" | "American Samoa" | "Arizona" | "Arkansas" | "California" | "Colorado" | "Connecticut" | "Delaware" | "District Of Columbia" | "Federated States Of Micronesia" | "Florida" | "Georgia" | "Hawaii" | "Idaho" | "Illinois" | "Indiana" | "Iowa" | "Kansas" | "Kentucky" | "Louisiana" | "Maine" | "Marshall Islands" | "Maryland" | "Massachusetts" | "Michigan" | "Minnesota" | "Mississippi" | "Missouri" | "Montana" | "Nebraska" | "Nevada" | "New Hampshire" | "New Jersey" | "New Mexico" | "New York" | "North Carolina" | "North Dakota" | "Northern Mariana Islands" | "Ohio" | "Oklahoma" | "Oregon" | "Outlying Islands" | "Palau" | "Pennsylvania" | "Rhode Island" | "South Carolina" | "South Dakota" | "Tennessee" | "Texas" | "Utah" | "Vermont" | "Virgin Islands" | "Virginia" | "Washington" | "West Virginia" | "Wisconsin" | "Wyoming";
|
|
54
|
-
getLocalCaProvince: (key: string | undefined) => string;
|
|
55
|
-
getLocalMonth: (key: string | undefined) => string;
|
|
56
|
-
getPromptKey: (key: string) => import("../../i18n/types").PromptKey;
|
|
57
|
-
getSubPromptKey: (key: string) => import("../../i18n/types").SubPromptKey;
|
|
58
|
-
clearIfNotRequired: (...arg: (keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData)[]) => (value: "yes" | undefined) => void;
|
|
59
|
-
fields: import("../../types").TaxDocumentation;
|
|
60
|
-
setFields: import("react").Dispatch<import("react").SetStateAction<import("../../types").TaxDocumentation>>;
|
|
61
|
-
setValue: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData, value: string | undefined) => void;
|
|
62
|
-
isErrorFree: boolean;
|
|
63
|
-
showErrors: boolean;
|
|
64
|
-
showErrorsForField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => boolean | undefined;
|
|
65
|
-
exposeErrors: () => void;
|
|
66
|
-
hideErrors: () => void;
|
|
67
|
-
hasChangedData: boolean;
|
|
68
|
-
getRequiredLocalPrompt: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => string;
|
|
69
|
-
visibleFields: import("./useQuestionnaireUI").TaxDocumentationPropertyFile;
|
|
70
|
-
invalidFields: import("./useQuestionnaireUI").TaxDocumentationErrorFile;
|
|
71
|
-
requiredFields: import("./useQuestionnaireUI").TaxDocumentationPropertyFile;
|
|
72
|
-
hideField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => void;
|
|
73
|
-
showField: (key: keyof import("../../types").AccountHolderContactData | keyof import("../../types").AccountHolderTaxData | keyof import("../../types").AccountHolderClassificationData | keyof import("../../types").RegardedOwnerContactData | keyof import("../../types").RegardedOwnerClassificationData | keyof import("../../types").RegardedOwnerTaxData | keyof import("../../types").SummaryData | keyof import("../../types").CalculatedData) => void;
|
|
74
|
-
} | undefined>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ClientTaxDocumentation } from '@taxbit/utilities';
|
|
2
|
-
export * from '../hooks/useTaxbit/useTaxbit';
|
|
3
|
-
export * from '../types/Locale';
|
|
4
|
-
export * from '../types/Progress';
|
|
5
|
-
export * from '../types/Questionnaire';
|
|
6
|
-
export * from '../types/client/ClientTaxDocumentationStatus';
|
|
7
|
-
export * from './TaxbitQuestionnaire';
|
|
8
|
-
export type { ClientTaxDocumentation };
|