@tesouro/embedded-components-react 0.11.114 → 0.11.118
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 -125
- package/dist/index.d.ts +11 -2
- package/dist/lib/AcceptDisclosuresWidget.d.ts +4 -0
- package/dist/lib/ReceivablesWidget.d.ts +7 -2
- package/dist/lib/WidgetSuite.d.ts +7 -2
- 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/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +85 -50
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +7 -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 +38 -101
- package/package.json +1 -1
|
@@ -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
|
})]
|
|
@@ -186,20 +186,10 @@ F("ellipsis", [
|
|
|
186
186
|
key: "1pcz8c"
|
|
187
187
|
}]
|
|
188
188
|
]);
|
|
189
|
-
var ue = F("
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}],
|
|
194
|
-
["path", {
|
|
195
|
-
d: "M6 12h12",
|
|
196
|
-
key: "8npq4p"
|
|
197
|
-
}],
|
|
198
|
-
["path", {
|
|
199
|
-
d: "M9 19h6",
|
|
200
|
-
key: "456am0"
|
|
201
|
-
}]
|
|
202
|
-
]), de = F("loader-circle", [["path", {
|
|
189
|
+
var ue = F("funnel", [["path", {
|
|
190
|
+
d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
|
|
191
|
+
key: "sc7q7i"
|
|
192
|
+
}]]), de = F("loader-circle", [["path", {
|
|
203
193
|
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
|
204
194
|
key: "13zald"
|
|
205
195
|
}]]);
|
|
@@ -9053,16 +9043,18 @@ var Cy = {
|
|
|
9053
9043
|
cancel: "Cancel",
|
|
9054
9044
|
close: "Close"
|
|
9055
9045
|
};
|
|
9056
|
-
function wy({ items: e,
|
|
9046
|
+
function wy({ items: e, variant: t = "record", className: n, ...r }) {
|
|
9047
|
+
let i = t === "form-review";
|
|
9057
9048
|
return /* @__PURE__ */ _("div", {
|
|
9058
9049
|
className: "ttw:@container/description-list ttw:min-w-0 ttw:w-full",
|
|
9059
9050
|
children: /* @__PURE__ */ _("dl", {
|
|
9060
9051
|
"data-slot": "description-list",
|
|
9061
|
-
|
|
9062
|
-
|
|
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,
|
|
9063
9055
|
children: e.map((e, t) => /* @__PURE__ */ v("div", {
|
|
9064
9056
|
"data-slot": "description-list-item",
|
|
9065
|
-
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"),
|
|
9066
9058
|
children: [/* @__PURE__ */ _("dt", {
|
|
9067
9059
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
9068
9060
|
children: e.label
|
|
@@ -17435,9 +17427,12 @@ function OM({ activeCount: e, size: t = "sm", labels: n, className: r, ...i }) {
|
|
|
17435
17427
|
};
|
|
17436
17428
|
return /* @__PURE__ */ v("button", {
|
|
17437
17429
|
type: "button",
|
|
17438
|
-
className: Y(
|
|
17430
|
+
className: Y(Cv({
|
|
17431
|
+
variant: "ghost",
|
|
17432
|
+
size: t
|
|
17433
|
+
}), r),
|
|
17439
17434
|
...i,
|
|
17440
|
-
children: [/* @__PURE__ */ _(ue, {
|
|
17435
|
+
children: [/* @__PURE__ */ _(ue, { "aria-hidden": !0 }), /* @__PURE__ */ v("span", { children: [a.filters, e !== void 0 && e > 0 ? ` (${e})` : null] })]
|
|
17441
17436
|
});
|
|
17442
17437
|
}
|
|
17443
17438
|
var kM = {
|
|
@@ -17535,82 +17530,24 @@ function MM({ searchSlot: e, menuSlot: t, presetsSlot: n, activeChipsSlot: r, ov
|
|
|
17535
17530
|
tags: r || i ? /* @__PURE__ */ v(g, { children: [r, i] }) : void 0
|
|
17536
17531
|
});
|
|
17537
17532
|
}
|
|
17538
|
-
|
|
17539
|
-
function PM(e) {
|
|
17540
|
-
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) => {
|
|
17541
|
-
let r = e.replace(/\D/g, "");
|
|
17542
|
-
return t < 2 && t < n.length - 1 && r.length === 1 ? `0${r}` : r;
|
|
17543
|
-
}).join("").slice(0, NM);
|
|
17544
|
-
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)}`;
|
|
17545
|
-
}
|
|
17546
|
-
function FM(e) {
|
|
17547
|
-
let t = /^(\d{2})\/(\d{2})\/(\d{4})$/.exec(e);
|
|
17548
|
-
if (!t) return;
|
|
17549
|
-
let n = Number(t[1]), r = Number(t[2]), i = Number(t[3]), a = new Date(i, n - 1, r);
|
|
17550
|
-
return a.setFullYear(i), a.getFullYear() === i && a.getMonth() === n - 1 && a.getDate() === r ? a : void 0;
|
|
17551
|
-
}
|
|
17552
|
-
function IM(e) {
|
|
17553
|
-
return `${String(e.getMonth() + 1).padStart(2, "0")}/${String(e.getDate()).padStart(2, "0")}/${String(e.getFullYear()).padStart(4, "0")}`;
|
|
17554
|
-
}
|
|
17555
|
-
var LM = (e) => Number.isNaN(e.getTime());
|
|
17556
|
-
function RM(e) {
|
|
17557
|
-
if (e !== "") return FM(e) ?? /* @__PURE__ */ new Date(NaN);
|
|
17558
|
-
}
|
|
17559
|
-
function zM(e) {
|
|
17560
|
-
return e && !LM(e) ? IM(e) : "";
|
|
17561
|
-
}
|
|
17562
|
-
function BM(e, t) {
|
|
17563
|
-
let n = PM(t).replace(/\D/g, "").length, r = 0;
|
|
17564
|
-
for (let t = 0; t < n && r < e.length;) /\d/.test(e[r]) && (t += 1), r += 1;
|
|
17565
|
-
return t.endsWith("/") && e[r] === "/" ? r + 1 : r;
|
|
17566
|
-
}
|
|
17567
|
-
function VM(e, t) {
|
|
17568
|
-
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();
|
|
17569
|
-
}
|
|
17570
|
-
function HM({ value: t, onChange: n, autoComplete: r = "bday", ref: i, ...a }) {
|
|
17571
|
-
let [o, s] = e.useState(() => zM(t)), c = e.useRef(null), l = e.useRef(null), u = e.useMemo(() => UM(c, i), [i]);
|
|
17572
|
-
return !VM(RM(o), t) && zM(t) !== o && s(zM(t)), e.useLayoutEffect(() => {
|
|
17573
|
-
let e = l.current;
|
|
17574
|
-
l.current = null, e !== null && c.current?.setSelectionRange(e, e);
|
|
17575
|
-
}), /* @__PURE__ */ _(vx, {
|
|
17576
|
-
...a,
|
|
17577
|
-
ref: u,
|
|
17578
|
-
type: "text",
|
|
17579
|
-
inputMode: "numeric",
|
|
17580
|
-
autoComplete: r,
|
|
17581
|
-
maxLength: 10,
|
|
17582
|
-
value: o,
|
|
17583
|
-
onChange: (e) => {
|
|
17584
|
-
let r = e.target.value, i = PM(r), a = e.target.selectionStart;
|
|
17585
|
-
l.current = a !== null && a < r.length ? BM(i, r.slice(0, a)) : null;
|
|
17586
|
-
let o = RM(i);
|
|
17587
|
-
s(i), VM(o, t) || n(o);
|
|
17588
|
-
}
|
|
17589
|
-
});
|
|
17590
|
-
}
|
|
17591
|
-
function UM(...e) {
|
|
17592
|
-
return (t) => {
|
|
17593
|
-
for (let n of e) typeof n == "function" ? n(t) : n && (n.current = t);
|
|
17594
|
-
};
|
|
17595
|
-
}
|
|
17596
|
-
function WM(e) {
|
|
17533
|
+
function NM(e) {
|
|
17597
17534
|
return e.toLocaleDateString("en-US", {
|
|
17598
17535
|
year: "numeric",
|
|
17599
17536
|
month: "short",
|
|
17600
17537
|
day: "numeric"
|
|
17601
17538
|
});
|
|
17602
17539
|
}
|
|
17603
|
-
function
|
|
17540
|
+
function PM(e) {
|
|
17604
17541
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
17605
17542
|
}
|
|
17606
|
-
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" }) {
|
|
17607
17544
|
let [g, y] = e.useState(!1), b = (e) => {
|
|
17608
17545
|
y(e), e || p?.();
|
|
17609
17546
|
}, x = e.useMemo(() => {
|
|
17610
17547
|
let e = [
|
|
17611
17548
|
...a ? [{ before: a }] : [],
|
|
17612
17549
|
...o ? [{ after: o }] : [],
|
|
17613
|
-
...
|
|
17550
|
+
...PM(c)
|
|
17614
17551
|
];
|
|
17615
17552
|
if (e.length !== 0) return e.length === 1 ? e[0] : e;
|
|
17616
17553
|
}, [
|
|
@@ -17636,7 +17573,7 @@ function KM({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i
|
|
|
17636
17573
|
className: Y("ttw:w-full ttw:justify-start ttw:text-left ttw:font-normal", !t && "ttw:text-muted-foreground", l),
|
|
17637
17574
|
children: [
|
|
17638
17575
|
h === "start" && /* @__PURE__ */ _(L, { className: "ttw:mr-2 ttw:size-4" }),
|
|
17639
|
-
t ?
|
|
17576
|
+
t ? NM(t) : r,
|
|
17640
17577
|
h === "end" && /* @__PURE__ */ _(L, { className: "ttw:ml-auto ttw:size-4" })
|
|
17641
17578
|
]
|
|
17642
17579
|
})
|
|
@@ -17659,13 +17596,13 @@ function KM({ value: t, onChange: n, placeholder: r = "Pick a date", disabled: i
|
|
|
17659
17596
|
})]
|
|
17660
17597
|
});
|
|
17661
17598
|
}
|
|
17662
|
-
var
|
|
17599
|
+
var IM = {
|
|
17663
17600
|
fieldLabel: "Date range",
|
|
17664
17601
|
presetPlaceholder: "Custom range"
|
|
17665
17602
|
};
|
|
17666
|
-
function
|
|
17603
|
+
function LM({ from: t, to: n, onRangeChange: r, selectedPreset: i, onPresetChange: a, presets: o = [], labels: s, className: c }) {
|
|
17667
17604
|
let l = {
|
|
17668
|
-
...
|
|
17605
|
+
...IM,
|
|
17669
17606
|
...s
|
|
17670
17607
|
}, u = {
|
|
17671
17608
|
from: t,
|
|
@@ -17713,7 +17650,7 @@ function JM({ from: t, to: n, onRangeChange: r, selectedPreset: i, onPresetChang
|
|
|
17713
17650
|
})]
|
|
17714
17651
|
});
|
|
17715
17652
|
}
|
|
17716
|
-
function
|
|
17653
|
+
function RM({ options: e, selectedValues: t, onSelectionChange: n, className: r, hasMore: i, onLoadMore: a }) {
|
|
17717
17654
|
let o = (e) => {
|
|
17718
17655
|
n(t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
17719
17656
|
};
|
|
@@ -17744,7 +17681,7 @@ function YM({ options: e, selectedValues: t, onSelectionChange: n, className: r,
|
|
|
17744
17681
|
}, e.value))
|
|
17745
17682
|
});
|
|
17746
17683
|
}
|
|
17747
|
-
var
|
|
17684
|
+
var zM = {
|
|
17748
17685
|
min: "Greater than",
|
|
17749
17686
|
max: "Less than",
|
|
17750
17687
|
modeAny: "Any",
|
|
@@ -17754,7 +17691,7 @@ var XM = {
|
|
|
17754
17691
|
flowIn: "Flowing in",
|
|
17755
17692
|
flowOut: "Flowing out"
|
|
17756
17693
|
};
|
|
17757
|
-
function
|
|
17694
|
+
function BM({ value: e, onValueChange: t, placeholder: n = "0.00", label: r }) {
|
|
17758
17695
|
return /* @__PURE__ */ v("div", {
|
|
17759
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"),
|
|
17760
17697
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -17771,9 +17708,9 @@ function ZM({ value: e, onValueChange: t, placeholder: n = "0.00", label: r }) {
|
|
|
17771
17708
|
})]
|
|
17772
17709
|
});
|
|
17773
17710
|
}
|
|
17774
|
-
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 }) {
|
|
17775
17712
|
let d = {
|
|
17776
|
-
...
|
|
17713
|
+
...zM,
|
|
17777
17714
|
...l
|
|
17778
17715
|
};
|
|
17779
17716
|
return /* @__PURE__ */ v("div", {
|
|
@@ -17836,7 +17773,7 @@ function QM({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i
|
|
|
17836
17773
|
children: [/* @__PURE__ */ _("span", {
|
|
17837
17774
|
className: "ttw:text-xs ttw:text-muted-foreground ttw:w-24 ttw:shrink-0",
|
|
17838
17775
|
children: d.min
|
|
17839
|
-
}), /* @__PURE__ */ _(
|
|
17776
|
+
}), /* @__PURE__ */ _(BM, {
|
|
17840
17777
|
value: n,
|
|
17841
17778
|
onValueChange: i,
|
|
17842
17779
|
label: d.min
|
|
@@ -17846,12 +17783,12 @@ function QM({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i
|
|
|
17846
17783
|
children: [/* @__PURE__ */ _("span", {
|
|
17847
17784
|
className: "ttw:text-xs ttw:text-muted-foreground ttw:w-24 ttw:shrink-0",
|
|
17848
17785
|
children: d.max
|
|
17849
|
-
}), /* @__PURE__ */ _(
|
|
17786
|
+
}), /* @__PURE__ */ _(BM, {
|
|
17850
17787
|
value: r,
|
|
17851
17788
|
onValueChange: a,
|
|
17852
17789
|
label: d.max
|
|
17853
17790
|
})]
|
|
17854
|
-
})] }) : /* @__PURE__ */ _(
|
|
17791
|
+
})] }) : /* @__PURE__ */ _(BM, {
|
|
17855
17792
|
value: n,
|
|
17856
17793
|
onValueChange: i,
|
|
17857
17794
|
label: d.modeExact
|
|
@@ -17860,7 +17797,7 @@ function QM({ mode: e, onModeChange: t, min: n = "", max: r = "", onMinChange: i
|
|
|
17860
17797
|
]
|
|
17861
17798
|
});
|
|
17862
17799
|
}
|
|
17863
|
-
function
|
|
17800
|
+
function HM({ className: e, ...t }) {
|
|
17864
17801
|
return /* @__PURE__ */ v("div", {
|
|
17865
17802
|
className: "ttw:relative",
|
|
17866
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", {
|
|
@@ -17870,13 +17807,13 @@ function $M({ className: e, ...t }) {
|
|
|
17870
17807
|
})]
|
|
17871
17808
|
});
|
|
17872
17809
|
}
|
|
17873
|
-
var
|
|
17810
|
+
var UM = { closeToast: "Close notification" }, WM = {
|
|
17874
17811
|
toast: "ttw:font-sans ttw:text-sm ttw:shadow-md",
|
|
17875
17812
|
description: "ttw:text-sm",
|
|
17876
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",
|
|
17877
17814
|
cancelButton: "ttw:bg-muted ttw:text-muted-foreground ttw:rounded-md ttw:text-xs ttw:px-2.5 ttw:py-1"
|
|
17878
17815
|
};
|
|
17879
|
-
function
|
|
17816
|
+
function GM({ toastOptions: e, ...t }) {
|
|
17880
17817
|
return /* @__PURE__ */ _(w, {
|
|
17881
17818
|
className: "toaster group",
|
|
17882
17819
|
position: "bottom-right",
|
|
@@ -17912,16 +17849,16 @@ function nN({ toastOptions: e, ...t }) {
|
|
|
17912
17849
|
},
|
|
17913
17850
|
...t,
|
|
17914
17851
|
toastOptions: {
|
|
17915
|
-
closeButtonAriaLabel:
|
|
17852
|
+
closeButtonAriaLabel: UM.closeToast,
|
|
17916
17853
|
...e,
|
|
17917
17854
|
classNames: {
|
|
17918
|
-
...
|
|
17855
|
+
...WM,
|
|
17919
17856
|
...e?.classNames
|
|
17920
17857
|
}
|
|
17921
17858
|
}
|
|
17922
17859
|
});
|
|
17923
17860
|
}
|
|
17924
|
-
function
|
|
17861
|
+
function KM() {
|
|
17925
17862
|
let [e, t] = f(!1), [n, r] = f(null);
|
|
17926
17863
|
return {
|
|
17927
17864
|
isMenuOpen: e,
|
|
@@ -17939,4 +17876,4 @@ function rN() {
|
|
|
17939
17876
|
}, [n])
|
|
17940
17877
|
};
|
|
17941
17878
|
}
|
|
17942
|
-
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 };
|