@tesouro/embedded-components-react 0.5.235 → 0.5.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 +3 -0
- package/dist/index.d.ts +110 -1
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +110 -1
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +210 -208
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +98 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +159 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +53 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +99 -132
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +40 -341
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index37.js +43 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index38.js +92 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index39.js +146 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index40.js +354 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +28 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +9 -214
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +27 -159
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +233 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +34 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +214 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +153 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +16 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +2 -51
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +30 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +90 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +3 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +20 -69
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +51 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +8 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +70 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +33 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +17 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +12 -83
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +9 -121
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +28 -401
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +16 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +80 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +383 -473
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +2 -106
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +48 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +72 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +498 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +106 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +141 -93
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +4 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +90 -239
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +24 -89
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +231 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -353
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +3 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +121 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +100 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +38 -233
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +0 -100
|
@@ -1,35 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RECEIVABLE_DETAILS_SECTION as o } from "./index21.js";
|
|
3
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
1
|
+
import { Ban as e, CalendarX2 as t, Check as n, ChevronsRight as r, CircleCheck as i, CircleSlash as a, CircleX as o, ClipboardCheck as s, Clock as c, CopyPlus as l, Mail as u, Pause as d, PenTool as f, Pencil as p, Play as m, Trash2 as h } from "lucide-react";
|
|
4
2
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js
|
|
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
|
-
|
|
33
|
-
|
|
3
|
+
var g = {
|
|
4
|
+
edit: "editButton",
|
|
5
|
+
issue: "issueButton",
|
|
6
|
+
recordPayment: "recordPaymentButton",
|
|
7
|
+
send: "sendButton",
|
|
8
|
+
accept: "acceptButton",
|
|
9
|
+
decline: "declineButton",
|
|
10
|
+
markPaid: "markPaidButton",
|
|
11
|
+
markUncollectible: "markUncollectibleButton",
|
|
12
|
+
cancel: "cancelButton",
|
|
13
|
+
clone: "cloneButton",
|
|
14
|
+
delete: "deleteButton",
|
|
15
|
+
pauseRecurrence: "pauseRecurrenceButton",
|
|
16
|
+
resumeRecurrence: "resumeRecurrenceButton",
|
|
17
|
+
cancelRecurrence: "cancelRecurrenceButton"
|
|
18
|
+
}, _ = {
|
|
19
|
+
edit: p,
|
|
20
|
+
issue: u,
|
|
21
|
+
recordPayment: s,
|
|
22
|
+
send: u,
|
|
23
|
+
accept: i,
|
|
24
|
+
decline: o,
|
|
25
|
+
markPaid: i,
|
|
26
|
+
markUncollectible: a,
|
|
27
|
+
cancel: e,
|
|
28
|
+
clone: l,
|
|
29
|
+
delete: h,
|
|
30
|
+
pauseRecurrence: d,
|
|
31
|
+
resumeRecurrence: m,
|
|
32
|
+
cancelRecurrence: t
|
|
33
|
+
}, v = {
|
|
34
|
+
draft: f,
|
|
35
|
+
issuing: c,
|
|
36
|
+
issued: c,
|
|
37
|
+
partially_paid: c,
|
|
38
|
+
paid: n,
|
|
39
|
+
overdue: c,
|
|
40
|
+
canceled: e
|
|
41
|
+
}, y = {
|
|
42
|
+
forward: r,
|
|
43
|
+
pause: d,
|
|
44
|
+
ban: e,
|
|
45
|
+
check: n
|
|
46
|
+
}, b = {
|
|
47
|
+
default: "ttw:text-foreground",
|
|
48
|
+
danger: "ttw:text-red-600",
|
|
49
|
+
success: "ttw:text-emerald-600",
|
|
50
|
+
muted: "ttw:text-muted-foreground"
|
|
51
|
+
}, x = "ttw:bg-muted ttw:text-muted-foreground ttw:hover:bg-accent";
|
|
34
52
|
//#endregion
|
|
35
|
-
export {
|
|
53
|
+
export { _ as ACTION_ICON, g as ACTION_LABEL_KEY, y as SERIES_STATUS_ICON, v as STATUS_ICON, b as amountValueToneClass, x as headerIconButtonClass };
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import { XIcon as r } from "lucide-react";
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { amountValueToneClass as t } from "./index23.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
function i({ row: i, defaultTone: a }) {
|
|
6
|
+
let o = i.tone ?? (i.emphasis ? a : "default");
|
|
7
|
+
return /* @__PURE__ */ r("div", {
|
|
8
|
+
className: "ttw:flex ttw:flex-col ttw:gap-0.5",
|
|
9
|
+
children: [/* @__PURE__ */ n("span", {
|
|
10
|
+
className: "ttw:text-xs ttw:font-medium ttw:text-muted-foreground",
|
|
11
|
+
children: i.label
|
|
12
|
+
}), /* @__PURE__ */ n("span", {
|
|
13
|
+
className: e(i.emphasis ? "ttw:text-2xl ttw:font-semibold" : "ttw:text-base ttw:font-medium", t[o]),
|
|
14
|
+
children: i.value
|
|
15
|
+
})]
|
|
17
16
|
});
|
|
18
|
-
}
|
|
17
|
+
}
|
|
19
18
|
//#endregion
|
|
20
|
-
export { i as
|
|
19
|
+
export { i as AmountCell };
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className: "ttw:whitespace-pre-line ttw:text-foreground",
|
|
11
|
-
children: r
|
|
12
|
-
})]
|
|
13
|
-
});
|
|
14
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
billing: "billing",
|
|
4
|
+
lineItems: "line-items",
|
|
5
|
+
notes: "notes",
|
|
6
|
+
attachments: "attachments",
|
|
7
|
+
auditHistory: "audit-history"
|
|
8
|
+
};
|
|
15
9
|
//#endregion
|
|
16
|
-
export {
|
|
10
|
+
export { e as RECEIVABLE_DETAILS_SECTION };
|
|
@@ -1,33 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as
|
|
4
|
-
import {
|
|
1
|
+
import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, Badge as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_DETAILS_SECTION as a } from "./index25.js";
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
import { Check as c } from "lucide-react";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
children: /* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
children: /* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
children: [/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
6
|
+
function l({ attachments: l, labels: u }) {
|
|
7
|
+
return /* @__PURE__ */ s(t, {
|
|
8
|
+
value: a.attachments,
|
|
9
|
+
children: [/* @__PURE__ */ o(n, { children: /* @__PURE__ */ s("span", {
|
|
10
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
11
|
+
children: [/* @__PURE__ */ o("span", {
|
|
12
|
+
className: "ttw:group-hover:underline",
|
|
13
|
+
children: u.attachmentsHeading
|
|
14
|
+
}), /* @__PURE__ */ o(r, {
|
|
15
|
+
variant: "secondary",
|
|
16
|
+
className: "ttw:rounded-full",
|
|
17
|
+
children: l.countLabel
|
|
18
|
+
})]
|
|
19
|
+
}) }), /* @__PURE__ */ o(e, { children: l.rows.length === 0 ? /* @__PURE__ */ o(i, {
|
|
20
|
+
variant: "body2",
|
|
21
|
+
color: "muted",
|
|
22
|
+
children: u.attachmentsEmpty
|
|
23
|
+
}) : /* @__PURE__ */ s("table", {
|
|
24
|
+
className: "ttw:w-full ttw:border-collapse",
|
|
25
|
+
children: [/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ s("tr", {
|
|
26
|
+
className: "ttw:border-b ttw:border-border",
|
|
27
|
+
children: [/* @__PURE__ */ o("th", {
|
|
28
|
+
scope: "col",
|
|
29
|
+
className: "ttw:py-2 ttw:text-left",
|
|
30
|
+
children: /* @__PURE__ */ o(i, {
|
|
31
|
+
component: "span",
|
|
32
|
+
variant: "caption",
|
|
33
|
+
color: "muted",
|
|
34
|
+
children: u.attachmentsFileColumn
|
|
35
|
+
})
|
|
36
|
+
}), /* @__PURE__ */ o("th", {
|
|
37
|
+
scope: "col",
|
|
38
|
+
className: "ttw:py-2 ttw:text-right",
|
|
39
|
+
children: /* @__PURE__ */ o(i, {
|
|
40
|
+
component: "span",
|
|
41
|
+
variant: "caption",
|
|
42
|
+
color: "muted",
|
|
43
|
+
children: u.attachmentsEmailedColumn
|
|
44
|
+
})
|
|
45
|
+
})]
|
|
46
|
+
}) }), /* @__PURE__ */ o("tbody", { children: l.rows.map((e) => /* @__PURE__ */ s("tr", {
|
|
47
|
+
className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
|
|
48
|
+
children: [/* @__PURE__ */ o("td", {
|
|
49
|
+
className: "ttw:py-3",
|
|
50
|
+
children: /* @__PURE__ */ o("a", {
|
|
51
|
+
href: e.url,
|
|
52
|
+
target: "_blank",
|
|
53
|
+
rel: "noreferrer",
|
|
54
|
+
className: "ttw:text-primary ttw:hover:underline",
|
|
55
|
+
children: e.name
|
|
56
|
+
})
|
|
57
|
+
}), /* @__PURE__ */ o("td", {
|
|
58
|
+
className: "ttw:py-3 ttw:text-right ttw:align-middle",
|
|
59
|
+
children: e.includeInEmail ? /* @__PURE__ */ o(c, {
|
|
60
|
+
role: "img",
|
|
61
|
+
"aria-label": e.emailedLabel,
|
|
62
|
+
className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
|
|
63
|
+
}) : /* @__PURE__ */ o("span", {
|
|
64
|
+
className: "ttw:sr-only",
|
|
65
|
+
children: e.emailedLabel
|
|
66
|
+
})
|
|
67
|
+
})]
|
|
68
|
+
}, e.id)) })]
|
|
69
|
+
}) })]
|
|
70
|
+
});
|
|
31
71
|
}
|
|
32
72
|
//#endregion
|
|
33
|
-
export {
|
|
73
|
+
export { l as AttachmentsItem };
|
|
@@ -1,16 +1,35 @@
|
|
|
1
|
+
import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, AuditHistoryList as r, Badge as i, Typography as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_DETAILS_SECTION as o } from "./index25.js";
|
|
3
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
1
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
5
|
+
function l({ auditHistory: l, labels: u }) {
|
|
6
|
+
return /* @__PURE__ */ c(t, {
|
|
7
|
+
value: o.auditHistory,
|
|
8
|
+
children: [/* @__PURE__ */ s(n, { children: /* @__PURE__ */ c("span", {
|
|
9
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
10
|
+
children: [/* @__PURE__ */ s("span", {
|
|
11
|
+
className: "ttw:group-hover:underline",
|
|
12
|
+
children: u.auditHistoryHeading
|
|
13
|
+
}), l.countLabel ? /* @__PURE__ */ s(i, {
|
|
14
|
+
variant: "secondary",
|
|
15
|
+
className: "ttw:rounded-full",
|
|
16
|
+
children: l.countLabel
|
|
17
|
+
}) : null]
|
|
18
|
+
}) }), /* @__PURE__ */ c(e, { children: [l.showNamesError ? /* @__PURE__ */ s(a, {
|
|
19
|
+
variant: "caption",
|
|
20
|
+
color: "muted",
|
|
21
|
+
children: u.auditHistoryNamesError
|
|
22
|
+
}) : null, /* @__PURE__ */ s(r, {
|
|
23
|
+
rows: l.rows,
|
|
24
|
+
isLoading: l.isLoading,
|
|
25
|
+
isError: l.isError,
|
|
26
|
+
labels: {
|
|
27
|
+
empty: u.auditHistoryEmpty,
|
|
28
|
+
loading: u.auditHistoryLoading,
|
|
29
|
+
error: u.auditHistoryError
|
|
30
|
+
}
|
|
31
|
+
})] })]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
15
34
|
//#endregion
|
|
16
|
-
export {
|
|
35
|
+
export { l as AuditHistoryItem };
|
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { XIcon as r } from "lucide-react";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
variant:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
var i = t(function({ label: t, onClose: i, variant: a = "ghost", size: o = "icon", onClick: s, ...c }, l) {
|
|
7
|
+
return /* @__PURE__ */ n(e, {
|
|
8
|
+
ref: l,
|
|
9
|
+
variant: a,
|
|
10
|
+
size: o,
|
|
11
|
+
...c,
|
|
12
|
+
"aria-label": t,
|
|
13
|
+
onClick: (e) => {
|
|
14
|
+
s?.(e), i();
|
|
15
|
+
},
|
|
16
|
+
children: /* @__PURE__ */ n(r, { className: "ttw:size-4" })
|
|
15
17
|
});
|
|
16
|
-
}
|
|
17
|
-
function c({ label: n, tone: s }) {
|
|
18
|
-
return /* @__PURE__ */ o(e, {
|
|
19
|
-
variant: "outline",
|
|
20
|
-
className: t("ttw:inline-flex ttw:items-center ttw:gap-1 ttw:border-transparent", r[s]),
|
|
21
|
-
children: [/* @__PURE__ */ a("span", {
|
|
22
|
-
"aria-hidden": !0,
|
|
23
|
-
className: t("ttw:inline-block ttw:size-2 ttw:rounded-full", i[s])
|
|
24
|
-
}), n]
|
|
25
|
-
});
|
|
26
|
-
}
|
|
18
|
+
});
|
|
27
19
|
//#endregion
|
|
28
|
-
export {
|
|
20
|
+
export { i as CloseButton };
|
|
@@ -1,87 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ReceivableStatusBadge as r } from "./index18.js";
|
|
3
|
-
import { IterationStatusChip as i } from "./index28.js";
|
|
4
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
-
import { ChevronRight as s } from "lucide-react";
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
6
2
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
scope: "col",
|
|
18
|
-
className: n(c, "ttw:pl-0"),
|
|
19
|
-
children: d.scheduleIssueDateColumn
|
|
20
|
-
}),
|
|
21
|
-
/* @__PURE__ */ a("th", {
|
|
22
|
-
scope: "col",
|
|
23
|
-
className: c,
|
|
24
|
-
children: d.scheduleAmountColumn
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ a("th", {
|
|
27
|
-
scope: "col",
|
|
28
|
-
className: c,
|
|
29
|
-
children: d.scheduleStatusColumn
|
|
30
|
-
}),
|
|
31
|
-
/* @__PURE__ */ a("th", {
|
|
32
|
-
scope: "col",
|
|
33
|
-
className: c,
|
|
34
|
-
children: d.scheduleNumberColumn
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ a("th", {
|
|
37
|
-
className: "ttw:h-10 ttw:w-6 ttw:pl-2",
|
|
38
|
-
"aria-hidden": "true"
|
|
39
|
-
})
|
|
40
|
-
] }) }), /* @__PURE__ */ a("tbody", { children: u.map((t) => {
|
|
41
|
-
let { onOpen: c } = t;
|
|
42
|
-
return /* @__PURE__ */ o("tr", {
|
|
43
|
-
className: "ttw:border-t ttw:border-border",
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ a("td", {
|
|
46
|
-
className: n(l, "ttw:pl-0"),
|
|
47
|
-
children: t.issueDateLabel
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ a("td", {
|
|
50
|
-
className: l,
|
|
51
|
-
children: t.amountLabel
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ a("td", {
|
|
54
|
-
className: "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left",
|
|
55
|
-
children: t.chip.kind === "invoice" ? /* @__PURE__ */ a(r, {
|
|
56
|
-
label: t.chip.label,
|
|
57
|
-
tone: t.chip.tone
|
|
58
|
-
}) : /* @__PURE__ */ a(i, {
|
|
59
|
-
label: t.chip.label,
|
|
60
|
-
tone: t.chip.tone
|
|
61
|
-
})
|
|
62
|
-
}),
|
|
63
|
-
/* @__PURE__ */ a("td", {
|
|
64
|
-
className: l,
|
|
65
|
-
children: t.numberLabel
|
|
66
|
-
}),
|
|
67
|
-
/* @__PURE__ */ a("td", {
|
|
68
|
-
className: "ttw:h-9 ttw:w-6 ttw:py-2 ttw:pl-2 ttw:text-right ttw:text-muted-foreground",
|
|
69
|
-
children: c ? /* @__PURE__ */ a(e, {
|
|
70
|
-
variant: "ghost",
|
|
71
|
-
size: "icon",
|
|
72
|
-
className: "ttw:size-6",
|
|
73
|
-
"aria-label": t.openLabel,
|
|
74
|
-
onClick: c,
|
|
75
|
-
children: /* @__PURE__ */ a(s, {
|
|
76
|
-
className: "ttw:size-4",
|
|
77
|
-
"aria-hidden": "true"
|
|
78
|
-
})
|
|
79
|
-
}) : null
|
|
80
|
-
})
|
|
81
|
-
]
|
|
82
|
-
}, t.id);
|
|
83
|
-
}) })]
|
|
3
|
+
function n({ label: n, value: r }) {
|
|
4
|
+
return /* @__PURE__ */ t("div", {
|
|
5
|
+
className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
|
|
6
|
+
children: [/* @__PURE__ */ e("span", {
|
|
7
|
+
className: "ttw:w-40 ttw:shrink-0 ttw:text-muted-foreground",
|
|
8
|
+
children: n
|
|
9
|
+
}), /* @__PURE__ */ e("span", {
|
|
10
|
+
className: "ttw:whitespace-pre-line ttw:text-foreground",
|
|
11
|
+
children: r
|
|
12
|
+
})]
|
|
84
13
|
});
|
|
85
14
|
}
|
|
86
15
|
//#endregion
|
|
87
|
-
export {
|
|
16
|
+
export { n as InfoRow };
|
|
@@ -1,123 +1,11 @@
|
|
|
1
|
-
import { Button as e, DialogDescription as t, DialogFooter as n, DialogHeader as r, DialogTitle as i, Input as a, Label as o, Textarea as s, Typography as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
3
|
-
import { Check as f } from "lucide-react";
|
|
4
1
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50",
|
|
14
|
-
children: /* @__PURE__ */ u(f, { className: "ttw:size-6 ttw:text-green-700" })
|
|
15
|
-
}), /* @__PURE__ */ d("div", {
|
|
16
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
17
|
-
children: [/* @__PURE__ */ u(i, { children: m.title }), /* @__PURE__ */ u(t, {
|
|
18
|
-
className: "ttw:text-xs",
|
|
19
|
-
children: y.issueDescription
|
|
20
|
-
})]
|
|
21
|
-
})]
|
|
22
|
-
})
|
|
23
|
-
}),
|
|
24
|
-
/* @__PURE__ */ d("div", {
|
|
25
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-6",
|
|
26
|
-
children: [
|
|
27
|
-
/* @__PURE__ */ d("div", {
|
|
28
|
-
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
29
|
-
children: [/* @__PURE__ */ u(c, {
|
|
30
|
-
variant: "body2",
|
|
31
|
-
color: "muted",
|
|
32
|
-
className: "ttw:w-16 ttw:shrink-0",
|
|
33
|
-
children: y.toLabel
|
|
34
|
-
}), /* @__PURE__ */ u(c, {
|
|
35
|
-
variant: "body2",
|
|
36
|
-
children: m.recipient
|
|
37
|
-
})]
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ d("div", {
|
|
40
|
-
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
41
|
-
children: [/* @__PURE__ */ u(o, {
|
|
42
|
-
htmlFor: b,
|
|
43
|
-
className: "ttw:w-16 ttw:shrink-0 ttw:font-normal ttw:text-muted-foreground",
|
|
44
|
-
children: y.subjectLabel
|
|
45
|
-
}), /* @__PURE__ */ u(a, {
|
|
46
|
-
id: b,
|
|
47
|
-
className: "ttw:flex-1",
|
|
48
|
-
value: m.subject,
|
|
49
|
-
onChange: (e) => h(e.target.value),
|
|
50
|
-
disabled: m.inProgress
|
|
51
|
-
})]
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ d("div", {
|
|
54
|
-
className: "ttw:flex ttw:items-start ttw:gap-4",
|
|
55
|
-
children: [/* @__PURE__ */ u(o, {
|
|
56
|
-
htmlFor: x,
|
|
57
|
-
className: "ttw:w-16 ttw:shrink-0 ttw:pt-2 ttw:font-normal ttw:text-muted-foreground",
|
|
58
|
-
children: y.messageLabel
|
|
59
|
-
}), /* @__PURE__ */ u(s, {
|
|
60
|
-
id: x,
|
|
61
|
-
className: "ttw:flex-1",
|
|
62
|
-
value: m.message,
|
|
63
|
-
onChange: (e) => g(e.target.value),
|
|
64
|
-
placeholder: y.messagePlaceholder,
|
|
65
|
-
disabled: m.inProgress
|
|
66
|
-
})]
|
|
67
|
-
}),
|
|
68
|
-
m.attachments.length > 0 && /* @__PURE__ */ d("div", {
|
|
69
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pl-20",
|
|
70
|
-
children: [/* @__PURE__ */ d("div", {
|
|
71
|
-
className: "ttw:flex ttw:flex-col",
|
|
72
|
-
children: [/* @__PURE__ */ u(c, {
|
|
73
|
-
variant: "body2",
|
|
74
|
-
color: "muted",
|
|
75
|
-
children: y.attachmentsLabel
|
|
76
|
-
}), /* @__PURE__ */ u(c, {
|
|
77
|
-
variant: "caption",
|
|
78
|
-
color: "muted",
|
|
79
|
-
children: y.attachmentsCaption
|
|
80
|
-
})]
|
|
81
|
-
}), /* @__PURE__ */ u("ul", {
|
|
82
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
83
|
-
children: m.attachments.map((e) => /* @__PURE__ */ d("li", {
|
|
84
|
-
className: "ttw:rounded-lg ttw:bg-muted ttw:px-2 ttw:py-1 ttw:text-sm ttw:font-medium",
|
|
85
|
-
children: [
|
|
86
|
-
e.name,
|
|
87
|
-
" ",
|
|
88
|
-
/* @__PURE__ */ d("span", {
|
|
89
|
-
className: "ttw:text-muted-foreground",
|
|
90
|
-
children: [
|
|
91
|
-
"(",
|
|
92
|
-
e.sizeLabel,
|
|
93
|
-
")"
|
|
94
|
-
]
|
|
95
|
-
})
|
|
96
|
-
]
|
|
97
|
-
}, e.id))
|
|
98
|
-
})]
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ d(n, {
|
|
103
|
-
className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
|
|
104
|
-
children: [/* @__PURE__ */ u(e, {
|
|
105
|
-
type: "button",
|
|
106
|
-
variant: "outline",
|
|
107
|
-
className: "ttw:flex-1 ttw:border-border",
|
|
108
|
-
disabled: m.inProgress,
|
|
109
|
-
onClick: _,
|
|
110
|
-
children: y.skipButton
|
|
111
|
-
}), /* @__PURE__ */ u(e, {
|
|
112
|
-
type: "button",
|
|
113
|
-
className: "ttw:flex-1",
|
|
114
|
-
disabled: m.sendDisabled,
|
|
115
|
-
loading: m.inProgress,
|
|
116
|
-
onClick: v,
|
|
117
|
-
children: y.sendButton
|
|
118
|
-
})]
|
|
119
|
-
})
|
|
120
|
-
] });
|
|
121
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
DueDate: "dueDate",
|
|
4
|
+
CreatedAt: "createdAt",
|
|
5
|
+
IssueDate: "issueDate",
|
|
6
|
+
Status: "status",
|
|
7
|
+
Amount: "amount",
|
|
8
|
+
Customer: "customer"
|
|
9
|
+
};
|
|
122
10
|
//#endregion
|
|
123
|
-
export {
|
|
11
|
+
export { e as InvoicesFilterField };
|