@tesouro/embedded-components-react 0.10.9 → 0.10.10
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/dist/index.css +9 -0
- package/dist/index.d.ts +46 -7
- package/dist/index.js +4 -4
- package/dist/lib/BankAccountOnboardingWidget.d.ts +46 -7
- package/dist/lib/BankAccountOnboardingWidget.js +4 -4
- package/dist/lib/WidgetSuite.d.ts +46 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +175 -98
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +365 -343
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +15 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicantOwnerSummary.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +5 -340
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +422 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +50 -30
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +6 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +62 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +34 -91
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +96 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +12 -276
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +294 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +23 -53
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +46 -343
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +268 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +29 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +29 -59
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +53 -118
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +123 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +5 -80
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +80 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +10 -64
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +64 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index34.js +6 -44
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +110 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +89 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +67 -61
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +16 -19
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js
CHANGED
|
@@ -1,78 +1,3 @@
|
|
|
1
|
-
import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index7.js";
|
|
2
1
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
subheading: "Review each owner's details before continuing.",
|
|
6
|
-
emptySubheading: "Federal regulations require us to collect details for each person who owns 25% or more of the business. If no one does, you can continue without adding anyone.",
|
|
7
|
-
reviewSectionTitle: "Beneficial owners",
|
|
8
|
-
primaryOwnerShareLabel: "Ownership share",
|
|
9
|
-
emptyOwnersText: "No beneficial owners added yet",
|
|
10
|
-
emptyOwnersAddOwner: "Add beneficial owner",
|
|
11
|
-
addOwner: "Add owner",
|
|
12
|
-
edit: "Edit",
|
|
13
|
-
completeDetails: "Complete details",
|
|
14
|
-
remove: "Remove",
|
|
15
|
-
removePrimaryOwnerDisabled: "Remove yourself as an owner from your personal details",
|
|
16
|
-
editPrimaryOwnerDisabled: "Edit your ownership from your personal details",
|
|
17
|
-
editPrimaryOwnerTooltip: "Your details and ownership come from the Personal details step. Go back to that step to edit them.",
|
|
18
|
-
removePrimaryOwnerTooltip: "You can't remove yourself because you're the applicant. To change your ownership, go back to the Personal details step.",
|
|
19
|
-
startReview: "Start review",
|
|
20
|
-
deleteOwner: "Delete owner",
|
|
21
|
-
editOwner: "Edit owner",
|
|
22
|
-
confirmDetails: "I confirm these details are correct",
|
|
23
|
-
statusComplete: "Details complete",
|
|
24
|
-
statusMissing: "Details missing",
|
|
25
|
-
statusUnreviewed: "Needs review",
|
|
26
|
-
inlineEditHeadingTemplate: (e) => `Editing ${e}`,
|
|
27
|
-
missingFieldsAlert: "Complete the missing fields",
|
|
28
|
-
allFieldsRequiredNote: "Required fields are marked with an asterisk *",
|
|
29
|
-
reviewDateOfBirth: "Date of birth",
|
|
30
|
-
reviewSsn: "SSN",
|
|
31
|
-
reviewPhone: "Phone",
|
|
32
|
-
reviewHomeAddress: "Home address",
|
|
33
|
-
cancel: "Cancel",
|
|
34
|
-
save: "Save owner",
|
|
35
|
-
close: "Close",
|
|
36
|
-
addOwnerSubmit: "Add owner",
|
|
37
|
-
saveOwnerSubmit: "Save owner",
|
|
38
|
-
ownerNameColumn: "Name",
|
|
39
|
-
ownerShareColumn: "Ownership %",
|
|
40
|
-
ownerActionsColumn: "Actions",
|
|
41
|
-
formHeadingAdd: "Add additional owner",
|
|
42
|
-
formHeadingEdit: "Edit additional owner",
|
|
43
|
-
firstName: "First name",
|
|
44
|
-
lastName: "Last name",
|
|
45
|
-
dateOfBirth: "Date of birth",
|
|
46
|
-
dateOfBirthPlaceholder: "MM/DD/YYYY",
|
|
47
|
-
dateOfBirthHint: "For example, 04/23/1985",
|
|
48
|
-
dateOfBirthInvalidError: "Enter a valid date of birth",
|
|
49
|
-
ssn: "SSN",
|
|
50
|
-
ssnOnFileTemplate: e,
|
|
51
|
-
ssnInvalid: "SSN must be 9 digits",
|
|
52
|
-
ssnShow: "Show SSN",
|
|
53
|
-
ssnHide: "Hide SSN",
|
|
54
|
-
homeAddress: "Home address",
|
|
55
|
-
city: "City",
|
|
56
|
-
state: "State",
|
|
57
|
-
statePlaceholder: "Select state",
|
|
58
|
-
zipCode: "Postal code",
|
|
59
|
-
zipCodeInvalid: "Postal code must be 5 digits",
|
|
60
|
-
mobilePhoneNumber: "Phone",
|
|
61
|
-
mobilePhoneNumberInvalid: "Phone must be 10 digits",
|
|
62
|
-
ownershipPercentage: "What percentage of business do you own? (minimum 25%)",
|
|
63
|
-
ownershipPercentagePlaceholder: "e.g., 25",
|
|
64
|
-
ownershipPercentageMinError: "Owners must have 25% ownership or more",
|
|
65
|
-
ownershipPercentageMaxError: "Ownership can't exceed 100%",
|
|
66
|
-
requiredFieldError: "This field is required",
|
|
67
|
-
invalidFieldError: "Enter a valid value",
|
|
68
|
-
ownerIncompleteError: "Some details are missing or invalid.",
|
|
69
|
-
ownerEditorOpenError: "Add or save the owner you are editing, or cancel it, before continuing.",
|
|
70
|
-
requiredFieldMarker: " *",
|
|
71
|
-
percentSuffix: "%",
|
|
72
|
-
deleteOwnerHeading: "Delete owner profile?",
|
|
73
|
-
deleteOwnerPromptBeforeName: "Are you sure you want to delete profile",
|
|
74
|
-
deleteOwnerPromptAfterName: "as a business owner?",
|
|
75
|
-
deleteOwnerConfirm: "Delete",
|
|
76
|
-
totalOwnershipExceedsTemplate: (e) => `Total ownership exceeds 100%. Current total: ${e}%`
|
|
77
|
-
};
|
|
78
|
-
export { t as ADDITIONAL_OWNERS_LABELS_EN };
|
|
2
|
+
var e = (e) => `Ending in ${e}. Leave blank to keep it, or enter it again to change it.`;
|
|
3
|
+
export { e as IDENTIFIER_ON_FILE_TEMPLATE_EN };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js
CHANGED
|
@@ -1,7 +1,91 @@
|
|
|
1
|
+
import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index8.js";
|
|
1
2
|
// ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var t = {
|
|
4
|
+
heading: "Who are the beneficial owners?",
|
|
5
|
+
subheading: "Federal regulations require us to collect details for each person who owns 25% or more of the business.",
|
|
6
|
+
emptySubheading: "Federal regulations require us to collect details for each person who owns 25% or more of the business. If no one does, you can continue without adding anyone.",
|
|
7
|
+
reviewSectionTitle: "Beneficial owners",
|
|
8
|
+
applicantOwnsQuestionTemplate: (e) => `Do you own 25% or more of ${e}?`,
|
|
9
|
+
businessNameFallback: "the business",
|
|
10
|
+
applicantOwnsYes: "Yes",
|
|
11
|
+
applicantOwnsNo: "No",
|
|
12
|
+
applicantBadge: "You",
|
|
13
|
+
applicantOwnershipPercentage: "Ownership %",
|
|
14
|
+
applicantDetailsSourceNote: "These details come from your personal information.",
|
|
15
|
+
applicantBornTemplate: (e) => `Born ${e}`,
|
|
16
|
+
applicantSsnEndingTemplate: (e) => `SSN ending ${e}`,
|
|
17
|
+
applicantSummarySeparator: " · ",
|
|
18
|
+
editPersonalDetails: "Edit personal details",
|
|
19
|
+
editApplicantOwnership: "Edit your ownership",
|
|
20
|
+
primaryOwnerShareLabel: "Ownership share",
|
|
21
|
+
emptyOwnersText: "Add other owners",
|
|
22
|
+
emptyOwnersBodyTemplate: (e) => `Add anyone else who owns 25% or more of ${e}. If no one does, you can continue.`,
|
|
23
|
+
emptyOwnersAddOwner: "Add beneficial owner",
|
|
24
|
+
addOwner: "Add owner",
|
|
25
|
+
edit: "Edit",
|
|
26
|
+
completeDetails: "Complete details",
|
|
27
|
+
remove: "Remove",
|
|
28
|
+
removePrimaryOwnerDisabled: "Remove yourself as an owner",
|
|
29
|
+
editPrimaryOwnerDisabled: "Edit your ownership from your personal details",
|
|
30
|
+
editPrimaryOwnerTooltip: "Your details and ownership come from the Personal details step. Go back to that step to edit them.",
|
|
31
|
+
removePrimaryOwnerTooltip: "You can't remove yourself because you're the applicant. If you own less than 25%, answer No above.",
|
|
32
|
+
startReview: "Start review",
|
|
33
|
+
deleteOwner: "Delete owner",
|
|
34
|
+
editOwner: "Edit owner",
|
|
35
|
+
confirmDetails: "I confirm these details are correct",
|
|
36
|
+
statusComplete: "Details complete",
|
|
37
|
+
statusMissing: "Details missing",
|
|
38
|
+
statusUnreviewed: "Needs review",
|
|
39
|
+
inlineEditHeadingTemplate: (e) => `Editing ${e}`,
|
|
40
|
+
missingFieldsAlert: "Complete the missing fields",
|
|
41
|
+
allFieldsRequiredNote: "Required fields are marked with an asterisk *",
|
|
42
|
+
reviewDateOfBirth: "Date of birth",
|
|
43
|
+
reviewSsn: "SSN",
|
|
44
|
+
reviewPhone: "Phone",
|
|
45
|
+
reviewHomeAddress: "Home address",
|
|
46
|
+
cancel: "Cancel",
|
|
47
|
+
save: "Save owner",
|
|
48
|
+
close: "Close",
|
|
49
|
+
addOwnerSubmit: "Add owner",
|
|
50
|
+
saveOwnerSubmit: "Save owner",
|
|
51
|
+
ownerNameColumn: "Name",
|
|
52
|
+
ownerShareColumn: "Ownership %",
|
|
53
|
+
ownerActionsColumn: "Actions",
|
|
54
|
+
formHeadingAdd: "Add additional owner",
|
|
55
|
+
formHeadingEdit: "Edit additional owner",
|
|
56
|
+
firstName: "First name",
|
|
57
|
+
lastName: "Last name",
|
|
58
|
+
dateOfBirth: "Date of birth",
|
|
59
|
+
dateOfBirthPlaceholder: "MM/DD/YYYY",
|
|
60
|
+
dateOfBirthHint: "For example, 04/23/1985",
|
|
61
|
+
dateOfBirthInvalidError: "Enter a valid date of birth",
|
|
62
|
+
ssn: "SSN",
|
|
63
|
+
ssnOnFileTemplate: e,
|
|
64
|
+
ssnInvalid: "SSN must be 9 digits",
|
|
65
|
+
ssnShow: "Show SSN",
|
|
66
|
+
ssnHide: "Hide SSN",
|
|
67
|
+
homeAddress: "Home address",
|
|
68
|
+
city: "City",
|
|
69
|
+
state: "State",
|
|
70
|
+
statePlaceholder: "Select state",
|
|
71
|
+
zipCode: "Postal code",
|
|
72
|
+
zipCodeInvalid: "Postal code must be 5 digits",
|
|
73
|
+
mobilePhoneNumber: "Phone",
|
|
74
|
+
mobilePhoneNumberInvalid: "Phone must be 10 digits",
|
|
75
|
+
ownershipPercentage: "What percentage of business do you own? (minimum 25%)",
|
|
76
|
+
ownershipPercentagePlaceholder: "e.g., 25",
|
|
77
|
+
ownershipPercentageMinError: "Owners must have 25% ownership or more",
|
|
78
|
+
ownershipPercentageMaxError: "Ownership can't exceed 100%",
|
|
79
|
+
requiredFieldError: "This field is required",
|
|
80
|
+
invalidFieldError: "Enter a valid value",
|
|
81
|
+
ownerIncompleteError: "Some details are missing or invalid.",
|
|
82
|
+
ownerEditorOpenError: "Add or save the owner you are editing, or cancel it, before continuing.",
|
|
83
|
+
requiredFieldMarker: " *",
|
|
84
|
+
percentSuffix: "%",
|
|
85
|
+
deleteOwnerHeading: "Delete owner profile?",
|
|
86
|
+
deleteOwnerPromptBeforeName: "Are you sure you want to delete profile",
|
|
87
|
+
deleteOwnerPromptAfterName: "as a business owner?",
|
|
88
|
+
deleteOwnerConfirm: "Delete",
|
|
89
|
+
totalOwnershipExceedsTemplate: (e) => `Total ownership exceeds 100%. Current total: ${e}%`
|
|
6
90
|
};
|
|
7
|
-
export {
|
|
91
|
+
export { t as ADDITIONAL_OWNERS_LABELS_EN };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.10.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.10.10", n = "ca06ed9a0761ecd7a072f69698a91706cc635f8f", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -9,66 +9,72 @@ import * as l from "react";
|
|
|
9
9
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
10
|
import { Check as f, Trash2 as p } from "lucide-react";
|
|
11
11
|
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js
|
|
12
|
-
function m(
|
|
13
|
-
let
|
|
12
|
+
function m(e) {
|
|
13
|
+
let t = e.ownerDocument.documentElement, n = (e) => Number.parseFloat(getComputedStyle(e).scrollPaddingTop) || 0, r = n(t);
|
|
14
|
+
for (let i = e.parentElement; i && i !== t && i !== e.ownerDocument.body; i = i.parentElement) {
|
|
15
|
+
let { overflowY: e } = getComputedStyle(i);
|
|
16
|
+
(e === "auto" || e === "scroll") && i.scrollHeight > i.clientHeight && (r = Math.max(r, i.getBoundingClientRect().top + n(i)));
|
|
17
|
+
}
|
|
18
|
+
return r;
|
|
19
|
+
}
|
|
20
|
+
function h({ title: h, subtitle: g, isTitleVisuallyHidden: _ = !1, focusTitleOnMount: v = !1, stepLabels: y, activeStep: b, disclaimerText: x, onBack: S, onNext: C, onCancel: w, onSaveAndClose: T, isSaveAndCloseDisabled: E = !1, isSaveAndCloseLoading: D = !1, onDelete: O, isBackDisabled: k = !1, showBackButton: A = !0, backAriaLabel: j, isNextDisabled: M = !1, isNextLoading: N = !1, nextLabel: P, nextIcon: F, nextTone: I = "primary", errorMessage: L, children: R, labels: z, testIds: B }) {
|
|
21
|
+
let V = {
|
|
14
22
|
...i,
|
|
15
|
-
...
|
|
16
|
-
}, [
|
|
17
|
-
|
|
18
|
-
}, []),
|
|
23
|
+
...z
|
|
24
|
+
}, [H, U] = l.useState(null), W = l.useCallback((e) => {
|
|
25
|
+
U(e);
|
|
26
|
+
}, []), G = l.useRef(b);
|
|
19
27
|
l.useEffect(() => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, [y, V]);
|
|
24
|
-
let G = l.useRef(null), K = l.useRef(_);
|
|
28
|
+
G.current !== b && (G.current = b, H && H.getBoundingClientRect().top < m(H) && H.scrollIntoView({ block: "start" }));
|
|
29
|
+
}, [b, H]);
|
|
30
|
+
let K = l.useRef(null), q = l.useRef(v);
|
|
25
31
|
l.useEffect(() => {
|
|
26
|
-
|
|
32
|
+
q.current && K.current?.focus();
|
|
27
33
|
}, []);
|
|
28
|
-
let
|
|
34
|
+
let J = l.useMemo(() => ({ container: H }), [H]), Y = N || D, X = !N && (F === void 0 ? /* @__PURE__ */ u(f, {
|
|
29
35
|
className: "ttw:size-5",
|
|
30
36
|
"aria-hidden": !0
|
|
31
|
-
}) :
|
|
37
|
+
}) : F), Z = A ? /* @__PURE__ */ u(e, {
|
|
32
38
|
type: "button",
|
|
33
39
|
variant: "outline",
|
|
34
|
-
disabled:
|
|
35
|
-
onClick:
|
|
36
|
-
"aria-label":
|
|
40
|
+
disabled: k || Y,
|
|
41
|
+
onClick: S,
|
|
42
|
+
"aria-label": j,
|
|
37
43
|
className: "ttw:h-auto ttw:rounded-2xl ttw:border-border ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted ttw:hover:text-foreground",
|
|
38
|
-
"data-testid":
|
|
39
|
-
children:
|
|
44
|
+
"data-testid": B?.back,
|
|
45
|
+
children: V.backButton
|
|
40
46
|
}) : null;
|
|
41
47
|
return /* @__PURE__ */ u(o.Provider, {
|
|
42
|
-
value:
|
|
48
|
+
value: J,
|
|
43
49
|
children: /* @__PURE__ */ d("div", {
|
|
44
|
-
ref:
|
|
50
|
+
ref: W,
|
|
45
51
|
className: "ttw:relative ttw:grid ttw:max-h-full ttw:w-full ttw:min-h-0 ttw:grid-rows-[auto_1fr_auto] ttw:gap-0 ttw:overflow-hidden ttw:bg-background",
|
|
46
|
-
"data-testid":
|
|
52
|
+
"data-testid": B?.root,
|
|
47
53
|
children: [
|
|
48
54
|
/* @__PURE__ */ d("header", {
|
|
49
55
|
className: "ttw:px-8 ttw:pt-8",
|
|
50
56
|
children: [
|
|
51
57
|
/* @__PURE__ */ u("h2", {
|
|
52
|
-
ref:
|
|
58
|
+
ref: K,
|
|
53
59
|
tabIndex: -1,
|
|
54
|
-
className: n("ttw:outline-none",
|
|
55
|
-
children:
|
|
60
|
+
className: n("ttw:outline-none", _ ? "ttw:sr-only" : "ttw:text-2xl ttw:font-bold ttw:leading-tight ttw:text-foreground"),
|
|
61
|
+
children: h
|
|
56
62
|
}),
|
|
57
63
|
/* @__PURE__ */ u("p", {
|
|
58
|
-
className:
|
|
59
|
-
children:
|
|
64
|
+
className: _ ? "ttw:sr-only" : "ttw:mt-1 ttw:mb-4 ttw:text-sm ttw:text-muted-foreground",
|
|
65
|
+
children: g
|
|
60
66
|
}),
|
|
61
67
|
/* @__PURE__ */ u(a, {
|
|
62
|
-
stepLabels:
|
|
63
|
-
activeStep:
|
|
64
|
-
labels:
|
|
68
|
+
stepLabels: y,
|
|
69
|
+
activeStep: b,
|
|
70
|
+
labels: z
|
|
65
71
|
})
|
|
66
72
|
]
|
|
67
73
|
}),
|
|
68
74
|
/* @__PURE__ */ u(c, {
|
|
69
|
-
activeStep:
|
|
70
|
-
testIds:
|
|
71
|
-
children:
|
|
75
|
+
activeStep: b,
|
|
76
|
+
testIds: B?.scrollRegion,
|
|
77
|
+
children: R
|
|
72
78
|
}),
|
|
73
79
|
/* @__PURE__ */ d("footer", {
|
|
74
80
|
className: "ttw:px-8 ttw:pb-8",
|
|
@@ -78,57 +84,57 @@ function m({ title: m, subtitle: h, isTitleVisuallyHidden: g = !1, focusTitleOnM
|
|
|
78
84
|
className: "ttw:mb-4 ttw:flex ttw:items-center ttw:gap-1",
|
|
79
85
|
children: [/* @__PURE__ */ u("p", {
|
|
80
86
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
81
|
-
children:
|
|
87
|
+
children: x
|
|
82
88
|
}), /* @__PURE__ */ u(s, {})]
|
|
83
89
|
}),
|
|
84
|
-
|
|
90
|
+
L ? /* @__PURE__ */ u(r, {
|
|
85
91
|
className: "ttw:mb-3",
|
|
86
|
-
children:
|
|
92
|
+
children: L
|
|
87
93
|
}) : null,
|
|
88
94
|
/* @__PURE__ */ d("div", {
|
|
89
95
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
90
|
-
children: [
|
|
96
|
+
children: [O ? /* @__PURE__ */ d(e, {
|
|
91
97
|
type: "button",
|
|
92
98
|
variant: "ghost",
|
|
93
|
-
disabled:
|
|
94
|
-
onClick:
|
|
99
|
+
disabled: Y,
|
|
100
|
+
onClick: O,
|
|
95
101
|
className: "ttw:h-auto ttw:max-w-full ttw:whitespace-normal ttw:rounded-2xl ttw:px-3 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-destructive/10 ttw:hover:text-[color-mix(in_srgb,var(--ttw-destructive),black_10%)]",
|
|
96
|
-
"data-testid":
|
|
102
|
+
"data-testid": B?.delete,
|
|
97
103
|
children: [/* @__PURE__ */ u(p, {
|
|
98
104
|
className: "ttw:size-4",
|
|
99
105
|
"aria-hidden": !0
|
|
100
|
-
}),
|
|
101
|
-
}) :
|
|
106
|
+
}), V.deleteButton]
|
|
107
|
+
}) : Z, /* @__PURE__ */ d("div", {
|
|
102
108
|
className: "ttw:ml-auto ttw:flex ttw:min-w-0 ttw:max-w-full ttw:flex-wrap ttw:items-center ttw:justify-end ttw:gap-3",
|
|
103
109
|
children: [
|
|
104
|
-
|
|
105
|
-
|
|
110
|
+
O ? Z : null,
|
|
111
|
+
w ? /* @__PURE__ */ u(e, {
|
|
106
112
|
type: "button",
|
|
107
113
|
variant: "outline",
|
|
108
|
-
disabled:
|
|
109
|
-
onClick:
|
|
114
|
+
disabled: Y,
|
|
115
|
+
onClick: w,
|
|
110
116
|
className: "ttw:h-auto ttw:rounded-2xl ttw:border-border ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted ttw:hover:text-foreground",
|
|
111
|
-
"data-testid":
|
|
112
|
-
children:
|
|
117
|
+
"data-testid": B?.cancel,
|
|
118
|
+
children: V.cancelButton
|
|
113
119
|
}) : null,
|
|
114
|
-
|
|
120
|
+
T ? /* @__PURE__ */ u(e, {
|
|
115
121
|
type: "button",
|
|
116
122
|
variant: "secondary",
|
|
117
|
-
disabled:
|
|
118
|
-
loading:
|
|
119
|
-
onClick:
|
|
123
|
+
disabled: E || Y,
|
|
124
|
+
loading: D,
|
|
125
|
+
onClick: T,
|
|
120
126
|
className: "ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium",
|
|
121
|
-
"data-testid":
|
|
122
|
-
children:
|
|
127
|
+
"data-testid": B?.saveAndClose,
|
|
128
|
+
children: V.saveAndCloseButton
|
|
123
129
|
}) : null,
|
|
124
130
|
/* @__PURE__ */ d(e, {
|
|
125
131
|
type: "button",
|
|
126
|
-
disabled:
|
|
127
|
-
loading:
|
|
128
|
-
onClick:
|
|
129
|
-
className: n("ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium",
|
|
130
|
-
"data-testid":
|
|
131
|
-
children: [
|
|
132
|
+
disabled: M || Y,
|
|
133
|
+
loading: N,
|
|
134
|
+
onClick: C,
|
|
135
|
+
className: n("ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium", I === "success" && "ttw:bg-green-600! ttw:text-white! ttw:hover:bg-green-700!"),
|
|
136
|
+
"data-testid": B?.next,
|
|
137
|
+
children: [P, X]
|
|
132
138
|
})
|
|
133
139
|
]
|
|
134
140
|
})]
|
|
@@ -139,4 +145,4 @@ function m({ title: m, subtitle: h, isTitleVisuallyHidden: g = !1, focusTitleOnM
|
|
|
139
145
|
})
|
|
140
146
|
});
|
|
141
147
|
}
|
|
142
|
-
export { i as ONBOARDING_SHELL_LABELS_EN,
|
|
148
|
+
export { i as ONBOARDING_SHELL_LABELS_EN, h as OnboardingShell, a as OnboardingShellStepper };
|
|
@@ -3,46 +3,43 @@ import { ONBOARDING_SHELL_LABELS_EN as t } from "./labels.js";
|
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { Check as i } from "lucide-react";
|
|
5
5
|
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
let l = {
|
|
6
|
+
function a({ stepLabels: a, activeStep: o, labels: s }) {
|
|
7
|
+
let c = {
|
|
9
8
|
...t,
|
|
10
|
-
...
|
|
9
|
+
...s
|
|
11
10
|
};
|
|
12
11
|
return /* @__PURE__ */ n("div", {
|
|
13
12
|
className: "ttw:mb-2",
|
|
14
13
|
children: /* @__PURE__ */ n("ol", {
|
|
15
14
|
className: "ttw:flex ttw:w-full ttw:items-start ttw:contain-inline-size",
|
|
16
|
-
"aria-label":
|
|
17
|
-
children:
|
|
18
|
-
let
|
|
15
|
+
"aria-label": c.stepperAriaLabel,
|
|
16
|
+
children: a.map((t, s) => {
|
|
17
|
+
let c = s < o, l = s === o, u = s + 1, d = s === a.length - 1;
|
|
19
18
|
return /* @__PURE__ */ r("li", {
|
|
20
19
|
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-2 ttw:last:flex-initial",
|
|
21
|
-
style:
|
|
22
|
-
"aria-current":
|
|
20
|
+
style: d ? { maxWidth: `${100 / a.length}%` } : void 0,
|
|
21
|
+
"aria-current": l ? "step" : void 0,
|
|
23
22
|
children: [/* @__PURE__ */ r("div", {
|
|
24
23
|
className: "ttw:flex ttw:items-center",
|
|
25
24
|
children: [/* @__PURE__ */ n("span", {
|
|
26
|
-
className: e("ttw:flex ttw:size-6 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:text-sm ttw:font-bold ttw:transition-colors",
|
|
27
|
-
style: l ? { backgroundColor: a } : void 0,
|
|
25
|
+
className: e("ttw:flex ttw:size-6 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:text-sm ttw:font-bold ttw:transition-colors", c && "ttw:bg-success-subtle ttw:text-success-foreground", l && "ttw:bg-primary ttw:text-primary-foreground", !c && !l && "ttw:border-2 ttw:border-border ttw:bg-background ttw:text-muted-foreground"),
|
|
28
26
|
"aria-hidden": !0,
|
|
29
|
-
children:
|
|
27
|
+
children: c ? /* @__PURE__ */ n(i, {
|
|
30
28
|
className: "ttw:size-4",
|
|
31
29
|
strokeWidth: 3
|
|
32
|
-
}) :
|
|
33
|
-
}),
|
|
34
|
-
className: e("ttw:mx-1 ttw:h-0.5 ttw:min-w-2 ttw:flex-1 ttw:rounded-full",
|
|
35
|
-
style: l ? { backgroundColor: a } : void 0,
|
|
30
|
+
}) : u
|
|
31
|
+
}), d ? null : /* @__PURE__ */ n("span", {
|
|
32
|
+
className: e("ttw:mx-1 ttw:h-0.5 ttw:min-w-2 ttw:flex-1 ttw:rounded-full", c && "ttw:bg-success", l && "ttw:bg-primary", !c && !l && "ttw:bg-border"),
|
|
36
33
|
"aria-hidden": !0
|
|
37
34
|
})]
|
|
38
35
|
}), /* @__PURE__ */ n("span", {
|
|
39
|
-
className: e("ttw:truncate ttw:pr-2 ttw:text-xs",
|
|
36
|
+
className: e("ttw:truncate ttw:pr-2 ttw:text-xs", l ? "ttw:font-semibold ttw:text-foreground" : "ttw:text-muted-foreground"),
|
|
40
37
|
title: t,
|
|
41
38
|
children: t
|
|
42
39
|
})]
|
|
43
|
-
}, `step-${
|
|
40
|
+
}, `step-${s}`);
|
|
44
41
|
})
|
|
45
42
|
})
|
|
46
43
|
});
|
|
47
44
|
}
|
|
48
|
-
export {
|
|
45
|
+
export { a as OnboardingShellStepper };
|