@tesouro/embedded-components-react 0.11.9 → 0.11.11
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 +12 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +99 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +110 -100
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +45 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +259 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +190 -165
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +151 -143
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +77 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +1 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupCollapse.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1637 -1507
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -28
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js
CHANGED
|
@@ -1,81 +1,97 @@
|
|
|
1
|
-
import { Badge as e, Button as t, Skeleton as n,
|
|
2
|
-
import { BillStatusBadge as
|
|
1
|
+
import { Badge as e, Button as t, Skeleton as n, Table as r, TableBody as i, TableCard as a, TableCardCollapseToggle as o, TableCardFooter as s, TableCardHeader as c, TableCell as l, TableHead as u, TableHeader as d, TableRow as f, cn as p } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { BillStatusBadge as m } from "../../../../shared/document-status/ui/dist/index4.js";
|
|
3
3
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { BillDuplicateIcon as h } from "../../../ui/dist/index6.js";
|
|
5
|
+
import { BillDuplicateWarning as g } from "../../../ui/dist/index8.js";
|
|
5
6
|
import "../../../ui/dist/index.js";
|
|
6
|
-
import { BILL_DUPLICATE_NOTICE_LABELS_EN as
|
|
7
|
-
import { useState as
|
|
8
|
-
import { Fragment as
|
|
9
|
-
import { MoveDiagonal2Icon as
|
|
7
|
+
import { BILL_DUPLICATE_NOTICE_LABELS_EN as _ } from "./index36.js";
|
|
8
|
+
import { useId as v, useState as y } from "react";
|
|
9
|
+
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
10
|
+
import { MoveDiagonal2Icon as C } from "lucide-react";
|
|
10
11
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js
|
|
11
|
-
var
|
|
12
|
+
var w = [
|
|
12
13
|
"ttw:w-24",
|
|
13
14
|
"ttw:w-20",
|
|
14
15
|
"ttw:ml-auto ttw:w-16",
|
|
15
16
|
"ttw:w-20"
|
|
16
|
-
],
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
...
|
|
20
|
-
...
|
|
21
|
-
},
|
|
17
|
+
], T = 2;
|
|
18
|
+
function E({ message: E, title: D, meta: O, onNotADuplicate: k, onRemoveBill: A, onOpenFullScreen: j, isActionDisabled: M, rows: N, isLoading: P, loadingRowCount: F = T, collapse: I, testId: L, labels: R }) {
|
|
19
|
+
let z = {
|
|
20
|
+
..._,
|
|
21
|
+
...R
|
|
22
|
+
}, B = v(), V = !!N?.length, H = !V && P === !0, [U, W] = y(!1), G = I && !U ? N?.slice(0, I.visibleCount) : N, K = k || A ? /* @__PURE__ */ S(b, { children: [k ? /* @__PURE__ */ x(t, {
|
|
22
23
|
type: "button",
|
|
23
24
|
variant: "outline",
|
|
24
25
|
size: "sm",
|
|
25
|
-
className: "ttw:
|
|
26
|
-
disabled:
|
|
27
|
-
onClick:
|
|
28
|
-
children:
|
|
29
|
-
}) : null,
|
|
26
|
+
className: "ttw:text-foreground",
|
|
27
|
+
disabled: M,
|
|
28
|
+
onClick: k,
|
|
29
|
+
children: z.notADuplicateButton
|
|
30
|
+
}) : null, A ? /* @__PURE__ */ x(t, {
|
|
30
31
|
type: "button",
|
|
31
|
-
variant:
|
|
32
|
+
variant: "outline",
|
|
32
33
|
size: "sm",
|
|
33
|
-
className:
|
|
34
|
-
disabled:
|
|
35
|
-
onClick:
|
|
36
|
-
children:
|
|
34
|
+
className: "ttw:text-foreground",
|
|
35
|
+
disabled: M,
|
|
36
|
+
onClick: A,
|
|
37
|
+
children: z.removeBillButton
|
|
37
38
|
}) : null] }) : null;
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
39
|
+
return V || H ? /* @__PURE__ */ S(a, {
|
|
40
|
+
tone: "warning",
|
|
41
|
+
role: "group",
|
|
42
|
+
"aria-labelledby": B,
|
|
43
|
+
"data-testid": L,
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ x(c, {
|
|
46
|
+
id: B,
|
|
47
|
+
icon: /* @__PURE__ */ x(h, {}),
|
|
48
|
+
title: D ? /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ S("span", {
|
|
49
|
+
className: "ttw:sr-only",
|
|
50
|
+
children: [z.titleAnnouncement, " "]
|
|
51
|
+
}), D] }) : E || z.message,
|
|
52
|
+
meta: O
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ S("div", {
|
|
55
|
+
"aria-busy": H || void 0,
|
|
56
|
+
children: [/* @__PURE__ */ S(r, {
|
|
57
|
+
className: "ttw:min-w-100",
|
|
58
|
+
children: [/* @__PURE__ */ x(d, { children: /* @__PURE__ */ S(f, {
|
|
59
|
+
className: "ttw:hover:bg-transparent",
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ x(u, {
|
|
62
|
+
scope: "col",
|
|
63
|
+
className: "ttw:h-9 ttw:text-xs",
|
|
64
|
+
children: z.createdOnColumn
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ x(u, {
|
|
67
|
+
scope: "col",
|
|
68
|
+
className: "ttw:h-9 ttw:text-xs",
|
|
69
|
+
children: z.dueDateColumn
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ x(u, {
|
|
72
|
+
scope: "col",
|
|
73
|
+
className: "ttw:h-9 ttw:text-right ttw:text-xs",
|
|
74
|
+
children: z.amountColumn
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ x(u, {
|
|
77
|
+
scope: "col",
|
|
78
|
+
className: "ttw:h-9 ttw:text-xs",
|
|
79
|
+
children: z.statusColumn
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
}) }), /* @__PURE__ */ S(i, { children: [H ? Array.from({ length: F }, (e, t) => /* @__PURE__ */ x(f, {
|
|
69
83
|
"aria-hidden": !0,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
84
|
+
className: "ttw:hover:bg-transparent",
|
|
85
|
+
children: w.map((e, t) => /* @__PURE__ */ x(l, {
|
|
86
|
+
className: "ttw:py-2.5",
|
|
87
|
+
children: /* @__PURE__ */ x(n, { className: p("ttw:h-4", e) })
|
|
73
88
|
}, t))
|
|
74
|
-
}, t)) : null,
|
|
89
|
+
}, t)) : null, G?.map((t) => {
|
|
75
90
|
let n = t.isCurrent ? void 0 : t.onOpen;
|
|
76
|
-
return /* @__PURE__ */
|
|
91
|
+
return /* @__PURE__ */ S(f, {
|
|
77
92
|
"aria-current": t.isCurrent || void 0,
|
|
78
|
-
|
|
93
|
+
"data-state": t.isCurrent ? "selected" : void 0,
|
|
94
|
+
className: p(t.isCurrent && "ttw:hover:bg-muted", n && "ttw:cursor-pointer ttw:hover:bg-muted/50 ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring"),
|
|
79
95
|
tabIndex: n ? 0 : void 0,
|
|
80
96
|
"aria-label": n ? t.openLabel : void 0,
|
|
81
97
|
onClick: n,
|
|
@@ -83,27 +99,27 @@ function g({ message: g, onNotADuplicate: _, onRemoveBill: v, isRemoveBillDestru
|
|
|
83
99
|
n && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n());
|
|
84
100
|
},
|
|
85
101
|
children: [
|
|
86
|
-
/* @__PURE__ */ l
|
|
87
|
-
className:
|
|
88
|
-
children: /* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ x(l, {
|
|
103
|
+
className: "ttw:py-2.5",
|
|
104
|
+
children: /* @__PURE__ */ S("span", {
|
|
89
105
|
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-2 ttw:gap-y-1",
|
|
90
|
-
children: [/* @__PURE__ */
|
|
106
|
+
children: [/* @__PURE__ */ x("span", { children: t.createdOnLabel }), t.badges?.map((t) => /* @__PURE__ */ x(e, {
|
|
91
107
|
variant: "secondary",
|
|
92
108
|
children: t
|
|
93
109
|
}, t))]
|
|
94
110
|
})
|
|
95
111
|
}),
|
|
96
|
-
/* @__PURE__ */ l
|
|
97
|
-
className:
|
|
112
|
+
/* @__PURE__ */ x(l, {
|
|
113
|
+
className: "ttw:py-2.5",
|
|
98
114
|
children: t.dueDateLabel
|
|
99
115
|
}),
|
|
100
|
-
/* @__PURE__ */ l
|
|
101
|
-
className:
|
|
116
|
+
/* @__PURE__ */ x(l, {
|
|
117
|
+
className: "ttw:py-2.5 ttw:text-right",
|
|
102
118
|
children: t.amountLabel
|
|
103
119
|
}),
|
|
104
|
-
/* @__PURE__ */ l
|
|
105
|
-
className:
|
|
106
|
-
children: t.status ? /* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ x(l, {
|
|
121
|
+
className: "ttw:py-2.5",
|
|
122
|
+
children: t.status ? /* @__PURE__ */ x(m, {
|
|
107
123
|
status: t.status,
|
|
108
124
|
tone: t.statusTone ?? "neutral"
|
|
109
125
|
}) : null
|
|
@@ -111,42 +127,36 @@ function g({ message: g, onNotADuplicate: _, onRemoveBill: v, isRemoveBillDestru
|
|
|
111
127
|
]
|
|
112
128
|
}, t.id);
|
|
113
129
|
})] })]
|
|
114
|
-
}),
|
|
115
|
-
j ? /* @__PURE__ */ l("span", {
|
|
130
|
+
}), H ? /* @__PURE__ */ x("span", {
|
|
116
131
|
className: "ttw:sr-only",
|
|
117
|
-
children:
|
|
118
|
-
}) : null
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}) : null
|
|
135
|
-
}) : /* @__PURE__ */ u(a, {
|
|
136
|
-
message: g ?? k.message,
|
|
137
|
-
testId: D,
|
|
138
|
-
children: [I, b ? /* @__PURE__ */ l(t, {
|
|
132
|
+
children: z.loadingRows
|
|
133
|
+
}) : null]
|
|
134
|
+
}),
|
|
135
|
+
I && !H ? /* @__PURE__ */ x(o, {
|
|
136
|
+
collapse: I,
|
|
137
|
+
isExpanded: U,
|
|
138
|
+
onToggle: () => W((e) => !e)
|
|
139
|
+
}) : null,
|
|
140
|
+
K && !H ? /* @__PURE__ */ S(s, { children: [/* @__PURE__ */ x("span", {
|
|
141
|
+
className: "ttw:font-medium",
|
|
142
|
+
children: z.question
|
|
143
|
+
}), K] }) : null
|
|
144
|
+
]
|
|
145
|
+
}) : /* @__PURE__ */ S(g, {
|
|
146
|
+
message: E ?? z.message,
|
|
147
|
+
testId: L,
|
|
148
|
+
children: [K, j ? /* @__PURE__ */ x(t, {
|
|
139
149
|
type: "button",
|
|
140
150
|
variant: "ghost",
|
|
141
151
|
size: "icon-sm",
|
|
142
152
|
className: "ttw:text-foreground",
|
|
143
|
-
"aria-label":
|
|
144
|
-
onClick:
|
|
145
|
-
children: /* @__PURE__ */
|
|
153
|
+
"aria-label": z.openFullScreenButton,
|
|
154
|
+
onClick: j,
|
|
155
|
+
children: /* @__PURE__ */ x(C, {
|
|
146
156
|
className: "ttw:size-4",
|
|
147
157
|
"aria-hidden": !0
|
|
148
158
|
})
|
|
149
159
|
}) : null]
|
|
150
160
|
});
|
|
151
161
|
}
|
|
152
|
-
export {
|
|
162
|
+
export { E as BillDuplicateNotice, E as default };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/
|
|
1
|
+
import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index16.js";
|
|
2
2
|
import "../../../ui/dist/index.js";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js
|
|
4
4
|
var t = {
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button as e, Skeleton as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { BillUploadDropzone as n } from "../../../ui/dist/
|
|
2
|
+
import { BillUploadDropzone as n } from "../../../ui/dist/index17.js";
|
|
3
3
|
import "../../../ui/dist/index.js";
|
|
4
4
|
import { SOURCE_DOCUMENT_PANEL_LABELS_EN as r } from "./index48.js";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Badge as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { BILL_STATUS_TONE_CLASS_NAME as t } from "../../../../shared/document-status/ui/dist/index3.js";
|
|
3
3
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
4
|
-
import { DateDisclosure as n } from "../../../ui/dist/
|
|
4
|
+
import { DateDisclosure as n } from "../../../ui/dist/index20.js";
|
|
5
5
|
import "../../../ui/dist/index.js";
|
|
6
6
|
import { jsx as r } from "react/jsx-runtime";
|
|
7
7
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js
CHANGED
|
@@ -1,88 +1,93 @@
|
|
|
1
1
|
import { cn as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { BillDuplicateIcon as t } from "../../../ui/dist/index6.js";
|
|
3
|
+
import "../../../ui/dist/index.js";
|
|
4
|
+
import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as n } from "./index2.js";
|
|
5
|
+
import { UPLOAD_ITEM_ICON_TONE as r } from "./index3.js";
|
|
6
|
+
import { useId as i } from "react";
|
|
7
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
import { CheckCircle2 as c, ChevronDown as l, ChevronRight as u, ChevronUp as d, Loader2 as f, X as p, XCircle as m } from "lucide-react";
|
|
7
9
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js
|
|
8
|
-
function h({ status:
|
|
9
|
-
let
|
|
10
|
-
return
|
|
10
|
+
function h({ status: n }) {
|
|
11
|
+
let i = e("ttw:size-4", r[n]);
|
|
12
|
+
return n === "uploading" ? /* @__PURE__ */ o(f, {
|
|
11
13
|
"aria-hidden": !0,
|
|
12
|
-
className: e(
|
|
13
|
-
}) :
|
|
14
|
+
className: e(i, "ttw:animate-spin")
|
|
15
|
+
}) : n === "ready" ? /* @__PURE__ */ o(c, {
|
|
14
16
|
"aria-hidden": !0,
|
|
15
|
-
className:
|
|
17
|
+
className: i
|
|
18
|
+
}) : n === "duplicate" ? /* @__PURE__ */ o(t, { className: i }) : /* @__PURE__ */ o(m, {
|
|
19
|
+
"aria-hidden": !0,
|
|
20
|
+
className: i
|
|
16
21
|
});
|
|
17
22
|
}
|
|
18
23
|
function g({ item: t, labels: n }) {
|
|
19
|
-
let
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
id:
|
|
24
|
+
let r = i(), c = /* @__PURE__ */ s(a, { children: [
|
|
25
|
+
/* @__PURE__ */ o(h, { status: t.status }),
|
|
26
|
+
/* @__PURE__ */ o("span", {
|
|
27
|
+
id: r,
|
|
23
28
|
className: "ttw:sr-only",
|
|
24
29
|
children: n.statusLabel(t.status)
|
|
25
30
|
}),
|
|
26
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ o("span", {
|
|
27
32
|
className: "ttw:flex-1 ttw:truncate ttw:text-left ttw:text-sm ttw:text-foreground",
|
|
28
33
|
children: t.fileName
|
|
29
34
|
}),
|
|
30
|
-
t.onOpen ? /* @__PURE__ */
|
|
35
|
+
t.onOpen ? /* @__PURE__ */ o(u, {
|
|
31
36
|
"aria-hidden": !0,
|
|
32
37
|
className: "ttw:size-4"
|
|
33
38
|
}) : null
|
|
34
|
-
] }),
|
|
35
|
-
return t.onOpen ? /* @__PURE__ */
|
|
39
|
+
] }), l = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
|
|
40
|
+
return t.onOpen ? /* @__PURE__ */ o("button", {
|
|
36
41
|
type: "button",
|
|
37
42
|
onClick: t.onOpen,
|
|
38
|
-
"aria-describedby":
|
|
43
|
+
"aria-describedby": r,
|
|
39
44
|
"aria-label": n.openItem(t.fileName),
|
|
40
|
-
className: e(
|
|
45
|
+
className: e(l, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
|
|
41
46
|
children: c
|
|
42
|
-
}) : /* @__PURE__ */
|
|
43
|
-
"aria-describedby":
|
|
44
|
-
className:
|
|
47
|
+
}) : /* @__PURE__ */ o("div", {
|
|
48
|
+
"aria-describedby": r,
|
|
49
|
+
className: l,
|
|
45
50
|
children: c
|
|
46
51
|
});
|
|
47
52
|
}
|
|
48
|
-
function _({ sections: e, summaryLabel:
|
|
53
|
+
function _({ sections: e, summaryLabel: t, collapsed: r, onToggleCollapsed: i, onClose: a, testId: c, labels: u }) {
|
|
49
54
|
let f = {
|
|
50
|
-
...
|
|
51
|
-
...
|
|
55
|
+
...n,
|
|
56
|
+
...u
|
|
52
57
|
};
|
|
53
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ s("div", {
|
|
54
59
|
className: "ttw:fixed ttw:right-4 ttw:bottom-4 ttw:z-50 ttw:w-96 ttw:max-w-[calc(100vw-2rem)] ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
55
|
-
"data-testid":
|
|
56
|
-
children: [/* @__PURE__ */
|
|
60
|
+
"data-testid": c,
|
|
61
|
+
children: [/* @__PURE__ */ s("div", {
|
|
57
62
|
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-b ttw:border-border ttw:bg-muted/40 ttw:px-4 ttw:py-3",
|
|
58
63
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ o("span", {
|
|
60
65
|
"aria-live": "polite",
|
|
61
66
|
className: "ttw:flex-1 ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
62
|
-
children:
|
|
67
|
+
children: t
|
|
63
68
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ o("button", {
|
|
65
70
|
type: "button",
|
|
66
71
|
onClick: i,
|
|
67
72
|
"aria-label": r ? f.expand : f.collapse,
|
|
68
73
|
"aria-expanded": !r,
|
|
69
74
|
className: "ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
70
|
-
children:
|
|
75
|
+
children: o(r ? d : l, { className: "ttw:size-4" })
|
|
71
76
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
77
|
+
/* @__PURE__ */ o("button", {
|
|
73
78
|
type: "button",
|
|
74
|
-
onClick:
|
|
79
|
+
onClick: a,
|
|
75
80
|
"aria-label": f.close,
|
|
76
81
|
className: "ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
77
|
-
children: /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ o(p, { className: "ttw:size-4" })
|
|
78
83
|
})
|
|
79
84
|
]
|
|
80
|
-
}), r ? null : /* @__PURE__ */
|
|
85
|
+
}), r ? null : /* @__PURE__ */ o("div", {
|
|
81
86
|
className: "ttw:max-h-96 ttw:overflow-y-auto",
|
|
82
|
-
children: e.map((e) => /* @__PURE__ */
|
|
87
|
+
children: e.map((e) => /* @__PURE__ */ s("div", { children: [e.caption ? /* @__PURE__ */ o("p", {
|
|
83
88
|
className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
|
|
84
89
|
children: e.caption
|
|
85
|
-
}) : null, e.items.map((e) => /* @__PURE__ */
|
|
90
|
+
}) : null, e.items.map((e) => /* @__PURE__ */ o(g, {
|
|
86
91
|
item: e,
|
|
87
92
|
labels: f
|
|
88
93
|
}, e.id))] }, e.id))
|