@tesouro/embedded-components-react 0.11.9 → 0.11.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/index.css +12 -49
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +8 -6
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +99 -94
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +3 -4
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +2 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +110 -100
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +45 -40
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +259 -210
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +190 -165
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +7 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +151 -143
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -17
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +13 -2
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +52 -2
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -40
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +3 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +39 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -77
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +10 -0
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +77 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +25 -26
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +3 -2
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +28 -5
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -33
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +6 -2
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +33 -0
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -0
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +9 -30
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +29 -11
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +1 -53
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +2 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupCollapse.js +22 -0
  48. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  49. package/dist/packages/shared-ui-shadcn/dist/index.js +1637 -1507
  50. package/package.json +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -28
@@ -1,81 +1,97 @@
1
- import { Badge as e, Button as t, Skeleton as n, cn as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillStatusBadge as i } from "../../../../shared/document-status/ui/dist/index4.js";
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 { BillDuplicateWarning as a } from "../../../ui/dist/index6.js";
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 o } from "./index36.js";
7
- import { useState as s } from "react";
8
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
9
- import { MoveDiagonal2Icon as d } from "lucide-react";
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 f = "ttw:border-b ttw:border-warning/40 ttw:px-2 ttw:py-2.5 ttw:text-foreground", p = "ttw:border-b ttw:border-warning/40 ttw:px-2 ttw:py-1.5 ttw:text-left ttw:text-xs ttw:font-medium ttw:text-foreground", m = [
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
- ], h = 2;
17
- function g({ message: g, onNotADuplicate: _, onRemoveBill: v, isRemoveBillDestructive: y = !0, onOpenFullScreen: b, isActionDisabled: x, rows: S, isLoading: C, loadingRowCount: w = h, collapsedRowCount: T, showMoreLabel: E, testId: D, labels: O }) {
18
- let k = {
19
- ...o,
20
- ...O
21
- }, A = !!S?.length, j = !A && C === !0, [M, N] = s(!1), P = T !== void 0 && !!E && (S?.length ?? 0) > T, F = P && !M ? S?.slice(0, T) : S, I = _ || v ? /* @__PURE__ */ u(c, { children: [_ ? /* @__PURE__ */ l(t, {
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:bg-background ttw:text-foreground ttw:hover:bg-muted",
26
- disabled: x,
27
- onClick: _,
28
- children: k.notADuplicateButton
29
- }) : null, v ? /* @__PURE__ */ l(t, {
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: y ? "destructive" : "outline",
32
+ variant: "outline",
32
33
  size: "sm",
33
- className: r(!y && "ttw:bg-background ttw:text-foreground ttw:hover:bg-muted"),
34
- disabled: x,
35
- onClick: v,
36
- children: k.removeBillButton
34
+ className: "ttw:text-foreground",
35
+ disabled: M,
36
+ onClick: A,
37
+ children: z.removeBillButton
37
38
  }) : null] }) : null;
38
- return A || j ? /* @__PURE__ */ l(a, {
39
- message: g ?? k.message,
40
- testId: D,
41
- details: /* @__PURE__ */ u("div", {
42
- className: "ttw:overflow-x-auto",
43
- "aria-busy": j || void 0,
44
- children: [
45
- /* @__PURE__ */ u("table", {
46
- className: "ttw:w-full ttw:min-w-120 ttw:border-collapse ttw:text-sm",
47
- children: [/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ u("tr", { children: [
48
- /* @__PURE__ */ l("th", {
49
- scope: "col",
50
- className: p,
51
- children: k.createdOnColumn
52
- }),
53
- /* @__PURE__ */ l("th", {
54
- scope: "col",
55
- className: p,
56
- children: k.dueDateColumn
57
- }),
58
- /* @__PURE__ */ l("th", {
59
- scope: "col",
60
- className: r(p, "ttw:text-right"),
61
- children: k.amountColumn
62
- }),
63
- /* @__PURE__ */ l("th", {
64
- scope: "col",
65
- className: p,
66
- children: k.statusColumn
67
- })
68
- ] }) }), /* @__PURE__ */ u("tbody", { children: [j ? Array.from({ length: w }, (e, t) => /* @__PURE__ */ l("tr", {
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
- children: m.map((e, t) => /* @__PURE__ */ l("td", {
71
- className: f,
72
- children: /* @__PURE__ */ l(n, { className: r("ttw:h-4", e) })
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, F?.map((t) => {
89
+ }, t)) : null, G?.map((t) => {
75
90
  let n = t.isCurrent ? void 0 : t.onOpen;
76
- return /* @__PURE__ */ u("tr", {
91
+ return /* @__PURE__ */ S(f, {
77
92
  "aria-current": t.isCurrent || void 0,
78
- className: r(t.isCurrent && "ttw:bg-warning/10", 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"),
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("td", {
87
- className: f,
88
- children: /* @__PURE__ */ u("span", {
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__ */ l("span", { children: t.createdOnLabel }), t.badges?.map((t) => /* @__PURE__ */ l(e, {
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("td", {
97
- className: f,
112
+ /* @__PURE__ */ x(l, {
113
+ className: "ttw:py-2.5",
98
114
  children: t.dueDateLabel
99
115
  }),
100
- /* @__PURE__ */ l("td", {
101
- className: r(f, "ttw:text-right"),
116
+ /* @__PURE__ */ x(l, {
117
+ className: "ttw:py-2.5 ttw:text-right",
102
118
  children: t.amountLabel
103
119
  }),
104
- /* @__PURE__ */ l("td", {
105
- className: f,
106
- children: t.status ? /* @__PURE__ */ l(i, {
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: k.loadingRows
118
- }) : null,
119
- P && !M ? /* @__PURE__ */ l(t, {
120
- type: "button",
121
- variant: "link",
122
- className: "ttw:mt-1 ttw:px-2",
123
- onClick: () => N(!0),
124
- children: E
125
- }) : null
126
- ]
127
- }),
128
- children: I && !j ? /* @__PURE__ */ u("div", {
129
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
130
- children: [/* @__PURE__ */ l("span", {
131
- className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
132
- children: k.question
133
- }), I]
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": k.openFullScreenButton,
144
- onClick: b,
145
- children: /* @__PURE__ */ l(d, {
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 { g as BillDuplicateNotice, g as default };
162
+ export { E as BillDuplicateNotice, E as default };
@@ -1,4 +1,4 @@
1
- import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index14.js";
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 = {
@@ -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/index15.js";
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";
@@ -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/index18.js";
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
@@ -1,88 +1,93 @@
1
1
  import { cn as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index2.js";
3
- import { UPLOAD_ITEM_ICON_TONE as n } from "./index3.js";
4
- import { useId as r } from "react";
5
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, CopyX as d, Loader2 as f, X as p, XCircle as m } from "lucide-react";
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: t }) {
9
- let r = e("ttw:size-4", n[t]);
10
- return t === "uploading" ? /* @__PURE__ */ a(f, {
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(r, "ttw:animate-spin")
13
- }) : a(t === "ready" ? s : t === "duplicate" ? d : m, {
14
+ className: e(i, "ttw:animate-spin")
15
+ }) : n === "ready" ? /* @__PURE__ */ o(c, {
14
16
  "aria-hidden": !0,
15
- className: r
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 s = r(), c = /* @__PURE__ */ o(i, { children: [
20
- /* @__PURE__ */ a(h, { status: t.status }),
21
- /* @__PURE__ */ a("span", {
22
- id: s,
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__ */ a("span", {
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__ */ a(l, {
35
+ t.onOpen ? /* @__PURE__ */ o(u, {
31
36
  "aria-hidden": !0,
32
37
  className: "ttw:size-4"
33
38
  }) : null
34
- ] }), u = "ttw:flex ttw:items-center ttw:gap-3 ttw:px-4 ttw:py-2.5";
35
- return t.onOpen ? /* @__PURE__ */ a("button", {
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": s,
43
+ "aria-describedby": r,
39
44
  "aria-label": n.openItem(t.fileName),
40
- className: e(u, "ttw:w-full ttw:text-muted-foreground ttw:transition-colors ttw:hover:bg-muted/50 ttw:hover:text-foreground"),
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__ */ a("div", {
43
- "aria-describedby": s,
44
- className: u,
47
+ }) : /* @__PURE__ */ o("div", {
48
+ "aria-describedby": r,
49
+ className: l,
45
50
  children: c
46
51
  });
47
52
  }
48
- function _({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
53
+ function _({ sections: e, summaryLabel: t, collapsed: r, onToggleCollapsed: i, onClose: a, testId: c, labels: u }) {
49
54
  let f = {
50
- ...t,
51
- ...d
55
+ ...n,
56
+ ...u
52
57
  };
53
- return /* @__PURE__ */ o("div", {
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": l,
56
- children: [/* @__PURE__ */ o("div", {
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__ */ a("span", {
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: n
67
+ children: t
63
68
  }),
64
- /* @__PURE__ */ a("button", {
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: a(r ? u : c, { className: "ttw:size-4" })
75
+ children: o(r ? d : l, { className: "ttw:size-4" })
71
76
  }),
72
- /* @__PURE__ */ a("button", {
77
+ /* @__PURE__ */ o("button", {
73
78
  type: "button",
74
- onClick: s,
79
+ onClick: a,
75
80
  "aria-label": f.close,
76
81
  className: "ttw:text-muted-foreground ttw:hover:text-foreground",
77
- children: /* @__PURE__ */ a(p, { className: "ttw:size-4" })
82
+ children: /* @__PURE__ */ o(p, { className: "ttw:size-4" })
78
83
  })
79
84
  ]
80
- }), r ? null : /* @__PURE__ */ a("div", {
85
+ }), r ? null : /* @__PURE__ */ o("div", {
81
86
  className: "ttw:max-h-96 ttw:overflow-y-auto",
82
- children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
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__ */ a(g, {
90
+ }) : null, e.items.map((e) => /* @__PURE__ */ o(g, {
86
91
  item: e,
87
92
  labels: f
88
93
  }, e.id))] }, e.id))