@tesouro/embedded-components-react 0.11.116 → 0.11.119
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 +81 -120
- package/dist/index.d.ts +4 -0
- package/dist/lib/AcceptDisclosuresWidget.d.ts +4 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +91 -88
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +41 -59
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/labels.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +163 -160
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +34 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +21 -18
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +382 -275
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +37 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +56 -50
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +32 -69
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +36 -39
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +120 -116
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +14 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +41 -44
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +96 -115
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +35 -57
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index33.js +37 -60
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index35.js +28 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +266 -259
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +51 -55
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +42 -48
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +69 -70
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +2 -2
- 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/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +51 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmptyState/EmptyState.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +84 -87
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellScrollRegion.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellStepper.js +35 -21
- package/dist/packages/shared-ui-shadcn/dist/index.js +29 -85
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import { InlineErrorAlert as
|
|
3
|
-
import { ONBOARDING_SHELL_LABELS_EN as
|
|
4
|
-
import { OnboardingShellStepper as
|
|
5
|
-
import { OnboardingShellOverlayContainerContext as
|
|
6
|
-
import { FdicLogo as
|
|
7
|
-
import { OnboardingShellScrollRegion as
|
|
8
|
-
import * as
|
|
9
|
-
import { jsx as
|
|
10
|
-
import {
|
|
1
|
+
import { Button as e, Heading as t, Separator as n, cn as r } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { InlineErrorAlert as i } from "../InlineErrorAlert/InlineErrorAlert.js";
|
|
3
|
+
import { ONBOARDING_SHELL_LABELS_EN as a } from "./labels.js";
|
|
4
|
+
import { OnboardingShellStepper as o } from "./OnboardingShellStepper.js";
|
|
5
|
+
import { OnboardingShellOverlayContainerContext as s } from "./OnboardingShellOverlayPortal.js";
|
|
6
|
+
import { FdicLogo as c } from "./FdicLogo.js";
|
|
7
|
+
import { OnboardingShellScrollRegion as l } from "./OnboardingShellScrollRegion.js";
|
|
8
|
+
import * as u from "react";
|
|
9
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
+
import { Trash2 as p } from "lucide-react";
|
|
11
11
|
// ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js
|
|
12
12
|
function m(e) {
|
|
13
13
|
let t = e.ownerDocument.documentElement, n = (e) => Number.parseFloat(getComputedStyle(e).scrollPaddingTop) || 0, r = n(t);
|
|
@@ -17,124 +17,121 @@ function m(e) {
|
|
|
17
17
|
}
|
|
18
18
|
return r;
|
|
19
19
|
}
|
|
20
|
-
function h({ title: h, subtitle: g, isTitleVisuallyHidden: _ = !1, focusTitleOnMount: v = !1, stepLabels: y, activeStep: b,
|
|
21
|
-
let
|
|
22
|
-
...
|
|
23
|
-
...
|
|
24
|
-
}, [
|
|
25
|
-
|
|
26
|
-
}, []),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}, [b,
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
function h({ title: h, subtitle: g, isTitleVisuallyHidden: _ = !1, focusTitleOnMount: v = !1, stepLabels: y, activeStep: b, onStepClick: x, disclaimerText: S, onBack: C, onNext: w, onCancel: T, onSaveAndClose: E, isSaveAndCloseDisabled: D = !1, isSaveAndCloseLoading: O = !1, onDelete: k, isBackDisabled: A = !1, showBackButton: j = !0, backAriaLabel: M, isNextDisabled: N = !1, isNextLoading: P = !1, nextLabel: F, errorMessage: I, children: L, labels: R, testIds: z }) {
|
|
21
|
+
let B = {
|
|
22
|
+
...a,
|
|
23
|
+
...R
|
|
24
|
+
}, [V, H] = u.useState(null), U = u.useCallback((e) => {
|
|
25
|
+
H(e);
|
|
26
|
+
}, []), W = u.useRef(b);
|
|
27
|
+
u.useEffect(() => {
|
|
28
|
+
W.current !== b && (W.current = b, V && V.getBoundingClientRect().top < m(V) && V.scrollIntoView({ block: "start" }));
|
|
29
|
+
}, [b, V]);
|
|
30
|
+
let G = u.useRef(null), K = u.useRef(v);
|
|
31
|
+
u.useEffect(() => {
|
|
32
|
+
K.current && G.current?.focus();
|
|
33
33
|
}, []);
|
|
34
|
-
let
|
|
35
|
-
className: "ttw:size-5",
|
|
36
|
-
"aria-hidden": !0
|
|
37
|
-
}) : F), Z = A ? /* @__PURE__ */ u(e, {
|
|
34
|
+
let q = u.useMemo(() => ({ container: V }), [V]), J = P || O, Y = j ? /* @__PURE__ */ d(e, {
|
|
38
35
|
type: "button",
|
|
39
36
|
variant: "outline",
|
|
40
|
-
disabled:
|
|
41
|
-
onClick:
|
|
42
|
-
"aria-label":
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
children: V.backButton
|
|
37
|
+
disabled: A || J,
|
|
38
|
+
onClick: C,
|
|
39
|
+
"aria-label": M,
|
|
40
|
+
"data-testid": z?.back,
|
|
41
|
+
children: B.backButton
|
|
46
42
|
}) : null;
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
value:
|
|
49
|
-
children: /* @__PURE__ */
|
|
50
|
-
ref:
|
|
43
|
+
return /* @__PURE__ */ d(s.Provider, {
|
|
44
|
+
value: q,
|
|
45
|
+
children: /* @__PURE__ */ f("div", {
|
|
46
|
+
ref: U,
|
|
51
47
|
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",
|
|
52
|
-
"data-testid":
|
|
48
|
+
"data-testid": z?.root,
|
|
53
49
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ f("header", {
|
|
55
51
|
className: "ttw:px-8 ttw:pt-8",
|
|
56
52
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
53
|
+
/* @__PURE__ */ d(t, {
|
|
54
|
+
variant: "page",
|
|
55
|
+
ref: G,
|
|
59
56
|
tabIndex: -1,
|
|
60
|
-
className:
|
|
57
|
+
className: r("ttw:outline-none", _ ? "ttw:sr-only" : "ttw:text-foreground"),
|
|
61
58
|
children: h
|
|
62
59
|
}),
|
|
63
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ d("p", {
|
|
64
61
|
className: _ ? "ttw:sr-only" : "ttw:mt-1 ttw:mb-4 ttw:text-sm ttw:text-muted-foreground",
|
|
65
62
|
children: g
|
|
66
63
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ d(o, {
|
|
68
65
|
stepLabels: y,
|
|
69
66
|
activeStep: b,
|
|
70
|
-
labels:
|
|
67
|
+
labels: R,
|
|
68
|
+
onStepClick: x,
|
|
69
|
+
isStepClickDisabled: J,
|
|
70
|
+
stepButtonTestIdPrefix: z?.stepButton
|
|
71
71
|
})
|
|
72
72
|
]
|
|
73
73
|
}),
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ d(l, {
|
|
75
75
|
activeStep: b,
|
|
76
|
-
testIds:
|
|
77
|
-
children:
|
|
76
|
+
testIds: z?.scrollRegion,
|
|
77
|
+
children: L
|
|
78
78
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ f("footer", {
|
|
80
80
|
className: "ttw:px-8 ttw:pb-8",
|
|
81
81
|
children: [
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ d(n, { className: "ttw:mb-3" }),
|
|
83
|
+
/* @__PURE__ */ f("div", {
|
|
84
84
|
className: "ttw:mb-4 ttw:flex ttw:items-center ttw:gap-1",
|
|
85
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ d("p", {
|
|
86
86
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
87
|
-
children:
|
|
88
|
-
}), /* @__PURE__ */
|
|
87
|
+
children: S
|
|
88
|
+
}), /* @__PURE__ */ d(c, {})]
|
|
89
89
|
}),
|
|
90
|
-
|
|
90
|
+
I ? /* @__PURE__ */ d(i, {
|
|
91
91
|
className: "ttw:mb-3",
|
|
92
|
-
children:
|
|
92
|
+
children: I
|
|
93
93
|
}) : null,
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ f("div", {
|
|
95
95
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
96
|
-
children: [
|
|
96
|
+
children: [k ? /* @__PURE__ */ f(e, {
|
|
97
97
|
type: "button",
|
|
98
98
|
variant: "ghost",
|
|
99
|
-
disabled:
|
|
100
|
-
onClick:
|
|
101
|
-
className: "ttw:
|
|
102
|
-
"data-testid":
|
|
103
|
-
children: [/* @__PURE__ */
|
|
99
|
+
disabled: J,
|
|
100
|
+
onClick: k,
|
|
101
|
+
className: "ttw:max-w-full ttw:whitespace-normal ttw:text-destructive ttw:hover:text-destructive",
|
|
102
|
+
"data-testid": z?.delete,
|
|
103
|
+
children: [/* @__PURE__ */ d(p, {
|
|
104
104
|
className: "ttw:size-4",
|
|
105
105
|
"aria-hidden": !0
|
|
106
|
-
}),
|
|
107
|
-
}) :
|
|
106
|
+
}), B.deleteButton]
|
|
107
|
+
}) : Y, /* @__PURE__ */ f("div", {
|
|
108
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",
|
|
109
109
|
children: [
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
k ? Y : null,
|
|
111
|
+
T ? /* @__PURE__ */ d(e, {
|
|
112
112
|
type: "button",
|
|
113
|
-
variant: "
|
|
114
|
-
disabled:
|
|
115
|
-
onClick:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
children: V.cancelButton
|
|
113
|
+
variant: "ghost",
|
|
114
|
+
disabled: J,
|
|
115
|
+
onClick: T,
|
|
116
|
+
"data-testid": z?.cancel,
|
|
117
|
+
children: B.cancelButton
|
|
119
118
|
}) : null,
|
|
120
|
-
|
|
119
|
+
E ? /* @__PURE__ */ d(e, {
|
|
121
120
|
type: "button",
|
|
122
121
|
variant: "secondary",
|
|
123
|
-
disabled:
|
|
124
|
-
loading:
|
|
125
|
-
onClick:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
children: V.saveAndCloseButton
|
|
122
|
+
disabled: D || J,
|
|
123
|
+
loading: O,
|
|
124
|
+
onClick: E,
|
|
125
|
+
"data-testid": z?.saveAndClose,
|
|
126
|
+
children: B.saveAndCloseButton
|
|
129
127
|
}) : null,
|
|
130
128
|
/* @__PURE__ */ d(e, {
|
|
131
129
|
type: "button",
|
|
132
|
-
disabled:
|
|
133
|
-
loading:
|
|
134
|
-
onClick:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
children: [P, X]
|
|
130
|
+
disabled: N || J,
|
|
131
|
+
loading: P,
|
|
132
|
+
onClick: w,
|
|
133
|
+
"data-testid": z?.next,
|
|
134
|
+
children: F
|
|
138
135
|
})
|
|
139
136
|
]
|
|
140
137
|
})]
|
|
@@ -145,4 +142,4 @@ function h({ title: h, subtitle: g, isTitleVisuallyHidden: _ = !1, focusTitleOnM
|
|
|
145
142
|
})
|
|
146
143
|
});
|
|
147
144
|
}
|
|
148
|
-
export {
|
|
145
|
+
export { a as ONBOARDING_SHELL_LABELS_EN, h as OnboardingShell, o as OnboardingShellStepper };
|
|
@@ -41,7 +41,7 @@ function o({ activeStep: o, children: s, testIds: c }) {
|
|
|
41
41
|
marginTop: `-${f}px`,
|
|
42
42
|
opacity: +!!h,
|
|
43
43
|
transitionDuration: `${i}ms`,
|
|
44
|
-
background: "linear-gradient(to bottom,
|
|
44
|
+
background: "linear-gradient(to bottom, transparent 0%, var(--ttw-background) 85%, var(--ttw-background) 100%)"
|
|
45
45
|
}
|
|
46
46
|
}) : null]
|
|
47
47
|
});
|
|
@@ -3,8 +3,8 @@ 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
|
-
function a({ stepLabels: a, activeStep: o, labels: s }) {
|
|
7
|
-
let
|
|
6
|
+
function a({ stepLabels: a, activeStep: o, labels: s, onStepClick: c, isStepClickDisabled: l = !1, stepButtonTestIdPrefix: u }) {
|
|
7
|
+
let d = {
|
|
8
8
|
...t,
|
|
9
9
|
...s
|
|
10
10
|
};
|
|
@@ -12,28 +12,42 @@ function a({ stepLabels: a, activeStep: o, labels: s }) {
|
|
|
12
12
|
className: "ttw:mb-2",
|
|
13
13
|
children: /* @__PURE__ */ n("ol", {
|
|
14
14
|
className: "ttw:flex ttw:w-full ttw:items-start ttw:contain-inline-size",
|
|
15
|
-
"aria-label":
|
|
15
|
+
"aria-label": d.stepperAriaLabel,
|
|
16
16
|
children: a.map((t, s) => {
|
|
17
|
-
let
|
|
17
|
+
let d = s < o, f = s === o, p = s + 1, m = s === 0, h = s === a.length - 1, g = (t) => e("ttw:h-0.5 ttw:min-w-1 ttw:flex-1", t ? "ttw:bg-success" : "ttw:bg-border");
|
|
18
18
|
return /* @__PURE__ */ r("li", {
|
|
19
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:
|
|
20
|
-
|
|
21
|
-
"aria-current": l ? "step" : void 0,
|
|
19
|
+
className: "ttw:relative ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:items-center ttw:gap-2",
|
|
20
|
+
"aria-current": f ? "step" : void 0,
|
|
22
21
|
children: [/* @__PURE__ */ r("div", {
|
|
23
|
-
className: "ttw:flex ttw:items-center",
|
|
24
|
-
children: [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
className: "ttw:flex ttw:w-full ttw:items-center",
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ n("span", {
|
|
25
|
+
className: e(g(s <= o), "ttw:mr-1 ttw:rounded-r-full", m && "ttw:invisible"),
|
|
26
|
+
"aria-hidden": !0
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ n("span", {
|
|
29
|
+
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", d && "ttw:bg-success-subtle ttw:text-success-foreground", f && "ttw:bg-primary ttw:text-primary-foreground", !d && !f && "ttw:border-2 ttw:border-border ttw:bg-background ttw:text-muted-foreground"),
|
|
30
|
+
"aria-hidden": !0,
|
|
31
|
+
children: d ? /* @__PURE__ */ n(i, {
|
|
32
|
+
className: "ttw:size-4",
|
|
33
|
+
strokeWidth: 3
|
|
34
|
+
}) : p
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ n("span", {
|
|
37
|
+
className: e(g(d), "ttw:ml-1 ttw:rounded-l-full", h && "ttw:invisible"),
|
|
38
|
+
"aria-hidden": !0
|
|
39
|
+
})
|
|
40
|
+
]
|
|
41
|
+
}), d && c ? /* @__PURE__ */ n("button", {
|
|
42
|
+
type: "button",
|
|
43
|
+
onClick: () => c(s),
|
|
44
|
+
disabled: l,
|
|
45
|
+
"data-testid": u ? `${u}-${s}` : void 0,
|
|
46
|
+
className: "ttw:max-w-full ttw:cursor-pointer ttw:truncate ttw:rounded-sm ttw:px-1 ttw:text-center ttw:text-xs ttw:text-muted-foreground ttw:outline-none ttw:after:absolute ttw:after:inset-0 ttw:hover:text-foreground ttw:hover:underline ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:disabled:cursor-not-allowed ttw:disabled:no-underline",
|
|
47
|
+
title: t,
|
|
48
|
+
children: t
|
|
49
|
+
}) : /* @__PURE__ */ n("span", {
|
|
50
|
+
className: e("ttw:max-w-full ttw:truncate ttw:px-1 ttw:text-center ttw:text-xs", f ? "ttw:font-semibold ttw:text-foreground" : "ttw:text-muted-foreground"),
|
|
37
51
|
title: t,
|
|
38
52
|
children: t
|
|
39
53
|
})]
|
|
@@ -9043,16 +9043,18 @@ var Cy = {
|
|
|
9043
9043
|
cancel: "Cancel",
|
|
9044
9044
|
close: "Close"
|
|
9045
9045
|
};
|
|
9046
|
-
function wy({ items: e,
|
|
9046
|
+
function wy({ items: e, variant: t = "record", className: n, ...r }) {
|
|
9047
|
+
let i = t === "form-review";
|
|
9047
9048
|
return /* @__PURE__ */ _("div", {
|
|
9048
9049
|
className: "ttw:@container/description-list ttw:min-w-0 ttw:w-full",
|
|
9049
9050
|
children: /* @__PURE__ */ _("dl", {
|
|
9050
9051
|
"data-slot": "description-list",
|
|
9051
|
-
|
|
9052
|
-
|
|
9052
|
+
"data-variant": t,
|
|
9053
|
+
className: Y("ttw:flex ttw:w-full ttw:flex-col ttw:@2xs/description-list:grid ttw:@2xs/description-list:gap-x-4", i ? "ttw:@2xs/description-list:grid-cols-[fit-content(40%)_minmax(0,1fr)]" : "ttw:divide-y ttw:divide-border ttw:@2xs/description-list:grid-cols-[fit-content(50%)_minmax(0,1fr)]", n),
|
|
9054
|
+
...r,
|
|
9053
9055
|
children: e.map((e, t) => /* @__PURE__ */ v("div", {
|
|
9054
9056
|
"data-slot": "description-list-item",
|
|
9055
|
-
className: "ttw:flex ttw:flex-col ttw:gap-0.5 ttw
|
|
9057
|
+
className: Y("ttw:flex ttw:flex-col ttw:gap-0.5 ttw:@2xs/description-list:col-span-2 ttw:@2xs/description-list:grid ttw:@2xs/description-list:grid-cols-subgrid ttw:@2xs/description-list:items-start ttw:@2xs/description-list:gap-x-4", i ? "ttw:py-1.5" : "ttw:py-2.5"),
|
|
9056
9058
|
children: [/* @__PURE__ */ _("dt", {
|
|
9057
9059
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
9058
9060
|
children: e.label
|
|
@@ -17528,82 +17530,24 @@ function MM({ searchSlot: e, menuSlot: t, presetsSlot: n, activeChipsSlot: r, ov
|
|
|
17528
17530
|
tags: r || i ? /* @__PURE__ */ v(g, { children: [r, i] }) : void 0
|
|
17529
17531
|
});
|
|
17530
17532
|
}
|
|
17531
|
-
|
|
17532
|
-
function PM(e) {
|
|
17533
|
-
let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim()), n = t ? `${t[2]}${t[3]}${t[1]}` : e.split("/").map((e, t, n) => {
|
|
17534
|
-
let r = e.replace(/\D/g, "");
|
|
17535
|
-
return t < 2 && t < n.length - 1 && r.length === 1 ? `0${r}` : r;
|
|
17536
|
-
}).join("").slice(0, NM);
|
|
17537
|
-
return n.length <= 2 ? n : n.length <= 4 ? `${n.slice(0, 2)}/${n.slice(2)}` : `${n.slice(0, 2)}/${n.slice(2, 4)}/${n.slice(4)}`;
|
|
17538
|
-
}
|
|
17539
|
-
function FM(e) {
|
|
17540
|
-
let t = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(e);
|
|
17541
|
-
if (!t) return;
|
|
17542
|
-
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = new Date(i, n - 1, r);
|
|
17543
|
-
return a.setFullYear(i), a.getFullYear() === i && a.getMonth() === n - 1 && a.getDate() === r ? a : void 0;
|
|
17544
|
-
}
|
|
17545
|
-
function IM(e) {
|
|
17546
|
-
return `${String(e.getMonth() + 1).padStart(2, "0")}/${String(e.getDate()).padStart(2, "0")}/${String(e.getFullYear()).padStart(4, "0")}`;
|
|
17547
|
-
}
|
|
17548
|
-
var LM = (e) => Number.isNaN(e.getTime());
|
|
17549
|
-
function RM(e) {
|
|
17550
|
-
if (e !== "") return FM(e) ?? /* @__PURE__ */ new Date(NaN);
|
|
17551
|
-
}
|
|
17552
|
-
function zM(e) {
|
|
17553
|
-
return e && !LM(e) ? IM(e) : "";
|
|
17554
|
-
}
|
|
17555
|
-
function BM(e, t) {
|
|
17556
|
-
let n = PM(t).replace(/\D/g, "").length, r = 0;
|
|
17557
|
-
for (let t = 0; t < n && r < e.length;) /\d/.test(e[r]) && (t += 1), r += 1;
|
|
17558
|
-
return t.endsWith("/") && e[r] === "/" ? r + 1 : r;
|
|
17559
|
-
}
|
|
17560
|
-
function VM(e, t) {
|
|
17561
|
-
return e === void 0 || t === void 0 ? e === t : LM(e) || LM(t) ? LM(e) && LM(t) : e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
17562
|
-
}
|
|
17563
|
-
function HM({ value: t, onChange: n, autoComplete: r = "bday", ref: i, ...a }) {
|
|
17564
|
-
let [o, s] = e.useState(() => zM(t)), c = e.useRef(null), l = e.useRef(null), u = e.useMemo(() => UM(c, i), [i]);
|
|
17565
|
-
return !VM(RM(o), t) && zM(t) !== o && s(zM(t)), e.useLayoutEffect(() => {
|
|
17566
|
-
let e = l.current;
|
|
17567
|
-
l.current = null, e !== null && c.current?.setSelectionRange(e, e);
|
|
17568
|
-
}), /* @__PURE__ */ _(vx, {
|
|
17569
|
-
...a,
|
|
17570
|
-
ref: u,
|
|
17571
|
-
type: "text",
|
|
17572
|
-
inputMode: "numeric",
|
|
17573
|
-
autoComplete: r,
|
|
17574
|
-
maxLength: 10,
|
|
17575
|
-
value: o,
|
|
17576
|
-
onChange: (e) => {
|
|
17577
|
-
let r = e.target.value, i = PM(r), a = e.target.selectionStart;
|
|
17578
|
-
l.current = a !== null && a < r.length ? BM(i, r.slice(0, a)) : null;
|
|
17579
|
-
let o = RM(i);
|
|
17580
|
-
s(i), VM(o, t) || n(o);
|
|
17581
|
-
}
|
|
17582
|
-
});
|
|
17583
|
-
}
|
|
17584
|
-
function UM(...e) {
|
|
17585
|
-
return (t) => {
|
|
17586
|
-
for (let n of e) typeof n == "function" ? n(t) : n && (n.current = t);
|
|
17587
|
-
};
|
|
17588
|
-
}
|
|
17589
|
-
function WM(e) {
|
|
17533
|
+
function NM(e) {
|
|
17590
17534
|
return e.toLocaleDateString("en-US", {
|
|
17591
17535
|
year: "numeric",
|
|
17592
17536
|
month: "short",
|
|
17593
17537
|
day: "numeric"
|
|
17594
17538
|
});
|
|
17595
17539
|
}
|
|
17596
|
-
function
|
|
17540
|
+
function PM(e) {
|
|
17597
17541
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
17598
17542
|
}
|
|
17599
|
-
function
|
|
17543
|
+
function FM({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i, minDate: a, maxDate: o, defaultMonth: s, disabledDates: c, className: l, id: u, "aria-invalid": d, "aria-describedby": f, onBlur: p, container: m, iconPosition: h = "start" }) {
|
|
17600
17544
|
let [g, y] = e.useState(!1), b = (e) => {
|
|
17601
17545
|
y(e), e || p?.();
|
|
17602
17546
|
}, x = e.useMemo(() => {
|
|
17603
17547
|
let e = [
|
|
17604
17548
|
...a ? [{ before: a }] : [],
|
|
17605
17549
|
...o ? [{ after: o }] : [],
|
|
17606
|
-
...
|
|
17550
|
+
...PM(c)
|
|
17607
17551
|
];
|
|
17608
17552
|
if (e.length !== 0) return e.length === 1 ? e[0] : e;
|
|
17609
17553
|
}, [
|
|
@@ -17629,7 +17573,7 @@ function KM({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i
|
|
|
17629
17573
|
className: Y("ttw:w-full ttw:justify-start ttw:text-left ttw:font-normal", !t && "ttw:text-muted-foreground", l),
|
|
17630
17574
|
children: [
|
|
17631
17575
|
h === "start" && /* @__PURE__ */ _(L, { className: "ttw:mr-2 ttw:size-4" }),
|
|
17632
|
-
t ?
|
|
17576
|
+
t ? NM(t) : r,
|
|
17633
17577
|
h === "end" && /* @__PURE__ */ _(L, { className: "ttw:ml-auto ttw:size-4" })
|
|
17634
17578
|
]
|
|
17635
17579
|
})
|
|
@@ -17652,13 +17596,13 @@ function KM({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i
|
|
|
17652
17596
|
})]
|
|
17653
17597
|
});
|
|
17654
17598
|
}
|
|
17655
|
-
var
|
|
17599
|
+
var IM = {
|
|
17656
17600
|
fieldLabel: "Date range",
|
|
17657
17601
|
presetPlaceholder: "Custom range"
|
|
17658
17602
|
};
|
|
17659
|
-
function
|
|
17603
|
+
function LM({ from: t, to: n, onRangeChange: r, selectedPreset: i, onPresetChange: a, presets: o = [], labels: s, className: c }) {
|
|
17660
17604
|
let l = {
|
|
17661
|
-
...
|
|
17605
|
+
...IM,
|
|
17662
17606
|
...s
|
|
17663
17607
|
}, u = {
|
|
17664
17608
|
from: t,
|
|
@@ -17706,7 +17650,7 @@ function JM({ from: t, to: n, onRangeChange: r, selectedPreset: i, onPresetChang
|
|
|
17706
17650
|
})]
|
|
17707
17651
|
});
|
|
17708
17652
|
}
|
|
17709
|
-
function
|
|
17653
|
+
function RM({ options: e, selectedValues: t, onSelectionChange: n, className: r, hasMore: i, onLoadMore: a }) {
|
|
17710
17654
|
let o = (e) => {
|
|
17711
17655
|
n(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
17712
17656
|
};
|
|
@@ -17737,7 +17681,7 @@ function YM({ options: e, selectedValues: t, onSelectionChange: n, className: r,
|
|
|
17737
17681
|
}, e.value))
|
|
17738
17682
|
});
|
|
17739
17683
|
}
|
|
17740
|
-
var
|
|
17684
|
+
var zM = {
|
|
17741
17685
|
min: "Greater than",
|
|
17742
17686
|
max: "Less than",
|
|
17743
17687
|
modeAny: "Any",
|
|
@@ -17747,7 +17691,7 @@ var XM = {
|
|
|
17747
17691
|
flowIn: "Flowing in",
|
|
17748
17692
|
flowOut: "Flowing out"
|
|
17749
17693
|
};
|
|
17750
|
-
function
|
|
17694
|
+
function BM({ value: e, onValueChange: t, placeholder: n = "0.00", label: r }) {
|
|
17751
17695
|
return /* @__PURE__ */ v("div", {
|
|
17752
17696
|
className: Y("ttw:flex ttw:h-8 ttw:w-full ttw:min-w-0 ttw:items-center ttw:gap-1.5 ttw:rounded-md ttw:border ttw:border-input ttw:bg-transparent ttw:px-2.5 ttw:text-xs ttw:shadow-xs", "ttw:transition-[color,box-shadow] ttw:focus-within:border-ring ttw:focus-within:ring-[3px] ttw:focus-within:ring-ring/50"),
|
|
17753
17697
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -17764,9 +17708,9 @@ function ZM({ value: e, onValueChange: t, placeholder: n = "0.00", label: r }) {
|
|
|
17764
17708
|
})]
|
|
17765
17709
|
});
|
|
17766
17710
|
}
|
|
17767
|
-
function
|
|
17711
|
+
function VM({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i, onMaxChange: a, showFlowDirection: o = !1, flowDirection: s = "any", onFlowDirectionChange: c, labels: l, className: u }) {
|
|
17768
17712
|
let d = {
|
|
17769
|
-
...
|
|
17713
|
+
...zM,
|
|
17770
17714
|
...l
|
|
17771
17715
|
};
|
|
17772
17716
|
return /* @__PURE__ */ v("div", {
|
|
@@ -17829,7 +17773,7 @@ function QM({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i
|
|
|
17829
17773
|
children: [/* @__PURE__ */ _("span", {
|
|
17830
17774
|
className: "ttw:text-xs ttw:text-muted-foreground ttw:w-24 ttw:shrink-0",
|
|
17831
17775
|
children: d.min
|
|
17832
|
-
}), /* @__PURE__ */ _(
|
|
17776
|
+
}), /* @__PURE__ */ _(BM, {
|
|
17833
17777
|
value: n,
|
|
17834
17778
|
onValueChange: i,
|
|
17835
17779
|
label: d.min
|
|
@@ -17839,12 +17783,12 @@ function QM({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i
|
|
|
17839
17783
|
children: [/* @__PURE__ */ _("span", {
|
|
17840
17784
|
className: "ttw:text-xs ttw:text-muted-foreground ttw:w-24 ttw:shrink-0",
|
|
17841
17785
|
children: d.max
|
|
17842
|
-
}), /* @__PURE__ */ _(
|
|
17786
|
+
}), /* @__PURE__ */ _(BM, {
|
|
17843
17787
|
value: r,
|
|
17844
17788
|
onValueChange: a,
|
|
17845
17789
|
label: d.max
|
|
17846
17790
|
})]
|
|
17847
|
-
})] }) : /* @__PURE__ */ _(
|
|
17791
|
+
})] }) : /* @__PURE__ */ _(BM, {
|
|
17848
17792
|
value: n,
|
|
17849
17793
|
onValueChange: i,
|
|
17850
17794
|
label: d.modeExact
|
|
@@ -17853,7 +17797,7 @@ function QM({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i
|
|
|
17853
17797
|
]
|
|
17854
17798
|
});
|
|
17855
17799
|
}
|
|
17856
|
-
function
|
|
17800
|
+
function HM({ className: e, ...t }) {
|
|
17857
17801
|
return /* @__PURE__ */ v("div", {
|
|
17858
17802
|
className: "ttw:relative",
|
|
17859
17803
|
children: [/* @__PURE__ */ _(fe, { className: "ttw:absolute ttw:left-2.5 ttw:top-1/2 ttw:-translate-y-1/2 ttw:size-4 ttw:text-muted-foreground ttw:pointer-events-none" }), /* @__PURE__ */ _("input", {
|
|
@@ -17863,13 +17807,13 @@ function $M({ className: e, ...t }) {
|
|
|
17863
17807
|
})]
|
|
17864
17808
|
});
|
|
17865
17809
|
}
|
|
17866
|
-
var
|
|
17810
|
+
var UM = { closeToast: "Close notification" }, WM = {
|
|
17867
17811
|
toast: "ttw:font-sans ttw:text-sm ttw:shadow-md",
|
|
17868
17812
|
description: "ttw:text-sm",
|
|
17869
17813
|
actionButton: "ttw:bg-primary ttw:text-primary-foreground ttw:rounded-md ttw:font-medium ttw:text-xs ttw:px-2.5 ttw:py-1",
|
|
17870
17814
|
cancelButton: "ttw:bg-muted ttw:text-muted-foreground ttw:rounded-md ttw:text-xs ttw:px-2.5 ttw:py-1"
|
|
17871
17815
|
};
|
|
17872
|
-
function
|
|
17816
|
+
function GM({ toastOptions: e, ...t }) {
|
|
17873
17817
|
return /* @__PURE__ */ _(w, {
|
|
17874
17818
|
className: "toaster group",
|
|
17875
17819
|
position: "bottom-right",
|
|
@@ -17905,16 +17849,16 @@ function nN({ toastOptions: e, ...t }) {
|
|
|
17905
17849
|
},
|
|
17906
17850
|
...t,
|
|
17907
17851
|
toastOptions: {
|
|
17908
|
-
closeButtonAriaLabel:
|
|
17852
|
+
closeButtonAriaLabel: UM.closeToast,
|
|
17909
17853
|
...e,
|
|
17910
17854
|
classNames: {
|
|
17911
|
-
...
|
|
17855
|
+
...WM,
|
|
17912
17856
|
...e?.classNames
|
|
17913
17857
|
}
|
|
17914
17858
|
}
|
|
17915
17859
|
});
|
|
17916
17860
|
}
|
|
17917
|
-
function
|
|
17861
|
+
function KM() {
|
|
17918
17862
|
let [e, t] = f(!1), [n, r] = f(null);
|
|
17919
17863
|
return {
|
|
17920
17864
|
isMenuOpen: e,
|
|
@@ -17932,4 +17876,4 @@ function rN() {
|
|
|
17932
17876
|
}, [n])
|
|
17933
17877
|
};
|
|
17934
17878
|
}
|
|
17935
|
-
export { bv as ALERT_DIALOG_LABELS_EN,
|
|
17879
|
+
export { bv as ALERT_DIALOG_LABELS_EN, zM as AMOUNT_FILTER_LABELS_EN, Qv as AUDIT_HISTORY_LABELS_EN, Zv as AUDIT_HISTORY_LIST_LABELS_EN, lv as Accordion, fv as AccordionContent, uv as AccordionItem, dv as AccordionTrigger, _v as Alert, yv as AlertDescription, Hv as AlertDialog, Xv as AlertDialogCancel, Gv as AlertDialogContent, Yv as AlertDialogDescription, qv as AlertDialogFooter, Kv as AlertDialogHeader, Wv as AlertDialogOverlay, Uv as AlertDialogPortal, Jv as AlertDialogTitle, vv as AlertTitle, VM as AmountFilter, fy as AuditHistoryList, py as Avatar, my as AvatarFallback, gy as Badge, wv as Button, vy as COMBOBOX_LABELS_EN, Cy as CONFIRM_DIALOG_LABELS_EN, mk as Calendar, hk as CalendarDayButton, tT as Checkbox, $v as Collapsible, ty as CollapsibleContent, ny as CollapsibleSection, ey as CollapsibleTrigger, Sy as Combobox, bM as Command, CM as CommandEmpty, wM as CommandGroup, xM as CommandInput, EM as CommandItem, SM as CommandList, TM as CommandSeparator, Ty as ConfirmDialog, Ey as ContextMenu, Oy as ContextMenuContent, ky as ContextMenuItem, Ay as ContextMenuSeparator, Dy as ContextMenuTrigger, jy as DATA_TABLE_LABELS_EN, IM as DATE_RANGE_PICKER_LABELS_EN, Db as DIALOG_LABELS_EN, vb as DataTable, Eb as DataTableSortableHeader, FM as DatePicker, LM as DateRangePicker, wy as DescriptionList, kb as Dialog, jb as DialogClose, Pb as DialogContent, Rb as DialogDescription, Ib as DialogFooter, Fb as DialogHeader, Mb as DialogOverlay, Ab as DialogPortal, Lb as DialogTitle, _x as DisplayAmount, My as DropdownMenu, Ly as DropdownMenuCheckboxItem, Py as DropdownMenuContent, Fy as DropdownMenuGroup, Iy as DropdownMenuItem, Ry as DropdownMenuLabel, zy as DropdownMenuSeparator, Ny as DropdownMenuTrigger, DM as FILTER_MENU_BUTTON_LABELS_EN, kM as FILTER_TAG_LABELS_EN, Qb as FLOW_DIALOG_LABELS_EN, ex as FORM_DIALOG_LABELS_EN, nx as FORM_SHEET_LABELS_EN, qb as Field, Jb as FieldContent, Xb as FieldDescription, Zb as FieldError, Yb as FieldLabel, Ub as FieldRequirement, MM as FilterBar, OM as FilterMenuButton, AM as FilterTag, $b as FlowDialog, tx as FormDialog, px as FormSheet, gx as Heading, vx as Input, yx as InputGroup, xx as InputGroupAddon, bx as InputGroupInput, Cx as InputTags, zb as LABEL_LABELS_EN, Wb as Label, RM as MultiSelectFilter, Jw as Popover, Zw as PopoverAnchor, Xw as PopoverContent, Yw as PopoverTrigger, Rv as PortalContainerProvider, Qw as QUICK_ACTIONS_BAR_LABELS_EN, eT as QuickActionsBar, wx as REQUIRED_FIELDS_LEGEND_LABELS_EN, kx as RESULT_SCREEN_LABELS_EN, nT as RadioGroup, rT as RadioGroupItem, Dx as RequiredFieldsLegend, Ax as ResultScreen, rx as SHEET_LABELS_EN, UM as SONNER_LABELS_EN, xv as SPINNER_LABELS_EN, HM as SearchInput, tb as Select, ab as SelectContent, nb as SelectGroup, sb as SelectItem, ob as SelectLabel, ub as SelectScrollDownButton, lb as SelectScrollUpButton, cb as SelectSeparator, ib as SelectTrigger, rb as SelectValue, Gb as Separator, ix as Sheet, ax as SheetClose, cx as SheetContent, fx as SheetDescription, ux as SheetFooter, lx as SheetHeader, dx as SheetTitle, ry as Skeleton, Sv as Spinner, Ox as StepList, Lw as Switch, db as TABLE_PAGINATION_LABELS_EN, By as Table, Hy as TableBody, Xy as TableCard, eb as TableCardCollapseToggle, Qy as TableCardFooter, Zy as TableCardHeader, Gy as TableCell, Wy as TableHead, Vy as TableHeader, fb as TablePagination, Uy as TableRow, jM as TableToolbar, Rw as Tabs, Kw as TabsContent, Vw as TabsList, Gw as TabsTrigger, qw as Textarea, GM as Toaster, Pw as Tooltip, Iw as TooltipContent, Nw as TooltipProvider, Fw as TooltipTrigger, Mw as Typography, hy as badgeVariants, Cv as buttonVariants, Y as cn, _y as formatLabel, Tx as mergeRequiredFieldsLegendLabels, zw as tabsListVariants, Hw as tabsTriggerVariants, T as toast, Aw as typographyVariants, KM as useFilterPanel, zv as usePortalContainer };
|