@tesouro/embedded-components-react 0.2.333 → 0.2.337

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 (113) hide show
  1. package/dist/index.css +22 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +10 -6
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +0 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +43 -31
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +12 -46
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +46 -30
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +26 -149
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +159 -31
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +32 -98
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +102 -10
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +11 -212
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +226 -4
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +4 -29
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +27 -80
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +75 -125
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +133 -3
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +3 -4
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +2 -43
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +45 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -8
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +6 -9
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +9 -92
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +94 -3
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +3 -110
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +7 -9
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +20 -38
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +57 -6
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +3 -91
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +105 -157
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +11 -5
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +40 -5
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +6 -113
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +100 -1
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +171 -16
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +5 -0
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +8 -0
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +115 -0
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -0
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +25 -0
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +34 -26
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -16
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +18 -2
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +1 -41
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +38 -269
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +272 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -9
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +7 -47
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +49 -2
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +2 -22
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +20 -284
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +286 -2
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +2 -16
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +13 -117
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +120 -2
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index33.js +2 -10
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +8 -94
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +96 -2
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +1 -12
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +11 -56
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +57 -1
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index39.js +1 -53
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +51 -136
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +141 -1
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index42.js +2 -7
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +5 -42
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +44 -2
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index45.js +2 -4
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -61
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +63 -2
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +2 -4
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -14
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +16 -2
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js +1 -73
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +72 -250
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +251 -12
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +9 -252
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +1 -10
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +6 -4
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +43 -87
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +2 -0
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +14 -2
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +278 -5
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +8 -28
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +8 -2
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +91 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +1 -1
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +15 -9
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +101 -94
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +3 -14
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +28 -8
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +2 -170
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +7 -2
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +32 -12
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -89
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +12 -2
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +106 -0
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +2 -0
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +18 -0
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +10 -0
  104. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +170 -0
  105. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +2 -0
  106. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +14 -0
  107. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +89 -0
  108. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +2 -0
  109. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  110. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  111. package/dist/packages/shared-ui-shadcn/dist/index.js +1378 -1371
  112. package/package.json +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +0 -34
@@ -1,2 +1,16 @@
1
- import "./index48.js";
2
- import "./index49.js";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { MISSING_VALUE_LABELS_EN as t } from "./index49.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js
5
+ function r({ labels: r, className: i }) {
6
+ let a = {
7
+ ...t,
8
+ ...r
9
+ };
10
+ return /* @__PURE__ */ n("span", {
11
+ className: e("ttw:text-amber-700", i),
12
+ children: a.missing
13
+ });
14
+ }
15
+ //#endregion
16
+ export { r as MissingValue, r as default };
@@ -1,74 +1,2 @@
1
- import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
3
- import "./index8.js";
4
- import { APPROVAL_POLICY_CARD_LABELS_EN as n } from "./index12.js";
5
- import "./index14.js";
6
- import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index18.js";
7
- import "./index20.js";
8
- import { MISSING_VALUE_LABELS_EN as i } from "./index48.js";
1
+ import "./index49.js";
9
2
  import "./index50.js";
10
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index51.js
11
- var a = {
12
- loadingTitle: "Loading bill…",
13
- hiddenDescription: "Bill details",
14
- errorTitle: "Couldn't load this bill",
15
- errorDescription: "Something went wrong. Try again.",
16
- amountDueHeading: "Amount due",
17
- invoiceDateLabel: "Invoice date",
18
- dueDateLabel: "Due date",
19
- payToHeading: "Pay to",
20
- invoiceDetailsHeading: "Invoice details",
21
- lineItemsHeading: "Line items",
22
- lineItemsQuantityHeading: "Qty/Price",
23
- lineItemsAmountHeading: "Amount",
24
- payButton: "Pay",
25
- markAsPaidButton: "Mark as paid",
26
- rejectButton: "Reject",
27
- approveButton: "Approve",
28
- cancelButton: "Cancel bill",
29
- reopenButton: "Reopen bill",
30
- forceApproveButton: "Approve without policy",
31
- forceRejectButton: "Reject without policy",
32
- overflowMenuTrigger: "Bill actions",
33
- expandButton: "Open full screen",
34
- closeButton: "Close",
35
- statusBadge: r,
36
- approvalPolicy: n
37
- }, o = ".pdf,.png,.jpg,.jpeg,.doc,.docx", s = {
38
- ...t,
39
- dropzone: {
40
- ...t.dropzone,
41
- fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
42
- }
43
- }, c = {
44
- createButton: "Add bill",
45
- columnVendor: "Vendor",
46
- columnDueDate: "Due date",
47
- columnScheduledDate: "Scheduled date",
48
- columnPaidDate: "Paid date",
49
- columnAmountDue: "Amount due",
50
- columnAmountScheduled: "Amount scheduled",
51
- columnAmountPaid: "Amount paid",
52
- columnStatus: "Status",
53
- columnAddedOn: "Added on",
54
- columnActions: "Actions",
55
- openRow: (e) => `View bill — ${e}`,
56
- searchPlaceholder: "Search by vendor name",
57
- searchLabel: "Search bills by vendor name",
58
- filterTabsLabel: "Filter bills by status",
59
- filteredEmptyTitle: "No bills match",
60
- filteredEmptyDescription: "Try a different search or status filter.",
61
- errorTitle: "Couldn't load bills",
62
- errorDescription: "Something went wrong. Try again.",
63
- errorRetry: "Retry",
64
- statusBadge: r,
65
- addBill: s,
66
- sortableHeader: {
67
- sortedAscending: e.sortedAscending,
68
- sortedDescending: e.sortedDescending,
69
- notSorted: e.notSorted
70
- },
71
- missingValue: i
72
- };
73
- //#endregion
74
- export { c as BILLS_SCREEN_LABELS_EN, o as BILLS_SCREEN_UPLOAD_ACCEPT, a as BILL_DETAILS_SHEET_LABELS_EN };
@@ -1,253 +1,75 @@
1
- import { Button as e, Collapsible as t, CollapsibleContent as n, CollapsibleTrigger as r, Sheet as i, SheetContent as a, SheetDescription as o, SheetHeader as s, SheetTitle as c, Skeleton as l, Typography as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ApprovalPolicyCard as d } from "./index13.js";
1
+ import { DATA_TABLE_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ADD_BILL_PANEL_LABELS_EN as t } from "./index6.js";
3
+ import "./index8.js";
4
+ import { APPROVAL_POLICY_CARD_LABELS_EN as n } from "./index12.js";
3
5
  import "./index14.js";
4
- import { BillOverflowMenu as f } from "./index16.js";
5
- import "./index17.js";
6
- import { BillStatusBadge as p } from "./index19.js";
7
- import "./index20.js";
8
- import { BillActionButtons as m, NO_BILL_ACTIONS as h, hasBillActions as g } from "./index15.js";
9
- import { BILL_DETAILS_SHEET_LABELS_EN as _ } from "./index51.js";
10
- import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
11
- import { ChevronDownIcon as x, MoveDiagonal2Icon as S, XIcon as C } from "lucide-react";
6
+ import { BILL_STATUS_BADGE_LABELS_EN as r } from "./index18.js";
7
+ import "./index21.js";
8
+ import { MISSING_VALUE_LABELS_EN as i } from "./index49.js";
9
+ import "./index51.js";
12
10
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js
13
- function w({ items: e }) {
14
- return /* @__PURE__ */ y("dl", {
15
- className: "ttw:flex ttw:flex-col",
16
- children: e.map((e) => /* @__PURE__ */ b("div", {
17
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-6 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
18
- children: [/* @__PURE__ */ y("dt", {
19
- className: "ttw:text-sm ttw:text-muted-foreground",
20
- children: e.label
21
- }), /* @__PURE__ */ b("dd", {
22
- className: "ttw:flex ttw:flex-col ttw:items-end ttw:text-right",
23
- children: [/* @__PURE__ */ y("span", {
24
- className: "ttw:text-sm ttw:font-medium",
25
- children: e.value
26
- }), e.secondaryValue ? /* @__PURE__ */ y("span", {
27
- className: "ttw:text-sm ttw:text-muted-foreground",
28
- children: e.secondaryValue
29
- }) : null]
30
- })]
31
- }, e.label))
32
- });
33
- }
34
- function T({ heading: e, children: i }) {
35
- return /* @__PURE__ */ b(t, {
36
- defaultOpen: !0,
37
- className: "ttw:flex ttw:flex-col ttw:gap-3",
38
- children: [/* @__PURE__ */ b(r, {
39
- className: "ttw:group ttw:flex ttw:w-full ttw:items-center ttw:justify-between ttw:rounded-xs ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:outline-hidden",
40
- children: [/* @__PURE__ */ y(u, {
41
- variant: "body1",
42
- className: "ttw:font-semibold",
43
- children: e
44
- }), /* @__PURE__ */ y(x, { className: "ttw:size-4 ttw:text-muted-foreground ttw:transition-transform ttw:group-data-[state=closed]:-rotate-90" })]
45
- }), /* @__PURE__ */ y(n, { children: i })]
46
- });
47
- }
48
- function E({ open: t, onOpenChange: n, details: r, actions: u = h, approvalPolicy: x, isLoading: E, isError: D, notice: O, onClose: k, onExpand: A, testId: j, labels: M }) {
49
- let N = {
50
- ..._,
51
- ...M,
52
- statusBadge: {
53
- ..._.statusBadge,
54
- ...M?.statusBadge
55
- },
56
- approvalPolicy: {
57
- ..._.approvalPolicy,
58
- ...M?.approvalPolicy
59
- }
60
- };
61
- return /* @__PURE__ */ y(i, {
62
- open: t,
63
- onOpenChange: (e) => e ? n(e) : k(),
64
- children: /* @__PURE__ */ b(a, {
65
- showCloseButton: !1,
66
- className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
67
- "data-testid": j,
68
- children: [/* @__PURE__ */ b(s, {
69
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
70
- children: [/* @__PURE__ */ b("div", {
71
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
72
- children: [
73
- /* @__PURE__ */ y(c, {
74
- className: E ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
75
- children: D ? N.errorTitle : E ? N.loadingTitle : r?.title
76
- }),
77
- E ? /* @__PURE__ */ b("div", {
78
- "aria-hidden": !0,
79
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
80
- children: [/* @__PURE__ */ y(l, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-28" })]
81
- }) : null,
82
- r && !E && !D ? /* @__PURE__ */ y("p", {
83
- className: "ttw:text-sm ttw:text-muted-foreground",
84
- children: r.subtitle
85
- }) : null,
86
- /* @__PURE__ */ y(o, {
87
- className: "ttw:sr-only",
88
- children: N.hiddenDescription
89
- })
90
- ]
91
- }), /* @__PURE__ */ b("div", {
92
- className: "ttw:flex ttw:items-center ttw:gap-1",
93
- children: [A ? /* @__PURE__ */ y(e, {
94
- type: "button",
95
- variant: "ghost",
96
- size: "icon",
97
- "aria-label": N.expandButton,
98
- onClick: A,
99
- children: /* @__PURE__ */ y(S, { className: "ttw:size-4" })
100
- }) : null, /* @__PURE__ */ y(e, {
101
- type: "button",
102
- variant: "ghost",
103
- size: "icon",
104
- "aria-label": N.closeButton,
105
- onClick: k,
106
- children: /* @__PURE__ */ y(C, { className: "ttw:size-4" })
107
- })]
108
- })]
109
- }), /* @__PURE__ */ y("div", {
110
- className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
111
- children: D ? /* @__PURE__ */ y("p", {
112
- className: "ttw:text-sm ttw:text-muted-foreground",
113
- children: N.errorDescription
114
- }) : E ? /* @__PURE__ */ b("div", {
115
- className: "ttw:flex ttw:flex-col ttw:gap-6",
116
- children: [/* @__PURE__ */ y(l, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ b("div", {
117
- className: "ttw:flex ttw:flex-col ttw:gap-2",
118
- children: [
119
- /* @__PURE__ */ y(l, { className: "ttw:h-4 ttw:w-40" }),
120
- /* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" }),
121
- /* @__PURE__ */ y(l, { className: "ttw:h-9 ttw:w-full" })
122
- ]
123
- })]
124
- }) : r ? /* @__PURE__ */ b(v, { children: [
125
- O,
126
- /* @__PURE__ */ b("section", {
127
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
128
- children: [
129
- /* @__PURE__ */ b("div", {
130
- className: "ttw:flex ttw:flex-col ttw:gap-2",
131
- children: [
132
- /* @__PURE__ */ y("span", {
133
- className: "ttw:text-sm ttw:text-muted-foreground",
134
- children: N.amountDueHeading
135
- }),
136
- /* @__PURE__ */ y("span", {
137
- className: "ttw:text-3xl ttw:font-semibold",
138
- children: r.amountDueLabel
139
- }),
140
- /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(p, {
141
- status: r.status,
142
- tone: r.statusTone,
143
- labels: N.statusBadge
144
- }) })
145
- ]
146
- }),
147
- /* @__PURE__ */ b("div", {
148
- className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-1",
149
- children: [/* @__PURE__ */ b("div", {
150
- className: "ttw:flex ttw:flex-col",
151
- children: [/* @__PURE__ */ y("span", {
152
- className: "ttw:text-xs ttw:text-muted-foreground",
153
- children: N.invoiceDateLabel
154
- }), /* @__PURE__ */ y("span", {
155
- className: "ttw:text-sm ttw:font-medium",
156
- children: r.invoiceDateLabel
157
- })]
158
- }), /* @__PURE__ */ b("div", {
159
- className: "ttw:flex ttw:flex-col",
160
- children: [/* @__PURE__ */ y("span", {
161
- className: "ttw:text-xs ttw:text-muted-foreground",
162
- children: N.dueDateLabel
163
- }), /* @__PURE__ */ y("span", {
164
- className: "ttw:text-sm ttw:font-medium",
165
- children: r.dueDateLabel
166
- })]
167
- })]
168
- }),
169
- g(u) ? /* @__PURE__ */ b("div", {
170
- className: "ttw:flex ttw:items-center ttw:gap-2",
171
- children: [/* @__PURE__ */ y(m, { actions: u.row }), /* @__PURE__ */ y(f, {
172
- actions: u.menu,
173
- triggerLabel: N.overflowMenuTrigger
174
- })]
175
- }) : null
176
- ]
177
- }),
178
- /* @__PURE__ */ y(T, {
179
- heading: N.payToHeading,
180
- children: /* @__PURE__ */ y(w, { items: r.payToItems })
181
- }),
182
- /* @__PURE__ */ y(T, {
183
- heading: N.invoiceDetailsHeading,
184
- children: /* @__PURE__ */ b("div", {
185
- className: "ttw:flex ttw:flex-col ttw:gap-4",
186
- children: [
187
- /* @__PURE__ */ y(w, { items: r.invoiceItems }),
188
- r.lineItems.length ? /* @__PURE__ */ b("table", {
189
- className: "ttw:w-full ttw:text-sm",
190
- children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ b("tr", {
191
- className: "ttw:bg-muted/50 ttw:text-xs ttw:text-muted-foreground",
192
- children: [
193
- /* @__PURE__ */ y("th", {
194
- className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
195
- children: N.lineItemsHeading
196
- }),
197
- /* @__PURE__ */ y("th", {
198
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
199
- children: N.lineItemsQuantityHeading
200
- }),
201
- /* @__PURE__ */ y("th", {
202
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
203
- children: N.lineItemsAmountHeading
204
- })
205
- ]
206
- }) }), /* @__PURE__ */ y("tbody", { children: r.lineItems.map((e) => /* @__PURE__ */ b("tr", {
207
- className: "ttw:border-b ttw:border-border",
208
- children: [
209
- /* @__PURE__ */ b("td", {
210
- className: "ttw:px-3 ttw:py-2",
211
- children: [/* @__PURE__ */ y("span", {
212
- className: "ttw:block",
213
- children: e.description
214
- }), /* @__PURE__ */ y("span", {
215
- className: "ttw:block ttw:text-xs ttw:text-muted-foreground",
216
- children: e.glCodeLabel
217
- })]
218
- }),
219
- /* @__PURE__ */ y("td", {
220
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap ttw:text-muted-foreground",
221
- children: e.quantityLabel
222
- }),
223
- /* @__PURE__ */ y("td", {
224
- className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:whitespace-nowrap",
225
- children: e.amountLabel
226
- })
227
- ]
228
- }, e.id)) })]
229
- }) : null,
230
- /* @__PURE__ */ y("dl", {
231
- className: "ttw:flex ttw:flex-col ttw:gap-1",
232
- children: r.totals.map((e) => /* @__PURE__ */ b("div", {
233
- className: e.emphasis ? "ttw:flex ttw:justify-between ttw:gap-6 ttw:border-t ttw:border-border ttw:pt-2 ttw:text-base ttw:font-semibold" : "ttw:flex ttw:justify-between ttw:gap-6 ttw:text-sm",
234
- children: [/* @__PURE__ */ y("dt", {
235
- className: e.emphasis ? "" : "ttw:text-muted-foreground",
236
- children: e.label
237
- }), /* @__PURE__ */ y("dd", { children: e.value })]
238
- }, e.label))
239
- })
240
- ]
241
- })
242
- }),
243
- x ? /* @__PURE__ */ y(d, {
244
- view: x,
245
- labels: N.approvalPolicy
246
- }) : null
247
- ] }) : null
248
- })]
249
- })
250
- });
251
- }
11
+ var a = {
12
+ loadingTitle: "Loading bill…",
13
+ hiddenDescription: "Bill details",
14
+ errorTitle: "Couldn't load this bill",
15
+ errorDescription: "Something went wrong. Try again.",
16
+ amountDueHeading: "Amount due",
17
+ invoiceDateLabel: "Invoice date",
18
+ dueDateLabel: "Due date",
19
+ payToHeading: "Pay to",
20
+ invoiceDetailsHeading: "Invoice details",
21
+ lineItemsHeading: "Line items",
22
+ lineItemsQuantityHeading: "Qty/Price",
23
+ lineItemsAmountHeading: "Amount",
24
+ payButton: "Pay",
25
+ markAsPaidButton: "Mark as paid",
26
+ rejectButton: "Reject",
27
+ approveButton: "Approve",
28
+ cancelButton: "Cancel bill",
29
+ reopenButton: "Reopen bill",
30
+ forceApproveButton: "Approve without policy",
31
+ forceRejectButton: "Reject without policy",
32
+ overflowMenuTrigger: "Bill actions",
33
+ expandButton: "Open full screen",
34
+ closeButton: "Close",
35
+ statusBadge: r,
36
+ approvalPolicy: n
37
+ }, o = ".pdf,.png,.jpg,.jpeg,.doc,.docx", s = {
38
+ ...t,
39
+ dropzone: {
40
+ ...t.dropzone,
41
+ fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
42
+ }
43
+ }, c = {
44
+ createButton: "Add bill",
45
+ columnVendor: "Vendor",
46
+ columnDueDate: "Due date",
47
+ columnScheduledDate: "Scheduled date",
48
+ columnPaidDate: "Paid date",
49
+ columnAmountDue: "Amount due",
50
+ columnAmountScheduled: "Amount scheduled",
51
+ columnAmountPaid: "Amount paid",
52
+ columnStatus: "Status",
53
+ columnAddedOn: "Added on",
54
+ columnActions: "Actions",
55
+ openRow: (e) => `View bill — ${e}`,
56
+ duplicateBillsReviewButton: "Review duplicates",
57
+ searchPlaceholder: "Search by vendor name",
58
+ searchLabel: "Search bills by vendor name",
59
+ filterTabsLabel: "Filter bills by status",
60
+ filteredEmptyTitle: "No bills match",
61
+ filteredEmptyDescription: "Try a different search or status filter.",
62
+ errorTitle: "Couldn't load bills",
63
+ errorDescription: "Something went wrong. Try again.",
64
+ errorRetry: "Retry",
65
+ statusBadge: r,
66
+ addBill: s,
67
+ sortableHeader: {
68
+ sortedAscending: e.sortedAscending,
69
+ sortedDescending: e.sortedDescending,
70
+ notSorted: e.notSorted
71
+ },
72
+ missingValue: i
73
+ };
252
74
  //#endregion
253
- export { E as BillDetailsSheet, E as default };
75
+ export { c as BILLS_SCREEN_LABELS_EN, o as BILLS_SCREEN_UPLOAD_ACCEPT, a as BILL_DETAILS_SHEET_LABELS_EN };