@tesouro/embedded-components-react 0.5.146 → 0.5.147

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.
Files changed (29) hide show
  1. package/README.md +22 -1
  2. package/dist/index.d.ts +72 -22
  3. package/dist/index.js +38 -36
  4. package/dist/lib/CounterpartsWidget.d.ts +21 -18
  5. package/dist/lib/CounterpartsWidget.js +1 -2
  6. package/dist/lib/CounterpartsWidgetPublic.d.ts +976 -0
  7. package/dist/lib/CounterpartsWidgetPublic.js +10 -0
  8. package/dist/lib/CustomersWidget.d.ts +955 -0
  9. package/dist/lib/CustomersWidget.js +3 -0
  10. package/dist/lib/ReceivablesWidget.d.ts +2 -0
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index90.js +1 -0
  12. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index4.js +98 -89
  13. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index7.js +114 -108
  14. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +40 -42
  15. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index2.js +1 -0
  16. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +90 -76
  17. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index4.js +300 -226
  18. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +2 -0
  19. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index2.js +4 -0
  20. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index3.js +45 -0
  21. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index4.js +42 -0
  22. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index5.js +27 -0
  23. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +11 -12
  24. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +103 -100
  25. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/labels.js +1 -0
  26. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +9 -9
  27. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +4 -74
  28. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  29. package/package.json +1 -1
@@ -1,74 +1,4 @@
1
- import { Button as e, RequiredFieldsLegend as t, Sheet as n, SheetContent as r, SheetDescription as i, SheetFooter as a, SheetHeader as o, SheetTitle as s, mergeRequiredFieldsLegendLabels as c } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ADDRESS_FORM_SHEET_LABELS_EN as l } from "./index2.js";
3
- import { AddressFieldGroup as u } from "./index6.js";
4
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
- //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js
6
- function p({ open: p, onOpenChange: m, values: h, errors: g, stateOptions: _, inProgress: v, formError: y, onChange: b, onSubmit: x, onCancel: S, labels: C }) {
7
- let w = {
8
- ...l.fieldMarkers,
9
- ...C?.fieldMarkers
10
- }, T = {
11
- ...l,
12
- ...C,
13
- fieldMarkers: w,
14
- address: {
15
- ...l.address,
16
- ...C?.address,
17
- fieldMarkers: {
18
- ...w,
19
- ...C?.address?.fieldMarkers
20
- }
21
- },
22
- requiredFieldsLegend: c(w, C?.requiredFieldsLegend)
23
- };
24
- return /* @__PURE__ */ d(n, {
25
- open: p,
26
- onOpenChange: m,
27
- children: /* @__PURE__ */ f(r, {
28
- className: "ttw:w-[600px] ttw:sm:max-w-[600px] ttw:overflow-y-auto",
29
- children: [/* @__PURE__ */ f(o, { children: [/* @__PURE__ */ d(s, { children: T.title }), /* @__PURE__ */ d(i, {
30
- className: "ttw:sr-only",
31
- children: T.title
32
- })] }), /* @__PURE__ */ f("form", {
33
- onSubmit: (e) => {
34
- e.preventDefault(), e.stopPropagation(), x();
35
- },
36
- children: [/* @__PURE__ */ f("div", {
37
- className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:pt-8 ttw:pb-6",
38
- children: [
39
- y && /* @__PURE__ */ d("p", {
40
- role: "alert",
41
- className: "ttw:rounded-md ttw:bg-destructive/10 ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-destructive",
42
- children: y
43
- }),
44
- /* @__PURE__ */ d(t, { labels: T.requiredFieldsLegend }),
45
- /* @__PURE__ */ d(u, {
46
- idPrefix: "address-edit",
47
- values: h,
48
- errors: g,
49
- stateOptions: _,
50
- onChange: b,
51
- labels: T.address
52
- })
53
- ]
54
- }), /* @__PURE__ */ f(a, {
55
- className: "ttw:flex ttw:flex-row ttw:justify-end ttw:gap-2",
56
- children: [/* @__PURE__ */ d(e, {
57
- type: "button",
58
- variant: "ghost",
59
- size: "lg",
60
- onClick: S,
61
- children: T.cancelButton
62
- }), /* @__PURE__ */ d(e, {
63
- type: "submit",
64
- size: "lg",
65
- disabled: v,
66
- children: T.saveButton
67
- })]
68
- })]
69
- })]
70
- })
71
- });
72
- }
73
- //#endregion
74
- export { p as AddressFormSheet, p as default };
1
+ import "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import "./index2.js";
3
+ import "./index6.js";
4
+ import "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.146", n = "ddd6753f7399ae94ce634c7dcad020711a0b3097", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.147", n = "9e65acd5977b64cb5808b92bb8d7ba77272e6ea9", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.146",
3
+ "version": "0.5.147",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {