@tesouro/embedded-components-react 0.5.219 → 0.5.222
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 +87 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +26 -0
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +22 -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/index13.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +219 -453
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +29 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +458 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +40 -310
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +43 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +82 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +121 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +317 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +30 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +17 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +4 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +90 -239
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +24 -89
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +223 -331
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +8 -8
- 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/index27.js +0 -100
|
@@ -1,93 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { FileIcon as r, MailXIcon as i, SendIcon 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
|
-
className: "ttw:rounded-md ttw:bg-destructive/10 ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-destructive",
|
|
26
|
-
children: _.form
|
|
27
|
-
}),
|
|
28
|
-
/* @__PURE__ */ f("div", {
|
|
29
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
30
|
-
children: [
|
|
31
|
-
/* @__PURE__ */ d(c, { children: C.toLabel }),
|
|
32
|
-
/* @__PURE__ */ d(s, {
|
|
33
|
-
value: g.to,
|
|
34
|
-
onChange: (e) => y({ to: e.target.value })
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ d(p, { message: _?.to })
|
|
37
|
-
]
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ f("div", {
|
|
40
|
-
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
41
|
-
children: [/* @__PURE__ */ f("div", {
|
|
42
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
43
|
-
children: [/* @__PURE__ */ d(c, { children: C.ccLabel }), /* @__PURE__ */ d(s, {
|
|
44
|
-
value: g.cc,
|
|
45
|
-
onChange: (e) => y({ cc: e.target.value })
|
|
46
|
-
})]
|
|
47
|
-
}), /* @__PURE__ */ f("div", {
|
|
48
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
49
|
-
children: [/* @__PURE__ */ d(c, { children: C.bccLabel }), /* @__PURE__ */ d(s, {
|
|
50
|
-
value: g.bcc,
|
|
51
|
-
onChange: (e) => y({ bcc: e.target.value })
|
|
52
|
-
})]
|
|
53
|
-
})]
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ f("div", {
|
|
56
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ d(c, { children: C.subjectLabel }),
|
|
59
|
-
/* @__PURE__ */ d(s, {
|
|
60
|
-
value: g.subject,
|
|
61
|
-
onChange: (e) => y({ subject: e.target.value })
|
|
62
|
-
}),
|
|
63
|
-
/* @__PURE__ */ d(p, { message: _?.subject })
|
|
64
|
-
]
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ f("div", {
|
|
67
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
68
|
-
children: [
|
|
69
|
-
/* @__PURE__ */ d(c, { children: C.bodyLabel }),
|
|
70
|
-
/* @__PURE__ */ d(l, {
|
|
71
|
-
rows: 6,
|
|
72
|
-
value: g.body,
|
|
73
|
-
onChange: (e) => y({ body: e.target.value })
|
|
74
|
-
}),
|
|
75
|
-
/* @__PURE__ */ d(p, { message: _?.body })
|
|
76
|
-
]
|
|
77
|
-
})
|
|
78
|
-
]
|
|
79
|
-
}),
|
|
80
|
-
/* @__PURE__ */ f(i, { children: [/* @__PURE__ */ d(e, {
|
|
81
|
-
variant: "ghost",
|
|
82
|
-
onClick: x,
|
|
83
|
-
children: C.cancelButton
|
|
84
|
-
}), /* @__PURE__ */ d(e, {
|
|
85
|
-
loading: v,
|
|
86
|
-
onClick: b,
|
|
87
|
-
children: C.sendButton
|
|
88
|
-
})] })
|
|
89
|
-
] })
|
|
5
|
+
var o = {
|
|
6
|
+
issue_and_send: a,
|
|
7
|
+
issue: i,
|
|
8
|
+
draft: r
|
|
9
|
+
};
|
|
10
|
+
function s({ option: r }) {
|
|
11
|
+
let i = o[r.value];
|
|
12
|
+
return /* @__PURE__ */ n("div", {
|
|
13
|
+
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
14
|
+
children: [/* @__PURE__ */ t(i, { className: "ttw:size-5 ttw:shrink-0 ttw:text-muted-foreground" }), /* @__PURE__ */ n("div", {
|
|
15
|
+
className: "ttw:flex ttw:flex-col ttw:text-left",
|
|
16
|
+
children: [/* @__PURE__ */ t(e, {
|
|
17
|
+
variant: "body2",
|
|
18
|
+
children: r.title
|
|
19
|
+
}), /* @__PURE__ */ t(e, {
|
|
20
|
+
variant: "body2",
|
|
21
|
+
color: "muted",
|
|
22
|
+
children: r.description
|
|
23
|
+
})]
|
|
24
|
+
})]
|
|
90
25
|
});
|
|
91
26
|
}
|
|
92
27
|
//#endregion
|
|
93
|
-
export {
|
|
28
|
+
export { s as CreationModeOption };
|