@tesouro/embedded-components-react 0.11.235 → 0.11.236
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/README.md +2 -2
- package/dist/index.css +12 -0
- package/dist/index.d.ts +24 -0
- package/dist/lib/ReceivablesWidget.d.ts +24 -0
- package/dist/lib/WidgetSuite.d.ts +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +198 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +76 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +459 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +101 -449
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +9 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +85 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +246 -71
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +40 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +237 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +21 -244
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +529 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +4 -530
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +242 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +3 -245
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index50.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index51.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +386 -354
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +260 -258
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +219 -179
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +31 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +40 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +30 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +463 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +15 -66
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +66 -391
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +148 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +173 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +3 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +37 -432
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +66 -188
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +455 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +191 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +5 -265
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +261 -125
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +2 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +122 -230
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +216 -224
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +3 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +228 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +152 -109
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +140 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index65.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/document-preview.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +122 -0
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index52.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +0 -2
|
@@ -1,41 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
2
3
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
pauseRecurrence: l,
|
|
33
|
-
resumeRecurrence: d,
|
|
34
|
-
cancelRecurrence: t
|
|
35
|
-
}, g = /* @__PURE__ */ new Set([
|
|
36
|
-
"delete",
|
|
37
|
-
"cancel",
|
|
38
|
-
"markUncollectible",
|
|
39
|
-
"cancelRecurrence"
|
|
40
|
-
]), _ = "ttw:border-border", v = (e) => e.preventDefault();
|
|
41
|
-
export { h as ACTION_ICON, m as ACTION_LABEL_KEY, g as DESTRUCTIVE_ACTIONS, v as preventTooltipFocusOpen, _ as sectionItemClass };
|
|
4
|
+
var i = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
|
|
5
|
+
function a({ label: a, name: o, onOpen: s }) {
|
|
6
|
+
let c = /* @__PURE__ */ n(t, {
|
|
7
|
+
component: "span",
|
|
8
|
+
variant: "body2",
|
|
9
|
+
color: "muted",
|
|
10
|
+
className: "ttw:w-40 ttw:shrink-0",
|
|
11
|
+
children: a
|
|
12
|
+
});
|
|
13
|
+
return s ? /* @__PURE__ */ r("div", {
|
|
14
|
+
className: i,
|
|
15
|
+
children: [c, /* @__PURE__ */ n(e, {
|
|
16
|
+
type: "button",
|
|
17
|
+
variant: "link",
|
|
18
|
+
"aria-haspopup": "dialog",
|
|
19
|
+
className: "ttw:h-auto ttw:px-0 ttw:text-left",
|
|
20
|
+
onClick: s,
|
|
21
|
+
children: o
|
|
22
|
+
})]
|
|
23
|
+
}) : /* @__PURE__ */ r("div", {
|
|
24
|
+
className: i,
|
|
25
|
+
children: [c, /* @__PURE__ */ n(t, {
|
|
26
|
+
component: "span",
|
|
27
|
+
variant: "body2",
|
|
28
|
+
children: o
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export { a as CustomerNameRow };
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx as
|
|
1
|
+
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js
|
|
4
|
-
function
|
|
5
|
-
return /* @__PURE__ */ n(
|
|
6
|
-
className: "ttw:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
function r({ label: r, value: i }) {
|
|
5
|
+
return /* @__PURE__ */ n("div", {
|
|
6
|
+
className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
|
|
7
|
+
children: [/* @__PURE__ */ t(e, {
|
|
8
|
+
component: "span",
|
|
9
|
+
variant: "body2",
|
|
10
|
+
color: "muted",
|
|
11
|
+
className: "ttw:w-40 ttw:shrink-0",
|
|
12
|
+
children: r
|
|
13
|
+
}), /* @__PURE__ */ t(e, {
|
|
14
|
+
component: "span",
|
|
15
|
+
variant: "body2",
|
|
16
|
+
className: "ttw:whitespace-pre-line",
|
|
17
|
+
children: i
|
|
18
|
+
})]
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
export {
|
|
21
|
+
export { r as InfoRow };
|
|
@@ -1,9 +1,41 @@
|
|
|
1
|
+
import { Ban as e, CalendarX2 as t, CircleCheck as n, CircleOff as r, CircleX as i, ClipboardCheck as a, CopyPlus as o, FileCheck as s, Mail as c, Pause as l, Pencil as u, Play as d, Send as f, Trash2 as p } from "lucide-react";
|
|
1
2
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
var m = {
|
|
4
|
+
edit: "editButton",
|
|
5
|
+
issue: "issueButton",
|
|
6
|
+
issueAndSend: "issueAndSendButton",
|
|
7
|
+
recordPayment: "recordPaymentButton",
|
|
8
|
+
send: "sendButton",
|
|
9
|
+
accept: "acceptButton",
|
|
10
|
+
decline: "declineButton",
|
|
11
|
+
markPaid: "markPaidButton",
|
|
12
|
+
markUncollectible: "markUncollectibleButton",
|
|
13
|
+
cancel: "cancelButton",
|
|
14
|
+
clone: "cloneButton",
|
|
15
|
+
delete: "deleteButton",
|
|
16
|
+
pauseRecurrence: "pauseRecurrenceButton",
|
|
17
|
+
resumeRecurrence: "resumeRecurrenceButton",
|
|
18
|
+
cancelRecurrence: "cancelRecurrenceButton"
|
|
19
|
+
}, h = {
|
|
20
|
+
edit: u,
|
|
21
|
+
issue: s,
|
|
22
|
+
issueAndSend: f,
|
|
23
|
+
recordPayment: a,
|
|
24
|
+
send: c,
|
|
25
|
+
accept: n,
|
|
26
|
+
decline: i,
|
|
27
|
+
markPaid: n,
|
|
28
|
+
markUncollectible: r,
|
|
29
|
+
cancel: e,
|
|
30
|
+
clone: o,
|
|
31
|
+
delete: p,
|
|
32
|
+
pauseRecurrence: l,
|
|
33
|
+
resumeRecurrence: d,
|
|
34
|
+
cancelRecurrence: t
|
|
35
|
+
}, g = /* @__PURE__ */ new Set([
|
|
36
|
+
"delete",
|
|
37
|
+
"cancel",
|
|
38
|
+
"markUncollectible",
|
|
39
|
+
"cancelRecurrence"
|
|
40
|
+
]), _ = "ttw:border-border", v = (e) => e.preventDefault();
|
|
41
|
+
export { h as ACTION_ICON, m as ACTION_LABEL_KEY, g as DESTRUCTIVE_ACTIONS, v as preventTooltipFocusOpen, _ as sectionItemClass };
|
|
@@ -1,65 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
1
|
+
import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i, Tooltip as a, TooltipContent as o, TooltipTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ACTION_ICON as c, DESTRUCTIVE_ACTIONS as l, preventTooltipFocusOpen as u } from "./index34.js";
|
|
3
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
4
|
+
import { MoreVerticalIcon as p } from "lucide-react";
|
|
6
5
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
children:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
scope: "col",
|
|
33
|
-
className: "ttw:py-2 ttw:text-right",
|
|
34
|
-
children: /* @__PURE__ */ o(n, {
|
|
35
|
-
component: "span",
|
|
36
|
-
variant: "caption",
|
|
37
|
-
color: "muted",
|
|
38
|
-
children: l.attachmentsEmailedColumn
|
|
39
|
-
})
|
|
40
|
-
})]
|
|
41
|
-
}) }), /* @__PURE__ */ o("tbody", { children: c.rows.map((e) => /* @__PURE__ */ s("tr", {
|
|
42
|
-
className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
|
|
43
|
-
children: [/* @__PURE__ */ o("td", {
|
|
44
|
-
className: "ttw:py-3",
|
|
45
|
-
children: /* @__PURE__ */ o("a", {
|
|
46
|
-
href: e.url,
|
|
47
|
-
target: "_blank",
|
|
48
|
-
rel: "noreferrer",
|
|
49
|
-
className: "ttw:text-primary ttw:hover:underline",
|
|
50
|
-
children: e.name
|
|
51
|
-
})
|
|
52
|
-
}), /* @__PURE__ */ o("td", {
|
|
53
|
-
className: "ttw:py-3 ttw:text-right ttw:align-middle",
|
|
54
|
-
children: /* @__PURE__ */ o(n, {
|
|
55
|
-
component: "span",
|
|
56
|
-
variant: "body2",
|
|
57
|
-
color: e.includeInEmail ? void 0 : "muted",
|
|
58
|
-
children: e.emailedLabel
|
|
59
|
-
})
|
|
60
|
-
})]
|
|
61
|
-
}, e.id)) })]
|
|
62
|
-
}) })]
|
|
63
|
-
});
|
|
6
|
+
function m({ actions: m, triggerLabel: h, getActionLabel: g, onSelect: _, disabledActions: v }) {
|
|
7
|
+
return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(s, {
|
|
8
|
+
asChild: !0,
|
|
9
|
+
onFocus: u,
|
|
10
|
+
children: /* @__PURE__ */ d(i, {
|
|
11
|
+
asChild: !0,
|
|
12
|
+
children: /* @__PURE__ */ d(e, {
|
|
13
|
+
variant: "ghost",
|
|
14
|
+
size: "icon",
|
|
15
|
+
"aria-label": h,
|
|
16
|
+
children: /* @__PURE__ */ d(p, { className: "ttw:size-4" })
|
|
17
|
+
})
|
|
18
|
+
})
|
|
19
|
+
}), /* @__PURE__ */ d(o, { children: h })] }), /* @__PURE__ */ d(n, {
|
|
20
|
+
align: "end",
|
|
21
|
+
children: m.map((e) => {
|
|
22
|
+
let t = c[e];
|
|
23
|
+
return /* @__PURE__ */ f(r, {
|
|
24
|
+
variant: l.has(e) ? "destructive" : "default",
|
|
25
|
+
disabled: v?.includes(e),
|
|
26
|
+
onClick: () => _(e),
|
|
27
|
+
children: [/* @__PURE__ */ d(t, { className: "ttw:size-4" }), g(e)]
|
|
28
|
+
}, e);
|
|
29
|
+
})
|
|
30
|
+
})] });
|
|
64
31
|
}
|
|
65
|
-
export {
|
|
32
|
+
export { m as OverflowMenu };
|