@tesouro/embedded-components-react 0.11.206 → 0.11.211
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/dist/index.css +13 -126
- package/dist/index.d.ts +6 -5
- package/dist/lib/ReceivablesWidget.d.ts +6 -5
- package/dist/lib/WidgetSuite.d.ts +6 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +186 -239
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +59 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentRecord.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +19 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusColors.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +18 -120
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +89 -84
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +91 -36
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +9 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +26 -208
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +209 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +50 -208
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +186 -138
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +2 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +117 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +3 -198
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +198 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +2 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +22 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +40 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +17 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +61 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +19 -35
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +31 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +391 -84
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +2 -494
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +62 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +433 -61
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +176 -428
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +20 -224
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +264 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +2 -264
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +131 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +22 -126
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +235 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +3 -239
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +247 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +26 -244
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +183 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +21 -194
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +143 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +2 -143
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +127 -144
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index16.js +107 -111
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +2 -31
- 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/product-catalog/feature/dist/lib/helpers.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1554 -1544
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +0 -47
|
@@ -1,40 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { sectionChevronClass as s, sectionCountBadgeClass as c, sectionItemClass as l, sectionTriggerClass as u } from "./index29.js";
|
|
4
|
-
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
1
|
+
import { AccordionTrigger as e, Badge as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
3
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
children:
|
|
11
|
-
className:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
className: c,
|
|
21
|
-
children: p.countLabel
|
|
22
|
-
}) : null]
|
|
23
|
-
})
|
|
24
|
-
}), /* @__PURE__ */ f(e, { children: [p.showNamesError ? /* @__PURE__ */ d(a, {
|
|
25
|
-
variant: "caption",
|
|
26
|
-
color: "muted",
|
|
27
|
-
children: m.auditHistoryNamesError
|
|
28
|
-
}) : null, /* @__PURE__ */ d(r, {
|
|
29
|
-
rows: p.rows,
|
|
30
|
-
isLoading: p.isLoading,
|
|
31
|
-
isError: p.isError,
|
|
32
|
-
labels: {
|
|
33
|
-
empty: m.auditHistoryEmpty,
|
|
34
|
-
loading: m.auditHistoryLoading,
|
|
35
|
-
error: m.auditHistoryError
|
|
36
|
-
}
|
|
37
|
-
})] })]
|
|
4
|
+
function i({ heading: i, countLabel: a }) {
|
|
5
|
+
return /* @__PURE__ */ n(e, {
|
|
6
|
+
className: "ttw:group ttw:cursor-pointer ttw:hover:no-underline",
|
|
7
|
+
iconClassName: "ttw:translate-y-0.5",
|
|
8
|
+
children: /* @__PURE__ */ r("span", {
|
|
9
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
10
|
+
children: [/* @__PURE__ */ n("span", {
|
|
11
|
+
className: "ttw:group-hover:underline",
|
|
12
|
+
children: i
|
|
13
|
+
}), a ? /* @__PURE__ */ n(t, {
|
|
14
|
+
tone: "neutral",
|
|
15
|
+
children: a
|
|
16
|
+
}) : null]
|
|
17
|
+
})
|
|
38
18
|
});
|
|
39
19
|
}
|
|
40
|
-
export {
|
|
20
|
+
export { i as SectionTrigger };
|
|
@@ -1,19 +1,9 @@
|
|
|
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
1
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
s?.(e), i();
|
|
15
|
-
},
|
|
16
|
-
children: /* @__PURE__ */ n(r, { className: "ttw:size-4" })
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
export { i as CloseButton };
|
|
2
|
+
var e = {
|
|
3
|
+
billing: "billing",
|
|
4
|
+
lineItems: "line-items",
|
|
5
|
+
notes: "notes",
|
|
6
|
+
attachments: "attachments",
|
|
7
|
+
auditHistory: "audit-history"
|
|
8
|
+
};
|
|
9
|
+
export { e as RECEIVABLE_DETAILS_SECTION };
|
|
@@ -1,42 +1,65 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { AccordionContent as e, AccordionItem as t, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_DETAILS_SECTION as r } from "./index34.js";
|
|
3
|
+
import { sectionItemClass as i } from "./index32.js";
|
|
4
|
+
import { SectionTrigger as a } from "./index33.js";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
6
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
children: o
|
|
13
|
-
});
|
|
14
|
-
return c ? /* @__PURE__ */ r("button", {
|
|
15
|
-
type: "button",
|
|
16
|
-
onClick: c,
|
|
17
|
-
"aria-haspopup": "dialog",
|
|
18
|
-
className: t(a, "ttw:group ttw:w-full ttw:cursor-pointer ttw:rounded-sm ttw:text-left ttw:outline-none ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50"),
|
|
19
|
-
children: [
|
|
20
|
-
l,
|
|
21
|
-
/* @__PURE__ */ n(e, {
|
|
22
|
-
component: "span",
|
|
23
|
-
variant: "body2",
|
|
24
|
-
color: "primary",
|
|
25
|
-
className: "ttw:underline-offset-4 ttw:group-hover:underline",
|
|
26
|
-
children: s
|
|
27
|
-
}),
|
|
28
|
-
/* @__PURE__ */ n(i, {
|
|
29
|
-
className: "ttw:ml-auto ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
|
|
30
|
-
"aria-hidden": "true"
|
|
31
|
-
})
|
|
32
|
-
]
|
|
33
|
-
}) : /* @__PURE__ */ r("div", {
|
|
34
|
-
className: a,
|
|
35
|
-
children: [l, /* @__PURE__ */ n(e, {
|
|
36
|
-
component: "span",
|
|
7
|
+
function c({ attachments: c, labels: l }) {
|
|
8
|
+
return /* @__PURE__ */ s(t, {
|
|
9
|
+
value: r.attachments,
|
|
10
|
+
className: i,
|
|
11
|
+
children: [/* @__PURE__ */ o(a, {
|
|
12
|
+
heading: l.attachmentsHeading,
|
|
13
|
+
countLabel: c.countLabel
|
|
14
|
+
}), /* @__PURE__ */ o(e, { children: c.rows.length === 0 ? /* @__PURE__ */ o(n, {
|
|
37
15
|
variant: "body2",
|
|
38
|
-
|
|
39
|
-
|
|
16
|
+
color: "muted",
|
|
17
|
+
children: l.attachmentsEmpty
|
|
18
|
+
}) : /* @__PURE__ */ s("table", {
|
|
19
|
+
className: "ttw:w-full ttw:border-collapse",
|
|
20
|
+
children: [/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ s("tr", {
|
|
21
|
+
className: "ttw:border-b ttw:border-border",
|
|
22
|
+
children: [/* @__PURE__ */ o("th", {
|
|
23
|
+
scope: "col",
|
|
24
|
+
className: "ttw:py-2 ttw:text-left",
|
|
25
|
+
children: /* @__PURE__ */ o(n, {
|
|
26
|
+
component: "span",
|
|
27
|
+
variant: "caption",
|
|
28
|
+
color: "muted",
|
|
29
|
+
children: l.attachmentsFileColumn
|
|
30
|
+
})
|
|
31
|
+
}), /* @__PURE__ */ o("th", {
|
|
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
|
+
}) })]
|
|
40
63
|
});
|
|
41
64
|
}
|
|
42
|
-
export {
|
|
65
|
+
export { c as AttachmentsItem };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { AccordionContent as e, AccordionItem as t, AuditHistoryList as n, Typography as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_DETAILS_SECTION as i } from "./index34.js";
|
|
3
|
+
import { sectionItemClass as a } from "./index32.js";
|
|
4
|
+
import { SectionTrigger as o } from "./index33.js";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
6
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})
|
|
27
|
-
})
|
|
7
|
+
function l({ auditHistory: l, labels: u }) {
|
|
8
|
+
return /* @__PURE__ */ c(t, {
|
|
9
|
+
value: i.auditHistory,
|
|
10
|
+
className: a,
|
|
11
|
+
children: [/* @__PURE__ */ s(o, {
|
|
12
|
+
heading: u.auditHistoryHeading,
|
|
13
|
+
countLabel: l.countLabel
|
|
14
|
+
}), /* @__PURE__ */ c(e, { children: [l.showNamesError ? /* @__PURE__ */ s(r, {
|
|
15
|
+
variant: "caption",
|
|
16
|
+
color: "muted",
|
|
17
|
+
children: u.auditHistoryNamesError
|
|
18
|
+
}) : null, /* @__PURE__ */ s(n, {
|
|
19
|
+
rows: l.rows,
|
|
20
|
+
isLoading: l.isLoading,
|
|
21
|
+
isError: l.isError,
|
|
22
|
+
labels: {
|
|
23
|
+
empty: u.auditHistoryEmpty,
|
|
24
|
+
loading: u.auditHistoryLoading,
|
|
25
|
+
error: u.auditHistoryError
|
|
26
|
+
}
|
|
27
|
+
})] })]
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
export {
|
|
30
|
+
export { l as AuditHistoryItem };
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx as
|
|
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";
|
|
3
3
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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, {
|
|
14
26
|
component: "span",
|
|
15
27
|
variant: "body2",
|
|
16
|
-
|
|
17
|
-
children: i
|
|
28
|
+
children: o
|
|
18
29
|
})]
|
|
19
30
|
});
|
|
20
31
|
}
|
|
21
|
-
export {
|
|
32
|
+
export { a as CustomerNameRow };
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EmptyState as e } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
2
|
+
import "../../../shared/ui/dist/index.js";
|
|
2
3
|
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { SearchX as n } from "lucide-react";
|
|
3
5
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js
|
|
4
|
-
function
|
|
6
|
+
function r({ title: r, description: i }) {
|
|
5
7
|
return /* @__PURE__ */ t("div", {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
className: "ttw:flex ttw:min-h-full ttw:items-center ttw:justify-center",
|
|
9
|
+
children: /* @__PURE__ */ t(e, {
|
|
10
|
+
icon: /* @__PURE__ */ t(n, {
|
|
11
|
+
className: "ttw:size-5",
|
|
12
|
+
"aria-hidden": "true"
|
|
13
|
+
}),
|
|
14
|
+
title: r,
|
|
15
|
+
description: i
|
|
16
|
+
})
|
|
9
17
|
});
|
|
10
18
|
}
|
|
11
|
-
export {
|
|
19
|
+
export { r as DetailsMessage };
|
|
@@ -1,37 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
4
|
-
import { MoreVerticalIcon as m } from "lucide-react";
|
|
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";
|
|
5
3
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
arrowClassName: l,
|
|
23
|
-
children: g
|
|
24
|
-
})] }), /* @__PURE__ */ f(n, {
|
|
25
|
-
align: "end",
|
|
26
|
-
children: h.map((e) => {
|
|
27
|
-
let t = c[e];
|
|
28
|
-
return /* @__PURE__ */ p(r, {
|
|
29
|
-
variant: e === "delete" ? "destructive" : "default",
|
|
30
|
-
disabled: y?.includes(e),
|
|
31
|
-
onClick: () => v(e),
|
|
32
|
-
children: [/* @__PURE__ */ f(t, { className: "ttw:size-4" }), _(e)]
|
|
33
|
-
}, e);
|
|
34
|
-
})
|
|
35
|
-
})] });
|
|
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
|
+
})]
|
|
19
|
+
});
|
|
36
20
|
}
|
|
37
|
-
export {
|
|
21
|
+
export { r as InfoRow };
|
|
@@ -1,15 +1,32 @@
|
|
|
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 "./index32.js";
|
|
3
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
4
|
+
import { MoreVerticalIcon as p } from "lucide-react";
|
|
1
5
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
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
|
+
})] });
|
|
31
|
+
}
|
|
32
|
+
export { m as OverflowMenu };
|
|
@@ -1,27 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
1
|
+
import { Button as e, Typography as t, cn as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { StatusBadge as r } from "./index30.js";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
variant: "
|
|
10
|
-
|
|
11
|
-
children:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
var o = "ttw:h-10 ttw:px-2 ttw:text-left ttw:text-sm ttw:font-medium ttw:leading-5", s = "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left ttw:text-sm ttw:font-normal ttw:leading-5";
|
|
6
|
+
function c({ rows: c, labels: l }) {
|
|
7
|
+
return c.length === 0 ? /* @__PURE__ */ i(t, {
|
|
8
|
+
variant: "body2",
|
|
9
|
+
color: "muted",
|
|
10
|
+
children: l.scheduleEmpty
|
|
11
|
+
}) : /* @__PURE__ */ a("table", {
|
|
12
|
+
className: "ttw:w-full",
|
|
13
|
+
children: [/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ a("tr", { children: [
|
|
14
|
+
/* @__PURE__ */ i("th", {
|
|
15
|
+
scope: "col",
|
|
16
|
+
className: n(o, "ttw:pl-0"),
|
|
17
|
+
children: l.scheduleIssueDateColumn
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ i("th", {
|
|
20
|
+
scope: "col",
|
|
21
|
+
className: o,
|
|
22
|
+
children: l.scheduleAmountColumn
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ i("th", {
|
|
25
|
+
scope: "col",
|
|
26
|
+
className: o,
|
|
27
|
+
children: l.scheduleStatusColumn
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ i("th", {
|
|
30
|
+
scope: "col",
|
|
31
|
+
className: o,
|
|
32
|
+
children: l.scheduleNumberColumn
|
|
33
|
+
})
|
|
34
|
+
] }) }), /* @__PURE__ */ i("tbody", { children: c.map((t) => {
|
|
35
|
+
let { onOpen: o } = t;
|
|
36
|
+
return /* @__PURE__ */ a("tr", {
|
|
37
|
+
className: "ttw:border-t ttw:border-border",
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ i("td", {
|
|
40
|
+
className: n(s, "ttw:pl-0"),
|
|
41
|
+
children: t.issueDateLabel
|
|
42
|
+
}),
|
|
43
|
+
/* @__PURE__ */ i("td", {
|
|
44
|
+
className: s,
|
|
45
|
+
children: t.amountLabel
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ i("td", {
|
|
48
|
+
className: "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left",
|
|
49
|
+
children: /* @__PURE__ */ i(r, {
|
|
50
|
+
label: t.chip.label,
|
|
51
|
+
color: t.chip.color
|
|
52
|
+
})
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ i("td", {
|
|
55
|
+
className: s,
|
|
56
|
+
children: o ? /* @__PURE__ */ i(e, {
|
|
57
|
+
type: "button",
|
|
58
|
+
variant: "link",
|
|
59
|
+
className: "ttw:h-auto ttw:px-0",
|
|
60
|
+
"aria-label": t.openLabel,
|
|
61
|
+
onClick: o,
|
|
62
|
+
children: t.numberLabel
|
|
63
|
+
}) : t.numberLabel
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
}, t.id);
|
|
67
|
+
}) })]
|
|
15
68
|
});
|
|
16
69
|
}
|
|
17
|
-
|
|
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
|
-
}
|
|
27
|
-
export { c as IterationStatusChip, s as SeriesStatusChip };
|
|
70
|
+
export { c as ScheduledInvoicesTable };
|