@tesouro/embedded-components-react 0.7.45 → 0.7.47
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.d.ts +33 -39
- package/dist/lib/CounterpartsWidget.d.ts +33 -22
- package/dist/lib/CounterpartsWidgetPublic.d.ts +33 -22
- package/dist/lib/CustomersWidget.d.ts +31 -22
- package/dist/lib/ReceivablesWidget.d.ts +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +40 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index5.js +30 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +7 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +76 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +27 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +30 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +73 -77
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +9 -26
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +197 -208
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +2 -2
- 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/useReceivablesWidget.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +10 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +53 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +21 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +8 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +77 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +31 -69
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +17 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +40 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +26 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -27
- 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 +35 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +14 -36
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +84 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +487 -80
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +2 -494
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +48 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +62 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +438 -61
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +207 -431
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +20 -222
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +265 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +2 -265
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +131 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +22 -125
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +235 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +3 -240
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +249 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +54 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +221 -51
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +38 -222
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +85 -84
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +238 -241
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index11.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index5.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index2.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index4.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index5.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index6.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index8.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/{bill-pay-widget → shared/document-status}/util/dist/lib/derivePayableStatus.js +23 -10
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +22 -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/bill-pay-widget/ui/dist/index14.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +0 -45
|
@@ -1,41 +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/index30.js
|
|
6
|
-
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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, {
|
|
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
|
-
})] })]
|
|
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" })
|
|
38
17
|
});
|
|
39
|
-
}
|
|
18
|
+
});
|
|
40
19
|
//#endregion
|
|
41
|
-
export {
|
|
20
|
+
export { i as CloseButton };
|
|
@@ -1,20 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { XIcon as r } from "lucide-react";
|
|
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";
|
|
5
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
s?.(e), i();
|
|
15
|
-
},
|
|
16
|
-
children: /* @__PURE__ */ n(r, { className: "ttw:size-4" })
|
|
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
|
|
17
13
|
});
|
|
18
|
-
|
|
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
|
|
39
|
+
})]
|
|
40
|
+
});
|
|
41
|
+
}
|
|
19
42
|
//#endregion
|
|
20
|
-
export {
|
|
43
|
+
export { o as CustomerNameRow };
|
|
@@ -1,43 +1,31 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
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";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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"
|
|
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
|
+
})]
|
|
31
26
|
})
|
|
32
|
-
|
|
33
|
-
}) : /* @__PURE__ */ r("div", {
|
|
34
|
-
className: a,
|
|
35
|
-
children: [l, /* @__PURE__ */ n(e, {
|
|
36
|
-
component: "span",
|
|
37
|
-
variant: "body2",
|
|
38
|
-
children: s
|
|
39
|
-
})]
|
|
27
|
+
})
|
|
40
28
|
});
|
|
41
29
|
}
|
|
42
30
|
//#endregion
|
|
43
|
-
export { o as
|
|
31
|
+
export { o as DetailsMessage };
|
|
@@ -1,31 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { SearchX as a } 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";
|
|
4
3
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
className: "ttw:
|
|
8
|
-
children: /* @__PURE__ */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}), /* @__PURE__ */ r(t, {
|
|
21
|
-
variant: "body1",
|
|
22
|
-
className: "ttw:text-center",
|
|
23
|
-
children: s
|
|
24
|
-
})]
|
|
25
|
-
})]
|
|
26
|
-
})
|
|
27
|
-
})
|
|
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
|
+
})]
|
|
28
19
|
});
|
|
29
20
|
}
|
|
30
21
|
//#endregion
|
|
31
|
-
export {
|
|
22
|
+
export { r as InfoRow };
|
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx as t
|
|
1
|
+
import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js
|
|
4
|
-
function
|
|
5
|
-
return /* @__PURE__ */
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
})]
|
|
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)
|
|
19
9
|
});
|
|
20
10
|
}
|
|
21
11
|
//#endregion
|
|
22
|
-
export {
|
|
12
|
+
export { n as LoadingSpinner };
|
|
@@ -1,12 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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 "./index25.js";
|
|
3
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
4
|
+
import { MoreVerticalIcon as m } from "lucide-react";
|
|
3
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js
|
|
4
|
-
function
|
|
5
|
-
return /* @__PURE__ */ t(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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" })
|
|
18
|
+
})
|
|
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
|
+
})] });
|
|
10
36
|
}
|
|
11
37
|
//#endregion
|
|
12
|
-
export {
|
|
38
|
+
export { h as OverflowMenu };
|
|
@@ -1,38 +1,16 @@
|
|
|
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 "./index26.js";
|
|
3
|
-
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
4
|
-
import { MoreVerticalIcon as m } from "lucide-react";
|
|
5
1
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
})] });
|
|
36
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
neutral: "ttw:bg-muted ttw:text-muted-foreground",
|
|
4
|
+
info: "ttw:bg-indigo-100 ttw:text-indigo-700",
|
|
5
|
+
warning: "ttw:bg-yellow-100 ttw:text-yellow-700",
|
|
6
|
+
danger: "ttw:bg-destructive/10 ttw:text-destructive",
|
|
7
|
+
success: "ttw:bg-green-100 ttw:text-green-700"
|
|
8
|
+
}, t = {
|
|
9
|
+
neutral: "ttw:bg-muted-foreground",
|
|
10
|
+
info: "ttw:bg-indigo-700",
|
|
11
|
+
warning: "ttw:bg-yellow-700",
|
|
12
|
+
danger: "ttw:bg-destructive",
|
|
13
|
+
success: "ttw:bg-green-700"
|
|
14
|
+
};
|
|
37
15
|
//#endregion
|
|
38
|
-
export {
|
|
16
|
+
export { e as RECURRENCE_CHIP_CLASS, t as RECURRENCE_DOT_CLASS };
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
+
import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { SERIES_STATUS_ICON as n } from "./index25.js";
|
|
3
|
+
import { RECURRENCE_CHIP_CLASS as r, RECURRENCE_DOT_CLASS as i } from "./index36.js";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
1
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
function s({ label: i, tone: s, icon: c }) {
|
|
7
|
+
let l = c ? n[c] : void 0;
|
|
8
|
+
return /* @__PURE__ */ o(e, {
|
|
9
|
+
variant: "outline",
|
|
10
|
+
className: t("ttw:inline-flex ttw:items-center ttw:gap-1 ttw:border-transparent", r[s]),
|
|
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]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
15
27
|
//#endregion
|
|
16
|
-
export {
|
|
28
|
+
export { c as IterationStatusChip, s as SeriesStatusChip };
|
|
@@ -1,28 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { Button as e, Typography as t, cn as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ReceivableStatusBadge as r } from "../../../shared/document-status/ui/dist/index7.js";
|
|
3
|
+
import "../../../shared/document-status/ui/dist/index.js";
|
|
4
|
+
import { IterationStatusChip as i } from "./index37.js";
|
|
4
5
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { ChevronRight as s } from "lucide-react";
|
|
5
7
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
variant: "
|
|
10
|
-
|
|
11
|
-
children:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
var c = "ttw:h-10 ttw:px-2 ttw:text-left ttw:text-sm ttw:font-medium ttw:leading-5", l = "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left ttw:text-sm ttw:font-normal ttw:leading-5";
|
|
9
|
+
function u({ rows: u, labels: d }) {
|
|
10
|
+
return u.length === 0 ? /* @__PURE__ */ a(t, {
|
|
11
|
+
variant: "body2",
|
|
12
|
+
color: "muted",
|
|
13
|
+
children: d.scheduleEmpty
|
|
14
|
+
}) : /* @__PURE__ */ o("table", {
|
|
15
|
+
className: "ttw:w-full",
|
|
16
|
+
children: [/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ o("tr", { children: [
|
|
17
|
+
/* @__PURE__ */ a("th", {
|
|
18
|
+
scope: "col",
|
|
19
|
+
className: n(c, "ttw:pl-0"),
|
|
20
|
+
children: d.scheduleIssueDateColumn
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ a("th", {
|
|
23
|
+
scope: "col",
|
|
24
|
+
className: c,
|
|
25
|
+
children: d.scheduleAmountColumn
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ a("th", {
|
|
28
|
+
scope: "col",
|
|
29
|
+
className: c,
|
|
30
|
+
children: d.scheduleStatusColumn
|
|
31
|
+
}),
|
|
32
|
+
/* @__PURE__ */ a("th", {
|
|
33
|
+
scope: "col",
|
|
34
|
+
className: c,
|
|
35
|
+
children: d.scheduleNumberColumn
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ a("th", {
|
|
38
|
+
className: "ttw:h-10 ttw:w-6 ttw:pl-2",
|
|
39
|
+
"aria-hidden": "true"
|
|
40
|
+
})
|
|
41
|
+
] }) }), /* @__PURE__ */ a("tbody", { children: u.map((t) => {
|
|
42
|
+
let { onOpen: c } = t;
|
|
43
|
+
return /* @__PURE__ */ o("tr", {
|
|
44
|
+
className: "ttw:border-t ttw:border-border",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ a("td", {
|
|
47
|
+
className: n(l, "ttw:pl-0"),
|
|
48
|
+
children: t.issueDateLabel
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ a("td", {
|
|
51
|
+
className: l,
|
|
52
|
+
children: t.amountLabel
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ a("td", {
|
|
55
|
+
className: "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left",
|
|
56
|
+
children: t.chip.kind === "invoice" ? /* @__PURE__ */ a(r, {
|
|
57
|
+
label: t.chip.label,
|
|
58
|
+
status: t.chip.status,
|
|
59
|
+
variant: "filled"
|
|
60
|
+
}) : /* @__PURE__ */ a(i, {
|
|
61
|
+
label: t.chip.label,
|
|
62
|
+
tone: t.chip.tone
|
|
63
|
+
})
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ a("td", {
|
|
66
|
+
className: l,
|
|
67
|
+
children: t.numberLabel
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ a("td", {
|
|
70
|
+
className: "ttw:h-9 ttw:w-6 ttw:py-2 ttw:pl-2 ttw:text-right ttw:text-muted-foreground",
|
|
71
|
+
children: c ? /* @__PURE__ */ a(e, {
|
|
72
|
+
variant: "ghost",
|
|
73
|
+
size: "icon",
|
|
74
|
+
className: "ttw:size-6",
|
|
75
|
+
"aria-label": t.openLabel,
|
|
76
|
+
onClick: c,
|
|
77
|
+
children: /* @__PURE__ */ a(s, {
|
|
78
|
+
className: "ttw:size-4",
|
|
79
|
+
"aria-hidden": "true"
|
|
80
|
+
})
|
|
81
|
+
}) : null
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}, t.id);
|
|
85
|
+
}) })]
|
|
25
86
|
});
|
|
26
87
|
}
|
|
27
88
|
//#endregion
|
|
28
|
-
export {
|
|
89
|
+
export { u as ScheduledInvoicesTable };
|