@tesouro/embedded-components-react 0.5.267 → 0.5.270
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 +4 -10
- package/dist/index.d.ts +13 -9
- package/dist/lib/ReceivablesWidget.d.ts +13 -9
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +44 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsSheetView.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +76 -150
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +63 -57
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/actionsModal.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +161 -152
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +30 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +208 -158
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +91 -85
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +197 -196
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +147 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +3 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +22 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +17 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +37 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +29 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +38 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +26 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +20 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +34 -83
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +14 -404
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +28 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +79 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +490 -68
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +2 -502
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +41 -216
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +70 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +484 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +224 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +21 -263
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +261 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +2 -237
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +100 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +21 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +226 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +3 -59
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +233 -178
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +85 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +45 -0
- 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/index45.js +0 -100
|
@@ -1,66 +1,72 @@
|
|
|
1
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
2
|
import { RECEIVABLE_DETAILS_SECTION as a } from "./index25.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { sectionChevronClass as o, sectionCountBadgeClass as s, sectionItemClass as c, sectionTriggerClass as l } from "./index23.js";
|
|
4
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
+
import { Check as f } from "lucide-react";
|
|
5
6
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
function p({ attachments: p, labels: m }) {
|
|
8
|
+
return /* @__PURE__ */ d(t, {
|
|
8
9
|
value: a.attachments,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
className: c,
|
|
11
|
+
children: [/* @__PURE__ */ u(n, {
|
|
12
|
+
className: l,
|
|
13
|
+
iconClassName: o,
|
|
14
|
+
children: /* @__PURE__ */ d("span", {
|
|
15
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
16
|
+
children: [/* @__PURE__ */ u("span", {
|
|
17
|
+
className: "ttw:group-hover:underline",
|
|
18
|
+
children: m.attachmentsHeading
|
|
19
|
+
}), /* @__PURE__ */ u(r, {
|
|
20
|
+
variant: "secondary",
|
|
21
|
+
className: s,
|
|
22
|
+
children: p.countLabel
|
|
23
|
+
})]
|
|
24
|
+
})
|
|
25
|
+
}), /* @__PURE__ */ u(e, { children: p.rows.length === 0 ? /* @__PURE__ */ u(i, {
|
|
20
26
|
variant: "body2",
|
|
21
27
|
color: "muted",
|
|
22
|
-
children:
|
|
23
|
-
}) : /* @__PURE__ */
|
|
28
|
+
children: m.attachmentsEmpty
|
|
29
|
+
}) : /* @__PURE__ */ d("table", {
|
|
24
30
|
className: "ttw:w-full ttw:border-collapse",
|
|
25
|
-
children: [/* @__PURE__ */
|
|
31
|
+
children: [/* @__PURE__ */ u("thead", { children: /* @__PURE__ */ d("tr", {
|
|
26
32
|
className: "ttw:border-b ttw:border-border",
|
|
27
|
-
children: [/* @__PURE__ */
|
|
33
|
+
children: [/* @__PURE__ */ u("th", {
|
|
28
34
|
scope: "col",
|
|
29
35
|
className: "ttw:py-2 ttw:text-left",
|
|
30
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ u(i, {
|
|
31
37
|
component: "span",
|
|
32
38
|
variant: "caption",
|
|
33
39
|
color: "muted",
|
|
34
|
-
children:
|
|
40
|
+
children: m.attachmentsFileColumn
|
|
35
41
|
})
|
|
36
|
-
}), /* @__PURE__ */
|
|
42
|
+
}), /* @__PURE__ */ u("th", {
|
|
37
43
|
scope: "col",
|
|
38
44
|
className: "ttw:py-2 ttw:text-right",
|
|
39
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ u(i, {
|
|
40
46
|
component: "span",
|
|
41
47
|
variant: "caption",
|
|
42
48
|
color: "muted",
|
|
43
|
-
children:
|
|
49
|
+
children: m.attachmentsEmailedColumn
|
|
44
50
|
})
|
|
45
51
|
})]
|
|
46
|
-
}) }), /* @__PURE__ */
|
|
52
|
+
}) }), /* @__PURE__ */ u("tbody", { children: p.rows.map((e) => /* @__PURE__ */ d("tr", {
|
|
47
53
|
className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
|
|
48
|
-
children: [/* @__PURE__ */
|
|
54
|
+
children: [/* @__PURE__ */ u("td", {
|
|
49
55
|
className: "ttw:py-3",
|
|
50
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ u("a", {
|
|
51
57
|
href: e.url,
|
|
52
58
|
target: "_blank",
|
|
53
59
|
rel: "noreferrer",
|
|
54
60
|
className: "ttw:text-primary ttw:hover:underline",
|
|
55
61
|
children: e.name
|
|
56
62
|
})
|
|
57
|
-
}), /* @__PURE__ */
|
|
63
|
+
}), /* @__PURE__ */ u("td", {
|
|
58
64
|
className: "ttw:py-3 ttw:text-right ttw:align-middle",
|
|
59
|
-
children: e.includeInEmail ? /* @__PURE__ */
|
|
65
|
+
children: e.includeInEmail ? /* @__PURE__ */ u(f, {
|
|
60
66
|
role: "img",
|
|
61
67
|
"aria-label": e.emailedLabel,
|
|
62
68
|
className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
|
|
63
|
-
}) : /* @__PURE__ */
|
|
69
|
+
}) : /* @__PURE__ */ u("span", {
|
|
64
70
|
className: "ttw:sr-only",
|
|
65
71
|
children: e.emailedLabel
|
|
66
72
|
})
|
|
@@ -70,4 +76,4 @@ function l({ attachments: l, labels: u }) {
|
|
|
70
76
|
});
|
|
71
77
|
}
|
|
72
78
|
//#endregion
|
|
73
|
-
export {
|
|
79
|
+
export { p as AttachmentsItem };
|
|
@@ -1,35 +1,41 @@
|
|
|
1
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
2
|
import { RECEIVABLE_DETAILS_SECTION as o } from "./index25.js";
|
|
3
|
-
import {
|
|
3
|
+
import { sectionChevronClass as s, sectionCountBadgeClass as c, sectionItemClass as l, sectionTriggerClass as u } from "./index23.js";
|
|
4
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
function p({ auditHistory: p, labels: m }) {
|
|
7
|
+
return /* @__PURE__ */ f(t, {
|
|
7
8
|
value: o.auditHistory,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
className: l,
|
|
10
|
+
children: [/* @__PURE__ */ d(n, {
|
|
11
|
+
className: u,
|
|
12
|
+
iconClassName: s,
|
|
13
|
+
children: /* @__PURE__ */ f("span", {
|
|
14
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
15
|
+
children: [/* @__PURE__ */ d("span", {
|
|
16
|
+
className: "ttw:group-hover:underline",
|
|
17
|
+
children: m.auditHistoryHeading
|
|
18
|
+
}), p.countLabel ? /* @__PURE__ */ d(i, {
|
|
19
|
+
variant: "secondary",
|
|
20
|
+
className: c,
|
|
21
|
+
children: p.countLabel
|
|
22
|
+
}) : null]
|
|
23
|
+
})
|
|
24
|
+
}), /* @__PURE__ */ f(e, { children: [p.showNamesError ? /* @__PURE__ */ d(a, {
|
|
19
25
|
variant: "caption",
|
|
20
26
|
color: "muted",
|
|
21
|
-
children:
|
|
22
|
-
}) : null, /* @__PURE__ */
|
|
23
|
-
rows:
|
|
24
|
-
isLoading:
|
|
25
|
-
isError:
|
|
27
|
+
children: m.auditHistoryNamesError
|
|
28
|
+
}) : null, /* @__PURE__ */ d(r, {
|
|
29
|
+
rows: p.rows,
|
|
30
|
+
isLoading: p.isLoading,
|
|
31
|
+
isError: p.isError,
|
|
26
32
|
labels: {
|
|
27
|
-
empty:
|
|
28
|
-
loading:
|
|
29
|
-
error:
|
|
33
|
+
empty: m.auditHistoryEmpty,
|
|
34
|
+
loading: m.auditHistoryLoading,
|
|
35
|
+
error: m.auditHistoryError
|
|
30
36
|
}
|
|
31
37
|
})] })]
|
|
32
38
|
});
|
|
33
39
|
}
|
|
34
40
|
//#endregion
|
|
35
|
-
export {
|
|
41
|
+
export { p as AuditHistoryItem };
|
|
@@ -1,16 +1,43 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Typography as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
import { ChevronRight as i } from "lucide-react";
|
|
2
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
var a = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
|
|
6
|
+
function o({ label: o, name: s, onOpen: c }) {
|
|
7
|
+
let l = /* @__PURE__ */ n(e, {
|
|
8
|
+
component: "span",
|
|
9
|
+
variant: "body2",
|
|
10
|
+
color: "muted",
|
|
11
|
+
className: "ttw:w-40 ttw:shrink-0",
|
|
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",
|
|
37
|
+
variant: "body2",
|
|
38
|
+
children: s
|
|
12
39
|
})]
|
|
13
40
|
});
|
|
14
41
|
}
|
|
15
42
|
//#endregion
|
|
16
|
-
export {
|
|
43
|
+
export { o as CustomerNameRow };
|
|
@@ -1,33 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { MoreVerticalIcon as d } from "lucide-react";
|
|
1
|
+
import { SheetTitle as e, Typography as t, typographyVariants as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { SearchX as a } from "lucide-react";
|
|
5
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
children: /* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
children: /* @__PURE__ */
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
function o({ title: o, description: s }) {
|
|
6
|
+
return /* @__PURE__ */ r("div", {
|
|
7
|
+
className: "ttw:m-auto ttw:w-3/4",
|
|
8
|
+
children: /* @__PURE__ */ r("div", {
|
|
9
|
+
className: "ttw:flex ttw:h-full ttw:w-full ttw:items-center ttw:justify-center",
|
|
10
|
+
children: /* @__PURE__ */ i("div", {
|
|
11
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-4",
|
|
12
|
+
children: [/* @__PURE__ */ r(a, {
|
|
13
|
+
className: "ttw:size-8 ttw:text-destructive",
|
|
14
|
+
"aria-hidden": "true"
|
|
15
|
+
}), /* @__PURE__ */ i("div", {
|
|
16
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-2",
|
|
17
|
+
children: [/* @__PURE__ */ r(e, {
|
|
18
|
+
className: n({ variant: "h4" }),
|
|
19
|
+
children: o
|
|
20
|
+
}), /* @__PURE__ */ r(t, {
|
|
21
|
+
variant: "body1",
|
|
22
|
+
className: "ttw:text-center",
|
|
23
|
+
children: s
|
|
24
|
+
})]
|
|
25
|
+
})]
|
|
17
26
|
})
|
|
18
27
|
})
|
|
19
|
-
})
|
|
20
|
-
align: "end",
|
|
21
|
-
children: f.map((e) => {
|
|
22
|
-
let t = c[e];
|
|
23
|
-
return /* @__PURE__ */ u(r, {
|
|
24
|
-
variant: e === "delete" ? "destructive" : "default",
|
|
25
|
-
disabled: g?.includes(e),
|
|
26
|
-
onClick: () => h(e),
|
|
27
|
-
children: [/* @__PURE__ */ l(t, { className: "ttw:size-4" }), m(e)]
|
|
28
|
-
}, e);
|
|
29
|
-
})
|
|
30
|
-
})] });
|
|
28
|
+
});
|
|
31
29
|
}
|
|
32
30
|
//#endregion
|
|
33
|
-
export {
|
|
31
|
+
export { o as DetailsMessage };
|
|
@@ -1,16 +1,22 @@
|
|
|
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";
|
|
1
3
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
});
|
|
20
|
+
}
|
|
15
21
|
//#endregion
|
|
16
|
-
export {
|
|
22
|
+
export { r as InfoRow };
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { RECURRENCE_CHIP_CLASS as r, RECURRENCE_DOT_CLASS as i } from "./index31.js";
|
|
4
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
3
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className:
|
|
11
|
-
children: [l ? /* @__PURE__ */ a(l, {
|
|
12
|
-
className: "ttw:size-3",
|
|
13
|
-
"aria-hidden": !0
|
|
14
|
-
}) : null, i]
|
|
15
|
-
});
|
|
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]
|
|
4
|
+
function n({ className: n, label: r }) {
|
|
5
|
+
return /* @__PURE__ */ t("div", {
|
|
6
|
+
role: r ? "status" : void 0,
|
|
7
|
+
"aria-label": r,
|
|
8
|
+
className: e("ttw:size-8 ttw:animate-spin ttw:rounded-full ttw:border-3 ttw:border-primary ttw:border-t-transparent", n)
|
|
25
9
|
});
|
|
26
10
|
}
|
|
27
11
|
//#endregion
|
|
28
|
-
export {
|
|
12
|
+
export { n as LoadingSpinner };
|
|
@@ -1,87 +1,38 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ChevronRight as s } from "lucide-react";
|
|
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, headerTooltipArrowClass as l, headerTooltipClass as u, preventTooltipFocusOpen as d } from "./index23.js";
|
|
3
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
4
|
+
import { MoreVerticalIcon as m } from "lucide-react";
|
|
6
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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"
|
|
6
|
+
function h({ actions: h, triggerLabel: g, getActionLabel: _, onSelect: v, disabledActions: y, className: b }) {
|
|
7
|
+
return /* @__PURE__ */ p(t, { children: [/* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(s, {
|
|
8
|
+
asChild: !0,
|
|
9
|
+
onFocus: d,
|
|
10
|
+
children: /* @__PURE__ */ f(i, {
|
|
11
|
+
asChild: !0,
|
|
12
|
+
children: /* @__PURE__ */ f(e, {
|
|
13
|
+
variant: "ghost",
|
|
14
|
+
size: "icon",
|
|
15
|
+
className: b,
|
|
16
|
+
"aria-label": g,
|
|
17
|
+
children: /* @__PURE__ */ f(m, { className: "ttw:size-4" })
|
|
39
18
|
})
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
}) })]
|
|
84
|
-
});
|
|
19
|
+
})
|
|
20
|
+
}), /* @__PURE__ */ f(o, {
|
|
21
|
+
className: u,
|
|
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
|
+
})] });
|
|
85
36
|
}
|
|
86
37
|
//#endregion
|
|
87
|
-
export {
|
|
38
|
+
export { h as OverflowMenu };
|