@tesouro/embedded-components-react 0.9.24 → 0.9.26

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 (118) hide show
  1. package/README.md +13 -0
  2. package/dist/index.css +93 -55
  3. package/dist/index.d.ts +53 -3
  4. package/dist/index.js +9 -7
  5. package/dist/lib/AccountsQuickViewWidget.d.ts +650 -0
  6. package/dist/lib/AccountsQuickViewWidget.js +4 -0
  7. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/data-access/dist/index.js +2 -0
  8. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/data-access/dist/index2.js +21 -0
  9. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/feature/dist/index.js +3 -0
  10. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/feature/dist/lib/AccountsQuickViewWidget/AccountsQuickViewWidgetFeature.js +82 -0
  11. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/feature/dist/lib/AccountsQuickViewWidget/labels.js +10 -0
  12. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/feature/dist/lib/AccountsQuickViewWidget/testIds.js +8 -0
  13. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/feature/dist/lib/accountsBalanceSummary/summarizeAccountBalances.js +22 -0
  14. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/feature/dist/lib/accountsBalanceSummary/useAccountsBalanceSummary.js +27 -0
  15. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/feature/dist/lib/analytics/events.js +4 -0
  16. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/ui/dist/index.js +3 -0
  17. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/ui/dist/index2.js +10 -0
  18. package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/ui/dist/index3.js +31 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +7 -7
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +14 -8
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index11.js +59 -7
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +10 -65
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +9 -10
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +7 -8
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +9 -7
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +29 -11
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +24 -24
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +14 -22
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +155 -14
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +13 -157
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +18 -12
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +32 -15
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +99 -39
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +69 -85
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +3 -85
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +57 -4
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +114 -57
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +190 -111
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +75 -187
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +35 -15
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +67 -75
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +111 -69
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +461 -108
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +102 -452
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +12 -116
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +85 -12
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +67 -73
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +231 -73
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +38 -232
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +245 -38
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +169 -38
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +21 -252
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +534 -23
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +4 -542
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +43 -4
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +236 -39
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +3 -240
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +6 -3
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +63 -4
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +1 -65
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +82 -225
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index6.js +45 -83
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index7.js +4 -47
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index8.js +13 -4
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +8 -13
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +5 -5
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +138 -155
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index3.js +2 -2
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +48 -43
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +219 -207
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +13 -13
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +5 -4
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +6 -6
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -5
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +278 -322
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +1 -1
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +18 -16
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +2 -41
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +4 -2
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +39 -9
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +2 -78
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +11 -0
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +78 -2
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -4
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +25 -26
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +4 -2
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +28 -5
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -34
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +7 -2
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +34 -0
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +31 -15
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +1 -54
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +18 -2
  109. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +52 -2
  110. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  111. package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index.js +3 -0
  112. package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index2.js +8 -0
  113. package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js +100 -0
  114. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +1 -1
  115. package/dist/packages/shared-ui-shadcn/dist/index.js +4696 -4681
  116. package/package.json +1 -1
  117. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +0 -1
  118. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +0 -29
@@ -1,54 +1 @@
1
- import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuGroup as r, DropdownMenuItem as i, DropdownMenuLabel as a, DropdownMenuSeparator as o, DropdownMenuTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { groupBySectionHeading as c } from "./index6.js";
3
- import { Fragment as l, useId as u } from "react";
4
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
- import { MoreHorizontalIcon as p, MoreVerticalIcon as m } from "lucide-react";
6
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js
7
- function h({ actions: h, triggerLabel: g, placement: _ = "row", testId: v }) {
8
- let y = u();
9
- if (!h.length) return null;
10
- let b = _ === "header", x = _ === "header" || _ === "table", S = b ? p : m, C = c(h);
11
- return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ d(s, {
12
- asChild: !0,
13
- children: /* @__PURE__ */ d(e, {
14
- type: "button",
15
- variant: x ? "ghost" : "outline",
16
- size: "icon",
17
- "aria-label": g,
18
- "data-testid": v,
19
- onPointerDown: (e) => e.stopPropagation(),
20
- onClick: (e) => e.stopPropagation(),
21
- children: /* @__PURE__ */ d(S, { className: "ttw:size-4" })
22
- })
23
- }), /* @__PURE__ */ d(n, {
24
- align: "end",
25
- onPointerDown: (e) => e.stopPropagation(),
26
- onClick: (e) => e.stopPropagation(),
27
- children: C.map((e, t) => {
28
- let n = e.items.map((e) => {
29
- let t = e.icon;
30
- return /* @__PURE__ */ f(i, {
31
- disabled: e.disabled,
32
- onClick: e.onSelect,
33
- children: [t ? /* @__PURE__ */ d(t, { className: "ttw:size-4" }) : null, e.label]
34
- }, e.id);
35
- });
36
- if (!e.heading) return /* @__PURE__ */ d(l, { children: n }, e.items[0]?.id);
37
- let s = `${y}-${t}`;
38
- return /* @__PURE__ */ f(l, { children: [
39
- t > 0 ? /* @__PURE__ */ d(o, {}) : null,
40
- /* @__PURE__ */ d(a, {
41
- id: s,
42
- className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
43
- children: e.heading
44
- }),
45
- /* @__PURE__ */ d(r, {
46
- "aria-labelledby": s,
47
- children: n
48
- })
49
- ] }, e.items[0]?.id);
50
- })
51
- })] });
52
- }
53
- //#endregion
54
- export { h as BillOverflowMenu, h as default };
1
+ import "./index6.js";
@@ -1,2 +1,18 @@
1
- import "./index6.js";
2
- import "./index7.js";
1
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js
2
+ function e(e) {
3
+ let t = [];
4
+ for (let n of e) {
5
+ let e = t.at(-1);
6
+ if (e && e.heading === n.sectionHeading) {
7
+ e.items = [...e.items, n];
8
+ continue;
9
+ }
10
+ t.push({
11
+ heading: n.sectionHeading,
12
+ items: [n]
13
+ });
14
+ }
15
+ return t;
16
+ }
17
+ //#endregion
18
+ export { e as groupBySectionHeading };
@@ -1,4 +1,54 @@
1
+ import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuGroup as r, DropdownMenuItem as i, DropdownMenuLabel as a, DropdownMenuSeparator as o, DropdownMenuTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { groupBySectionHeading as c } from "./index8.js";
3
+ import { Fragment as l, useId as u } from "react";
4
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
+ import { MoreHorizontalIcon as p, MoreVerticalIcon as m } from "lucide-react";
1
6
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js
2
- var e = {};
7
+ function h({ actions: h, triggerLabel: g, placement: _ = "row", testId: v }) {
8
+ let y = u();
9
+ if (!h.length) return null;
10
+ let b = _ === "header", x = _ === "header" || _ === "table", S = b ? p : m, C = c(h);
11
+ return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ d(s, {
12
+ asChild: !0,
13
+ children: /* @__PURE__ */ d(e, {
14
+ type: "button",
15
+ variant: x ? "ghost" : "outline",
16
+ size: "icon",
17
+ "aria-label": g,
18
+ "data-testid": v,
19
+ onPointerDown: (e) => e.stopPropagation(),
20
+ onClick: (e) => e.stopPropagation(),
21
+ children: /* @__PURE__ */ d(S, { className: "ttw:size-4" })
22
+ })
23
+ }), /* @__PURE__ */ d(n, {
24
+ align: "end",
25
+ onPointerDown: (e) => e.stopPropagation(),
26
+ onClick: (e) => e.stopPropagation(),
27
+ children: C.map((e, t) => {
28
+ let n = e.items.map((e) => {
29
+ let t = e.icon;
30
+ return /* @__PURE__ */ f(i, {
31
+ disabled: e.disabled,
32
+ onClick: e.onSelect,
33
+ children: [t ? /* @__PURE__ */ d(t, { className: "ttw:size-4" }) : null, e.label]
34
+ }, e.id);
35
+ });
36
+ if (!e.heading) return /* @__PURE__ */ d(l, { children: n }, e.items[0]?.id);
37
+ let s = `${y}-${t}`;
38
+ return /* @__PURE__ */ f(l, { children: [
39
+ t > 0 ? /* @__PURE__ */ d(o, {}) : null,
40
+ /* @__PURE__ */ d(a, {
41
+ id: s,
42
+ className: "ttw:py-1 ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
43
+ children: e.heading
44
+ }),
45
+ /* @__PURE__ */ d(r, {
46
+ "aria-labelledby": s,
47
+ children: n
48
+ })
49
+ ] }, e.items[0]?.id);
50
+ })
51
+ })] });
52
+ }
3
53
  //#endregion
4
- export { e as DEFAULT_LABELS };
54
+ export { h as BillOverflowMenu, h as default };
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.9.24", n = "533409ecbd11e37896911603bf508158dc7f9a9b", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.9.26", n = "88ae58a76629539b8ecea341c6e8bb841ecf480d", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -0,0 +1,3 @@
1
+ import "./index2.js";
2
+ import { QuickViewTile as e } from "./index3.js";
3
+ export { e as QuickViewTile };
@@ -0,0 +1,8 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index2.js
2
+ var e = {
3
+ loadingLabel: "Loading",
4
+ loadErrorTitle: "Could not load",
5
+ loadErrorRetry: "Retry"
6
+ };
7
+ //#endregion
8
+ export { e as QUICK_VIEW_TILE_LABELS_EN };
@@ -0,0 +1,100 @@
1
+ import { Skeleton as e, Typography as t, cn as n } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ErrorState as r } from "../../../ui/dist/lib/ErrorState/ErrorState.js";
3
+ import "../../../ui/dist/index.js";
4
+ import { QUICK_VIEW_TILE_LABELS_EN as i } from "./index2.js";
5
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ import { ChevronRight as c } from "lucide-react";
7
+ //#region ../../libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js
8
+ var l = "ttw:flex ttw:w-[320px] 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 u({ title: u, value: d, subtext: f, linkText: p, onClick: m, isLoading: h = !1, isError: g = !1, onRetry: _, labels: v, testIds: y, className: b, style: x }) {
10
+ let S = {
11
+ ...i,
12
+ ...v
13
+ }, C = !!m && !h && !g, w = /* @__PURE__ */ s("span", {
14
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
15
+ children: [/* @__PURE__ */ o(t, {
16
+ component: "span",
17
+ variant: "body2",
18
+ color: "muted",
19
+ className: "ttw:font-semibold",
20
+ children: u
21
+ }), C ? /* @__PURE__ */ o(c, {
22
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
23
+ "aria-hidden": !0
24
+ }) : null]
25
+ });
26
+ if (h) return /* @__PURE__ */ s("div", {
27
+ className: n(l, b),
28
+ style: x,
29
+ "data-testid": y?.tile,
30
+ children: [w, /* @__PURE__ */ s("div", {
31
+ role: "status",
32
+ "aria-busy": !0,
33
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
34
+ children: [
35
+ /* @__PURE__ */ o("span", {
36
+ className: "ttw:sr-only",
37
+ children: S.loadingLabel
38
+ }),
39
+ /* @__PURE__ */ o(e, {
40
+ "data-testid": y?.skeleton,
41
+ height: 36,
42
+ width: "60%",
43
+ className: "ttw:rounded-md"
44
+ }),
45
+ /* @__PURE__ */ o(e, {
46
+ height: 16,
47
+ width: "30%",
48
+ className: "ttw:rounded-md"
49
+ })
50
+ ]
51
+ })]
52
+ });
53
+ if (g) return /* @__PURE__ */ s("div", {
54
+ className: n(l, b),
55
+ style: x,
56
+ "data-testid": y?.tile,
57
+ children: [w, /* @__PURE__ */ o(r, {
58
+ title: S.loadErrorTitle,
59
+ retryLabel: S.loadErrorRetry,
60
+ onRetry: _,
61
+ className: "ttw:px-0 ttw:py-4",
62
+ testId: y?.error
63
+ })]
64
+ });
65
+ let T = /* @__PURE__ */ s(a, { children: [
66
+ w,
67
+ /* @__PURE__ */ o(t, {
68
+ component: "span",
69
+ variant: "h6",
70
+ className: "ttw:block ttw:text-3xl ttw:font-semibold ttw:leading-tight",
71
+ children: d
72
+ }),
73
+ f ? /* @__PURE__ */ o(t, {
74
+ component: "span",
75
+ variant: "body2",
76
+ color: "muted",
77
+ className: "ttw:block",
78
+ children: f
79
+ }) : null,
80
+ C ? /* @__PURE__ */ o("span", {
81
+ className: "ttw:mt-3 ttw:text-sm ttw:font-medium ttw:text-primary ttw:group-hover:underline",
82
+ children: p
83
+ }) : null
84
+ ] });
85
+ return C ? /* @__PURE__ */ o("button", {
86
+ type: "button",
87
+ onClick: m,
88
+ "data-testid": y?.tile,
89
+ style: x,
90
+ className: n(l, "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", b),
91
+ children: T
92
+ }) : /* @__PURE__ */ o("div", {
93
+ className: n(l, b),
94
+ style: x,
95
+ "data-testid": y?.tile,
96
+ children: T
97
+ });
98
+ }
99
+ //#endregion
100
+ export { u as QuickViewTile };
@@ -71,7 +71,7 @@ var e = {
71
71
  "--ttw-ring": "oklch(0.708 0 0)",
72
72
  "--ttw-info": "#2563eb",
73
73
  "--ttw-success": "#16a34a",
74
- "--ttw-warning": "#d97706",
74
+ "--ttw-warning": "#ca8a04",
75
75
  "--ttw-violet": "#7c3aed",
76
76
  "--ttw-cyan": "#0891b2",
77
77
  "--ttw-overlay": "oklch(0 0 0 / 0.5)"