@tesouro/embedded-components-react 0.11.51 → 0.11.52
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/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.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.52", n = "47669c8152ff56a2d365054eada1227258b8bf85", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ErrorState as
|
|
1
|
+
import { DisplayAmount as e, Skeleton as t, Typography as n, cn as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ErrorState as i } from "../../../ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
3
|
import "../../../ui/dist/index.js";
|
|
4
|
-
import { QUICK_VIEW_TILE_LABELS_EN as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { ChevronRight as
|
|
4
|
+
import { QUICK_VIEW_TILE_LABELS_EN as a } from "./index2.js";
|
|
5
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronRight as l } from "lucide-react";
|
|
7
7
|
// ../../libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js
|
|
8
|
-
var
|
|
9
|
-
function
|
|
10
|
-
let
|
|
11
|
-
...
|
|
12
|
-
...
|
|
13
|
-
},
|
|
14
|
-
text:
|
|
15
|
-
tone:
|
|
16
|
-
}] : [] :
|
|
17
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
18
|
-
children: [/* @__PURE__ */
|
|
8
|
+
var u = "ttw:flex ttw:w-[320px] ttw:min-w-0 ttw:max-w-full ttw:flex-col ttw:gap-1 ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:text-left ttw:text-card-foreground";
|
|
9
|
+
function d({ title: d, value: f, subtext: p, subtextTone: m = "muted", linkText: h, onClick: g, ariaLabel: _, isLoading: v = !1, isError: y = !1, onRetry: b, labels: x, testIds: S, className: C, style: w }) {
|
|
10
|
+
let T = {
|
|
11
|
+
...a,
|
|
12
|
+
...x
|
|
13
|
+
}, E = typeof p == "string" ? p ? [{
|
|
14
|
+
text: p,
|
|
15
|
+
tone: m
|
|
16
|
+
}] : [] : p ?? [], D = !!g && !v && !y, O = /* @__PURE__ */ c("span", {
|
|
17
|
+
className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:justify-between ttw:gap-2",
|
|
18
|
+
children: [/* @__PURE__ */ s(n, {
|
|
19
19
|
component: "span",
|
|
20
20
|
variant: "body2",
|
|
21
21
|
color: "muted",
|
|
22
|
-
className: "ttw:font-semibold",
|
|
23
|
-
children:
|
|
24
|
-
}),
|
|
22
|
+
className: "ttw:min-w-0 ttw:break-words ttw:font-semibold",
|
|
23
|
+
children: d
|
|
24
|
+
}), D ? /* @__PURE__ */ s(l, {
|
|
25
25
|
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
|
|
26
26
|
"aria-hidden": !0
|
|
27
27
|
}) : null]
|
|
28
28
|
});
|
|
29
|
-
if (
|
|
30
|
-
className:
|
|
31
|
-
style:
|
|
32
|
-
"data-testid":
|
|
33
|
-
children: [
|
|
29
|
+
if (v) return /* @__PURE__ */ c("div", {
|
|
30
|
+
className: r(u, C),
|
|
31
|
+
style: w,
|
|
32
|
+
"data-testid": S?.tile,
|
|
33
|
+
children: [O, /* @__PURE__ */ c("div", {
|
|
34
34
|
role: "status",
|
|
35
35
|
"aria-busy": !0,
|
|
36
36
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
37
37
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ s("span", {
|
|
39
39
|
className: "ttw:sr-only",
|
|
40
|
-
children:
|
|
40
|
+
children: T.loadingLabel
|
|
41
41
|
}),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
"data-testid":
|
|
42
|
+
/* @__PURE__ */ s(t, {
|
|
43
|
+
"data-testid": S?.skeleton,
|
|
44
44
|
height: 36,
|
|
45
45
|
width: "60%",
|
|
46
46
|
className: "ttw:rounded-md"
|
|
47
47
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ s(t, {
|
|
49
49
|
height: 16,
|
|
50
50
|
width: "30%",
|
|
51
51
|
className: "ttw:rounded-md"
|
|
@@ -53,54 +53,53 @@ function u({ title: u, value: d, subtext: f, subtextTone: p = "muted", linkText:
|
|
|
53
53
|
]
|
|
54
54
|
})]
|
|
55
55
|
});
|
|
56
|
-
if (
|
|
57
|
-
className:
|
|
58
|
-
style:
|
|
59
|
-
"data-testid":
|
|
60
|
-
children: [
|
|
61
|
-
title:
|
|
62
|
-
retryLabel:
|
|
63
|
-
onRetry:
|
|
56
|
+
if (y) return /* @__PURE__ */ c("div", {
|
|
57
|
+
className: r(u, C),
|
|
58
|
+
style: w,
|
|
59
|
+
"data-testid": S?.tile,
|
|
60
|
+
children: [O, /* @__PURE__ */ s(i, {
|
|
61
|
+
title: T.loadErrorTitle,
|
|
62
|
+
retryLabel: T.loadErrorRetry,
|
|
63
|
+
onRetry: b,
|
|
64
64
|
className: "ttw:px-0 ttw:py-4",
|
|
65
|
-
testId:
|
|
65
|
+
testId: S?.error
|
|
66
66
|
})]
|
|
67
67
|
});
|
|
68
|
-
let
|
|
69
|
-
|
|
70
|
-
/* @__PURE__ */
|
|
68
|
+
let k = /* @__PURE__ */ c(o, { children: [
|
|
69
|
+
O,
|
|
70
|
+
/* @__PURE__ */ s(e, {
|
|
71
71
|
component: "span",
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
children: d
|
|
72
|
+
className: "ttw:block ttw:min-w-0 ttw:break-words ttw:leading-tight ttw:tracking-tight ttw:text-foreground",
|
|
73
|
+
children: f
|
|
75
74
|
}),
|
|
76
|
-
|
|
77
|
-
className: "ttw:block ttw:text-sm ttw:leading-6",
|
|
78
|
-
children:
|
|
75
|
+
E.length > 0 ? /* @__PURE__ */ s("span", {
|
|
76
|
+
className: "ttw:block ttw:min-w-0 ttw:break-words ttw:text-sm ttw:leading-6",
|
|
77
|
+
children: E.map(({ text: e, tone: t = "muted" }, i) => /* @__PURE__ */ s(n, {
|
|
79
78
|
component: "span",
|
|
80
79
|
variant: "body2",
|
|
81
|
-
color:
|
|
82
|
-
className:
|
|
80
|
+
color: t,
|
|
81
|
+
className: r(t !== "muted" && "ttw:font-medium"),
|
|
83
82
|
children: e
|
|
84
83
|
}, i))
|
|
85
84
|
}) : null,
|
|
86
|
-
|
|
87
|
-
className: "ttw:mt-3 ttw:text-sm ttw:font-medium ttw:text-primary ttw:group-hover:underline",
|
|
88
|
-
children:
|
|
85
|
+
D && h ? /* @__PURE__ */ s("span", {
|
|
86
|
+
className: "ttw:mt-3 ttw:min-w-0 ttw:break-words ttw:text-sm ttw:font-medium ttw:text-primary ttw:group-hover:underline",
|
|
87
|
+
children: h
|
|
89
88
|
}) : null
|
|
90
89
|
] });
|
|
91
|
-
return
|
|
90
|
+
return D ? /* @__PURE__ */ s("button", {
|
|
92
91
|
type: "button",
|
|
93
|
-
onClick:
|
|
94
|
-
"aria-label":
|
|
95
|
-
"data-testid":
|
|
96
|
-
style:
|
|
97
|
-
className:
|
|
98
|
-
children:
|
|
99
|
-
}) : /* @__PURE__ */
|
|
100
|
-
className:
|
|
101
|
-
style:
|
|
102
|
-
"data-testid":
|
|
103
|
-
children:
|
|
92
|
+
onClick: g,
|
|
93
|
+
"aria-label": _,
|
|
94
|
+
"data-testid": S?.tile,
|
|
95
|
+
style: w,
|
|
96
|
+
className: r(u, "ttw:group ttw:cursor-pointer ttw:transition-colors ttw:hover:bg-accent/40 ttw:focus-visible:outline-none ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:ring-offset-2", C),
|
|
97
|
+
children: k
|
|
98
|
+
}) : /* @__PURE__ */ s("div", {
|
|
99
|
+
className: r(u, C),
|
|
100
|
+
style: w,
|
|
101
|
+
"data-testid": S?.tile,
|
|
102
|
+
children: k
|
|
104
103
|
});
|
|
105
104
|
}
|
|
106
|
-
export {
|
|
105
|
+
export { d as QuickViewTile };
|
|
@@ -10380,11 +10380,21 @@ function Rx({ variant: e, level: t, asChild: n = !1, className: r, ...i }) {
|
|
|
10380
10380
|
...i
|
|
10381
10381
|
});
|
|
10382
10382
|
}
|
|
10383
|
-
function zx(
|
|
10383
|
+
function zx(e) {
|
|
10384
|
+
let t = Y("ttw:text-3xl ttw:font-semibold ttw:tabular-nums", e.className);
|
|
10385
|
+
if (e.component === "span") {
|
|
10386
|
+
let { component: n, ...r } = e;
|
|
10387
|
+
return /* @__PURE__ */ _("span", {
|
|
10388
|
+
"data-slot": "display-amount",
|
|
10389
|
+
...r,
|
|
10390
|
+
className: t
|
|
10391
|
+
});
|
|
10392
|
+
}
|
|
10393
|
+
let { component: n, ...r } = e;
|
|
10384
10394
|
return /* @__PURE__ */ _("p", {
|
|
10385
10395
|
"data-slot": "display-amount",
|
|
10386
|
-
|
|
10387
|
-
|
|
10396
|
+
...r,
|
|
10397
|
+
className: t
|
|
10388
10398
|
});
|
|
10389
10399
|
}
|
|
10390
10400
|
function Bx({ className: e, type: t, ...n }) {
|